Main Page | Modules | Data Structures | File List | Data Fields | Globals

Notification Id (NotifId)

NotifId description and handling. More...

Typedefs

typedef void * edg_wll_NotifId

Functions

int edg_wll_NotifIdCreate (const char *server, int port, edg_wll_NotifId *notifid)
void edg_wll_NotifIdFree (edg_wll_NotifId notifid)
int edg_wll_NotifIdParse (const char *notifidstr, edg_wll_NotifId *notifid)
char * edg_wll_NotifIdUnparse (const edg_wll_NotifId notifid)
void edg_wll_NotifIdGetServerParts (const edg_wll_NotifId notifid, char **srvName, unsigned int *srvPort)
char * edg_wll_NotifIdGetUnique (const edg_wll_NotifId notifid)
int edg_wll_NotifIdSetUnique (edg_wll_NotifId *notifid, const char *unique)
edg_wll_NotifIdedg_wll_NotifIdDup (const edg_wll_NotifId src)

Detailed Description

NotifId description and handling.


Typedef Documentation

typedef void* edg_wll_NotifId
 

Notification handle. Refers to a particular registration for receiving notifications.


Function Documentation

int edg_wll_NotifIdCreate const char *  server,
int  port,
edg_wll_NotifId notifid
 

Create a Job ID.

Parameters:
[in] server notification server hostname
[in] port port of the notification server
[out] notifid newly created NotifId
Return values:
0 for success
EINVAL invalid notification server
ENOMEM if memory allocation fails

edg_wll_NotifId* edg_wll_NotifIdDup const edg_wll_NotifId  src  ) 
 

Duplicate a NotifId

Parameters:
[in] src a notifid to duplicate
Return values:
pointer to allocated memory containg the duplicated notifid
NULL if memory allocation fails or notifid is invalid

void edg_wll_NotifIdFree edg_wll_NotifId  notifid  ) 
 

Free the NotifId structure

Parameters:
[in] notifid for dealocation

void edg_wll_NotifIdGetServerParts const edg_wll_NotifId  notifid,
char **  srvName,
unsigned int *  srvPort
 

Extract notification server address (address:port)

Parameters:
[in] notifid NotifId from which the address should be extracted
[in,out] srvName pointer where to return server name
[in,out] srvPort pointer where to return server port

char* edg_wll_NotifIdGetUnique const edg_wll_NotifId  notifid  ) 
 

Extract unique string

Parameters:
[in] notifid NotifId
Return values:
pointer to allocated unique string representing jobid
NULL if jobid is 0 or memory allocation fails

int edg_wll_NotifIdParse const char *  notifidstr,
edg_wll_NotifId notifid
 

Parse the NotifId string and creates NotifId structure

Parameters:
[in] notifidstr string representation of NotifId
[out] notifid parsed NotifId
Return values:
0 for success
EINVAL notifidstr can't be parsed
ENOMEM if memory allocation fails

int edg_wll_NotifIdSetUnique edg_wll_NotifId notifid,
const char *  unique
 

Recreate a NotifId by a new unique string

Parameters:
[in] unique string which represent created notifid (if NULL then new one is created)
[in,out] notifid newly created NotifId
Return values:
0 success
EINVAL invalid NotifId
ENOMEM if memory allocation fails

char* edg_wll_NotifIdUnparse const edg_wll_NotifId  notifid  ) 
 

Unparse the NotifId (produce the string form of NotifId).

Parameters:
[in] notifid NotifId to be converted to string
Returns:
allocated string which represents the NotifId


Generated on Tue May 8 00:32:30 2007 for Glite LB Client: C - Interface by  doxygen 1.3.9.1