diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/eiotas_board.c | 2 | ||||
-rw-r--r-- | src/lib/eiotas_door.c | 2 | ||||
-rw-r--r-- | src/lib/eiotas_particle.c | 8 | ||||
-rw-r--r-- | src/lib/eiotas_room.c | 2 | ||||
-rw-r--r-- | src/lib/eiotas_spin.c | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/eiotas_board.c b/src/lib/eiotas_board.c index 86572fd..26a066b 100644 --- a/src/lib/eiotas_board.c +++ b/src/lib/eiotas_board.c @@ -19,7 +19,7 @@ #include "eiotas_board.h" #include "eiotas_private.h" -EAPI Eiotas_Board* eiotas_board_add(const char* name, Eiotas_Room *parent, Eiotas_User_Bits *user_bits) +EAPI Eiotas_Board* eiotas_board_add(const char* name, const Eiotas_Room *parent, Eiotas_User_Bits *user_bits) { // TODO return NULL; diff --git a/src/lib/eiotas_door.c b/src/lib/eiotas_door.c index 20a05a5..37d5c3a 100644 --- a/src/lib/eiotas_door.c +++ b/src/lib/eiotas_door.c @@ -19,7 +19,7 @@ #include "eiotas_door.h" #include "eiotas_private.h" -EAPI Eiotas_Door* eiotas_door_add(const char* name, Eiotas_Room *parent, Eiotas_User_Bits *user_bits) +EAPI Eiotas_Door* eiotas_door_add(const char* name, const Eiotas_Room *parent, Eiotas_User_Bits *user_bits) { CHECK_PARENT(); diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c index 2284843..6597e5d 100644 --- a/src/lib/eiotas_particle.c +++ b/src/lib/eiotas_particle.c @@ -84,18 +84,18 @@ EAPI void eiotas_particle_init(Eiotas_Particle *particle, Eiotas_Iota *iota) particle->ts = time(NULL); } -EAPI void eiotas_particle_merge(Eiotas_Particle *particle, Eiotas_Particle *p) +EAPI void eiotas_particle_merge(Eiotas_Particle *particle, const Eiotas_Particle *p) { - particle->merged = eina_inlist_append(particle->merged, EINA_INLIST_GET(p)); + particle->merged = eina_inlist_append(particle->merged, EINA_INLIST_GET((Eiotas_Particle*)p)); } -EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, char* destinations) +EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, const char* destinations) { int n; char *dst, *sep; Eina_Stringshare *shared; - dst = destinations; + dst = (char*)destinations; for(; *dst;) { for(; *dst==' '; dst++) /* eat leading spaces */; sep = dst; diff --git a/src/lib/eiotas_room.c b/src/lib/eiotas_room.c index 3fc6a36..bc508ae 100644 --- a/src/lib/eiotas_room.c +++ b/src/lib/eiotas_room.c @@ -19,7 +19,7 @@ #include "eiotas_room.h" #include "eiotas_private.h" -EAPI Eiotas_Room* eiotas_room_add(const char* name, Eiotas_Room *parent) +EAPI Eiotas_Room* eiotas_room_add(const char* name, const Eiotas_Room *parent) { CHECK_PARENT(); diff --git a/src/lib/eiotas_spin.c b/src/lib/eiotas_spin.c index e0f8231..873a4d1 100644 --- a/src/lib/eiotas_spin.c +++ b/src/lib/eiotas_spin.c @@ -80,12 +80,12 @@ EAPI void eiotas_spin_release_particle(Eiotas_Spin *spin, Eiotas_Particle *parti eina_array_push(spin->free_particles,particle); } -EAPI void eiotas_spin_send_particle(Eiotas_Spin *spin, Eiotas_Particle *particle, Eina_Bool system) +EAPI void eiotas_spin_send_particle(Eiotas_Spin *spin, const Eiotas_Particle *particle, Eina_Bool system) { if(system) { - spin->sys_fifo = eina_inlist_append(spin->sys_fifo,EINA_INLIST_GET(particle)); + spin->sys_fifo = eina_inlist_append(spin->sys_fifo,EINA_INLIST_GET((Eiotas_Particle*)particle)); } else { - spin->app_fifo = eina_inlist_append(spin->app_fifo,EINA_INLIST_GET(particle)); + spin->app_fifo = eina_inlist_append(spin->app_fifo,EINA_INLIST_GET((Eiotas_Particle*)particle)); } } |