00001
00002
00003
00004
00005
00006
00007 #ifndef V_file_h
00008 #define V_file_h 1
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <viaio/Vlib.h>
00026
00027
00028 #ifdef NULL
00029 #undef NULL
00030 #endif
00031 #include <stdio.h>
00032 #ifndef NULL
00033 #define NULL 0
00034 #endif
00035
00036
00037 #include <X11/Xfuncproto.h>
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00043
00044
00045
00046
00047
00048 #define VFileHeader "V-data"
00049 #define VFileVersion 2
00050 #define VFileDelimiter "\f\n"
00051
00052
00053
00054
00055
00056
00057 #define VMaxAttrNameLength 256
00058
00059
00060
00061
00062
00063
00064 typedef VBoolean VReadFileFilterProc (
00065 #if NeedFunctionPrototypes
00066 VBundle ,
00067 VRepnKind
00068 #endif
00069 );
00070
00071
00072
00073
00074
00075
00076
00077
00078 extern FILE *VOpenInputFile (
00079 #if NeedFunctionPrototypes
00080 VStringConst ,
00081 VBoolean
00082 #endif
00083 );
00084
00085
00086 extern FILE *VOpenOutputFile (
00087 #if NeedFunctionPrototypes
00088 VStringConst ,
00089 VBoolean
00090 #endif
00091 );
00092
00093
00094 extern int VReadObjects (
00095 #if NeedFunctionPrototypes
00096 FILE * ,
00097 VRepnKind ,
00098 VAttrList * ,
00099 VPointer **
00100 #endif
00101 );
00102
00103
00104 extern VAttrList VReadFile (
00105 #if NeedFunctionPrototypes
00106 FILE * ,
00107 VReadFileFilterProc *
00108 #endif
00109 );
00110
00111
00112 extern VBoolean VWriteObjects (
00113 #if NeedFunctionPrototypes
00114 FILE * ,
00115 VRepnKind ,
00116 VAttrList ,
00117 int ,
00118 VPointer []
00119 #endif
00120 );
00121
00122
00123 extern VBoolean VWriteFile (
00124 #if NeedFunctionPrototypes
00125 FILE * ,
00126 VAttrList
00127 #endif
00128 );
00129
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133
00134 #endif