summaryrefslogtreecommitdiffstats
path: root/dispatch.h
blob: 12084aafe07a8e7071be610a3196758c52aee109 (plain)
1
2
3
4
5
6
7
8
9
10
11
enum {
	DISPATCH_BLOCK,
	DISPATCH_NONBLOCK
};

typedef void dispatch_fn(int type, int plen);

void	dispatch_init(dispatch_fn *dflt);
void	dispatch_set(int type, dispatch_fn *fn);
void	dispatch_run(int mode, int *done);
void	dispatch_protocol_error(int type, int plen);