* This file contains all the declarations of the functions related with\r
* the tesh context type.\r
*\r
- */\r
- \r
+ */ \r
+ \r
#ifndef _CONTEXT_H\r
#define _CONTEXT_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 create_new - create a new context.\r
*\r
* \return If successful the function returns the newly created\r
* global variable errno with the appropiate error code.\r
* [ENOMEM] if the system has not enough space to allocate\r
* the context.\r
- */\r
-context_t\r
-context_new(void);\r
-\r
+ */ \r
+ context_t \r context_new(void);
+ \r\r
/*! \brief context_free - destroy a context object.\r
*\r
* \param ptr A pointer to the context object to destroy.\r
* errors :\r
* [EINVAL] if the context object pointed to by the ptr parameter is invalid.\r
* \r
- */\r
-int\r
-context_free(context_t* ptr);\r
-\r
+ */ \r
+ int \r context_free(context_t * ptr);
+ \r \r
/*! \brief context_dup - duplicate a context object.\r
*\r
* \param context The context to duplicate.\r
* [EINVAL] if the parameter is invalid.\r
* [ENOMEM] if there is not enough memory to allocate the duplicate.\r
* \r
- */\r
-context_t\r
-context_dup(context_t context);\r
-\r
-\r
+ */ \r
+ context_t \r context_dup(context_t context);
+ \r \r \r
/*! \brief context_reset - reset a context object.\r
*\r
* \param context The context to reset.\r
* errors :\r
* [EINVAL] if the parameter is invalid.\r
* \r
- */\r
-int\r
-context_reset(context_t context);\r
-\r
-void\r
-context_clear(context_t context);\r
-\r
-void\r
-context_input_write(context_t context, const char* buffer);\r
-\r
-void\r
-context_ouput_read(context_t context, const char* buffer);\r
-\r
-\r
-\r
+ */ \r
+ int \r context_reset(context_t context);
+ \r \r void \r context_clear(context_t context);
+ \r \r void \r context_input_write(context_t context, const char *buffer);
+ \r\rvoid \r context_ouput_read(context_t context, const char *buffer);
+ \r\r\r\r
#ifdef __cplusplus\r
-extern }\r
-#endif\r
+extern} \r
+#endif /* \r */
\r
-#endif /* !_CONTEXT_H */\r
+#endif /* !_CONTEXT_H */\r