girepository: Add GI_REPOSITORY_LOAD_FLAG_NONE

This just makes code using the load flags a little more readable.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-02-14 11:54:21 +00:00
parent f4f38c233f
commit 39afe18221

View File

@ -62,6 +62,7 @@ G_DECLARE_FINAL_TYPE (GIRepository, gi_repository, GI, REPOSITORY, GObject)
/** /**
* GIRepositoryLoadFlags: * GIRepositoryLoadFlags:
* @GI_REPOSITORY_LOAD_FLAG_NONE: No flags set.
* @GI_REPOSITORY_LOAD_FLAG_LAZY: Lazily load the typelib. * @GI_REPOSITORY_LOAD_FLAG_LAZY: Lazily load the typelib.
* *
* Flags that control how a typelib is loaded. * Flags that control how a typelib is loaded.
@ -70,6 +71,7 @@ G_DECLARE_FINAL_TYPE (GIRepository, gi_repository, GI, REPOSITORY, GObject)
*/ */
typedef enum typedef enum
{ {
GI_REPOSITORY_LOAD_FLAG_NONE = 0,
GI_REPOSITORY_LOAD_FLAG_LAZY = 1 << 0 GI_REPOSITORY_LOAD_FLAG_LAZY = 1 << 0
} GIRepositoryLoadFlags; } GIRepositoryLoadFlags;