mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
build: Prototype GType accessors for private classes
Otherwise we fail to build with -Werror=missing-prototypes. https://bugzilla.gnome.org/show_bug.cgi?id=687385
This commit is contained in:
@@ -43,6 +43,7 @@ typedef struct {
|
||||
#define MY_IS_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_TYPE ((tclass), G_TYPE_TEST))
|
||||
#define MY_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass))
|
||||
|
||||
static GType my_test_get_type (void);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT);
|
||||
|
||||
/* --- variables --- */
|
||||
|
@@ -31,6 +31,7 @@ struct _GTestClass
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
static GType my_test_get_type (void);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT);
|
||||
|
||||
static volatile gboolean stopping;
|
||||
|
@@ -29,6 +29,7 @@ struct _MyBadgerClass
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
static GType my_badger_get_type (void);
|
||||
G_DEFINE_TYPE (MyBadger, my_badger, G_TYPE_OBJECT);
|
||||
|
||||
static void my_badger_dispose (GObject * object);
|
||||
|
Reference in New Issue
Block a user