summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-09-15 16:36:24 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-07 11:54:23 +0200
commitd20acef8313d65af71d737cfe75eabd1288b94f5 (patch)
treef1fd86ea7c2fa5ef747e32b84cac3bcab0ff463e
parente92ce1bd727dbadcdaaf61266191a8c82250ff6a (diff)
eolian gen2: generate stub headers
-rw-r--r--src/bin/eolian2/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/eolian2/main.c b/src/bin/eolian2/main.c
index d9887617fb..88790b2723 100644
--- a/src/bin/eolian2/main.c
+++ b/src/bin/eolian2/main.c
@@ -244,6 +244,18 @@ _write_stub_header(const char *ofname, const char *ifname)
244 INF("generating stuv header: %s", ofname); 244 INF("generating stuv header: %s", ofname);
245 Eina_Strbuf *buf = eina_strbuf_new(); 245 Eina_Strbuf *buf = eina_strbuf_new();
246 246
247 eo_gen_types_header_gen(ifname, buf, EINA_FALSE, EINA_FALSE);
248
249 Eina_Strbuf *cltd = eo_gen_class_typedef_gen(ifname);
250 if (cltd)
251 {
252 eina_strbuf_prepend_char(buf, '\n');
253 eina_strbuf_prepend(buf, eina_strbuf_string_get(cltd));
254 eina_strbuf_free(cltd);
255 }
256
257 buf = _include_guard(ifname, "STUBS", buf);
258
247 Eina_Bool ret = _write_file(ofname, buf, EINA_FALSE); 259 Eina_Bool ret = _write_file(ofname, buf, EINA_FALSE);
248 eina_strbuf_free(buf); 260 eina_strbuf_free(buf);
249 return ret; 261 return ret;