00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 /********************************************************************* 00017 * Copyright: 00018 * GSI, Gesellschaft fuer Schwerionenforschung mbH 00019 * Planckstr. 1 00020 * D-64291 Darmstadt 00021 * Germany 00022 * created 1.12.2000 by Horst Goeringer 00023 ********************************************************************* 00024 * rawapin.h 00025 * entry definitions for client api 00026 * new version 00027 ********************************************************************** 00028 * 7. 2.2001, H.G.: rfio_gsi_query added 00029 * 26. 2.2001, H.G.: rfio_fstat, rfio_perror, rfio_serror added 00030 * for ROOT version 300-05 00031 * 15.10.2002, H.G.: remove declaration of fLogFile 00032 * 13. 1.2003, H.G.: remove definition PORT_MOVER (in rawcommn.h) 00033 * 12. 6.2003, H.G.: add externals fLogFile, piFilelist 00034 ********************************************************************** 00035 */ 00036 00037 #define USER_API 00038 #define RFILE srawAPIFile 00039 00040 #include "rawcommn.h" 00041 #include "rawclin.h" 00042 00043 /* external in some functions */ 00044 FILE *fLogFile; 00045 int* piFilelist; 00046 00047 extern RFILE *rfio_fopen( char *, char *); 00048 /* open file */ 00049 00050 extern int rfio_fread( char *, int, int, RFILE *); 00051 /* read file buffer */ 00052 00053 extern int rfio_fwrite( char *, int, int, RFILE *); 00054 /* write file buffer */ 00055 00056 extern int rfio_fclose( RFILE *); 00057 /* close file */ 00058 00059 extern int rfio_open( char *, int, int); 00060 /* open file */ 00061 00062 extern int rfio_read(int, char *, int); 00063 /* read file buffer */ 00064 00065 extern int rfio_write(int, char *, int); 00066 /* write file buffer */ 00067 00068 extern int rfio_lseek(int, int, int); 00069 /* move read/write file mark */ 00070 00071 extern int rfio_close(int); 00072 /* close file */ 00073 00074 extern int rfio_access(char *, int); 00075 /* get access status */ 00076 00077 extern int rfio_fstat(int, void*); 00078 /* get file status */ 00079 00080 extern int rfio_parse(char *, char **, char **); 00081 /* parse name to host and path */ 00082 00083 extern void rfio_perror(const char *); 00084 /* print error message */ 00085 00086 extern char *rfio_serror(); 00087 /* get error message */ 00088 00089 extern int rfio_unlink(char *); 00090 /* */ 00091 00092 extern int rfio_gsi_query(int, int, char *); 00093 /* get query info for remote file already opened */ 00094 00095 00096 //----------------------------END OF GO4 SOURCE FILE ---------------------