Skip to content

Commit c22a49b

Browse files
author
roman
committed
plugins REFACTOR add doxygen to static func
1 parent 73eddc6 commit c22a49b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/plugins.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ lysc_get_ext_plugin(uintptr_t plugin_id)
176176
/**
177177
* @brief Iterate over list of loaded plugins of the given @p type.
178178
*
179-
* @param[in] ctx The context for which the plugin is searched for
179+
* @param[in] ctx The context for which the plugin is searched for.
180180
* @param[in] type Type of the plugins to iterate.
181181
* @param[in,out] index The iterator - set to 0 for the first call.
182182
* @return The plugin records, NULL if no more record is available.
@@ -202,6 +202,17 @@ plugins_iter(const struct ly_ctx *ctx, enum LYPLG type, uint32_t *index)
202202
return plugins->objs[*index - 1];
203203
}
204204

205+
/**
206+
* @brief Find the give @p type plugin record.
207+
*
208+
* @param[in] ctx The context for which the plugin record is searched for, NULL for built-in plugins.
209+
* @param[in] type Type of the plugin record to find.
210+
* @param[in] module Module name of the plugin record.
211+
* @param[in] revision Revision of the @p module.
212+
* @param[in] name Name of the plugin record.
213+
* @param[out] record_idx Optional output parameter to get the index of the found plugin record.
214+
* @return Found plugin record or NULL if not found.
215+
*/
205216
static void *
206217
lyplg_record_find(const struct ly_ctx *ctx, enum LYPLG type, const char *module, const char *revision, const char *name, uint32_t *record_idx)
207218
{

0 commit comments

Comments
 (0)