netatalk: cmd_dbd.h Source File

netatalk 4.5.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cmd_dbd.h
Go to the documentation of this file.
1#ifndef CMD_DBD_H
2#define CMD_DBD_H
3
4#include <limits.h>
5#include <signal.h>
6
7#include <atalk/netatalk_conf.h>
8
9 enum logtype {LOGSTD, LOGDEBUG};
10 typedef unsigned int dbd_flags_t;
11
12#define DBD_FLAGS_SCAN (1 << 0)
13#define DBD_FLAGS_FORCE (1 << 1)
14#define DBD_FLAGS_STATS (1 << 2)
15#define DBD_FLAGS_V2TOEA (1 << 3)
16#define DBD_FLAGS_VERBOSE (1 << 4)
17#define DBD_FLAGS_STRIP_AD (1 << 5)
18
19#define ADv2_DIRNAME ".AppleDouble"
20
21#define DIR_DOT_OR_DOTDOT(a) \
22 ((strcmp(a, ".") == 0) || (strcmp(a, "..") == 0))
23
24extern volatile sig_atomic_t alarmed;
25
26#ifdef __GNUC__
27void dbd_log(enum logtype lt, const char *fmt, ...)
28__attribute__((__format__(__printf__, 2, 3)));
29#else
30void dbd_log(enum logtype lt, const char *fmt, ...);
31#endif
32int cmd_dbd_scanvol(struct vol *vol, dbd_flags_t flags);
33
34#endif /* CMD_DBD_H */
flags
static dbd_flags_t flags
Definition cmd_dbd.c:43
alarmed
volatile sig_atomic_t alarmed
Definition cmd_dbd.c:40
dbd_flags_t
unsigned int dbd_flags_t
Definition cmd_dbd.h:10
logtype
logtype
Definition cmd_dbd.h:9
LOGDEBUG
@ LOGDEBUG
Definition cmd_dbd.h:9
LOGSTD
@ LOGSTD
Definition cmd_dbd.h:9
dbd_log
void dbd_log(enum logtype lt, const char *fmt,...)
Definition cmd_dbd.c:120
cmd_dbd_scanvol
int cmd_dbd_scanvol(struct vol *vol, dbd_flags_t flags)
Definition cmd_dbd_scanvol.c:957
netatalk_conf.h
vol
Definition include/atalk/volume.h:33