netatalk 4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cnid_bdb_private.h
Go to the documentation of this file.
1
5
6
7#ifndef _ATALK_CNID_DBD_PRIVATE_H
8#define _ATALK_CNID_DBD_PRIVATE_H 1
9
10#include <sys/param.h>
11#include <sys/stat.h>
12
13#include <atalk/adouble.h>
14#include <atalk/cnid_private.h>
15
16#define CNID_DBD_OP_OPEN 0x01
17#define CNID_DBD_OP_CLOSE 0x02
18#define CNID_DBD_OP_ADD 0x03
19#define CNID_DBD_OP_GET 0x04
20#define CNID_DBD_OP_RESOLVE 0x05
21#define CNID_DBD_OP_LOOKUP 0x06
22#define CNID_DBD_OP_UPDATE 0x07
23#define CNID_DBD_OP_DELETE 0x08
24#define CNID_DBD_OP_MANGLE_ADD 0x09
25#define CNID_DBD_OP_MANGLE_GET 0x0a
26#define CNID_DBD_OP_GETSTAMP 0x0b
27#define CNID_DBD_OP_REBUILD_ADD 0x0c
28#define CNID_DBD_OP_SEARCH 0x0d
29#define CNID_DBD_OP_WIPE 0x0e
30
31#define CNID_DBD_RES_OK 0x00
32#define CNID_DBD_RES_NOTFOUND 0x01
33#define CNID_DBD_RES_ERR_DB 0x02
34#define CNID_DBD_RES_ERR_MAX 0x03
35#define CNID_DBD_RES_ERR_DUPLCNID 0x04
36#define CNID_DBD_RES_SRCH_CNT 0x05
37#define CNID_DBD_RES_SRCH_DONE 0x06
38
39#define DBD_MAX_SRCH_RSLTS 100
40#define DBD_NUM_OPEN_ARGS 3
41
42 struct cnid_dbd_rqst {
43 int op;
44 cnid_t cnid;
45 dev_t dev;
46 ino_t ino;
47 uint32_t type;
48 cnid_t did;
49 const char *name;
50 size_t namelen;
51};
52
53 struct cnid_dbd_rply {
54 int result;
55 cnid_t cnid;
56 cnid_t did;
57 char *name;
58 size_t namelen;
59};
60
61 typedef struct CNID_bdb_private {
62 struct vol *vol;
63 int fd;
64 char stamp[ADEDLEN_PRIVSYN];
65 char *client_stamp;
66 size_t stamp_size;
67 int notfirst;
68 int changed;
69} CNID_bdb_private;
70
71
72#endif /* include/atalk/cnid_dbd.h */
adouble.h
Part of Netatalk's AppleDouble implementatation.
ADEDLEN_PRIVSYN
#define ADEDLEN_PRIVSYN
Definition adouble.h:112
cnid_t
uint32_t cnid_t
Definition adouble.h:156
cnid_private.h
CNID_bdb_private
Definition cnid_bdb_private.h:61
CNID_bdb_private::stamp
char stamp[ADEDLEN_PRIVSYN]
Definition cnid_bdb_private.h:64
CNID_bdb_private::changed
int changed
Definition cnid_bdb_private.h:68
CNID_bdb_private::notfirst
int notfirst
Definition cnid_bdb_private.h:67
CNID_bdb_private::client_stamp
char * client_stamp
Definition cnid_bdb_private.h:65
CNID_bdb_private::vol
struct vol * vol
Definition cnid_bdb_private.h:62
CNID_bdb_private::fd
int fd
Definition cnid_bdb_private.h:63
CNID_bdb_private::stamp_size
size_t stamp_size
Definition cnid_bdb_private.h:66
cnid_dbd_rply
Definition cnid_bdb_private.h:53
cnid_dbd_rply::name
char * name
Definition cnid_bdb_private.h:57
cnid_dbd_rply::cnid
cnid_t cnid
Definition cnid_bdb_private.h:55
cnid_dbd_rply::did
cnid_t did
Definition cnid_bdb_private.h:56
cnid_dbd_rply::namelen
size_t namelen
Definition cnid_bdb_private.h:58
cnid_dbd_rply::result
int result
Definition cnid_bdb_private.h:54
cnid_dbd_rqst
Definition cnid_bdb_private.h:42
cnid_dbd_rqst::namelen
size_t namelen
Definition cnid_bdb_private.h:50
cnid_dbd_rqst::ino
ino_t ino
Definition cnid_bdb_private.h:46
cnid_dbd_rqst::did
cnid_t did
Definition cnid_bdb_private.h:48
cnid_dbd_rqst::name
const char * name
Definition cnid_bdb_private.h:49
cnid_dbd_rqst::cnid
cnid_t cnid
Definition cnid_bdb_private.h:44
cnid_dbd_rqst::type
uint32_t type
Definition cnid_bdb_private.h:47
cnid_dbd_rqst::dev
dev_t dev
Definition cnid_bdb_private.h:45
cnid_dbd_rqst::op
int op
Definition cnid_bdb_private.h:43