aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/efl_model_composite_boolean.c
blob: 7ec344d05c27632fef8da44342914d7f5ec6d6e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include "Eina.h"
#include "Efl.h"
#include <Ecore.h>

#include "efl_model_composite_boolean_children.eo.h"

typedef struct _Efl_Model_Hash_Value
{
   unsigned char *buffer;
   unsigned int   bits_count;
   Eina_Bool      default_value : 1;
} Efl_Model_Hash_Value;

typedef struct _Efl_Model_Composite_Boolean_Data
{
   Efl_Model  *composite_model;
   Eina_Array *bool_children_cache;
   Eina_Array *empty_properties;
   Eina_Hash  *values; // [property_name, Efl_Model_Hash_Value*]
} Efl_Model_Composite_Boolean_Data;

typedef struct _Efl_Model_Composite_Boolean_Children_Data
{
   Efl_Model_Composite_Boolean_Data *parent_pd;
   Efl_Model                        *composite_child;
   Eina_Array                       *properties_names;
   unsigned int                      index;
} Efl_Model_Composite_Boolean_Children_Data;

typedef struct _Efl_Model_Accessor_Slice
{
   Eina_Accessor                     vtable;
   Eina_Accessor                    *real_accessor;
   Efl_Model                        *parent;
   Efl_Model_Composite_Boolean_Data *parent_pd;
   Efl_Promise                      *promise;
   unsigned int                      index;
} Efl_Model_Accessor_Slice;

static Eina_Value *
_value_clone(const Eina_Value *value)
{
   Eina_Value *copy = eina_value_new(eina_value_type_get(value));
   eina_value_copy(value, copy);
   return copy;
}

static void
_future_forward_cb(void *data, Efl_Event const *event)
{
   efl_promise_value_set(
     data, _value_clone(((Efl_Future_Event_Success*)event->info)->value), (Eina_Free_Cb)eina_value_free);
}

static void
_future_error_forward_cb(void *data, Efl_Event const *event)
{
   Eina_Error err = ((Efl_Future_Event_Failure*)event->info)->error;
   efl_promise_failed_set(data, err);
}

static Eina_Bool
_bit_get(const unsigned char *bitstream, unsigned int idx)
{
   return (bitstream[idx / 8] >> (idx % 8)) & 1u;
}

static void
_bit_set(unsigned char *bitstream, unsigned int idx, Eina_Bool v)
{
   if (v)
     bitstream[idx / 8] |= 1u << (idx % 8);
   else
     bitstream[idx / 8] &= ~(1u << (idx % 8));
}

/**************** efl_mmodel_composite_boolean_children **************/

static void
_properties_names_array_free(Eina_Array *properties_names)
{
   Eina_Array_Iterator it;
   void *name;
   unsigned int i;

   EINA_ARRAY_ITER_NEXT(properties_names, i, name, it)
     free(name);

   eina_array_free(properties_names);
}


static void
_efl_model_composite_boolean_children_efl_object_destructor(Eo *obj,
  Efl_Model_Composite_Boolean_Children_Data *pd)
{
   if (pd->properties_names)
     _properties_names_array_free(pd->properties_names);

   if (pd->composite_child)
     efl_unref(pd->composite_child);

   efl_destructor(efl_super(obj, EFL_MODEL_COMPOSITE_BOOLEAN_CHILDREN_CLASS));
}

static Eina_Bool
_properties_names_push(const Eina_Hash *hash EINA_UNUSED,
  const void *key, void *data EINA_UNUSED, void *fdata)
{
   eina_array_push(fdata, key);
   return EINA_TRUE;
}

static const Eina_Array*
_efl_model_composite_boolean_children_efl_model_properties_get(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd)
{
   Eina_Array const *composite_properties;
   unsigned int composite_count, self_count, i;

   if (pd->properties_names)
     {
        _properties_names_array_free(pd->properties_names);
        pd->properties_names = NULL;
     }

   composite_properties = efl_model_properties_get(pd->composite_child);
   if (!composite_properties)
        return pd->properties_names = eina_array_new(1);

   composite_count = eina_array_count_get(composite_properties);
   self_count = eina_hash_population(pd->parent_pd->values);

   pd->properties_names = eina_array_new(composite_count + self_count);
   for (i = 0; i != composite_count; ++i)
     {
        const char *name = strdup(eina_array_data_get(composite_properties, i));
        eina_array_push(pd->properties_names, name);
     }

   eina_hash_foreach(pd->parent_pd->values, _properties_names_push, pd->properties_names);

   return pd->properties_names;
}

static Efl_Future *
_efl_model_composite_boolean_children_efl_model_property_get(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd, const char *property)
{
   Efl_Model_Hash_Value *hv = eina_hash_find(pd->parent_pd->values, property);
   if (hv)
     {
        Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
        Efl_Future *rfuture = efl_promise_future_get(promise);

        Eina_Value *eina_value = eina_value_new(EINA_VALUE_TYPE_UCHAR);
        if (hv->bits_count <= pd->index)
          {
            unsigned char f = hv->default_value;
            eina_value_set(eina_value, f);
          }
        else
          {
             eina_value_set(eina_value, _bit_get(hv->buffer, pd->index));
          }
        efl_promise_value_set(promise, eina_value, (Eina_Free_Cb)eina_value_free);
        return rfuture;
     }
   else if (pd->composite_child)
     return efl_model_property_get(pd->composite_child, property);
   else
     {
        Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
        Efl_Future *rfuture = efl_promise_future_get(promise);

        efl_promise_failed_set(promise, EFL_MODEL_ERROR_NOT_FOUND);
        return rfuture;
     }
}

static Efl_Future *
_efl_model_composite_boolean_children_efl_model_property_set(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd, const char *property, const Eina_Value *value)
{
   Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
   Efl_Future *rfuture = efl_promise_future_get(promise);

   Efl_Model_Hash_Value *hv = eina_hash_find(pd->parent_pd->values, property);
   if (hv)
     {
        Eina_Bool flag = EINA_FALSE;

        if (eina_value_type_get(value) == EINA_VALUE_TYPE_UCHAR)
          {
             efl_promise_failed_set(promise, EFL_MODEL_ERROR_INCORRECT_VALUE);
             return rfuture;
          }
        if (!eina_value_get(value, &flag))
          {
             efl_promise_failed_set(promise, EFL_MODEL_ERROR_UNKNOWN);
             return rfuture;
          }

        if (pd->index >= hv->bits_count)
          {
             unsigned int bytes = (pd->index / 8) + 1;
             unsigned int buff_size = (hv->bits_count / 8) + (hv->bits_count % 8 ? 1 : 0);
             unsigned char *buff = realloc(hv->buffer, bytes);
             if (!buff)
               {
                  efl_promise_failed_set(promise, EFL_MODEL_ERROR_UNKNOWN);
                  return rfuture;
               }
             memset(
               buff + buff_size,
               hv->default_value ? -1 : 0,
               bytes - buff_size);

             hv->buffer = buff;
             hv->bits_count = bytes * 8;
          }

        _bit_set(hv->buffer, pd->index, flag);

        efl_promise_value_set(
          promise, _value_clone(value), (Eina_Free_Cb)eina_value_free);
     }
   else if (pd->composite_child)
     {
        Efl_Future *f_forward = efl_model_property_set(pd->composite_child, property, value);
        efl_future_then(f_forward, _future_forward_cb, _future_error_forward_cb, NULL, promise);
     }
   else
     {
        efl_promise_failed_set(promise, EFL_MODEL_ERROR_NOT_FOUND);
     }

   return rfuture;
}

static Efl_Future*
_efl_model_composite_boolean_children_efl_model_children_slice_get(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd, unsigned int start, unsigned int count)
{
   return efl_model_children_slice_get(pd->composite_child, start, count);
}

static Efl_Future*
_efl_model_composite_boolean_children_efl_model_children_count_get(Eo *obj  EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd)
{
   return efl_model_children_count_get(pd->composite_child);
}

static Efl_Object*
_efl_model_composite_boolean_children_efl_model_child_add(Eo *obj  EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd)
{
   return efl_model_child_add(pd->composite_child);
}

static void
_efl_model_composite_boolean_children_efl_model_child_del(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Children_Data *pd, Efl_Object *child)
{
   efl_model_child_del(pd->composite_child, child);
}

/**************** efl_model_accessor_slice **************/

static void
_bool_children_cache_array_free(Eina_Array *children_cache)
{
   int i, count = eina_array_count_get(children_cache);
   for (i = 0; i < count; ++i)
     efl_unref(eina_array_data_get(children_cache, i));
   eina_array_free(children_cache);
}

static Eina_Bool
efl_model_acessor_slice_get_at(Efl_Model_Accessor_Slice *acc, unsigned int idx, void **data)
{
   Efl_Model *child_bool;
   Eina_Array *children_cache = acc->parent_pd->bool_children_cache;

   /* NOTE: Efl.Model.Composite.Boolean must alloc the cache with the correct size
      and NULL initialized. */
   if (idx >= eina_array_count(children_cache))
     {
        EINA_LOG_WARN("Index bigger than size");
        return EINA_FALSE;
     }

   child_bool = eina_array_data_get(children_cache, idx);

   if (!child_bool)
     {
        Efl_Model *child = NULL;

        if (!eina_accessor_data_get(acc->real_accessor, idx, (void *)&child))
          return EINA_FALSE;

        if (child)
          {
             Efl_Model_Composite_Boolean_Children_Data *pd;
             child_bool = efl_add(EFL_MODEL_COMPOSITE_BOOLEAN_CHILDREN_CLASS, NULL);
             pd = efl_data_scope_get(child_bool, EFL_MODEL_COMPOSITE_BOOLEAN_CHILDREN_CLASS);

             pd->parent_pd = acc->parent_pd;
             pd->composite_child = efl_ref(child);
             pd->index = acc->index++;

             eina_array_data_set(children_cache, idx, child_bool);
          }
     }

   if (data) *data = child_bool;
   return EINA_TRUE;
}

static void *
efl_model_acessor_slice_get_container(Efl_Model_Accessor_Slice *acc)
{
   return eina_accessor_container_get(acc->real_accessor);
}

static void
efl_model_acessor_slice_free(Efl_Model_Accessor_Slice *acc)
{
   if (acc->real_accessor)
     {
        eina_accessor_free(acc->real_accessor);
        acc->real_accessor = NULL;
     }

   if (acc->parent)
     {
        efl_unref(acc->parent);
        acc->parent = NULL;
     }

   acc->parent_pd = NULL;
   acc->promise = NULL;

   free(acc);
}

static Eina_Bool
efl_model_acessor_slice_lock(Efl_Model_Accessor_Slice *acc)
{
   return eina_accessor_lock(acc->real_accessor);
}

static Eina_Bool
efl_model_acessor_slice_unlock(Efl_Model_Accessor_Slice *acc)
{
   return eina_accessor_unlock(acc->real_accessor);
}

static Efl_Model_Accessor_Slice *
efl_model_acessor_slice_clone(Efl_Model_Accessor_Slice *acc EINA_UNUSED)
{
   return NULL;
}

static void
efl_model_accessor_slice_setup(Efl_Model_Accessor_Slice *acc,
   Efl_Model *parent, Efl_Model_Composite_Boolean_Data *parent_pd, Efl_Promise *promise)
{
   acc->vtable.version = EINA_ACCESSOR_VERSION;
   acc->vtable.get_at = FUNC_ACCESSOR_GET_AT(efl_model_acessor_slice_get_at);
   acc->vtable.get_container = FUNC_ACCESSOR_GET_CONTAINER(efl_model_acessor_slice_get_container);
   acc->vtable.free = FUNC_ACCESSOR_FREE(efl_model_acessor_slice_free);

   acc->vtable.lock = FUNC_ACCESSOR_LOCK(efl_model_acessor_slice_lock);
   acc->vtable.unlock = FUNC_ACCESSOR_LOCK(efl_model_acessor_slice_unlock);

   acc->vtable.clone = FUNC_ACCESSOR_CLONE(efl_model_acessor_slice_clone);

   EINA_MAGIC_SET(&acc->vtable, EINA_MAGIC_ACCESSOR);

   acc->parent = efl_ref(parent);
   acc->parent_pd = parent_pd;
   acc->promise = promise;
}

static void
_efl_model_composite_boolean_slice_then_cb(void *data, Efl_Event const *event)
{
   Efl_Model_Accessor_Slice *slice_acc = data;
   Eina_Accessor *value_itt = (Eina_Accessor *)((Efl_Future_Event_Success*)event->info)->value;
   unsigned int *children_count = NULL;
   Eina_Accessor *children_accessor = NULL;

   if (!eina_accessor_data_get(value_itt, 0, (void**)&children_count) ||
       !children_count ||
       !eina_accessor_data_get(value_itt, 1, (void**)&children_accessor) ||
       !children_accessor)
     {
        EINA_LOG_WARN("missing Efl.Model information");
        efl_promise_failed_set(slice_acc->promise, EFL_MODEL_ERROR_UNKNOWN);
        efl_model_acessor_slice_free(slice_acc);
        return;
     }

   slice_acc->real_accessor = eina_accessor_clone(children_accessor);
   if (slice_acc->real_accessor)
     {
        Eina_Array *children_cache;
        unsigned int i;

        if (slice_acc->parent_pd->bool_children_cache)
          _bool_children_cache_array_free(slice_acc->parent_pd->bool_children_cache);

        children_cache = eina_array_new(*children_count);
        for (i = 0 ; i < *children_count; ++i)
          {
             // NOTE: eina_array_push do not accept NULL
             eina_array_push(children_cache, (void*)0x01);
             eina_array_data_set(children_cache, i, NULL);
          }

        slice_acc->parent_pd->bool_children_cache = children_cache;

        efl_promise_value_set(slice_acc->promise, slice_acc, (Eina_Free_Cb)&eina_accessor_free);
     }
   else
     {
        efl_promise_failed_set(slice_acc->promise, EFL_MODEL_ERROR_NOT_SUPPORTED);
        efl_model_acessor_slice_free(slice_acc);
     }
}

static void
_efl_model_composite_boolean_slice_error_cb(void *data,  Efl_Event const*event)
{
   Efl_Model_Accessor_Slice *slice_acc = data;
   Eina_Error error = ((Efl_Future_Event_Failure*)event->info)->error;
   efl_promise_failed_set(slice_acc->promise, error);
   efl_model_acessor_slice_free(slice_acc);
}

/**************** efl_mmodel_composite_boolean **************/

static void
efl_model_hash_value_free(void *p)
{
   Efl_Model_Hash_Value *value = p;
   if (value)
     {
        free(value->buffer);
        free(value);
     }
}

static void
_composite_model_data_reset(Efl_Model_Composite_Boolean_Data *pd)
{
   if (pd->bool_children_cache)
     {
        _bool_children_cache_array_free(pd->bool_children_cache);
        pd->bool_children_cache = NULL;
     }

   if (pd->composite_model)
     {
        efl_unref(pd->composite_model);
        pd->composite_model = NULL;
     }
}

static void
_efl_model_composite_boolean_efl_object_destructor(Eo *obj, Efl_Model_Composite_Boolean_Data *pd)
{
   if (pd->empty_properties)
     {
        eina_array_free(pd->empty_properties);
        pd->empty_properties = NULL;
     }

   if (pd->values)
     {
        eina_hash_free(pd->values);
        pd->values = NULL;
     }

   _composite_model_data_reset(pd);

   efl_destructor(efl_super(obj, EFL_MODEL_COMPOSITE_BOOLEAN_CLASS));
}

static void
_efl_model_composite_boolean_composite_model_set(Eo *obj EINA_UNUSED,
  Efl_Model_Composite_Boolean_Data *pd, Efl_Model *model)
{
   if (pd->composite_model)
     {
        _composite_model_data_reset(pd);
     }

   pd->composite_model = efl_ref(model);
}

static Efl_Model *
_efl_model_composite_boolean_composite_model_get(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd)
{
   return pd->composite_model;
}

static void
_efl_model_composite_boolean_property_add(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd,
   const char *name, Eina_Bool initial_value)
{
   if (!pd->values)
     pd->values = eina_hash_string_small_new(&efl_model_hash_value_free);
   Efl_Model_Hash_Value *value = calloc(1, sizeof(Efl_Model_Hash_Value));
   value->default_value = initial_value;
   eina_hash_add(pd->values, name, value);
}

static const Eina_Array *
_efl_model_composite_boolean_efl_model_properties_get(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd)
{
  if (pd->composite_model)
    return efl_model_properties_get(pd->composite_model);
  else if (pd->empty_properties)
    return pd->empty_properties;
  else
    return pd->empty_properties = eina_array_new(1);
}

Efl_Future *
_efl_model_composite_boolean_efl_model_property_get(Eo *obj EINA_UNUSED,
   Efl_Model_Composite_Boolean_Data *pd, const char *property)
{
   if (pd->composite_model)
     return efl_model_property_get(pd->composite_model, property);

   Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
   Efl_Future *rfuture = efl_promise_future_get(promise);

   efl_promise_failed_set(promise, EFL_MODEL_ERROR_NOT_FOUND);
   return rfuture;
}

Efl_Future *
_efl_model_composite_boolean_efl_model_property_set(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd,
   const char *property, const Eina_Value *value)
{

   Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
   Efl_Future *rfuture = efl_promise_future_get(promise);

   if (pd->composite_model)
     {
        Efl_Future *f_forward = efl_model_property_set(pd->composite_model, property, value);
        efl_future_then(f_forward, _future_forward_cb, _future_error_forward_cb, NULL, promise);
     }
   else
     {
        efl_promise_failed_set(promise, EFL_MODEL_ERROR_NOT_FOUND);
     }

   return rfuture;
}

static Efl_Future *
_efl_model_composite_boolean_efl_model_children_slice_get(Eo *obj, Efl_Model_Composite_Boolean_Data *pd, unsigned int start, unsigned int count)
{
   Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
   Efl_Future *rfuture = efl_promise_future_get(promise);

   if (pd->composite_model)
     {
        Efl_Model_Accessor_Slice *accessor;
        Efl_Future *composite_future;
        Efl_Future *futures[2] = {NULL,};

        futures[0] = efl_model_children_count_get(pd->composite_model);
        futures[1] = efl_model_children_slice_get(pd->composite_model, start, count);

        composite_future = efl_future_all(futures[0], futures[1]);

        accessor = calloc(1, sizeof(Efl_Model_Accessor_Slice));
        efl_model_accessor_slice_setup(accessor, obj, pd, promise);

        efl_future_then(composite_future, &_efl_model_composite_boolean_slice_then_cb,
                          &_efl_model_composite_boolean_slice_error_cb, NULL, accessor);
     }
   else
     {
        efl_promise_failed_set(promise, EFL_MODEL_ERROR_NOT_SUPPORTED);
     }
  return rfuture;
}

static Efl_Future *
_efl_model_composite_boolean_efl_model_children_count_get(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd)
{
  if (pd->composite_model)
    return efl_model_children_count_get(pd->composite_model);
  else
    {
      Efl_Promise *promise = efl_add(EFL_PROMISE_CLASS, ecore_main_loop_get());
      Efl_Future *rfuture = efl_promise_future_get(promise);

      unsigned int *count = malloc(sizeof(unsigned int));
      *count = 0;
      efl_promise_value_set(promise, count, free);
      return rfuture;
    }
}

static Efl_Object*
_efl_model_composite_boolean_efl_model_child_add(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd)
{
  if (pd->composite_model)
    return efl_model_child_add(pd->composite_model);
  else
    {
       eina_error_set(EFL_MODEL_ERROR_NOT_SUPPORTED);
       return NULL;
    }
}

static void
_efl_model_composite_boolean_efl_model_child_del(Eo *obj EINA_UNUSED, Efl_Model_Composite_Boolean_Data *pd, Efl_Object *child)
{
  if (pd->composite_model)
    return efl_model_child_del(pd->composite_model, child);
  else
    {
       eina_error_set(EFL_MODEL_ERROR_NOT_SUPPORTED);
    }
}

#include "efl_model_composite_boolean.eo.c"
#include "efl_model_composite_boolean_children.eo.c"