[libpeas] Deprecate PeasExtension and PeasExtensionSet call API
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Deprecate PeasExtension and PeasExtensionSet call API
- Date: Tue, 14 Jun 2011 07:51:33 +0000 (UTC)
commit f2896466bf6c496c97d85829a819fcbe7c3de4d9
Author: Garrett Regier <alias301 gmail com>
Date: Wed Jun 8 13:52:15 2011 -0700
Deprecate PeasExtension and PeasExtensionSet call API
Instead the dynamically implemented interface should be used
or peas_extension_set_foreach().
libpeas/peas-extension-set.c | 6 ++++++
libpeas/peas-extension-set.h | 6 ++++++
libpeas/peas-extension.c | 6 ++++++
libpeas/peas-extension.h | 2 ++
4 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-extension-set.c b/libpeas/peas-extension-set.c
index fd58467..c404905 100644
--- a/libpeas/peas-extension-set.c
+++ b/libpeas/peas-extension-set.c
@@ -476,6 +476,8 @@ peas_extension_set_get_extension (PeasExtensionSet *set,
*
* See peas_extension_call() for more information.
*
+ * Deprecated: 1.2. Use peas_extension_set_foreach() instead.
+ *
* Return value: %TRUE on successful call.
*/
gboolean
@@ -506,6 +508,8 @@ peas_extension_set_call (PeasExtensionSet *set,
*
* See peas_extension_call_valist() for more information.
*
+ * Deprecated: 1.2. Use peas_extension_set_foreach() instead.
+ *
* Return value: %TRUE on successful call.
*/
gboolean
@@ -549,6 +553,8 @@ peas_extension_set_call_valist (PeasExtensionSet *set,
*
* Return value: %TRUE on successful call.
*
+ * Deprecated: 1.2. Use peas_extension_set_foreach() instead.
+ *
* Rename to: peas_extension_set_call
*/
gboolean
diff --git a/libpeas/peas-extension-set.h b/libpeas/peas-extension-set.h
index e747c2e..bf4d325 100644
--- a/libpeas/peas-extension-set.h
+++ b/libpeas/peas-extension-set.h
@@ -57,9 +57,13 @@ struct _PeasExtensionSetClass {
GObjectClass parent_class;
/* Virtual public methods */
+#ifndef PEAS_DISABLE_DEPRECATED
gboolean (*call) (PeasExtensionSet *set,
const gchar *method_name,
GIArgument *args);
+#else
+ gpointer __DEPRECATED_call;
+#endif
/* Signals */
void (*extension_added) (PeasExtensionSet *set,
@@ -94,6 +98,7 @@ typedef void (*PeasExtensionSetForeachFunc) (PeasExtensionSet *set,
*/
GType peas_extension_set_get_type (void) G_GNUC_CONST;
+#ifndef PEAS_DISABLE_DEPRECATED
gboolean peas_extension_set_call (PeasExtensionSet *set,
const gchar *method_name,
...);
@@ -103,6 +108,7 @@ gboolean peas_extension_set_call_valist (PeasExtensionSet *set,
gboolean peas_extension_set_callv (PeasExtensionSet *set,
const gchar *method_name,
GIArgument *args);
+#endif
void peas_extension_set_foreach (PeasExtensionSet *set,
PeasExtensionSetForeachFunc func,
diff --git a/libpeas/peas-extension.c b/libpeas/peas-extension.c
index a9d4dea..ded2a10 100644
--- a/libpeas/peas-extension.c
+++ b/libpeas/peas-extension.c
@@ -192,6 +192,8 @@ peas_extension_get_extension_type (PeasExtension *exten)
* object's class has not been loaded previously through g_irepository_require().
*
* Return value: %TRUE on successful call.
+ *
+ * Deprecated: 1.2. Use the dynamically implemented interface instead.
*/
gboolean
peas_extension_call (PeasExtension *exten,
@@ -222,6 +224,8 @@ peas_extension_call (PeasExtension *exten,
* See peas_extension_call() for more information.
*
* Return value: %TRUE on successful call.
+ *
+ * Deprecated: 1.2. Use the dynamically implemented interface instead.
*/
gboolean
peas_extension_call_valist (PeasExtension *exten,
@@ -276,6 +280,8 @@ peas_extension_call_valist (PeasExtension *exten,
*
* Return value: (transfer full): %TRUE on successful call.
*
+ * Deprecated: 1.2. Use the dynamically implemented interface instead.
+ *
* Rename to: peas_extension_call
*/
gboolean
diff --git a/libpeas/peas-extension.h b/libpeas/peas-extension.h
index 81b125d..d4e53dd 100644
--- a/libpeas/peas-extension.h
+++ b/libpeas/peas-extension.h
@@ -58,6 +58,7 @@ GType peas_extension_get_type (void) G_GNUC_CONST;
GType peas_extension_get_extension_type
(PeasExtension *exten);
+#ifndef PEAS_DISABLE_DEPRECATED
gboolean peas_extension_call (PeasExtension *exten,
const gchar *method_name,
...);
@@ -68,6 +69,7 @@ gboolean peas_extension_callv (PeasExtension *exten,
const gchar *method_name,
GIArgument *args,
GIArgument *return_value);
+#endif
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]