* This file contains all the declarations of the functions related with\r
* the tesh unit concept.\r
*\r
- */\r
- \r
+ */ \r
+ \r
#ifndef __UNIT_H \r
#define __UNIT_H\r
-\r
+ \r
#include <com.h>\r
-\r
+ \r
#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
+extern "C" {
+ \r
+#endif /* \r */
+ \r
/*! \brief unit_new - create a new unit.\r
*\r
* \param runner The runner which runs the unit.\r
* [EINVAL] if one of the parameters is invalid.\r
* [ENOMEM] if the system has not enough space to allocate\r
* the unit.\r
- */\r
-unit_t\r
-unit_new(runner_t runner, unit_t root, unit_t owner, fstream_t fstream);\r
-\r
+ */ \r
+ unit_t \r
+ unit_new(runner_t runner, unit_t root, unit_t owner,
+ fstream_t fstream);
+ \r \r
/*! \brief unit_free - destroy a tesh unit.\r
*\r
* \param ptr A pointer to the unit to destroy.\r
*\r
* errors :\r
* [EINVAL] if the pointer to the unit to destroy is invalid.\r
- */\r
-int\r
-unit_free(unit_t* ptr);\r
-\r
+ */ \r
+ int \r unit_free(unit_t * ptr);
+ \r \r
/*! \brief unit_run - run a tesh unit.\r
*\r
* \param unit The unit to run.\r
*\r
* remarks : If the runner is interrupted during a call of this function,\r
* the unit is not launched but its flag interrupted is signaled.\r
- */\r
-int\r
-unit_run(unit_t unit, xbt_os_mutex_t mutex);\r
-\r
-\r
+ */ \r
+ int \r unit_run(unit_t unit, xbt_os_mutex_t mutex);
+ \r \r \r
/*! \brief unit_interrupt - interrupt a tesh unit.\r
*\r
* \param unit The unit to interrupt.\r
*\r
* remarks : If the runner is interrupted during a call of this function,\r
* the unit is not launched but its flag interrupted is signaled.\r
- */\r
-int\r
-unit_interrupt(unit_t unit);\r
-\r
+ */ \r
+ int \r unit_interrupt(unit_t unit);
+ \r \r
/*! \brief unit_summuarize - summarize the run of tesh unit.\r
*\r
* \param unit The unit to summarize the run.\r
*\r
* errors :\r
* [EINVAL] if the unit specified as parameter is invalid.\r
- */\r
-int\r
-unit_summuarize(unit_t unit);\r
-\r
-int\r
-unit_reset(unit_t unit);\r
-\r
-void\r
-unit_set_error(unit_t unit, int errcode, int kind, const char* line);\r
-\r
+ */ \r
+ int \r unit_summuarize(unit_t unit);
+ \r \r int \r unit_reset(unit_t unit);
+ \r \r void \r
+ unit_set_error(unit_t unit, int errcode, int kind, const char *line);
+ \r\r
#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-\r
-#endif /* !__UNIT_H */\r
+} \r
+#endif /* \r */
+\r\r
+#endif /* !__UNIT_H */\r