From dc809e54e584c73135558b4999d9d58c4f7777ba Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 23 Nov 2021 14:34:10 +0100 Subject: [PATCH] settings: Add docstring for autoload-plugins setter and getter --- src/calls-settings.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/calls-settings.c b/src/calls-settings.c index 6eb1295..b0cd1f4 100644 --- a/src/calls-settings.c +++ b/src/calls-settings.c @@ -253,7 +253,13 @@ calls_settings_set_country_code (CallsSettings *self, g_settings_set_string (G_SETTINGS (self->settings), "country-code", country_code); } - +/** + * calls_settings_get_autoload_plugins: + * @self: A #CallsSettings + * + * Returns: (array zero-terminated=1) (transfer full): List of plugins that are automatically loaded on startup. + * Free with g_strfreev() when done. + */ char ** calls_settings_get_autoload_plugins (CallsSettings *self) { @@ -262,7 +268,13 @@ calls_settings_get_autoload_plugins (CallsSettings *self) return g_settings_get_strv (G_SETTINGS (self->settings), "autoload-plugins"); } - +/** + * calls_settings_set_autoload_plugins: + * @self: A #CallsSettings + * @plugins: (nullable) (array zero-terminated=1): The plugins to autoload + * + * Sets the plugins that should be loaded on startup. + */ void calls_settings_set_autoload_plugins (CallsSettings *self, const char * const *plugins)