summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-09-30 14:07:16 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-07 11:54:23 +0200
commite0e2006a19886480cc2492ac44ac7f58dc3a1e8f (patch)
tree787b58e9266bae87d6a8e1da063145e5a44c3094
parent1fa36d558f03e002b7e9d5b26dd16d18b7689f26 (diff)
eolian gen2: properly generate class type for desc too
-rw-r--r--src/bin/eolian2/sources.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bin/eolian2/sources.c b/src/bin/eolian2/sources.c
index bc6c3bc936..7c8401e99e 100644
--- a/src/bin/eolian2/sources.c
+++ b/src/bin/eolian2/sources.c
@@ -669,6 +669,22 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
669 " EO_VERSION,\n"); 669 " EO_VERSION,\n");
670 eina_strbuf_append_printf(buf, " \"%s\",\n", cname); 670 eina_strbuf_append_printf(buf, " \"%s\",\n", cname);
671 671
672 switch (eolian_class_type_get(cl))
673 {
674 case EOLIAN_CLASS_ABSTRACT:
675 eina_strbuf_append(buf, " EFL_CLASS_TYPE_REGULAR_NO_INSTANT,\n");
676 break;
677 case EOLIAN_CLASS_MIXIN:
678 eina_strbuf_append(buf, " EFL_CLASS_TYPE_MIXIN,\n");
679 break;
680 case EOLIAN_CLASS_INTERFACE:
681 eina_strbuf_append(buf, " EFL_CLASS_TYPE_INTERFACE,\n");
682 break;
683 default:
684 eina_strbuf_append(buf, " EFL_CLASS_TYPE_REGULAR,\n");
685 break;
686 }
687
672 char *dt = _get_data_type(cl); 688 char *dt = _get_data_type(cl);
673 if (dt && !strcmp(dt, "null")) 689 if (dt && !strcmp(dt, "null"))
674 eina_strbuf_append(buf, " 0,\n"); 690 eina_strbuf_append(buf, " 0,\n");