cptest.h File Reference

#include <cybergarage/upnp/ccontrolpoint.h>

Go to the source code of this file.

Data Structures

struct  _AVCPTestCase
struct  _AVCPSubTestCase

Typedefs

typedef int(* TEST_CASE_FUNCTION )(CgUpnpControlPoint *)
typedef _AVCPTestCase AVCPTestCase
typedef int(* SUB_TEST_CASE_FUNCTION )(CgUpnpControlPoint *, char *)
typedef _AVCPSubTestCase AVCPSubTestCase

Functions

CgUpnpControlPoint * init_upnp_controlpoint (void)
int destroy_upnp_controlpoint (CgUpnpControlPoint *cp)
char * cp_test_get_device_udn_with_service (CgUpnpControlPoint *cp, char *service_name)
int cp_test_find_test_case (AVCPTestCase *tc_array, int size, char *name)


Typedef Documentation

typedef struct _AVCPSubTestCase AVCPSubTestCase
 

typedef struct _AVCPTestCase AVCPTestCase
 

typedef int(* SUB_TEST_CASE_FUNCTION)(CgUpnpControlPoint *, char *)
 

Sub test case prototype

Parameters:
cp The Control point
udn The UDN of the device to use for testing

typedef int(* TEST_CASE_FUNCTION)(CgUpnpControlPoint *)
 

Test case prototype

Parameters:
cp The Control point


Function Documentation

int cp_test_find_test_case AVCPTestCase tc_array,
int  size,
char *  name
 

Find a test case by its name from an array of test cases

Parameters:
tc_array The array of test cases
size Number of test cases in the array
name The name of the test case to search for
Returns:
The index of the test case struct or -1 if it wasn't found

char* cp_test_get_device_udn_with_service CgUpnpControlPoint *  cp,
char *  service_name
 

Find a device with a given service

Parameters:
cp A control point instance
service_name The name of the service to search for from cp's devices
Returns:
A newly-created string containing the UDN of the device that has the given service or; NULL if a suitable device was not found

int destroy_upnp_controlpoint CgUpnpControlPoint *  cp  ) 
 

Stop a control point and destroy it.

CgUpnpControlPoint* init_upnp_controlpoint void   ) 
 

Create a control point and start it.


Generated on Mon Aug 14 10:23:34 2006 for CyberLinkC-AV by  doxygen 1.4.6