Summary: Just updating the .eo's to match the new syntax.
Reviewers: cedric, q66, tasn, JackDanielZ
Reviewed By: q66
CC: felipealmeida, smohanty, woohyun, cedric
Differential Revision: https://phab.enlightenment.org/D1067
Colourable_Data *wd = eo_data_scope_get(o, MY_CLASS)
void
-_colourable_constructor(Eo *obj, Colourable_Data *self)
+_colourable_constructor(Eo *obj, Colourable_Data *self EINA_UNUSED)
{
if(!_colourable_impl_logdomain)
{
}
void
-_colourable_destructor(Eo *obj, Colourable_Data *self)
+_colourable_destructor(Eo *obj, Colourable_Data *self EINA_UNUSED)
{
if(_colourable_impl_logdomain)
{
}
void
-_colourable_print_colour(Eo *obj, Colourable_Data *self)
+_colourable_print_colour(Eo *obj EINA_UNUSED, Colourable_Data *self EINA_UNUSED)
{
DBG("_colourable_print_colour() ==> 0x%2.x 0x%2.x 0x%2.x\n", self->r, self->g, self->b);
}
int
-_colourable_colour_mask(Eo *obj, Colourable_Data *self, int mask)
+_colourable_colour_mask(Eo *obj EINA_UNUSED, Colourable_Data *self, int mask)
{
int masked_rgb =
(((self->r << 16)& 0x00ff0000) |
}
void
-_colourable_composite_colour_get(Eo *obj, Colourable_Data *self, int* r, int* g, int* b)
+_colourable_composite_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self, int* r, int* g, int* b)
{
*r = self->r;
*g = self->g;
}
void
-_colourable_composite_colour_set(Eo *obj, Colourable_Data *self, int r, int g, int b)
+_colourable_composite_colour_set(Eo *obj EINA_UNUSED, Colourable_Data *self, int r, int g, int b)
{
self->r = r;
self->g = g;
}
int
-_colourable_colour_get(Eo *obj, Colourable_Data *self)
+_colourable_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self)
{
int rgb =
((self->r << 16)& 0x00ff0000) |
}
void
-_colourable_colour_set(Eo *obj, Colourable_Data *self, int rgb)
+_colourable_colour_set(Eo *obj EINA_UNUSED, Colourable_Data *self, int rgb)
{
self->r = (rgb & 0x00ff0000) >> 16;
self->g = (rgb & 0x0000ff00) >> 8;
return;
}
-static void
-_user_colourable_class_constructor(Eo_Class *klass)
-{
- DBG("_colourable_class_constructor()\n");
-}
-
#include "colourable.eo.c"
{
/*@ Colourable class. */
legacy_prefix: legacy;
+ data: Colourable_Data;
constructors {
constructor {
/*@ Default constructor. */
@in int r; /*@ The red component. */
@in int g; /*@ The green component. */
@in int b; /*@ The blue component. */
- };
- };
+ }
+ }
rgb_24bits_constructor {
/*@ RGB Constructor. */
params {
@in int rgb; /*@ 24-bit RGB Component. */
- };
- };
- };
+ }
+ }
+ }
methods {
- print_colour { /*@ Print the RGB colour. */ };
+ print_colour { /*@ Print the RGB colour. */ }
colour_mask {
/*@ The masked RGB value. */
- return int;
params {
@in int mask; /*@ The colour mask to be applied to current RGB value. */
- };
- };
- };
+ }
+ return int; /*@ The RGB colour. */
+ }
+ }
properties {
colour {
set {
/*@ Sets a 24-bit RGB colour. */
- };
+ }
get {
/*@ Gets the 24-bit RGB colour. */
- };
+ }
values {
int rgb; /*@ The RGB colour value. */
- };
- };
+ }
+ }
composite_colour {
set {
/*@ Sets a composite RGB colour. */
- };
+ }
get {
/*@ Gets the composite RGB colour. */
- };
+ }
values {
int r; /*@ The red component. */
int g; /*@ The green component. */
int b; /*@ The blue component. */
- };
- };
- };
+ }
+ }
+ }
events {
colour_changed(int);
- };
-};
+ }
+}
eo_do_super(obj, MY_CLASS, eo_constructor());
}
-static void
-_colourablesquare_destructor(Eo *obj, ColourableSquare_Data *self)
-{
- eo_do_super(obj, MY_CLASS, eo_destructor());
- if(_colourablesquare_impl_logdomain)
- {
- eina_log_domain_unregister(_colourablesquare_impl_logdomain);
- _colourablesquare_impl_logdomain = 0;
- }
-}
-
static int
-_colourablesquare_size_get(Eo *obj, ColourableSquare_Data *self)
+_colourablesquare_size_get(Eo *obj EINA_UNUSED, ColourableSquare_Data *self)
{
DBG("_colourablesquare_size_get() => %d\n", self->size);
return self->size;
}
static void
-_colourablesquare_size_print(Eo *obj, ColourableSquare_Data *self)
+_colourablesquare_size_print(Eo *obj EINA_UNUSED, ColourableSquare_Data *self)
{
DBG("_colourablesquare_size_print() ==> %d\n", self->size);
}
static void
-_colourablesquare_size_set(Eo *obj, ColourableSquare_Data *self, int size)
+_colourablesquare_size_set(Eo *obj EINA_UNUSED, ColourableSquare_Data *self EINA_UNUSED, int size)
{
DBG("_colourablesquare_size_set(%d)\n", size);
}
-static void
-_user_colourablesquare_class_constructor(Eo_Class *klass)
-{
- DBG("_colourablesquare_class_constructor()\n");
-}
-
#include "colourablesquare.eo.c"
class ColourableSquare (Colourable)
{
- constructors {
- size_constructor { params { @in int size; } }
- };
legacy_prefix: legacy;
+ data: ColourableSquare_Data;
+ constructors {
+ size_constructor {
+ params {
+ @in int size;
+ }
+ }
+ }
properties {
size {
- values {
- int size;
- };
set {
/*@ Sets size. */
- };
+ }
get {
/*@ Gets size. */
- };
- };
- };
+ }
+ values {
+ int size; /*@ The size. */
+ }
+ }
+ }
methods {
- size_print { /*@ Show the square. */ };
- };
-};
+ size_print { /*@ Show the square. */ }
+ }
+}
#include <iostream>
+#include <cassert>
#ifdef HAVE_CONFIG_H
# include <config.h>
// EINA_LOG_LEVELS=colourable:4,colourablesquare:4 ./eolian_cxx_simple_01
#include <iostream>
+#include <cassert>
#ifdef HAVE_CONFIG_H
# include <config.h>