2006-07-27 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-private.h: Move clutter_feature_init()
	declaration here: you shouldn't even need to initialise
	features yourself.

	* clutter/clutter-feature.c: call clutter_feature_init()
	each time you try to access the feature list; add a static
	lock around the feature flags container; add api documentation.

	* clutter/clutter-feature.h: Add a type for the feature flags
	to make bindings happy.
This commit is contained in:
Emmanuele Bassi
2006-07-27 16:09:25 +00:00
parent ecccec75cb
commit ad29f37780
4 changed files with 66 additions and 26 deletions

View File

@ -82,6 +82,8 @@ typedef enum {
#define CLUTTER_SET_PRIVATE_FLAGS(a,f) G_STMT_START{ (CLUTTER_PRIVATE_FLAGS (a) |= (f)); }G_STMT_END
#define CLUTTER_UNSET_PRIVATE_FLAGS(a,f) G_STMT_START{ (CLUTTER_PRIVATE_FLAGS (a) &= ~(f)); }G_STMT_END
void clutter_feature_init (void);
G_END_DECLS
#endif