Skip to content

Commit 8bd41fe

Browse files
committed
docs: api/cache move grn_cache_current_get() reference to the header file
GitHub: groongaGH-1817 Prepare to switch to documents automatically generated by Doxygen.
1 parent 5f0850c commit 8bd41fe

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

doc/locale/ja/LC_MESSAGES/reference/api/grn_cache.po

-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,3 @@ msgstr ":doc:`/reference/commands/select` コマンドで使われるキャッ
6565

6666
msgid "``GRN_SUCCESS`` on success, not ``GRN_SUCCESS`` otherwise."
6767
msgstr "成功時は ``GRN_SUCCESS`` 、エラー時は ``GRN_SUCCESS`` 以外。"
68-
69-
msgid "Gets the cache object that is used in :doc:`/reference/commands/select` command."
70-
msgstr ":doc:`/reference/commands/select` コマンドで使われるキャッシュオブジェクトを取得します。"
71-
72-
msgid "The cache object that is used in :doc:`/reference/commands/select` command. It may be ``NULL``."
73-
msgstr ":doc:`/reference/commands/select` コマンドで使われるキャッシュオブジェクト。 ``NULL`` のこともあります。"

doc/source/reference/api/grn_cache.rst

-9
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,3 @@ Reference
6666
:param cache: The cache object that is used in
6767
:doc:`/reference/commands/select` command.
6868
:return: ``GRN_SUCCESS`` on success, not ``GRN_SUCCESS`` otherwise.
69-
70-
.. c:function:: grn_cache *grn_cache_current_get(grn_ctx *ctx)
71-
72-
Gets the cache object that is used in
73-
:doc:`/reference/commands/select` command.
74-
75-
:param ctx: The context.
76-
:return: The cache object that is used in
77-
:doc:`/reference/commands/select` command. It may be ``NULL``.

include/groonga/cache.h

+15
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,21 @@ grn_cache_close(grn_ctx *ctx, grn_cache *cache);
9595

9696
GRN_API grn_rc
9797
grn_cache_current_set(grn_ctx *ctx, grn_cache *cache);
98+
/**
99+
* \brief Retrieve the current \ref grn_cache object used in the select command.
100+
*
101+
* \note For more details about the select command, please see
102+
* \htmlonly
103+
* <a href="https://groonga.org/docs/reference/commands/select.html">
104+
* Groonga command select documentation
105+
* </a>.
106+
* \endhtmlonly
107+
*
108+
* \param ctx The context object.
109+
*
110+
* \return The \ref grn_cache object used in the select command on success,
111+
* `NULL` on error.
112+
*/
98113
GRN_API grn_cache *
99114
grn_cache_current_get(grn_ctx *ctx);
100115

0 commit comments

Comments
 (0)