File: sync.h

package info (click to toggle)
conntrack 1%3A1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,948 kB
  • sloc: ansic: 17,370; sh: 11,494; yacc: 1,554; lex: 186; makefile: 94
file content (28 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _SYNC_HOOKS_H_
#define _SYNC_HOOKS_H_

#include <sys/select.h>

struct nethdr;
struct cache_object;
struct fds;

struct sync_mode {
	int internal_cache_flags;
	int external_cache_flags;
	struct cache_extra *internal_cache_extra;
	struct cache_extra *external_cache_extra;

	int  (*init)(void);
	void (*kill)(void);
	int  (*local)(int fd, int type, void *data);
	int  (*recv)(const struct nethdr *net);
	void (*enqueue)(struct cache_object *obj, int type);
	void (*xmit)(void);
};

extern struct sync_mode sync_alarm;
extern struct sync_mode sync_ftfw;
extern struct sync_mode sync_notrack;

#endif