From b3332e5ab3561aad9295540783a60eff7cb91732 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 14 Jan 2019 18:30:38 -0300 Subject: [PATCH] ges: Add a ges_is_initialized function --- docs/libs/ges-sections.txt | 1 + ges/ges.c | 14 ++++++++++++++ ges/ges.h | 23 ++++++++++++++++------- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/docs/libs/ges-sections.txt b/docs/libs/ges-sections.txt index 2151243..aa862b9 100644 --- a/docs/libs/ges-sections.txt +++ b/docs/libs/ges-sections.txt @@ -4,6 +4,7 @@ ges-common Initialization ges_init +ges_is_initialized ges_init_check ges_deinit ges_version diff --git a/ges/ges.c b/ges/ges.c index 993d36a..2494afe 100644 --- a/ges/ges.c +++ b/ges/ges.c @@ -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; +} diff --git a/ges/ges.h b/ges/ges.h index d9445db..1a01bf9 100644 --- a/ges/ges.h +++ b/ges/ges.h @@ -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 -- 2.7.4