libcoio/coioimpl.h
Moritz Bitsch c3d1cef5e7 indent sources
fix style before adding more code
2015-03-25 21:16:49 +01:00

32 lines
503 B
C

#ifndef COIOIMPL_H
#define COIOIMPL_
#include "coro.h"
#include "coio.h"
typedef struct CoioTaskList CoioTaskList;
struct CoioTask {
coro_context ctx;
struct coro_stack stk;
coio_func func;
void *arg;
int done;
/* linked list support */
CoioTask *next;
CoioTask *prev;
};
struct CoioTaskList {
CoioTask *head;
CoioTask *tail;
};
void coio_add (CoioTaskList * lst, CoioTask * task);
void coio_del (CoioTaskList * lst, CoioTask * task);
#endif