Eina binbuf: Fix compilation and correct the mistakes.
authortasn <tasn>
Wed, 18 May 2011 11:45:32 +0000 (11:45 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 May 2011 11:45:32 +0000 (11:45 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@59500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_binbuf.h
src/lib/eina_binbuf.c
src/lib/eina_private.h

index 910cade..4e2cfdd 100644 (file)
@@ -33,7 +33,7 @@
  * @typedef Eina_Binbuf
  * Type for a string buffer.
  */
-typedef struct _Eina_Binbuf Eina_Binbuf;
+typedef struct _Eina_Strbuf Eina_Binbuf;
 
 /**
  * @brief Create a new string buffer.
index 2a4cd46..8993aa4 100644 (file)
@@ -10,9 +10,8 @@
 #endif
 
 #include "eina_private.h"
-#include "eina_str.h"
 #include "eina_strbuf_common.h"
-#include "eina_unicode.h"
+#include "eina_binbuf.h"
 
 /*============================================================================*
  *                                  Local                                     *
@@ -50,7 +49,7 @@
 #define _STRBUF_DATA_TYPE         char
 #define _STRBUF_CSIZE             sizeof(_STRBUF_DATA_TYPE)
 #define _STRBUF_STRUCT_NAME       Eina_Binbuf
-#define _STRBUF_MAGIC             EINA_MAGIC_STRBUF
+#define _STRBUF_MAGIC             EINA_MAGIC_BINBUF
 #define _STRBUF_MAGIC_STR         __STRBUF_MAGIC_STR
 static const char __STRBUF_MAGIC_STR[] = "Eina Binbuf";
 
index 7e500f5..936060e 100644 (file)
@@ -85,6 +85,7 @@
 
 #define EINA_MAGIC_STRBUF 0x98761250
 #define EINA_MAGIC_USTRBUF 0x98761257
+#define EINA_MAGIC_BINBUF 0x98761258
 
 #define EINA_MAGIC_QUADTREE 0x98761251
 #define EINA_MAGIC_QUADTREE_ROOT 0x98761252