Permalink
Browse files

Keep the function header simple by moving all the structure definitions

into their own header.
  • Loading branch information...
1 parent b4812e4 commit c0fda46209a580b2065c3fa734271e39ef0aba49 @alriddoch committed Feb 20, 2010
Showing with 11 additions and 6 deletions.
  1. +2 −0 libcolladadae/parser.c
  2. +3 −6 libcolladadae/parser.h
  3. +5 −0 libcolladadae/structure.h
  4. +1 −0 libcolladadae/tests/dumpdae.c
View
2 libcolladadae/parser.c
@@ -18,6 +18,8 @@
#include <libcolladadae/parser.h>
+#include <libcolladadae/structure.h>
+
#include <libxml/parser.h>
#include <assert.h>
View
9 libcolladadae/parser.h
@@ -21,12 +21,9 @@
struct dae_asset;
-typedef struct libcolladadae_file {
- struct dae_asset * dae_assets;
- void * place_holder;
-} libcolladadae_file;
+struct libcolladadae_file;
-libcolladadae_file * libcolladadae_file_load(const char * filename);
-void libcolladadae_free(libcolladadae_file * file);
+struct libcolladadae_file * libcolladadae_file_load(const char * filename);
+void libcolladadae_free(struct libcolladadae_file * file);
#endif /* LIBCOLLADADAE_PARSER_H */
View
5 libcolladadae/structure.h
@@ -28,4 +28,9 @@ typedef struct dae_asset {
struct dae_asset * da_next;
} dae_asset;
+typedef struct libcolladadae_file {
+ struct dae_asset * dae_assets;
+ void * place_holder;
+} libcolladadae_file;
+
#endif /* LIBCOLLADADAE_STRUCTURE_H */
View
1 libcolladadae/tests/dumpdae.c
@@ -1,4 +1,5 @@
#include <libcolladadae/parser.h>
+#include <libcolladadae/structure.h>
#include <stdio.h>

0 comments on commit c0fda46

Please sign in to comment.