summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-08 14:45:10 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-08 14:45:10 +0100
commit8920a69284c500518c362b5c5e924a26d187b0a4 (patch)
treed156ea4a45b7c374fb701e300909b394e744c55a /src/bin
parenta5ce9e5d7516ca9da4ed9a8410abd27825762e54 (diff)
eolian: generation for beta events
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo_generator.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index e81d8b953d..617de5f06e 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -271,12 +271,20 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
271 if (scope == EOLIAN_SCOPE_PRIVATE) 271 if (scope == EOLIAN_SCOPE_PRIVATE)
272 continue; 272 continue;
273 273
274 if (eolian_event_is_beta(event))
275 {
276 eina_strbuf_append_printf(str_ev, "\n#ifdef %s_BETA\n", class_env.upper_classname);
277 eina_strbuf_append_printf(str_extrn_ev, "#ifdef %s_BETA\n", class_env.upper_classname);
278 }
274 if (scope == EOLIAN_SCOPE_PROTECTED) 279 if (scope == EOLIAN_SCOPE_PROTECTED)
275 { 280 {
276 eina_strbuf_append_printf(str_ev, "\n#ifdef %s_PROTECTED\n", class_env.upper_classname); 281 if (!eolian_event_is_beta(event))
282 eina_strbuf_append_char(str_ev, '\n');
283 eina_strbuf_append_printf(str_ev, "#ifdef %s_PROTECTED\n", class_env.upper_classname);
277 eina_strbuf_append_printf(str_extrn_ev, "#ifdef %s_PROTECTED\n", class_env.upper_classname); 284 eina_strbuf_append_printf(str_extrn_ev, "#ifdef %s_PROTECTED\n", class_env.upper_classname);
278 } 285 }
279 else 286
287 if (!eolian_event_is_beta(event) && scope == EOLIAN_SCOPE_PUBLIC)
280 eina_strbuf_append_char(str_ev, '\n'); 288 eina_strbuf_append_char(str_ev, '\n');
281 289
282 if (!evdesc) evdesc = "No description"; 290 if (!evdesc) evdesc = "No description";
@@ -295,6 +303,11 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
295 eina_strbuf_append(str_ev, "#endif\n"); 303 eina_strbuf_append(str_ev, "#endif\n");
296 eina_strbuf_append(str_extrn_ev, "#endif\n"); 304 eina_strbuf_append(str_extrn_ev, "#endif\n");
297 } 305 }
306 if (eolian_event_is_beta(event))
307 {
308 eina_strbuf_append(str_ev, "#endif\n");
309 eina_strbuf_append(str_extrn_ev, "#endif\n");
310 }
298 } 311 }
299 312
300 if ((itr = eolian_class_implements_get(class))) 313 if ((itr = eolian_class_implements_get(class)))