cupnp_function.h File Reference

#include <cybergarage/typedef.h>

Defines

#define CG_UPNP_UUID_NAME   "uuid"
#define CG_UPNP_UUID_MAX_LEN   (5 + ((4+1)*4) + 1)
#define CG_UPNP_SEVERNAME_MAXLEN   64

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 ()

Define Documentation

#define CG_UPNP_SEVERNAME_MAXLEN   64

#define CG_UPNP_UUID_MAX_LEN   (5 + ((4+1)*4) + 1)

#define CG_UPNP_UUID_NAME   "uuid"


Function Documentation

char* cg_upnp_createuuid ( char *  uuidBuf  ) 

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


Generated on Tue Aug 8 14:56:29 2006 for CyberLinkC by  doxygen 1.4.7