|
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) |
| Create a new UPnP state variable. | |
| void | mupnp_statevariable_delete (mUpnpStateVariable *statVar) |
| Destroy a UPnP state variable and free resources. | |
| 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 (void) |
| 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 | ) |
Destroy a UPnP state variable and free resources.
Releases all resources associated with the state variable, including:
| statVar | The state variable to destroy. May be NULL (no-op if NULL). |
| 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 a new UPnP state variable.
Allocates and initializes a new state variable object. State variables represent the state of a UPnP service and can be:
State variables have:
State variables are typically created during SCPD parsing and added to the service state table.
| 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 |