cptest.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "cptest.h"
#include "avttest.h"
#include "cdstest.h"
#include "rcstest.h"

Defines

#define NUM_TEST_CASES   3
#define TEST_CASE_AVT   "AV Transport Service Test"
#define TEST_CASE_CDS   "Content Directory Service Test"
#define TEST_CASE_RCS   "Rendering Control Service Test"

Functions

int main (int argc, char **argv)
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)

Define Documentation

#define NUM_TEST_CASES   3
 

Clinkc-av control point test tool

Copyright (c) 2006 Nokia Corporation

#define TEST_CASE_AVT   "AV Transport Service Test"
 

#define TEST_CASE_CDS   "Content Directory Service Test"
 

#define TEST_CASE_RCS   "Rendering Control Service Test"
 


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.

int main int  argc,
char **  argv
 


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