]> arthur.barton.de Git - netatalk.git/blob - include/atalk/volinfo.h
5c7a59974b357663d356dadd856f42c96537cb89
[netatalk.git] / include / atalk / volinfo.h
1 /*
2  * $Id: volinfo.h,v 1.9 2009-12-01 16:36:14 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     char                *(*ad_path)(const char *, int);
34     char                *v_dbd_host;
35     int                 v_dbd_port;
36 };
37
38 extern const vol_opt_name_t vol_opt_names[];
39 extern const vol_opt_name_t vol_opt_casefold[];
40
41 extern int loadvolinfo(char *path, struct volinfo *vol);
42 extern int savevolinfo(const struct vol *vol, const char *Cnid_srv, const char *Cnid_port);
43 extern int vol_load_charsets(struct volinfo *vol);
44
45 #endif