--- /dev/null
+/*\r
+ * include/witer.h - type representing the object used to write to the stdin \r
+ * (redirected) of a command.\r
+ *\r
+ * Copyright 2008,2009 Martin Quinson, Malek Cherier All right reserved. \r
+ *\r
+ * This program is free software; you can redistribute it and/or modify it \r
+ * under the terms of the license (GNU LGPL) which comes with this package.\r
+ *\r
+ * Purpose:\r
+ * This file contains all the declarations of the functions related with\r
+ * the tesh writer type.\r
+ *\r
+ */\r
+ \r
+#ifndef __WRITER_H\r
+#define __WRITER_H\r
+\r
+#include <com.h>\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+/*! \brief writer_new - create a new writer.\r
+ *\r
+ * \param command The command owning the stdin written by the writer.\r
+ *\r
+ * \return If successful the function returns the newly created\r
+ * writer. Otherwise the function returns NULL and sets the\r
+ * global variable errno with the appropiate error code.\r
+ *\r
+ * errors :\r
+ * [EINVAL] if the parameter is invalid.\r
+ * [ENOMEM] if the system has not enough space to allocate\r
+ * the writer.\r
+ */\r
+writer_t\r
+writer_new(command_t command);\r
+\r
+\r
+/*! \brief writer_free - destroy a writer object.\r
+ *\r
+ * \param ptr A pointer to the writer object to destroy.\r
+ *\r
+ * \return If successful the function returns the 0. Otherwise \r
+ * the function returns -1 and sets the global variable \r
+ * errno with the appropiate error code.\r
+ *\r
+ * errors :\r
+ * [EINVAL] if the writer object pointed to by the parameter ptr is invalid.\r
+ * \r
+ * \r
+ */\r
+int\r
+writer_free(writer_t* ptr);\r
+\r
+void\r
+writer_write(writer_t writer);\r
+\r
+void\r
+writer_wait(writer_t writer);\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif /* !__WRITER_H */\r