diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-05-29 15:30:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-09-30 19:18:35 +0200 |
commit | 0c180d044f05895eeff746e6aaf3227df7ac2f3c (patch) | |
tree | 24921feaf93fe338dff795759c8cb12827077b02 /libupower-glib/up-device.h | |
parent | 3167b97d8848e4f64065f3486ecdb3783eb7e7bf (diff) | |
download | upower-0c180d044f05895eeff746e6aaf3227df7ac2f3c.tar.gz |
lib: Work-around to fix gtk-doc's type detection
Without the braces on the same line gtk-doc adds function pointers as
functions to the documentation and fails to detect the types as
GObjects. This fixes object names in the index and cross refs.
See the examples in
https://developer.gnome.org/gtk-doc-manual/stable/documenting_symbols.html.en
Diffstat (limited to 'libupower-glib/up-device.h')
-rw-r--r-- | libupower-glib/up-device.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libupower-glib/up-device.h b/libupower-glib/up-device.h index 5186796..22d168a 100644 --- a/libupower-glib/up-device.h +++ b/libupower-glib/up-device.h @@ -44,16 +44,14 @@ G_BEGIN_DECLS typedef struct _UpDevicePrivate UpDevicePrivate; -typedef struct -{ +typedef struct { GObject parent; UpDevicePrivate *priv; } UpDevice; -typedef struct -{ - GObjectClass parent_class; +typedef struct { /*< private >*/ + GObjectClass parent_class; /* Padding for future expansion */ void (*_up_device_reserved1) (void); void (*_up_device_reserved2) (void); |