mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Added mutter_get_plugin() to mutter-plugin.h
So we can completely hide the struct name from plugins.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user