summaryrefslogtreecommitdiffstats
path: root/src/lib/ioloop-iolist.h
blob: 24fa87191e2d30224b4ce69aac2b8e8bdb10fb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef IOLOOP_IOLIST_H
#define IOLOOP_IOLIST_H

enum {
	IOLOOP_IOLIST_INPUT,
	IOLOOP_IOLIST_OUTPUT,
	IOLOOP_IOLIST_ERROR,

	IOLOOP_IOLIST_IOS_PER_FD
};

struct io_list {
	struct io_file *ios[IOLOOP_IOLIST_IOS_PER_FD];
};

bool ioloop_iolist_add(struct io_list *list, struct io_file *io);
bool ioloop_iolist_del(struct io_list *list, struct io_file *io);

#endif