Fix the wqueue header, and update example
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user