1 #include "tls_test_frame.h" 2 3 /* Appended next_instance_ptr to instance_ptr. */ tls_test_instance_append(TLS_TEST_INSTANCE * instance_ptr,TLS_TEST_INSTANCE * next_instance_ptr)4INT tls_test_instance_append(TLS_TEST_INSTANCE* instance_ptr, TLS_TEST_INSTANCE* next_instance_ptr) 5 { 6 return_value_if_fail(NULL != instance_ptr, TLS_TEST_INVALID_POINTER); 7 return_value_if_fail(NULL != next_instance_ptr, TLS_TEST_INVALID_POINTER); 8 return_value_if_fail(instance_ptr != next_instance_ptr, TLS_TEST_INVALID_POINTER); 9 10 /* Store original next instance. */ 11 next_instance_ptr -> tls_test_next_instance_ptr = instance_ptr -> tls_test_next_instance_ptr; 12 13 /* Insert next_instance_ptr. */ 14 instance_ptr -> tls_test_next_instance_ptr = next_instance_ptr; 15 return TLS_TEST_SUCCESS; 16 } 17