CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
test_dynamic.h File Reference

The declarations in this header file correspond to the definitions in test_dynamic.c. More...

#include <stdbool.h>
#include "test_args.h"
#include "test_configuration.h"
#include "test_control.h"

Go to the source code of this file.

Typedefs

typedef struct TestDynamicState TestDynamicState
 Forward reference of structure to create pointers later.
 
typedef struct TestDynamicState * TestDynamicHandle
 Type used as the handle (pointer to an opaque structure) for managing dynamic tests.
 

Functions

bool TestDynamicCreate (TestConnectionInfo *connection_info_ptr, TestDynamicHandle *return_handle_ptr)
 
void TestDynamicDestroy (TestDynamicHandle handle)
 
bool TestDynamicPollStatsReconfigure (TestDynamicHandle handle)
 
bool TestDynamicEndpoints (TestDynamicHandle handle)
 
bool TestDynamicIsEndpointEnabled (TestDynamicHandle handle, int stream_index)
 

Detailed Description

The declarations in this header file correspond to the definitions in test_dynamic.c.

Function Documentation

◆ TestDynamicCreate()

bool TestDynamicCreate ( TestConnectionInfo * connection_info_ptr,
TestDynamicHandle * return_handle_ptr )

Create an instance of the test dynamic component for the specified connection.

Parameters
connection_info_ptrPointer to connection state data.
return_handle_ptrAddress where to write returned handle.
Returns
true if successful, otherwise false is returned.

◆ TestDynamicDestroy()

void TestDynamicDestroy ( TestDynamicHandle handle)

Free all resources related to the specified test dynamic component.

Parameters
handleHandle of the test dynamic component.

◆ TestDynamicEndpoints()

bool TestDynamicEndpoints ( TestDynamicHandle handle)

Dynamically test endpoint creation/destruction by using the SDK CdiAvmTxStreamEndpointCreate() and CdiAvmStreamEndpointDestroy() APIs.

Parameters
handleHandle of the test dynamic component.
Returns
true if successful, otherwise false is returned.

◆ TestDynamicIsEndpointEnabled()

bool TestDynamicIsEndpointEnabled ( TestDynamicHandle handle,
int stream_index )

Determine if dynamic endpoint is enabled or not.

Parameters
handleHandle of the test dynamic component.
stream_indexZero-based index of the stream to check.
Returns
true If enabled is enabled, otherwise false is returned.

◆ TestDynamicPollStatsReconfigure()

bool TestDynamicPollStatsReconfigure ( TestDynamicHandle handle)

Dynamically test statistics configuration changes by using the SDK CdiCoreStatsReconfigure() API function.

Parameters
handleHandle of the test dynamic component.
Returns
true if successful, otherwise false is returned.