summaryrefslogtreecommitdiffstats
path: root/src/master/service-process-notify.h
blob: 04a17b0c1a064740059d3faed66eaf7684d6252f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef SERVICE_PROCESS_NOTIFY_H
#define SERVICE_PROCESS_NOTIFY_H

typedef int
service_process_notify_callback_t(int fd, struct service_process *process);

struct service_process_notify *
service_process_notify_init(int fd,
			    service_process_notify_callback_t *write_callback);
void service_process_notify_deinit(struct service_process_notify **notify);

void service_process_notify_add(struct service_process_notify *notify,
				struct service_process *process);

#endif