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)
CgUpnpActioncg_upnp_action_new ()
void cg_upnp_action_delete (CgUpnpAction *action)
void cg_upnp_action_setactionnode (CgUpnpAction *action, CgXmlNode *node)
CgUpnpArgumentcg_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:
action The action to destroy
CgUpnpArgument* cg_upnp_action_getargumentbyname ( CgUpnpAction action,
char *  name 
)

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

Parameters:
action The action in question
name The 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:
action The action in question
name The 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:
action The action in question
node The 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:
action The action in question
name The name of the argument to look for
value The value to set
Returns:
TRUE if successfull; otherwise NO

Generated on Tue Feb 23 23:14:23 2010 for CyberLink for C by  doxygen 1.6.1