Fix the wqueue header, and update example

This commit is contained in:
Nils O. Selåsdal
2015-11-12 18:05:41 +01:00
parent 74701edf31
commit 6a2ecdf2f4
2 changed files with 24 additions and 13 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ enum UC_WQ_RESULT {
/** INdicates the MBuf was fully processed and can be freed*/
UC_WQ_DONE = 1,
/** Indicates the MBuf was not fully processed, and will not be freed */
UC_WQ_UC_PARTIAL = 0,
UC_WQ_PARTIAL = 0,
/** Indicats an error and further processing of the wqueue should not be done*/
UC_WQ_ABORT = -1
};
@@ -38,7 +38,7 @@ enum UC_WQ_RESULT {
* for this event.
*
*/
typedef UC_WQ_RESULT (*wqueue_write_cb)(struct IOMux *mux, struct IOMuxFD *fd, struct MBuf *mbuf);
typedef enum UC_WQ_RESULT (*wqueue_write_cb)(struct IOMux *mux, struct IOMuxFD *fd, struct MBuf *mbuf);
/**
* Callback when read events are indicated.
@@ -49,7 +49,7 @@ typedef UC_WQ_RESULT (*wqueue_write_cb)(struct IOMux *mux, struct IOMuxFD *fd, s
* @param mux associated IOMux
* @param the fd of the current wqueue
*/
typedef UC_WQ_RESULT (*wqueue_read_cb)(struct IOMux *mux, struct IOMuxFD *fd);
typedef enum UC_WQ_RESULT (*wqueue_read_cb)(struct IOMux *mux, struct IOMuxFD *fd);
/** Represents a queue of data to write.
*/