ges: Add a ges_is_initialized function

This commit is contained in:
Thibault Saunier 2019-01-14 18:30:38 -03:00
parent 11334118fa
commit b3332e5ab3
3 changed files with 31 additions and 7 deletions

View file

@ -4,6 +4,7 @@
<FILE>ges-common</FILE>
<TITLE>Initialization</TITLE>
ges_init
ges_is_initialized
ges_init_check
ges_deinit
ges_version

View file

@ -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;
}

View file

@ -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);
gboolean ges_validate_register_action_types (void);
GES_API
gboolean ges_is_initialized (void);
G_END_DECLS