summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-13 16:43:18 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:05 +0100
commit1688749ce9fc2fc16a1366198624cea619acba09 (patch)
tree0980f27f605b34a9492cfa7a61b3baad7ab31807 /src/bin/eolian
parent2df5eae338c1e419207ebfe68a476af2eeb0da5b (diff)
eolian: add support for opaque struct types (+ tests)
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/types_generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 63d4128c91..300bbdea1d 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -69,10 +69,11 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef)
69 break; 69 break;
70 } 70 }
71 case EOLIAN_TYPE_STRUCT: 71 case EOLIAN_TYPE_STRUCT:
72 case EOLIAN_TYPE_STRUCT_OPAQUE:
72 { 73 {
73 const char *member_name; 74 const char *member_name;
74 char *name = _concat_name(tp); 75 char *name = _concat_name(tp);
75 if (in_typedef && name) 76 if ((in_typedef && name) || tp_type == EOLIAN_TYPE_STRUCT_OPAQUE)
76 { 77 {
77 eina_strbuf_append_printf(buf, "struct %s", name); 78 eina_strbuf_append_printf(buf, "struct %s", name);
78 free(name); 79 free(name);