]> arthur.barton.de Git - netatalk.git/blobdiff - bin/megatron/megatron.h
Merge master
[netatalk.git] / bin / megatron / megatron.h
index 9190d499b164c04136aac5d37d7df826a96bd71b..c9aa8cee547ba75916a9b611e3fdb2c8aaa840d3 100644 (file)
@@ -1,8 +1,15 @@
+/*
+ * $Id: megatron.h,v 1.5 2009-10-14 01:38:28 didg Exp $
+ */
+
+#ifndef _MEGATRON_H
+#define _MEGATRON_H 1
+
 #include <atalk/adouble.h>
 
 #ifndef        STDIN
 #      define  STDIN   "-"
-#endif
+#endif /* ! STDIN */
 
 /*
     Where it matters, data stored in either of these two structs is in
@@ -30,6 +37,8 @@
 #define OPTION_NONE       (0)
 #define OPTION_HEADERONLY (1 << 0)
 #define OPTION_STDOUT     (1 << 2)
+#define OPTION_EUCJP      (1 << 3)
+#define OPTION_SJIS       (1 << 4)
 
 struct FInfo {
     u_int32_t          fdType;
@@ -81,6 +90,12 @@ struct FHeader {
 
 #ifndef S_ISDIR
 #      define S_ISDIR(s)       (( s & S_IFMT ) == S_IFDIR )
-#endif
+#endif /* ! S_ISDIR */
+
+extern char    *forkname[];
+extern char     *(*_mtoupath) ( char *);
+extern char     *(*_utompath) ( char *);
+#define mtoupath(s) (*_mtoupath)(s)
+#define utompath(s) (*_utompath)(s)
 
-extern char *mtoupath( char *);
+#endif /* _MEGATRON_H */