Skip to content

Commit 7ba761b

Browse files
committed
docs: api/cache move grn_cache_set_max_n_entries() reference to the header file
GitHub: groongaGH-1817 Prepare to switch to documents automatically generated by Doxygen.
1 parent 004e2a5 commit 7ba761b

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

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

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

7272
msgid "The cache object that is used in :doc:`/reference/commands/select` command. It may be ``NULL``."
7373
msgstr ":doc:`/reference/commands/select` コマンドで使われるキャッシュオブジェクト。 ``NULL`` のこともあります。"
74-
75-
msgid "Sets the max number of entries of the cache object."
76-
msgstr "キャッシュオブジェクトのエントリの最大数を設定します。"
77-
78-
msgid "The cache object to be changed."
79-
msgstr "変更するキャッシュオブジェクト。"
80-
81-
msgid "The new max number of entries of the cache object."
82-
msgstr "キャッシュオブジェクトの新しい最大エントリ数。"

doc/source/reference/api/grn_cache.rst

-9
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,3 @@ Reference
7575
:param ctx: The context.
7676
:return: The cache object that is used in
7777
:doc:`/reference/commands/select` command. It may be ``NULL``.
78-
79-
.. c:function:: grn_rc grn_cache_set_max_n_entries(grn_ctx *ctx, grn_cache *cache, unsigned int n)
80-
81-
Sets the max number of entries of the cache object.
82-
83-
:param ctx: The context.
84-
:param cache: The cache object to be changed.
85-
:param n: The new max number of entries of the cache object.
86-
:return: ``GRN_SUCCESS`` on success, not ``GRN_SUCCESS`` otherwise.

include/groonga/cache.h

+9
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ grn_cache_current_get(grn_ctx *ctx);
101101
GRN_API grn_rc
102102
grn_cache_default_reopen(void);
103103

104+
/**
105+
* \brief Set the maximum number of entries in the \ref grn_cache object.
106+
*
107+
* \param ctx The context object.
108+
* \param cache The cache object whose maximum entry count is updated.
109+
* \param n The new maximum number of entries.
110+
*
111+
* \return \ref GRN_SUCCESS on success, the appropriate \ref grn_rc on error.
112+
*/
104113
GRN_API grn_rc
105114
grn_cache_set_max_n_entries(grn_ctx *ctx, grn_cache *cache, unsigned int n);
106115
/**

0 commit comments

Comments
 (0)