mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
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
This commit is contained in:
parent
3167b97d88
commit
0c180d044f
5 changed files with 13 additions and 21 deletions
|
|
@ -44,15 +44,15 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct _UpClientPrivate UpClientPrivate;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObject parent;
|
||||
UpClientPrivate *priv;
|
||||
} UpClient;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
/*< private >*/
|
||||
GObjectClass parent_class;
|
||||
/*< public >*/
|
||||
void (*device_added) (UpClient *client,
|
||||
UpDevice *device);
|
||||
void (*device_removed) (UpClient *client,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -40,14 +40,12 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct UpHistoryItemPrivate UpHistoryItemPrivate;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObject parent;
|
||||
UpHistoryItemPrivate *priv;
|
||||
} UpHistoryItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObjectClass parent_class;
|
||||
} UpHistoryItemClass;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,14 +39,12 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct UpStatsItemPrivate UpStatsItemPrivate;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObject parent;
|
||||
UpStatsItemPrivate *priv;
|
||||
} UpStatsItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObjectClass parent_class;
|
||||
} UpStatsItemClass;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,14 +40,12 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct UpWakeupItemPrivate UpWakeupItemPrivate;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObject parent;
|
||||
UpWakeupItemPrivate *priv;
|
||||
} UpWakeupItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
GObjectClass parent_class;
|
||||
} UpWakeupItemClass;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue