From: <n-...@us...> - 2007-01-30 13:03:18
|
Revision: 3527 http://gfarm.svn.sourceforge.net/gfarm/?rev=3527&view=rev Author: n-soda Date: 2007-01-30 05:03:10 -0800 (Tue, 30 Jan 2007) Log Message: ----------- mark new branch point Added Paths: ----------- gfarm/tags/gfarm_v1_cvs_base/lib/libgfarm/gfarm/agent_wrap.h Copied: gfarm/tags/gfarm_v1_cvs_base/lib/libgfarm/gfarm/agent_wrap.h (from rev 3526, gfarm/trunk/lib/libgfarm/gfarm/agent_wrap.h) =================================================================== --- gfarm/tags/gfarm_v1_cvs_base/lib/libgfarm/gfarm/agent_wrap.h (rev 0) +++ gfarm/tags/gfarm_v1_cvs_base/lib/libgfarm/gfarm/agent_wrap.h 2007-01-30 13:03:10 UTC (rev 3527) @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +void gfarm_agent_disable(void); +char *gfarm_agent_check(void); + +enum agent_type { NO_AGENT, UNIX_DOMAIN, INET }; + +char *gfarm_agent_type_set(enum agent_type); +enum agent_type gfarm_agent_type_get(void); +char *gfarm_agent_name_set(char *); +char *gfarm_agent_name_get(void); +char *gfarm_agent_port_set(char *); +int gfarm_agent_port_get(void); +char *gfarm_agent_sock_path_set(char *); +void gfarm_agent_name_clear(void); +void gfarm_agent_port_clear(void); +void gfarm_agent_sock_path_clear(void); + +char *gfarm_agent_connect(void); +char *gfarm_agent_disconnect(void); + +/* for direct access without agent */ + +char *gfarm_i_path_info_get(const char *, struct gfarm_path_info *); +char *gfarm_i_path_info_set(char *, struct gfarm_path_info *); +char *gfarm_i_path_info_replace(char *, struct gfarm_path_info *); +char *gfarm_i_path_info_remove(const char *); +char *gfs_i_realpath_canonical(const char *, char **); +char *gfs_i_get_ino(const char *, unsigned long *); +char *gfs_i_opendir(const char *, GFS_Dir *); +char *gfs_i_readdir(GFS_Dir, struct gfs_dirent **); +char *gfs_i_closedir(GFS_Dir); +char *gfs_i_dirname(GFS_Dir); +char *gfs_i_seekdir(GFS_Dir, file_offset_t); +char *gfs_i_telldir(GFS_Dir, file_offset_t *); +void gfs_i_uncachedir(void); + +/* hostcache */ + +char *gfarm_cache_host_info_get(const char *, struct gfarm_host_info *); +char *gfarm_cache_host_info_get_by_name_alias( + const char *, struct gfarm_host_info *); +char *gfarm_cache_host_info_remove_hostaliases(const char *); +char *gfarm_cache_host_info_set(char *, struct gfarm_host_info *); +char *gfarm_cache_host_info_replace(char *, struct gfarm_host_info *); +char *gfarm_cache_host_info_remove(const char *); +char *gfarm_cache_host_info_get_all(int *, struct gfarm_host_info **); +char *gfarm_cache_host_info_get_allhost_by_architecture(const char *, + int *, struct gfarm_host_info **); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |