|
mUPnP for C
|
#include <mupnp/typedef.h>Macros | |
| #define | MUPNP_UUID_NAME "uuid" |
| #define | MUPNP_UUID_MAX_LEN 128 /*(5 + ((4+1)*4) + 1)*/ |
| #define | MUPNP_SEVERNAME_MAXLEN 64 |
| #define | MUPNP_CONFIGID_UPNP_ORG_MAX 16777215 |
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) |
| #define MUPNP_CONFIGID_UPNP_ORG_MAX 16777215 |
| #define MUPNP_SEVERNAME_MAXLEN 64 |
| #define MUPNP_UUID_MAX_LEN 128 /*(5 + ((4+1)*4) + 1)*/ |
| #define MUPNP_UUID_NAME "uuid" |
| 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 |