summaryrefslogtreecommitdiffstats
path: root/src/include/eiotas_board.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_board.h
parent82afdb93d790105246acfd5a47185ebd10961ab5 (diff)
downloadedoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.zip
edoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.tar.gz
documentation
Diffstat (limited to 'src/include/eiotas_board.h')
-rw-r--r--src/include/eiotas_board.h32
1 files changed, 29 insertions, 3 deletions
diff --git a/src/include/eiotas_board.h b/src/include/eiotas_board.h
index 4813808..6572faf 100644
--- a/src/include/eiotas_board.h
+++ b/src/include/eiotas_board.h
@@ -25,16 +25,42 @@
#include <eina_hash.h>
+/**
+ * @typedef Eiotas_Board
+ * Type for a Particle Merging Door.
+ */
typedef struct _Eiotas_Board Eiotas_Board;
+/**
+ * @struct _Eiotas_Board
+ * Struct for a Particle Merging Door.
+ */
struct _Eiotas_Board {
- Eiotas_Iota iota; /* structural info */
- Eiotas_User_Bits user_bits; /* user bits */
- Eina_Hash *postponed; /* TODO Particles */
+ Eiotas_Iota iota; /**< structural info */
+ Eiotas_User_Bits user_bits; /**< user bits */
+ Eina_Hash *postponed; /**< TODO Particles */
};
+/**
+ * @brief Free allocated resources.
+ *
+ * @param board The Eiotas_Board to free.
+ *
+ * This function will free all it's user data using user_bits ... FIXME
+ */
void eiotas_board_free(Eiotas_Board *board);
+/**
+ * @brief Allocate the resources.
+ *
+ * @param name The name of this door.
+ * @param parent The direct hierarchical parent Eiotas_Room.
+ * @param user_bits A Eiotas_User_Bits initilized with user side pointers.
+ *
+ * @return the new allocated Eiotas_Board @c NULL on failure
+ *
+ * @see Eiotas_User_Bits
+ */
EAPI Eiotas_Board* eiotas_board_add(const char* name, Eiotas_Room *parent, Eiotas_User_Bits *user_bits);
#endif // __EIOTAS_BOARD_H__