summaryrefslogtreecommitdiffstats
path: root/src/include/eiotas_room.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-29 16:13:14 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-29 16:13:14 +0200
commit823df95bd73bf7195d9a9d3dacd418475c055bc8 (patch)
treea739b394f38bb023a853392c2a17a271d2e0ae33 /src/include/eiotas_room.h
parent82afdb93d790105246acfd5a47185ebd10961ab5 (diff)
downloadedoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.zip
edoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.tar.gz
documentation
Diffstat (limited to 'src/include/eiotas_room.h')
-rw-r--r--src/include/eiotas_room.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/include/eiotas_room.h b/src/include/eiotas_room.h
index 877a91c..644dc0e 100644
--- a/src/include/eiotas_room.h
+++ b/src/include/eiotas_room.h
@@ -23,16 +23,41 @@
#include <eina_hash.h>
+/**
+ * @typedef Eiotas_Room
+ * Type for a Room, which holds other child Eiotas_Iotas.
+ */
typedef struct _Eiotas_Room Eiotas_Room;
+/**
+ * @struct _Eiotas_Room
+ * Struct for a Room, which holds other child Eiotas_Iotas.
+ */
struct _Eiotas_Room {
- Eiotas_Iota iota; /* structural info */
- Eina_Hash *links; /* TODO */
- Eina_Hash *children; /* stringshared values optimized hash table holding Rooms, Doors and Boards */
+ Eiotas_Iota iota; /**< Eiotas_Iota structural info */
+ Eina_Hash *links; /**< TODO */
+ Eina_Hash *children; /**< stringshared values optimized hash table holding Eiotas_Iotas */
};
+/**
+ * @brief Free allocated resources.
+ *
+ * @param room The Eiotas_Room to free.
+ *
+ * This function will free all it's child Eiotas_Iotas.
+ */
void eiotas_room_free(Eiotas_Room *room);
+/**
+ * @brief Print iota information using EINA_LOG_DBG.
+ *
+ * @param name The name of this Eiotas_Iota.
+ * @param parent The direct hierarchical parent Eiotas_Room.
+ *
+ * @return the new Eiotas_Room, @c NULL on failure
+ *
+ * This function will register the new room as a child of it's parent Eiotas_Room.
+ */
EAPI Eiotas_Room* eiotas_room_add(const char* name, Eiotas_Room *parent);
#endif // __EIOTAS_ROOM_H__