summaryrefslogtreecommitdiff
path: root/nslcd/hackers_watch.h
blob: 156813e47c4ce6188bd9d5e088781f2bef5f1992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _HACKERS_WATCH_H
#define _HACKERS_WATCH_H

#include <pthread.h>

struct session {
	pthread_rwlock_t lock;
	size_t cnt;
	struct passwd *users;
	/* The following are only for writers */
	char *yamldir;
	int *in_user_wds;
	int in_fd;
	int in_wd_home;
	int in_wd_yaml;
};

int	hackers_init(const char *yamldir, struct session *session);
int	hackers_worker(struct session *session);

#endif