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