diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/lib/eina_binbuf.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/eina/src/lib/eina_binbuf.c')
-rw-r--r-- | libraries/eina/src/lib/eina_binbuf.c | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libraries/eina/src/lib/eina_binbuf.c b/libraries/eina/src/lib/eina_binbuf.c new file mode 100644 index 0000000..3cbebd1 --- /dev/null +++ b/libraries/eina/src/lib/eina_binbuf.c | |||
@@ -0,0 +1,62 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include "config.h" | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | #include <string.h> | ||
7 | |||
8 | #ifdef HAVE_EVIL | ||
9 | # include <Evil.h> | ||
10 | #endif | ||
11 | |||
12 | #include "eina_private.h" | ||
13 | #include "eina_strbuf_common.h" | ||
14 | #include "eina_binbuf.h" | ||
15 | |||
16 | /*============================================================================* | ||
17 | * Local * | ||
18 | *============================================================================*/ | ||
19 | |||
20 | /** | ||
21 | * @cond LOCAL | ||
22 | */ | ||
23 | |||
24 | #ifdef _STRBUF_DATA_TYPE | ||
25 | # undef _STRBUF_DATA_TYPE | ||
26 | #endif | ||
27 | |||
28 | #ifdef _STRBUF_CSIZE | ||
29 | # undef _STRBUF_CSIZE | ||
30 | #endif | ||
31 | |||
32 | #ifdef _STRBUF_STRUCT_NAME | ||
33 | # undef _STRBUF_STRUCT_NAME | ||
34 | #endif | ||
35 | |||
36 | #ifdef _STRBUF_MAGIC | ||
37 | # undef _STRBUF_MAGIC | ||
38 | #endif | ||
39 | |||
40 | #ifdef _STRBUF_MAGIC_STR | ||
41 | # undef _STRBUF_MAGIC_STR | ||
42 | #endif | ||
43 | |||
44 | #ifdef _FUNC_EXPAND | ||
45 | # undef _FUNC_EXPAND | ||
46 | #endif | ||
47 | |||
48 | |||
49 | #define _STRBUF_DATA_TYPE unsigned char | ||
50 | #define _STRBUF_CSIZE sizeof(_STRBUF_DATA_TYPE) | ||
51 | #define _STRBUF_STRUCT_NAME Eina_Binbuf | ||
52 | #define _STRBUF_MAGIC EINA_MAGIC_BINBUF | ||
53 | #define _STRBUF_MAGIC_STR __BINBUF_MAGIC_STR | ||
54 | static const char __BINBUF_MAGIC_STR[] = "Eina Binbuf"; | ||
55 | |||
56 | #define _FUNC_EXPAND(y) eina_binbuf_ ## y | ||
57 | |||
58 | #include "eina_binbuf_template_c.x" | ||
59 | |||
60 | /** | ||
61 | * @endcond | ||
62 | */ | ||