|
mUPnP for C
|
#include <mupnp/typedef.h>#include <mupnp/upnp.h>#include <mupnp/util/log.h>#include <limits.h>#include <stdlib.h>#include <time.h>Functions | |
| const char * | mupnp_createuuid (char *uuidBuf, size_t uuidBufSize) |
| const char * | mupnp_getservername (char *buf, size_t bufSize) |
| void | mupnp_setnmprmode (bool onFlag) |
| bool | mupnp_isnmprmode (void) |
| int | mupnp_createbootid (void) |
| int | mupnp_generateconfigid (const char *string) |
Variables | |
| static bool | isUpnpNMPRMode = false |
| int mupnp_createbootid | ( | void | ) |
Generate a integer id of BOOTID.UPNP.ORG.
| const char * mupnp_createuuid | ( | char * | uuidBuf, |
| size_t | uuidBufSize ) |
Create a UUID (Universally Unique IDentifier) based on a semi-random value using current time.
| uuidBuf | The UUID created by this function (must not be NULL) |
| int mupnp_generateconfigid | ( | const char * | string | ) |
Generate a integer id of CONFIGID.UPNP.ORG.
| const char * mupnp_getservername | ( | char * | buf, |
| size_t | bufSize ) |
Get the server name ("OSname/OSversion/UPnP/<version> mUPnP/<version>")
| buf | Buffer to store the server name |
| bufSize | Buffer length |
| The | server name buffer (== buf) |
| bool mupnp_isnmprmode | ( | void | ) |
Check whether NMPR (Intel Networked Media Product Requirements) mode is on.
| void mupnp_setnmprmode | ( | bool | onFlag | ) |
Enable/disable NMPR (Intel Networked Media Product Requirements) mode.
| onFlag | true: enable; false: disable |