Your IP : 216.73.216.48


Current Path : /usr/X11R6/include/atalk/
Upload File :
Current File : //usr/X11R6/include/atalk/volinfo.h

#ifndef _ATALK_VOLINFO_H
#define _ATALK_VOLINFO_H 1

#include <atalk/unicode.h>
#include <atalk/volume.h>

/* volinfo for shell utilities */
#define VOLINFODIR  ".AppleDesktop"
#define VOLINFOFILE ".volinfo"

typedef struct {
    const u_int32_t option;
    const char      *name;
} vol_opt_name_t;

struct volinfo {
    int                 retaincount;
    int                 malloced;

    char                *v_name;
    char                *v_path;
    int                 v_flags;
    int                 v_casefold;
    char                *v_cnidscheme;
    char                *v_dbpath;
    char                *v_volcodepage;
    charset_t           v_volcharset;
    char                *v_maccodepage;
    charset_t           v_maccharset;
    int                 v_adouble;  /* default adouble format */
    int                 v_ad_options;
    int                 v_vfs_ea;
    char                *(*ad_path)(const char *, int);
    char                *v_dbd_host;
    char                *v_dbd_port;
};

struct volinfo *allocvolinfo(char *path);
extern int loadvolinfo(char *path, struct volinfo *vol);
extern void retainvolinfo(struct volinfo *vol);
extern int closevolinfo(struct volinfo *vol);
extern int savevolinfo(const struct vol *vol, const char *Cnid_srv, const char *Cnid_port);
extern int vol_load_charsets(struct volinfo *vol);

#endif