00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifdef SWIG
00014 %module XrdClientAdmin
00015 %include typemaps.i
00016
00017
00018
00019
00020 %typemap(argout) char *OUTPUT {
00021 $result = sv_newmortal();
00022 sv_setnv($result, arg2);
00023 argvi++;
00024 }
00025
00026
00027
00028 %typemap(in,numinputs=0) char *OUTPUT(char junk) {
00029 $1 = &junk;
00030 }
00031
00032 %apply char *OUTPUT { char *ans };
00033
00034
00035
00036 %apply long *OUTPUT {long *id};
00037 %apply long long *OUTPUT {long long *size};
00038 %apply long *OUTPUT {long *flags};
00039 %apply long *OUTPUT {long *modtime};
00040
00041 %{
00042 #include "XrdClient/XrdClientAdmin_c.hh"
00043 %}
00044
00045 #endif
00046
00047 extern "C" {
00048
00049
00050
00051
00052 bool XrdInitialize(const char *url, const char *EnvValues);
00053 bool XrdTerminate();
00054
00055
00056 char *XrdSysStatX(const char *paths_list);
00057
00058 char *XrdExistFiles(const char *filepaths);
00059 char *XrdExistDirs(const char *filepaths);
00060 char *XrdIsFileOnline(const char *filepaths);
00061
00062 bool XrdMv(const char *fileSrc, const char *fileDest);
00063 bool XrdMkdir(const char *dir, int user, int group, int other);
00064 bool XrdChmod(const char *file, int user, int group, int other);
00065 bool XrdRm(const char *file);
00066 bool XrdRmdir(const char *path);
00067 bool XrdPrepare(const char *filepaths, unsigned char opts, unsigned char prty);
00068 char *XrdDirList(const char *dir);
00069 char *XrdGetChecksum(const char *path);
00070 char *XrdGetCurrentHost();
00071
00072 bool XrdStat(const char *fname, long *id, long long *size, long *flags, long *modtime);
00073 }