netatalk  4.4.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
fce_api_internal.h
Go to the documentation of this file.
1
6
7#ifndef _FCE_API_INTERNAL_H
8#define _FCE_API_INTERNAL_H
9
10#include <stdbool.h>
11
12#include <atalk/fce_api.h>
13
14#define FCE_MAX_UDP_SOCKS 5
15#define FCE_SOCKET_RETRY_DELAY_S 600
16#define FCE_HISTORY_LEN 10
17#define MAX_COALESCE_TIME_MS 1000
18
19#define FCE_COALESCE_CREATE (1 << 0)
20#define FCE_COALESCE_DELETE (1 << 1)
21#define FCE_COALESCE_ALL (FCE_COALESCE_CREATE | FCE_COALESCE_DELETE)
22
23struct udp_entry {
24 int sock;
25 char *addr;
26 char *port;
28 struct sockaddr_storage sockaddr;
30};
31
34 char fce_h_path[MAXPATHLEN + 1];
35 struct timeval fce_h_tv;
36};
37
39 time_t time;
40 char path[MAXPATHLEN + 1];
41};
42
43#define PACKET_HDR_LEN (sizeof(struct fce_packet) - FCE_MAX_PATH_LEN)
44
45bool fce_handle_coalescation(int event, const char *path);
46void fce_initialize_history(void);
47
48
49#endif /* _FCE_API_INTERNAL_H */
50
API calls for file change event api.
uint32_t fce_ev_t
Definition fce_api.h:130
void fce_initialize_history(void)
Definition fce_util.c:87
bool fce_handle_coalescation(int event, const char *path)
Definition fce_util.c:94
Definition fce_api_internal.h:38
time_t time
Definition fce_api_internal.h:39
char path[MAXPATHLEN+1]
Definition fce_api_internal.h:40
Definition fce_api_internal.h:32
char fce_h_path[MAXPATHLEN+1]
Definition fce_api_internal.h:34
fce_ev_t fce_h_event
Definition fce_api_internal.h:33
struct timeval fce_h_tv
Definition fce_api_internal.h:35
Definition include/atalk/directory.h:81
Definition fce_api_internal.h:23
char * port
Definition fce_api_internal.h:26
time_t next_try_on_error
Definition fce_api_internal.h:29
int sock
Definition fce_api_internal.h:24
struct sockaddr_storage sockaddr
Definition fce_api_internal.h:28
struct addrinfo addrinfo
Definition fce_api_internal.h:27
char * addr
Definition fce_api_internal.h:25