Logo Search packages:      
Sourcecode: gnome-compiz-manager version File versions

gcm-plugin.h

/* Generated by GOB (v2.0.14)   (do not edit directly) */

#include <glib.h>
#include <glib-object.h>
#ifndef __GCM_PLUGIN_H__
#define __GCM_PLUGIN_H__



#include <gmodule.h>

#define GCM_PLUGIN_DEFINE(prefix) \
static GType prefix##_type = 0; \
G_MODULE_EXPORT GType \
prefix##_get_plugin_type (GTypeModule * plugin)
      
#define GCM_PLUGIN_FACTORY(class_name, parent_class_type, prefix) \
GType \
prefix##_get_plugin_type (GTypeModule * plugin) \
{ \
      if (!prefix##_type) { \
            static const GTypeInfo type_info = { \
                  sizeof (class_name##Class), \
                  NULL, \
                  NULL, \
                  (GClassInitFunc)prefix##_class_init, \
                  NULL, \
                  NULL, \
                  sizeof (class_name), \
                  0, \
                  (GInstanceInitFunc)prefix##_init \
            }; \
            prefix##_type = g_type_module_register_type (plugin, \
                                                                         parent_class_type, \
                                                                               #class_name, \
                                                                         &type_info, 0); \
      } \
      return prefix##_type; \
}


typedef G_MODULE_EXPORT  gboolean (*GCMPluginGetType) (GTypeModule *);

#define GCM_PLUGIN_PATH PACKAGE_LIB_DIR"/gnome-compiz-manager/"


/*
 * Type checking and casting macros
 */
#define GCM_TYPE_PLUGIN (gcm_plugin_get_type())
#define GCM_PLUGIN(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), gcm_plugin_get_type(), GCMPlugin)
#define GCM_PLUGIN_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), gcm_plugin_get_type(), GCMPlugin const)
#define GCM_PLUGIN_CLASS(klass)     G_TYPE_CHECK_CLASS_CAST((klass), gcm_plugin_get_type(), GCMPluginClass)
#define GCM_IS_PLUGIN(obj)    G_TYPE_CHECK_INSTANCE_TYPE((obj), gcm_plugin_get_type ())

#define GCM_PLUGIN_GET_CLASS(obj)   G_TYPE_INSTANCE_GET_CLASS((obj), gcm_plugin_get_type(), GCMPluginClass)

/* Private structure type */
typedef struct _GCMPluginPrivate GCMPluginPrivate;

/*
 * Main object structure
 */
#ifndef __TYPEDEF_GCM_PLUGIN__
#define __TYPEDEF_GCM_PLUGIN__
typedef struct _GCMPlugin GCMPlugin;
#endif
struct _GCMPlugin {
      GTypeModule __parent__;
      /*< public >*/
      gchar * name;
      gchar * label;
      gchar * description;
      gchar ** gl_plugins;
      gint pos;
      /*< private >*/
      GCMPluginPrivate *_priv;
};

/*
 * Class definition
 */
typedef struct _GCMPluginClass GCMPluginClass;
struct _GCMPluginClass {
      GTypeModuleClass __parent__;
};


/*
 * Public methods
 */
GType gcm_plugin_get_type     (void);
GCMPlugin *       gcm_plugin_new    (gchar * filename);
GType       gcm_plugin_get_type_object    (GCMPlugin * self);

#endif

Generated by  Doxygen 1.6.0   Back to index