summaryrefslogtreecommitdiff
path: root/libpeas
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-20 22:14:13 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:45 -0700
commit4db3a25b69b6c6539a089c909f83782e4efba092 (patch)
tree07751822f6a81257b5608731ae0638f3c42bca33 /libpeas
parent40b77bd0fd2b34d19803609d7c07bf3d6bf50a1b (diff)
downloadlibpeas-4db3a25b69b6c6539a089c909f83782e4efba092.tar.gz
engine: rename to peas_engine_dup_loaded_plugins()
This function should reflect that it creates a new string-array.
Diffstat (limited to 'libpeas')
-rw-r--r--libpeas/peas-engine.c6
-rw-r--r--libpeas/peas-engine.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index ba84a12..2d448f1 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -611,7 +611,7 @@ peas_engine_get_property (GObject *object,
switch (prop_id)
{
case PROP_LOADED_PLUGINS:
- g_value_take_boxed (value, peas_engine_get_loaded_plugins (engine));
+ g_value_take_boxed (value, peas_engine_dup_loaded_plugins (engine));
break;
case PROP_NONGLOBAL_LOADERS:
@@ -1499,7 +1499,7 @@ peas_engine_create_extension (PeasEngine *engine,
}
/**
- * peas_engine_get_loaded_plugins:
+ * peas_engine_dup_loaded_plugins:
* @engine: A #PeasEngine.
*
* Returns the list of the names of all the loaded plugins.
@@ -1514,7 +1514,7 @@ peas_engine_create_extension (PeasEngine *engine,
* %NULL-terminated array of strings.
*/
char **
-peas_engine_get_loaded_plugins (PeasEngine *engine)
+peas_engine_dup_loaded_plugins (PeasEngine *engine)
{
GArray *array;
GList *pl;
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index cac34e6..d86c2ea 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -55,7 +55,7 @@ void peas_engine_enable_loader (PeasEngine *
PEAS_AVAILABLE_IN_ALL
void peas_engine_rescan_plugins (PeasEngine *engine);
PEAS_AVAILABLE_IN_ALL
-char **peas_engine_get_loaded_plugins (PeasEngine *engine);
+char **peas_engine_dup_loaded_plugins (PeasEngine *engine);
PEAS_AVAILABLE_IN_ALL
void peas_engine_set_loaded_plugins (PeasEngine *engine,
const char **plugin_names);