[evolution-data-server] Make gtk-doc happy about EBookQuery definitions.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Make gtk-doc happy about EBookQuery definitions.
- Date: Fri, 1 Mar 2013 17:13:00 +0000 (UTC)
commit 27c20182398c29a40f541b65740a1e4645dc3179
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Mar 1 12:05:00 2013 -0500
Make gtk-doc happy about EBookQuery definitions.
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 | 2 +-
addressbook/libebook-contacts/e-book-query.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/libebook-contacts/e-book-query.c b/addressbook/libebook-contacts/e-book-query.c
index a45da36..2eaa181 100644
--- a/addressbook/libebook-contacts/e-book-query.c
+++ b/addressbook/libebook-contacts/e-book-query.c
@@ -19,7 +19,7 @@ typedef enum {
E_BOOK_QUERY_TYPE_ANY_FIELD_CONTAINS
} EBookQueryType;
-struct EBookQuery {
+struct _EBookQuery {
EBookQueryType type;
gint ref_count;
diff --git a/addressbook/libebook-contacts/e-book-query.h b/addressbook/libebook-contacts/e-book-query.h
index 235e2d6..264fde2 100644
--- a/addressbook/libebook-contacts/e-book-query.h
+++ b/addressbook/libebook-contacts/e-book-query.h
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]