mUPnP for C
action.c File Reference
#include <mupnp/action.h>
#include <mupnp/util/log.h>

Functions

static void mupnp_action_initchildnodes (mUpnpAction *action)
 
static void mupnp_action_initargumentlist (mUpnpAction *action)
 
mUpnpActionmupnp_action_new ()
 
void mupnp_action_delete (mUpnpAction *action)
 
void mupnp_action_setactionnode (mUpnpAction *action, mUpnpXmlNode *node)
 
mUpnpArgumentmupnp_action_getargumentbyname (mUpnpAction *action, const char *name)
 
char * mupnp_action_getargumentvaluebyname (mUpnpAction *action, const char *name)
 
bool mupnp_action_setargumentvaluebyname (mUpnpAction *action, const char *name, const char *value)
 

Function Documentation

◆ mupnp_action_delete()

void mupnp_action_delete ( mUpnpAction * action)

Destroy an action

Parameters
actionThe action to destroy

◆ mupnp_action_getargumentbyname()

mUpnpArgument * mupnp_action_getargumentbyname ( mUpnpAction * action,
const 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
mUpnpArgument* if successfull; otherwise NULL

◆ mupnp_action_getargumentvaluebyname()

char * mupnp_action_getargumentvaluebyname ( mUpnpAction * action,
const 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

◆ mupnp_action_initargumentlist()

static void mupnp_action_initargumentlist ( mUpnpAction * action)
static

◆ mupnp_action_initchildnodes()

static void mupnp_action_initchildnodes ( mUpnpAction * action)
static

◆ mupnp_action_new()

mUpnpAction * mupnp_action_new ( void )

Create a new action

Returns
mUpnpAction*

◆ mupnp_action_setactionnode()

void mupnp_action_setactionnode ( mUpnpAction * action,
mUpnpXmlNode * node )

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

Parameters
actionThe action in question
nodeThe mUpnpXmlNode*

◆ mupnp_action_setargumentvaluebyname()

bool mupnp_action_setargumentvaluebyname ( mUpnpAction * action,
const char * name,
const 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