netatalk  4.4.0dev
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
9#include "dbif.h"
10
12typedef unsigned int dbd_flags_t;
13
14#define DBD_FLAGS_SCAN (1 << 0)
15#define DBD_FLAGS_FORCE (1 << 1)
16#define DBD_FLAGS_STATS (1 << 2)
17#define DBD_FLAGS_V2TOEA (1 << 3) /* Convert adouble:v2 to adouble:ea */
18#define DBD_FLAGS_VERBOSE (1 << 4)
19
20#define ADv2_DIRNAME ".AppleDouble"
21
22#define DIR_DOT_OR_DOTDOT(a) \
23 ((strcmp(a, ".") == 0) || (strcmp(a, "..") == 0))
24
25extern volatile sig_atomic_t alarmed;
26
27void dbd_log(enum logtype lt, char *fmt, ...);
29
30#endif /* CMD_DBD_H */
static dbd_flags_t flags
Definition cmd_dbd.c:45
unsigned int dbd_flags_t
Definition cmd_dbd.h:12
@ LOGDEBUG
Definition cmd_dbd.h:11
@ LOGSTD
Definition cmd_dbd.h:11
int cmd_dbd_scanvol(struct vol *vol, dbd_flags_t flags)
Definition cmd_dbd_scanvol.c:999
void dbd_log(enum logtype lt, char *fmt,...)
Definition cmd_dbd.c:121
logtype
Definition nad.h:40
static volatile sig_atomic_t alarmed
Definition nad_cp.c:97
Definition include/atalk/volume.h:32