Elektra  0.8.24
Typedefs | Functions
kdbiotest.h File Reference

Elektra-I/O functions and declarations for the I/O binding test suite. More...

#include "kdbio.h"
Include dependency graph for kdbiotest.h:
This graph shows which files directly or indirectly include this file:

Typedefs

typedef ElektraIoInterface *(* ElektraIoTestSuiteCreateBinding) (void)
 Create and initialize I/O binding. More...
 
typedef void(* ElektraIoTestSuiteStart) (void)
 Start I/O processing (for example event loop). More...
 
typedef void(* ElektraIoTestSuiteStop) (void)
 Stop I/O processing (for example event loop). More...
 

Functions

void elektraIoTestSuite (ElektraIoTestSuiteCreateBinding createBinding, ElektraIoTestSuiteStart start, ElektraIoTestSuiteStop stop)
 Test-Suite for I/O Bindings. More...
 

Detailed Description

Elektra-I/O functions and declarations for the I/O binding test suite.

Typedef Documentation

◆ ElektraIoTestSuiteCreateBinding

typedef ElektraIoInterface*(* ElektraIoTestSuiteCreateBinding) (void)

Create and initialize I/O binding.

Used by elektraIoTestSuite between tests to get a fresh binding instance.

Returns
initialized I/O binding

◆ ElektraIoTestSuiteStart

typedef void(* ElektraIoTestSuiteStart) (void)

Start I/O processing (for example event loop).

Used by elektraIoTestSuite.

Should not return until processing is stopped (e.g. by calling ElektraIoTestSuiteStop)

◆ ElektraIoTestSuiteStop

typedef void(* ElektraIoTestSuiteStop) (void)

Stop I/O processing (for example event loop).

Used by elektraIoTestSuite

Function Documentation

◆ elektraIoTestSuite()

void elektraIoTestSuite ( ElektraIoTestSuiteCreateBinding  createBinding,
ElektraIoTestSuiteStart  start,
ElektraIoTestSuiteStop  stop 
)

Test-Suite for I/O Bindings.

Parameters
createBindingCreate and initialize a new I/O binding instance
startPointer to the start function
stopPointer to the stop function