#include <cybergarage/typedef.h>
Define Documentation
| #define CG_UPNP_SEVERNAME_MAXLEN 64 |
| #define CG_UPNP_UUID_MAX_LEN 128 |
| #define CG_UPNP_UUID_NAME "uuid" |
Function Documentation
| char* cg_upnp_createuuid |
( |
char * |
uuidBuf, |
|
|
int |
uuidBufSize |
|
) |
| |
Create a UUID (Universally Unique IDentifier) based on a semi-random value using current time.
- Parameters:
-
| uuidBuf | The UUID created by this function (must not be NULL) |
- Returns:
- The UUID created by this function (== uuidBuf)
| char* cg_upnp_getservername |
( |
char * |
buf, |
|
|
int |
bufSize |
|
) |
| |
Get the server name ("OSname/OSversion/UPnP/<version> CyberLinkC/<version>")
- Parameters:
-
| 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.
- Returns:
- TRUE if on; otherwise FALSE
| void cg_upnp_setnmprmode |
( |
BOOL |
onFlag | ) |
|
Enable/disable NMPR (Intel Networked Media Product Requirements) mode.
- Parameters:
-
| onFlag | TRUE: enable; FALSE: disable |