CyberLink for C

caction.c File Reference

#include <cybergarage/upnp/caction.h>
#include <cybergarage/util/clog.h>

Functions

static void cg_upnp_action_initchildnodes (CgUpnpAction *action)
static void cg_upnp_action_initargumentlist (CgUpnpAction *action)
CgUpnpAction * cg_upnp_action_new ()
void cg_upnp_action_delete (CgUpnpAction *action)
void cg_upnp_action_setactionnode (CgUpnpAction *action, CgXmlNode *node)
CgUpnpArgument * cg_upnp_action_getargumentbyname (CgUpnpAction *action, char *name)
char * cg_upnp_action_getargumentvaluebyname (CgUpnpAction *action, char *name)
BOOL cg_upnp_action_setargumentvaluebyname (CgUpnpAction *action, char *name, char *value)

Function Documentation

void cg_upnp_action_delete ( CgUpnpAction *  action)

Destroy an action

Parameters:
actionThe action to destroy
CgUpnpArgument* cg_upnp_action_getargumentbyname ( CgUpnpAction *  action,
char *  name 
)

Find an argument from the action by the argument's name.

Parameters:
actionThe action in question
nameThe name of the argument to look for
Returns:
CgUpnpArgument* if successfull; otherwise NULL
char* cg_upnp_action_getargumentvaluebyname ( CgUpnpAction *  action,
char *  name 
)

Get a value of the specified argument from the action by the argument's name directly.

Parameters:
actionThe action in question
nameThe name of the argument to look for
Returns:
char* if successfull; otherwise NULL
static void cg_upnp_action_initargumentlist ( CgUpnpAction *  action) [static]
static void cg_upnp_action_initchildnodes ( CgUpnpAction *  action) [static]
CgUpnpAction* cg_upnp_action_new ( )

Create a new action

Returns:
CgUpnpAction*
void cg_upnp_action_setactionnode ( CgUpnpAction *  action,
CgXmlNode *  node 
)

Set the action's XML node (i.e. the XML representation of the action)

Parameters:
actionThe action in question
nodeThe CgXmlNode*
BOOL cg_upnp_action_setargumentvaluebyname ( CgUpnpAction *  action,
char *  name,
char *  value 
)

Set a value of the specified argument from the action by the argument's name directly.

Parameters:
actionThe action in question
nameThe name of the argument to look for
valueThe value to set
Returns:
TRUE if successfull; otherwise NO