Skip to content

Commit ad96682

Browse files
committed
docs: api/cache move grn_cache_get_max_n_entries() reference to the header file
GitHub: groongaGH-1817 Prepare to switch to documents automatically generated by Doxygen.
1 parent 475c022 commit ad96682

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

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

-9
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,3 @@ msgstr "変更するキャッシュオブジェクト。"
8080

8181
msgid "The new max number of entries of the cache object."
8282
msgstr "キャッシュオブジェクトの新しい最大エントリ数。"
83-
84-
msgid "Gets the max number of entries of the cache object."
85-
msgstr "キャッシュオブジェクトのエントリの最大数を取得します。"
86-
87-
msgid "The target cache object."
88-
msgstr "ターゲットキャッシュオブジェクト。"
89-
90-
msgid "The max number of entries of the cache object."
91-
msgstr "キャッシュオブジェクトの最大エントリ数。"

doc/source/reference/api/grn_cache.rst

-8
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,3 @@ Reference
8484
:param cache: The cache object to be changed.
8585
:param n: The new max number of entries of the cache object.
8686
:return: ``GRN_SUCCESS`` on success, not ``GRN_SUCCESS`` otherwise.
87-
88-
.. c:function:: unsigned int grn_cache_get_max_n_entries(grn_ctx *ctx, grn_cache *cache)
89-
90-
Gets the max number of entries of the cache object.
91-
92-
:param ctx: The context.
93-
:param cache: The target cache object.
94-
:return: The max number of entries of the cache object.

include/groonga/cache.h

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ grn_cache_default_reopen(void);
103103

104104
GRN_API grn_rc
105105
grn_cache_set_max_n_entries(grn_ctx *ctx, grn_cache *cache, unsigned int n);
106+
/**
107+
* \brief Retrieve the maximum number of entries in the \ref grn_cache object.
108+
*
109+
* \param ctx The context object.
110+
* \param cache The cache object whose maximum entry count is to be retrieved.
111+
*
112+
* \return The maximum number of entries for \ref grn_cache object.
113+
*/
106114
GRN_API unsigned int
107115
grn_cache_get_max_n_entries(grn_ctx *ctx, grn_cache *cache);
108116

0 commit comments

Comments
 (0)