[gnome-software] trivial: Add GS_PLUGIN_ACTION_SETUP
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add GS_PLUGIN_ACTION_SETUP
- Date: Thu, 8 Sep 2016 10:27:00 +0000 (UTC)
commit 42740ed1973f393cc8e8d98cd4147dbf23993918
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 8 10:54:08 2016 +0100
trivial: Add GS_PLUGIN_ACTION_SETUP
src/gs-plugin-private.h | 2 ++
src/gs-plugin.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-private.h b/src/gs-plugin-private.h
index bf3b9b4..97e5044 100644
--- a/src/gs-plugin-private.h
+++ b/src/gs-plugin-private.h
@@ -33,6 +33,7 @@ G_BEGIN_DECLS
/**
* GsPluginAction:
+ * @GS_PLUGIN_ACTION_SETUP: Plugin setup (internal)
* @GS_PLUGIN_ACTION_INSTALL: Install an application
* @GS_PLUGIN_ACTION_REMOVE: Remove an application
* @GS_PLUGIN_ACTION_UPDATE: Update an application
@@ -72,6 +73,7 @@ G_BEGIN_DECLS
* The plugin action.
**/
typedef enum {
+ GS_PLUGIN_ACTION_SETUP,
GS_PLUGIN_ACTION_INSTALL,
GS_PLUGIN_ACTION_REMOVE,
GS_PLUGIN_ACTION_UPDATE,
diff --git a/src/gs-plugin.c b/src/gs-plugin.c
index f83c64c..62cddc5 100644
--- a/src/gs-plugin.c
+++ b/src/gs-plugin.c
@@ -1325,6 +1325,8 @@ gs_plugin_error_to_string (GsPluginError error)
const gchar *
gs_plugin_action_to_string (GsPluginAction action)
{
+ if (action == GS_PLUGIN_ACTION_SETUP)
+ return "setup";
if (action == GS_PLUGIN_ACTION_INSTALL)
return "install";
if (action == GS_PLUGIN_ACTION_REMOVE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]