/** * @file getMiscSvrInfo.h * */ /*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* getMiscSvrInfo.h - This file may be generated by a program or script */ #ifndef GET_MISC_SVR_INFO_H #define GET_MISC_SVR_INFO_H #include "rods.h" #include "rcMisc.h" #include "procApiRequest.h" #include "apiNumber.h" /* there is no input struct. Therefore, the inPackInstruct is NULL */ /* definition for server type */ #define RCAT_NOT_ENABLED 0 #define RCAT_ENABLED 1 /* miscSvrInfo_t is the output struct */ /** * \var miscSvrInfo_t * \brief Output struct for the rcGetMiscSvrInfo API which can be used * get the system information of the connected server. * \since 1.0 * * \remark none * * \note * Elements of structFileExtAndRegInp_t: * \li int serverType - The type of iRODS server. It can be RCAT_ENABLED * or RCAT_NOT_ENABLED. * \li uint serverBootTime - the time when the server is started in epoch time. * \li relVersion[NAME_LEN] - The release version number * \li apiVersion[NAME_LEN] - The API version number. Important for API * compatibility. * \li char rodsZone[NAME_LEN] - The iRODS zone of this server. * \sa none * \bug no known bugs */ typedef struct MiscSvrInfo { int serverType; /* RCAT_ENABLED or RCAT_NOT_ENABLED */ uint serverBootTime; char relVersion[NAME_LEN]; /* the release version number */ char apiVersion[NAME_LEN]; /* the API version number */ char rodsZone[NAME_LEN]; /* the zone of this server */ } miscSvrInfo_t; #define MiscSvrInfo_PI "int serverType; int serverBootTime; str relVersion[NAME_LEN]; str apiVersion[NAME_LEN]; str rodsZone[NAME_LEN];" #if defined(RODS_SERVER) #define RS_GET_MISC_SVR_INFO rsGetMiscSvrInfo /* prototype for the server handler */ int rsGetMiscSvrInfo (rsComm_t *rsComm, miscSvrInfo_t **outSvrInfo); #else #define RS_GET_MISC_SVR_INFO NULL #endif #ifdef __cplusplus extern "C" { #endif /* prototype for the client call */ /* rcGetMiscSvrInfo - get miscellenous server info * Input : * rcComm_t *conn - The connection handle from the rcConnect () call * Output : * miscSvrInfo_t **outSvrInfo - A struct that contains the requested * info. * Returned value - 0 = no error. less than zero ==> error. */ int rcGetMiscSvrInfo (rcComm_t *conn, miscSvrInfo_t **outSvrInfo); #ifdef __cplusplus } #endif #endif /* GET_MISC_SVR_INFO_H */