[gnome-panel] libgnome-panel: add gp_module_get_abi_version
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libgnome-panel: add gp_module_get_abi_version
- Date: Thu, 27 Oct 2016 20:23:27 +0000 (UTC)
commit 4976ce46a1025c1bffcec5ce4a1efe1d841de3af
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 27 20:47:52 2016 +0300
libgnome-panel: add gp_module_get_abi_version
libgnome-panel/gp-module.h | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/libgnome-panel/gp-module.h b/libgnome-panel/gp-module.h
index b6921bb..0be4bab 100644
--- a/libgnome-panel/gp-module.h
+++ b/libgnome-panel/gp-module.h
@@ -42,17 +42,15 @@ G_BEGIN_DECLS
/**
* GpModuleGetInfo:
- * @abi_version: (out): return location for module ABI version
*
* Each module must have a function gp_module_get_info() with this
- * prototype. This function must always return %GP_MODULE_ABI_VERSION
- * as @abi_version.
+ * prototype.
*
* Use gp_module_info_new() to create return value.
*
* Returns: (transfer full): a newly created #GpModuleInfo.
*/
-typedef GpModuleInfo *(* GpModuleGetInfo) (guint32 *abi_version);
+typedef GpModuleInfo *(* GpModuleGetInfo) (void);
/**
* GpModuleLoad:
@@ -118,6 +116,16 @@ typedef gboolean (* GpModuleSetupAbout) (GtkAboutDialog *dialog,
const gchar *applet);
/**
+ * gp_module_get_abi_version:
+ *
+ * Required API for GNOME Panel modules to implement. This function must
+ * always return %GP_MODULE_ABI_VERSION.
+ *
+ * Returns: the module ABI version.
+ */
+guint32 gp_module_get_abi_version (void);
+
+/**
* gp_module_get_info:
* @abi_version: (out): return location for module ABI version
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]