mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
ges: Add a ges_is_initialized function
This commit is contained in:
parent
11334118fa
commit
b3332e5ab3
3 changed files with 31 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
<FILE>ges-common</FILE>
|
||||
<TITLE>Initialization</TITLE>
|
||||
ges_init
|
||||
ges_is_initialized
|
||||
ges_init_check
|
||||
ges_deinit
|
||||
ges_version
|
||||
|
|
14
ges/ges.c
14
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;
|
||||
}
|
||||
|
|
23
ges/ges.h
23
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);
|
||||
gboolean ges_validate_register_action_types (void);
|
||||
|
||||
GES_API
|
||||
gboolean ges_is_initialized (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue