]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/util.h
write a .volinfo file containing volume setup to .AppleDesktop, for shell utils and...
[netatalk.git] / include / atalk / util.h
index 11074d3fa745ce4bbd05c07945e56e3b98cf6b79..2650f2d51cb363c6966a2059533fc5db8f94a4ce 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: util.h,v 1.7.10.6 2004-05-04 15:38:26 didg Exp $
+ * $Id: util.h,v 1.7.10.7 2004-06-09 01:15:19 bfernhomberg Exp $
  */
 
 #ifndef _ATALK_UTIL_H
@@ -11,6 +11,7 @@
 #include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 #include <netatalk/at.h>
+#include <atalk/unicode.h>
 
 /* exit error codes */
 #define EXITERR_CLNT 1  /* client related error */
@@ -80,4 +81,29 @@ extern void *mod_symbol  __P((void *, const char *));
 #define mod_close(a)     dlclose(a)
 #endif /* ! HAVE_DLFCN_H */
 
+
+/* volinfo for shell utilities */
+
+#define VOLINFOFILE ".volinfo"
+
+struct volinfo {
+    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 */
+    char                *(*ad_path)(const char *, int);
+    char                *v_dbd_host;
+    int                 v_dbd_port;
+};
+
+extern int loadvolinfo __P((char *path, struct volinfo *vol));
+extern int vol_load_charsets __P(( struct volinfo *vol));
+
 #endif