cupnp_function.c File Reference

#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

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


Variable Documentation

BOOL isUpnpNMPRMode = FALSE [static]
 


Generated on Fri Jun 16 16:58:33 2006 for CyberLinkC by  doxygen 1.4.6