mUPnP for C
|
#include <mupnp/service.h>
#include <mupnp/statevariable.h>
#include <mupnp/util/log.h>
#include <string.h>
Functions | |
mUpnpStateVariable * | mupnp_statevariable_new () |
void | mupnp_statevariable_delete (mUpnpStateVariable *statVar) |
void | mupnp_statevariable_setstatevariablenode (mUpnpStateVariable *statVar, mUpnpXmlNode *node) |
static void | mupnp_statevariable_setvaluewithnotify (mUpnpStateVariable *statVar, const char *data, bool doNotify) |
void | mupnp_statevariable_setvalue (mUpnpStateVariable *statVar, const char *data) |
void | mupnp_statevariable_setvaluewithoutnotify (mUpnpStateVariable *statVar, const char *data) |
mUpnpAllowedValuesList * | mupnp_allowedvaluelist_new () |
mUpnpAllowedValuesList * | mupnp_statevariable_getallowedvaluelist (mUpnpStateVariable *statVar) |
int | mupnp_statevariable_is_allowed_value (mUpnpStateVariable *statVar, const char *value) |
mUpnpAllowedValuesList * mupnp_allowedvaluelist_new | ( | void | ) |
Create new allowed state variable values list
void mupnp_statevariable_delete | ( | mUpnpStateVariable * | statVar | ) |
Delete state variable object
statVar | state variable |
mUpnpAllowedValuesList * mupnp_statevariable_getallowedvaluelist | ( | mUpnpStateVariable * | statVar | ) |
Get allowed value list
statVar | State variable |
int mupnp_statevariable_is_allowed_value | ( | mUpnpStateVariable * | statVar, |
const char * | value ) |
Check if state variable allowes to receive value
@parap value value to be checked
statVar | State variable |
mUpnpStateVariable * mupnp_statevariable_new | ( | void | ) |
Create new state variable object
void mupnp_statevariable_setstatevariablenode | ( | mUpnpStateVariable * | statVar, |
mUpnpXmlNode * | node ) |
Set XML node for this state variable
statVar | State variable |
node | XML node |
void mupnp_statevariable_setvalue | ( | mUpnpStateVariable * | statVar, |
const char * | data ) |
Set state variable value
statVar | State variable |
data | New value associated with this state variable, and the value is send to other devices which subscribe the service. |
|
static |
void mupnp_statevariable_setvaluewithoutnotify | ( | mUpnpStateVariable * | statVar, |
const char * | data ) |
Set state variable value
statVar | State variable |
data | New value associated with this state variable |