mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
gdir: Add refcounting support and a boxed type
This allows the methods for `GDir` to be introspected. While we don’t expect languages which use the introspection bindings to use `GDir`, full introspection support is necessary for the `GDir` documentation to be correctly built with gi-docgen. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
This commit is contained in:
@@ -345,6 +345,15 @@ typedef gsize GType;
|
||||
*/
|
||||
#define G_TYPE_HMAC (g_hmac_get_type ())
|
||||
|
||||
/**
|
||||
* G_TYPE_DIR:
|
||||
*
|
||||
* The #GType for a boxed type holding a #GDir.
|
||||
*
|
||||
* Since: 2.80
|
||||
*/
|
||||
#define G_TYPE_DIR (g_dir_get_type ())
|
||||
|
||||
GOBJECT_AVAILABLE_IN_ALL
|
||||
GType g_date_get_type (void) G_GNUC_CONST;
|
||||
GOBJECT_AVAILABLE_IN_ALL
|
||||
@@ -411,6 +420,8 @@ GOBJECT_AVAILABLE_IN_2_76
|
||||
GType g_bookmark_file_get_type (void) G_GNUC_CONST;
|
||||
GOBJECT_AVAILABLE_IN_2_80
|
||||
GType g_hmac_get_type (void) G_GNUC_CONST;
|
||||
GOBJECT_AVAILABLE_IN_2_80
|
||||
GType g_dir_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GOBJECT_DEPRECATED_FOR('G_TYPE_VARIANT')
|
||||
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
||||
|
Reference in New Issue
Block a user