Commit b3332e5a authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

ges: Add a ges_is_initialized function

parent 11334118
......@@ -4,6 +4,7 @@
<FILE>ges-common</FILE>
<TITLE>Initialization</TITLE>
ges_init
ges_is_initialized
ges_init_check
ges_deinit
ges_version
......
......@@ -321,3 +321,17 @@ ges_init_check (int *argc, char **argv[], GError ** err)
return ges_init ();
}
/**
* ges_is_initialized:
*
* Use this function to check if GES has been initialized with ges_init()
* or ges_init_check().
*
* Returns: %TRUE if initialization has been done, %FALSE otherwise.
*/
gboolean
ges_is_initialized (void)
{
return ges_initialized;
}
......@@ -88,18 +88,27 @@ G_BEGIN_DECLS
GES_API
gboolean ges_init (void);
gboolean ges_init (void);
GES_API
gboolean ges_init_check (int *argc, char **argv[], GError ** err);
gboolean ges_init_check (int *argc, char **argv[], GError ** err);
GES_API
void ges_deinit (void);
void ges_deinit (void);
GES_API
void ges_version (guint * major, guint * minor, guint * micro,
guint * nano);
void ges_version (guint * major,
guint * minor,
guint * micro,
guint * nano);
GES_API GOptionGroup *
ges_init_get_option_group (void);
ges_init_get_option_group (void);
GES_API
gboolean ges_validate_register_action_types (void);
GES_API
gboolean ges_validate_register_action_types (void);
gboolean ges_is_initialized (void);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment