• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
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
11typedef struct {
12    const u_int32_t option;
13    const char      *name;
14} vol_opt_name_t;
15
16struct volinfo {
17    int                 retaincount;
18    int                 malloced;
19
20    char                *v_name;
21    char                *v_path;
22    int                 v_flags;
23    int                 v_casefold;
24    char                *v_cnidscheme;
25    char                *v_dbpath;
26    char                *v_volcodepage;
27    charset_t           v_volcharset;
28    char                *v_maccodepage;
29    charset_t           v_maccharset;
30    int                 v_adouble;  /* default adouble format */
31    int                 v_ad_options;
32    int                 v_vfs_ea;
33    char                *(*ad_path)(const char *, int);
34    char                *v_dbd_host;
35    char                *v_dbd_port;
36};
37
38struct volinfo *allocvolinfo(char *path);
39extern int loadvolinfo(char *path, struct volinfo *vol);
40extern void retainvolinfo(struct volinfo *vol);
41extern int closevolinfo(struct volinfo *vol);
42extern int savevolinfo(const struct vol *vol, const char *Cnid_srv, const char *Cnid_port);
43extern int vol_load_charsets(struct volinfo *vol);
44
45#endif
46