00001 #ifndef _EDG_JOBID_H
00002 #define _EDG_JOBID_H
00003
00009 #ident "$Header: /local/reps/lcgware/workload/common/jobid/jobid.h,v 1.22 2003/05/27 08:40:24 salvet Exp $"
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 typedef struct _edg_wlc_JobId *edg_wlc_JobId;
00016
00017 #define EDG_WLC_JOBID_DEFAULT_PORT 9000
00018 #define EDG_WLC_JOBID_PROTO_PREFIX "https://"
00021
00022
00033 int edg_wlc_JobIdCreate(const char * bkserver, int port, edg_wlc_JobId * jobid);
00034
00046 int edg_wlc_JobIdRecreate(const char *bkserver, int port, const char * unique, edg_wlc_JobId * jobid);
00047
00056 int edg_wlc_JobIdDup(const edg_wlc_JobId in, edg_wlc_JobId * jobid);
00057
00058
00059
00060
00061
00062 void edg_wlc_JobIdFree(edg_wlc_JobId jobid);
00063
00072 int edg_wlc_JobIdParse(const char* jobidstr, edg_wlc_JobId * jobid);
00073
00079 char* edg_wlc_JobIdUnparse(const edg_wlc_JobId jobid);
00080
00087 char* edg_wlc_JobIdGetServer(const edg_wlc_JobId jobid);
00088
00095 void edg_wlc_JobIdGetServerParts(const edg_wlc_JobId jobid, char **srvName, unsigned int *srvPort);
00096
00103 char* edg_wlc_JobIdGetUnique(const edg_wlc_JobId jobid);
00104
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108
00109 #endif