summaryrefslogtreecommitdiffstats
path: root/src/include/eiotas_door.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_door.h
parent82afdb93d790105246acfd5a47185ebd10961ab5 (diff)
downloadedoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.zip
edoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.tar.gz
documentation
Diffstat (limited to 'src/include/eiotas_door.h')
-rw-r--r--src/include/eiotas_door.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/include/eiotas_door.h b/src/include/eiotas_door.h
index 05060c4..318779f 100644
--- a/src/include/eiotas_door.h
+++ b/src/include/eiotas_door.h
@@ -25,15 +25,41 @@
#include <eina_types.h>
+/**
+ * @typedef Eiotas_Door
+ * Type for a basic Door.
+ */
typedef struct _Eiotas_Door Eiotas_Door;
+/**
+ * @struct _Eiotas_Door
+ * Struct for a basic Door.
+ */
struct _Eiotas_Door {
- Eiotas_Iota iota; /* structural info */
- Eiotas_User_Bits user_bits; /* user bits */
+ Eiotas_Iota iota; /**< structural info */
+ Eiotas_User_Bits user_bits; /**< user bits */
};
+/**
+ * @brief Free allocated resources.
+ *
+ * @param door The Eiotas_Door to free.
+ *
+ * This function will free all it's user data using user_bits ... FIXME
+ */
void eiotas_door_free(Eiotas_Door *door);
+/**
+ * @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_Door @c NULL on failure
+ *
+ * @see Eiotas_User_Bits
+ */
EAPI Eiotas_Door* eiotas_door_add(const char* name, Eiotas_Room *parent, Eiotas_User_Bits *user_bits);
#endif // __EIOTAS_DOOR_H__