/**
* @mainpage Eina
* @author Jorge Luis Zapata Muga
+ * @author Cedric Bail
* @date 2008
*
* @section eina_toc_sec Table of contents
* <li> @ref eina_counter_subsec
* <li> @ref eina_error_subsec
* </ul>
+ * <li> @ref thread_safety_sec
+ * <li> @ref debugging_sec
* </ul>
*
* @section eina_intro_sec Introduction
*
* Take a look at the @ref tutorial_error_page.
*
+ * @section thread_safety_sec Thread safety
+ *
+ * Add some stuff for thread safety doc
+ *
+ * @section debugging_sec Debugging
+ *
+ * Add some stuff for the debug doc
+ *
* @todo add debug function
* @todo add magic function
* @todo add other todo items :)
#ifndef EINA_RECTANGLE_H_
#define EINA_RECTANGLE_H_
+#include "eina_types.h"
+
/**
- * @file
+ * @addtogroup Eina_Tools_Group Tools
+ *
* @{
*/
-#include "eina_types.h"
+/**
+ * @defgroup Eina_Rectangle_Group Rectangle
+ *
+ * @{
+ */
/**
* To be documented
EAPI Eina_Rectangle *eina_rectangle_pool_request(Eina_Rectangle_Pool *pool, int w, int h) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
EAPI void eina_rectangle_pool_release(Eina_Rectangle *rect) EINA_ARG_NONNULL(1);
+/**
+ * @def EINA_RECTANGLE_SET
+ * @brief Macro to set the values of a #Eina_Rectangle.
+ *
+ * @param Rectangle The rectangle to set the values.
+ * @param X The X coordinate of the top left corner of the rectangle.
+ * @param Y The Y coordinate of the top left corner of the rectangle.
+ * @param W The width of the rectangle.
+ * @param H The height of the rectangle.
+ *
+ * This macro set the values of @p Rectangle. (@p X, @p Y) is the
+ * coordinates of the top left corner of @p Rectangle, @p W is its
+ * width and @p H is its height.
+ */
#define EINA_RECTANGLE_SET(Rectangle, X, Y, W, H) \
(Rectangle)->x = X; \
(Rectangle)->y = Y; \
#include "eina_inline_rectangle.x"
-/** @} */
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
#endif /*_EINA_RECTANGLE_H_*/
*/
struct _Eina_Trash
{
- Eina_Trash *next;
+ Eina_Trash *next; /**< next item in trash. */
};
static inline void eina_trash_init(Eina_Trash **trash) EINA_ARG_NONNULL(1);
static inline void *eina_trash_pop(Eina_Trash **trash) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
/**
- * @def EINA_TRASH_FOREACH
+ * @def EINA_TRASH_CLEAN
* @brief Macro to remove all pointer from the trash.
*
* @param trash The trash to clean.
#define EINA_MODULE_SYMBOL_INIT "__eina_module_init"
#define EINA_MODULE_SYMBOL_SHUTDOWN "__eina_module_shutdown"
-EAPI Eina_Error EINA_ERROR_WRONG_MODULE = 0;
-EAPI Eina_Error EINA_ERROR_MODULE_INIT_FAILED = 0;
-
struct _Eina_Module
{
char *file;
*/
/**
+ * @cond LOCAL
+ */
+
+EAPI Eina_Error EINA_ERROR_WRONG_MODULE = 0;
+EAPI Eina_Error EINA_ERROR_MODULE_INIT_FAILED = 0;
+
+/**
+ * @endcond
+ */
+
+/**
* @brief Initialize the eina module internal structure.
*
* @return 1 or greater on success, 0 on error.
/**
* @brief Retrive the data associated to a symbol.
*
- * @param The module.
+ * @param m The module.
* @param symbol The symbol.
* @return The data associated to the symbol, or @c NULL on failure.
*
/**
* Get a list of modules found on the directory path
*
+ * @param array The array that stores the list of the modules.
* @param path The directory's path to search for modules
* @param recursive Iterate recursively on the path
* @param cb Callback function to call, if the return value of the callback is zero
/**
* Load every module on the list of modules
- * @param list The list of modules
+ * @param array The array of modules to load
*/
EAPI void eina_module_list_load(Eina_Array *array)
{
eina_module_load(m);
}
+/**
+ * Unload every module on the list of modules
+ * @param array The array of modules to unload
+ */
EAPI void eina_module_list_unload(Eina_Array *array)
{
Eina_Array_Iterator iterator;