netatalk  4.5.0
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
8
10typedef 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
33
34#endif /* CMD_DBD_H */
static dbd_flags_t flags
Definition cmd_dbd.c:43
volatile sig_atomic_t alarmed
Definition cmd_dbd.c:40
unsigned int dbd_flags_t
Definition cmd_dbd.h:10
logtype
Definition cmd_dbd.h:9
@ LOGDEBUG
Definition cmd_dbd.h:9
@ LOGSTD
Definition cmd_dbd.h:9
void dbd_log(enum logtype lt, const char *fmt,...)
Definition cmd_dbd.c:120
int cmd_dbd_scanvol(struct vol *vol, dbd_flags_t flags)
Definition cmd_dbd_scanvol.c:957
Definition include/atalk/volume.h:33