From ef9f431a9746e1aa61aa5ce74639b03e4c473e73 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Tue, 31 Mar 2009 06:37:52 +0000 Subject: Add typedefs for public DOM interfaces. svn path=/trunk/dom/; revision=7002 --- include/dom/core/characterdata.h | 3 ++- include/dom/core/implementation.h | 3 ++- include/dom/core/impllist.h | 3 ++- include/dom/core/namednodemap.h | 3 ++- include/dom/core/nodelist.h | 3 ++- include/dom/core/string.h | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) (limited to 'include/dom') diff --git a/include/dom/core/characterdata.h b/include/dom/core/characterdata.h index e65cb96..44a1fc3 100644 --- a/include/dom/core/characterdata.h +++ b/include/dom/core/characterdata.h @@ -11,9 +11,10 @@ #include #include -struct dom_characterdata; struct dom_string; +typedef struct dom_characterdata dom_characterdata; + /* The vtable for characterdata */ typedef struct dom_characterdata_vtable { struct dom_node_vtable base; diff --git a/include/dom/core/implementation.h b/include/dom/core/implementation.h index 5e26432..d8959e6 100644 --- a/include/dom/core/implementation.h +++ b/include/dom/core/implementation.h @@ -16,7 +16,8 @@ struct dom_document; struct dom_document_type; -struct dom_implementation; + +typedef struct dom_implementation dom_implementation; void dom_implementation_ref(struct dom_implementation *impl); void dom_implementation_unref(struct dom_implementation *impl); diff --git a/include/dom/core/impllist.h b/include/dom/core/impllist.h index af303ae..8773066 100644 --- a/include/dom/core/impllist.h +++ b/include/dom/core/impllist.h @@ -11,7 +11,8 @@ #include struct dom_implementation; -struct dom_implementation_list; + +typedef struct dom_implementation_list dom_implementation_list; void dom_implementation_list_ref(struct dom_implementation_list *list); void dom_implementation_list_unref(struct dom_implementation_list *list); diff --git a/include/dom/core/namednodemap.h b/include/dom/core/namednodemap.h index 511b338..77c4cc3 100644 --- a/include/dom/core/namednodemap.h +++ b/include/dom/core/namednodemap.h @@ -11,9 +11,10 @@ #include struct dom_node; -struct dom_namednodemap; struct dom_string; +typedef struct dom_namednodemap dom_namednodemap; + void dom_namednodemap_ref(struct dom_namednodemap *map); void dom_namednodemap_unref(struct dom_namednodemap *map); diff --git a/include/dom/core/nodelist.h b/include/dom/core/nodelist.h index e350c5b..d3b0df9 100644 --- a/include/dom/core/nodelist.h +++ b/include/dom/core/nodelist.h @@ -11,7 +11,8 @@ #include struct dom_node; -struct dom_nodelist; + +typedef struct dom_nodelist dom_nodelist; void dom_nodelist_ref(struct dom_nodelist *list); void dom_nodelist_unref(struct dom_nodelist *list); diff --git a/include/dom/core/string.h b/include/dom/core/string.h index 8da9dd7..37d78d6 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -14,7 +14,7 @@ #include #include -struct dom_string; +typedef struct dom_string dom_string; /* Claim a reference on a DOM string */ void dom_string_ref(struct dom_string *str); -- cgit v1.2.3