diff options
-rw-r--r-- | src/include/eiotas_board.h | 2 | ||||
-rw-r--r-- | src/include/eiotas_door.h | 2 | ||||
-rw-r--r-- | src/include/eiotas_particle.h | 6 | ||||
-rw-r--r-- | src/include/eiotas_room.h | 2 | ||||
-rw-r--r-- | src/include/eiotas_spin.h | 2 | ||||
-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 |
10 files changed, 17 insertions, 17 deletions
diff --git a/src/include/eiotas_board.h b/src/include/eiotas_board.h index 9f8d5ef..f12f8fc 100644 --- a/src/include/eiotas_board.h +++ b/src/include/eiotas_board.h @@ -71,7 +71,7 @@ void eiotas_board_free(Eiotas_Board *board); * * @see Eiotas_User_Bits */ -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); /** * @} diff --git a/src/include/eiotas_door.h b/src/include/eiotas_door.h index d136c1a..6d7e481 100644 --- a/src/include/eiotas_door.h +++ b/src/include/eiotas_door.h @@ -70,7 +70,7 @@ void eiotas_door_free(Eiotas_Door *door); * * @see Eiotas_User_Bits */ -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); /** * @} diff --git a/src/include/eiotas_particle.h b/src/include/eiotas_particle.h index 5ea2215..388ef66 100644 --- a/src/include/eiotas_particle.h +++ b/src/include/eiotas_particle.h @@ -89,12 +89,12 @@ EAPI void eiotas_particle_reset(Eiotas_Particle *particle); EAPI void eiotas_particle_init(Eiotas_Particle *particle, Eiotas_Iota *iota); /** - * @brief Merge a particle into the other. + * @brief Merge a @ref Eiotas_Particle into the other. * * @param particle The @ref Eiotas_Particle to hold @p p * @param p The @ref Eiotas_Particle to be merged into @p particle */ -EAPI void eiotas_particle_merge(Eiotas_Particle *particle, Eiotas_Particle *p); +EAPI void eiotas_particle_merge(Eiotas_Particle *particle, const Eiotas_Particle *p); /** * @brief Add destinations to the @ref Eiotas_Particle @@ -104,7 +104,7 @@ EAPI void eiotas_particle_merge(Eiotas_Particle *particle, Eiotas_Particle *p); * * This function will append each destination found to the destination list of the @ref Eiotas_Particle. */ -EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, char* destinations); +EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, const char* destinations); /** * @} diff --git a/src/include/eiotas_room.h b/src/include/eiotas_room.h index c265344..53b035a 100644 --- a/src/include/eiotas_room.h +++ b/src/include/eiotas_room.h @@ -66,7 +66,7 @@ void eiotas_room_free(Eiotas_Room *room); * * This function will register the new room as a child of it's parent @ref Eiotas_Room. */ -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); /** * @} diff --git a/src/include/eiotas_spin.h b/src/include/eiotas_spin.h index 08742e4..fbe5440 100644 --- a/src/include/eiotas_spin.h +++ b/src/include/eiotas_spin.h @@ -106,7 +106,7 @@ EAPI void eiotas_spin_release_particle(Eiotas_Spin *spin, Eiotas_P * @param system Post to the system fifo us true, otherwise to the application fifo. * */ -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); /** * @brief Require a @ref Eiotas_Particle from the free list. 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)); } } |