]> arthur.barton.de Git - netatalk.git/blob - include/atalk/volinfo.h
Merge from branch-2-1
[netatalk.git] / include / atalk / volinfo.h
1 #ifndef _ATALK_VOLINFO_H
2 #define _ATALK_VOLINFO_H 1
3
4 #include <atalk/unicode.h>
5 #include <atalk/volume.h>
6
7 /* volinfo for shell utilities */
8 #define VOLINFODIR  ".AppleDesktop"
9 #define VOLINFOFILE ".volinfo"
10
11 typedef struct {
12     const u_int32_t option;
13     const char      *name;
14 } vol_opt_name_t;
15
16 struct volinfo {
17     char                *v_name;
18     char                *v_path;
19     int                 v_flags;
20     int                 v_casefold;
21     char                *v_cnidscheme;
22     char                *v_dbpath;
23     char                *v_volcodepage;
24     charset_t           v_volcharset;
25     char                *v_maccodepage;
26     charset_t           v_maccharset;
27     int                 v_adouble;  /* default adouble format */
28     int                 v_ad_options;
29     int                 v_vfs_ea;
30     char                *(*ad_path)(const char *, int);
31     char                *v_dbd_host;
32     char                *v_dbd_port;
33 };
34
35 extern int loadvolinfo(char *path, struct volinfo *vol);
36 extern int savevolinfo(const struct vol *vol, const char *Cnid_srv, const char *Cnid_port);
37 extern int vol_load_charsets(struct volinfo *vol);
38
39 #endif