mapi: Move mapi_func typedef to entry.h.
authorChia-I Wu <olv@lunarg.com>
Fri, 24 Dec 2010 09:26:08 +0000 (17:26 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 24 Dec 2010 09:33:50 +0000 (17:33 +0800)
Make it clear that entry.h does not depend on stub.h.

src/mapi/mapi/entry.h
src/mapi/mapi/stub.h
src/mapi/mapi/table.c
src/mapi/mapi/table.h

index 4d7e1f6..9df8100 100644 (file)
@@ -30,7 +30,8 @@
 #define _ENTRY_H_
 
 #include "u_compiler.h"
-#include "stub.h"
+
+typedef void (*mapi_func)(void);
 
 void
 entry_patch_public(void);
index e72e530..b2b6f18 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef _STUB_H_
 #define _STUB_H_
 
-typedef void (*mapi_func)(void);
+#include "entry.h"
 
 struct mapi_stub;
 
index 7c76020..4e16e8d 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-#include "stub.h"
 #include "table.h"
 
 static void
index c93ebe7..d84523f 100644 (file)
@@ -30,7 +30,7 @@
 #define _TABLE_H_
 
 #include "u_compiler.h"
-#include "stub.h"
+#include "entry.h"
 
 #define MAPI_TMP_TABLE
 #include "mapi_tmp.h"