mUPnP for C
|
#include <mupnp/typedef.h>
#include <mupnp/xml/xml.h>
#include <mupnp/util/list.h>
#include <mupnp/util/string.h>
#include <mupnp/argument.h>
#include <mupnp/upnp_status.h>
Data Structures | |
struct | _mUpnpAction |
Typedefs | |
typedef struct _mUpnpAction | mUpnpAction |
typedef struct _mUpnpAction | mUpnpActionList |
typedef bool(* | MUPNP_ACTION_LISTNER) (mUpnpAction *) |
Functions | |
mUpnpAction * | mupnp_action_new (void) |
void | mupnp_action_delete (mUpnpAction *action) |
void | mupnp_action_setactionnode (mUpnpAction *action, mUpnpXmlNode *node) |
mUpnpArgument * | mupnp_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) |
mUpnpActionList * | mupnp_actionlist_new (void) |
void | mupnp_actionlist_delete (mUpnpActionList *actionList) |
#define MUPNP_ACTION_ELEM_NAME "action" |
#define mupnp_action_getactionnode | ( | action | ) |
Get the action's XML node (i.e. the XML representation of the action)
action | The action in question |
#define mupnp_action_getargumentlist | ( | action | ) |
Get the action's list of arguments
action | The action in question |
#define mupnp_action_getarguments | ( | action | ) |
Get the first argument from the action's list of arguments. Use as the starting point in iteration loops.
action | The action in question |
#define mupnp_action_getlistener | ( | action | ) |
Get the action's listener function
action | The action in question |
#define mupnp_action_getlistner mupnp_action_getlistener |
#define mupnp_action_getname | ( | action | ) |
Get the action's name
action | The action in question |
#define mupnp_action_getservice | ( | action | ) |
Get the action's parent service
action | The action in question |
#define mupnp_action_getstatuscode | ( | action | ) |
Get the action's latest status code
action | The action in question |
#define mupnp_action_getstatusdescription | ( | action | ) |
Get the action's latest status description
action | The action in question |
#define mupnp_action_getuserdata | ( | action | ) |
Get the action's arbitrary user data pointer
action | The action in question |
#define mupnp_action_hasargumentbyname | ( | action, | |
name ) |
Find out, whether the action has an argument by the given name
action | The action in question |
name | The name to look for |
#define mupnp_action_isactionnode | ( | node | ) |
Check, whether the given XML node is an action node
node | The mUpnpXmlNode* |
#define mupnp_action_isname | ( | action, | |
name ) |
Check, whether the action's name matches the one given as parameter.
action | The action in question |
name | The name string to compare |
#define MUPNP_ACTION_NAME "name" |
#define mupnp_action_next | ( | action | ) |
Get the next action in a list of actions. Use as an iterator.
action | The current action |
#define mupnp_action_setlistener | ( | action, | |
func ) |
Set the action's listener function
action | The action in question |
func | The listener function of type: bool (*MUPNP_ACTION_LISTNER)(mUpnpAction *) |
#define mupnp_action_setlistner mupnp_action_setlistener |
#define mupnp_action_setname | ( | action, | |
value ) |
Set the action's name
action | The action in question |
value | The action's name |
#define mupnp_action_setservice | ( | action, | |
service ) |
Set the action's parent service
action | The action in question |
service | The action's parent service |
#define mupnp_action_setstatuscode | ( | action, | |
code ) |
Set the action's latest status code
action | The action in question |
code | The status code (int) |
#define mupnp_action_setstatusdescription | ( | action, | |
value ) |
Set the action's latest status description
action | The action in question |
value | The status description string |
#define mupnp_action_setuserdata | ( | action, | |
value ) |
Set the action's arbitrary user data pointer
action | The action in question |
value | The user data pointer (void*) |
#define mupnp_actionlist_add | ( | actionList, | |
action ) |
Add an action to a list of actions
actionList | The list in question |
action | The action to add to the list |
#define mupnp_actionlist_clear | ( | actionList | ) |
Clear the contents of a list of actions
actionList | The list of actions to clear |
#define MUPNP_ACTIONLIST_ELEM_NAME "actionList" |
#define mupnp_actionlist_gets | ( | actionList | ) |
Get the first action in a list of actions. Use as the starting point in iteration loops.
actionList | The list in question |
#define mupnp_actionlist_size | ( | actionList | ) |
Get the number of actions in a list of actions
actionList | The list in question |
typedef bool(* MUPNP_ACTION_LISTNER) (mUpnpAction *) |
typedef struct _mUpnpAction mUpnpAction |
typedef struct _mUpnpAction mUpnpActionList |
void mupnp_action_delete | ( | mUpnpAction * | action | ) |
Destroy an action
action | The action to destroy |
mUpnpArgument * mupnp_action_getargumentbyname | ( | mUpnpAction * | action, |
const char * | name ) |
Find an argument from the action by the argument's name.
action | The action in question |
name | The name of the argument to look for |
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.
action | The action in question |
name | The name of the argument to look for |
mUpnpAction * mupnp_action_new | ( | void | ) |
Create a new action
void mupnp_action_setactionnode | ( | mUpnpAction * | action, |
mUpnpXmlNode * | node ) |
Set the action's XML node (i.e. the XML representation of the action)
action | The action in question |
node | The mUpnpXmlNode* |
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.
action | The action in question |
name | The name of the argument to look for |
value | The value to set |
void mupnp_actionlist_delete | ( | mUpnpActionList * | actionList | ) |
Destroy a list of actions
actionList | The list of actions to destroy |
mUpnpActionList * mupnp_actionlist_new | ( | void | ) |
Create a new list of actions