X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Faweather-plugin.h;h=7112e64983f26ef781578935509c71ec3b6efd4d;hp=8546f76bc8ab8cef4046503ca7d35b1fd2c555ba;hb=55d69c616a9f4f3bae23045f1174047003e2e1d4;hpb=d6cf708a2db6eae88dda328a17bf2157c9c90ca8 diff --git a/src/aweather-plugin.h b/src/aweather-plugin.h index 8546f76..7112e64 100644 --- a/src/aweather-plugin.h +++ b/src/aweather-plugin.h @@ -15,4 +15,30 @@ * along with this program. If not, see . */ +#ifndef __AWEATHER_PLUGIN_H__ +#define __AWEATHER_PLUGIN_H__ +#include + +#define AWEATHER_TYPE_PLUGIN (aweather_plugin_get_type()) +#define AWEATHER_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWEATHER_TYPE_PLUGIN, AWeatherPlugin)) +#define AWEATHER_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWEATHER_TYPE_PLUGIN)) +#define AWEATHER_PLUGIN_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), AWEATHER_TYPE_PLUGIN, AWeatherPluginInterface)) + + +typedef struct _AWeatherPlugin AWeatherPlugin; +typedef struct _AWeatherPluginInterface AWeatherPluginInterface; + +struct _AWeatherPluginInterface +{ + GTypeInterface parent_iface; + + /* Virtual functions */ + void (*expose)(AWeatherPlugin *self); +}; + +GType aweather_plugin_get_type(void); + +void aweather_plugin_expose(AWeatherPlugin *self); + +#endif