Make gtk-doc happy about EBookQuery definitions.
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 1 Mar 2013 17:05:00 +0000 (12:05 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 1 Mar 2013 17:05:00 +0000 (12:05 -0500)
gtk-doc interprets

    typedef struct EBookQuery EBookQuery;

as multiple definitions of EBookQuery and freaks out.

The usual way to work around this is to mutate the struct name:

    typedef struct _EBookQuery EBookQuery;

addressbook/libebook-contacts/e-book-query.c
addressbook/libebook-contacts/e-book-query.h

index a45da36..2eaa181 100644 (file)
@@ -19,7 +19,7 @@ typedef enum {
        E_BOOK_QUERY_TYPE_ANY_FIELD_CONTAINS
 } EBookQueryType;
 
-struct EBookQuery {
+struct _EBookQuery {
        EBookQueryType type;
        gint ref_count;
 
index 235e2d6..264fde2 100644 (file)
@@ -12,7 +12,7 @@ G_BEGIN_DECLS
 
 #define E_TYPE_BOOK_QUERY (e_book_query_get_type ())
 
-typedef struct EBookQuery EBookQuery;
+typedef struct _EBookQuery EBookQuery;
 
 /**
  * EBookQueryTest: