1 #include "tls_test_frame.h"
2 
3 /* Construct tls test director. */
tls_test_director_create(TLS_TEST_DIRECTOR ** director_ptr_ptr,VOID * description)4 INT tls_test_director_create(TLS_TEST_DIRECTOR** director_ptr_ptr, VOID* description)
5 {
6 TLS_TEST_DIRECTOR* director_ptr;
7 
8     /* Check parameters. */
9     return_value_if_fail(NULL != director_ptr_ptr, TLS_TEST_INVALID_POINTER);
10 
11     /* Atempt to allocate the space of test_director. */
12     director_ptr = (TLS_TEST_DIRECTOR*)malloc(sizeof(TLS_TEST_DIRECTOR));
13     return_value_if_fail(NULL != director_ptr, TLS_TEST_INSTANTIATION_FAILED);
14 
15     /* Return director. */
16     *director_ptr_ptr = director_ptr;
17 
18     /* Intialize the members of the new director instance. */
19     director_ptr -> tls_test_registered_test_instances = 0;
20     director_ptr -> tls_test_first_instance_ptr = NULL;
21     return TLS_TEST_SUCCESS;
22 }
23 
24 /* Stub function to avoid link issue. */
tx_application_define(void * first_unused_memory)25 void tx_application_define(void *first_unused_memory)
26 {
27 }