Added mutter_get_plugin() to mutter-plugin.h

So we can completely hide the struct name from plugins.
This commit is contained in:
Tomas Frydrych
2008-10-27 10:34:32 +00:00
parent 1d6e70a49d
commit b1c5a2e221
4 changed files with 49 additions and 52 deletions

View File

@ -62,8 +62,11 @@ typedef struct MutterPlugin MutterPlugin;
METACITY_MINOR_VERSION, \
METACITY_MICRO_VERSION, \
METACITY_CLUTTER_PLUGIN_API_VERSION \
}
}; \
static inline MutterPlugin * mutter_get_plugin () \
{ \
return &mutter_plugin; \
}
struct MutterPlugin
{
@ -204,6 +207,10 @@ struct MutterPlugin
void *manager_private;
};
#ifndef MUTTER_PLUGIN_FROM_MANAGER_
static inline MutterPlugin *mutter_get_plugin ();
#endif
void
mutter_plugin_effect_completed (MutterPlugin *plugin,
MutterWindow *actor,