00001 #pragma once
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00026 #include <stdlib.h>
00027 #include <dirent.h>
00028 #include <glib.h>
00029 #include "../gfal_common_filedescriptor.h"
00030
00031 typedef struct _gfal_srm_opendir_handle{
00032 char surl[GFAL_URL_MAX_LEN];
00033 char endpoint[GFAL_URL_MAX_LEN];
00034 off_t resu_offset;
00035 struct srmv2_mdfilestatus *srm_ls_resu;
00036 struct dirent current_readdir;
00037 off_t dir_offset;
00038 }* gfal_srm_opendir_handle;
00039
00040 gfal_file_handle gfal_srm_opendirG(plugin_handle handle, const char* path, GError ** err);
00041
00042 int gfal_srm_closedirG(plugin_handle handle, gfal_file_handle fh, GError** err);