Back to index

nordugrid-arc-nox  1.1.0~rc6
RLS.h
Go to the documentation of this file.
00001 // -*- indent-tabs-mode: nil -*-
00002 
00003 #ifndef __ARC_RLS_H__
00004 #define __ARC_RLS_H__
00005 
00006 #include <list>
00007 #include <string>
00008 
00009 extern "C" {
00010 #include <globus_rls_client.h>
00011 }
00012 
00013 namespace Arc {
00014 
00015   class URL;
00016 
00017   typedef bool (*rls_lrc_callback_t)(globus_rls_handle_t *h,
00018                                      const URL& url, void *arg);
00019 
00020   bool rls_find_lrcs(const URL& url, rls_lrc_callback_t callback, void *arg);
00021   bool rls_find_lrcs(const URL& url, std::list<URL> lrcs);
00022   bool rls_find_lrcs(std::list<URL> rlis, std::list<URL> lrcs,
00023                      rls_lrc_callback_t callback, void *arg);
00024   bool rls_find_lrcs(std::list<URL> rlis, std::list<URL> lrcs, bool down,
00025                      bool up, rls_lrc_callback_t callback, void *arg);
00026 
00027 } // namespace Arc
00028 
00029 #endif //__ARC_RLS_H__