#include <cybergarage/upnp/cupnp.h>#include <cybergarage/util/clog.h>#include <time.h>#include <stdlib.h>Functions | |
| char * | cg_upnp_createuuid (char *uuidBuf) |
| char * | cg_upnp_getservername (char *buf, int bufSize) |
| void | cg_upnp_setnmprmode (BOOL onFlag) |
| BOOL | cg_upnp_isnmprmode () |
Variables | |
| static BOOL | isUpnpNMPRMode = FALSE |
| char* cg_upnp_createuuid | ( | char * | uuidBuf | ) |
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) |
| char* cg_upnp_getservername | ( | char * | buf, | |
| int | bufSize | |||
| ) |
Get the server name ("OSname/OSversion/UPnP/<version> CyberLinkC/<version>")
| buf | Buffer to store the server name | |
| bufSize | Buffer length | |
| The | server name buffer (== buf) |
| BOOL cg_upnp_isnmprmode | ( | ) |
Check whether NMPR (Intel Networked Media Product Requirements) mode is on.
| void cg_upnp_setnmprmode | ( | BOOL | onFlag | ) |
Enable/disable NMPR (Intel Networked Media Product Requirements) mode.
| onFlag | TRUE: enable; FALSE: disable |
BOOL isUpnpNMPRMode = FALSE [static] |
1.4.7