PeasExtension

PeasExtension — Proxy for extensions.

Synopsis

                    PeasExtension;
                    PeasExtensionClass;
gboolean            peas_extension_call                 (PeasExtension *exten,
                                                         const gchar *method_name,
                                                         ...);
gboolean            peas_extension_call_valist          (PeasExtension *exten,
                                                         const gchar *method_name,
                                                         va_list args);

Object Hierarchy

  GObject
   +----PeasExtension

Description

A PeasExtension is an object which proxies an actual extension. The application writer will use these objects in order to call methods on an instance of an actual extension exported by a loaded plugin.

Details

PeasExtension

typedef struct _PeasExtension PeasExtension;

Base class for plugins.


PeasExtensionClass

typedef struct {
  GObjectClass parent_class;

  /* Virtual public methods */
  gboolean   (*call)                      (PeasExtension  *exten,
                                           const gchar    *method,
                                           va_list         args);
} PeasExtensionClass;

peas_extension_call ()

gboolean            peas_extension_call                 (PeasExtension *exten,
                                                         const gchar *method_name,
                                                         ...);

Call a method of the object behind extension.

exten :

A PeasExtension.

method_name :

the name of the method that should be called.

... :

arguments for the method.

Returns :

TRUE on successful call.

peas_extension_call_valist ()

gboolean            peas_extension_call_valist          (PeasExtension *exten,
                                                         const gchar *method_name,
                                                         va_list args);

Call a method of the object behind extension, using args as arguments.

exten :

A PeasExtension.

method_name :

the name of the method that should be called.

args :

the arguments for the method.

Returns :

TRUE on successful call.

See Also

PeasExtensionSet