[calls] settings: Add docstring for autoload-plugins setter and getter
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] settings: Add docstring for autoload-plugins setter and getter
- Date: Tue, 21 Dec 2021 14:33:07 +0000 (UTC)
commit dc809e54e584c73135558b4999d9d58c4f7777ba
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Nov 23 14:34:10 2021 +0100
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 6eb12955..b0cd1f4b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]