My Project
Loading...
Searching...
No Matches
Top-level functions

Functions

void iio_strerror (int err, char *dst, size_t len)
 Get a string description of an error code.
bool iio_has_backend (const struct iio_context_params *params, const char *backend)
 Check if the specified backend is available.
unsigned int iio_get_builtin_backends_count (void)
 Get the number of available built-in backends.
const char * iio_get_builtin_backend (unsigned int index)
 Retrieve the name of a given built-in backend.

Detailed Description

Function Documentation

◆ iio_get_builtin_backend()

const char * iio_get_builtin_backend ( unsigned int index)

Retrieve the name of a given built-in backend.

Parameters
indexThe index corresponding to the backend
Returns
On success, a pointer to a static NULL-terminated string
If the index is invalid, NULL is returned

◆ iio_get_builtin_backends_count()

unsigned int iio_get_builtin_backends_count ( void )

Get the number of available built-in backends.

Returns
The number of available built-in backends

◆ iio_has_backend()

bool iio_has_backend ( const struct iio_context_params * params,
const char * backend )

Check if the specified backend is available.

Parameters
paramsA pointer to a iio_context_params structure that contains context creation information; can be NULL
backendThe name of the backend to query
Returns
True if the backend is available, false otherwise

◆ iio_strerror()

void iio_strerror ( int err,
char * dst,
size_t len )

Get a string description of an error code.

Parameters
errThe error code. Can be positive or negative.
dstA pointer to the memory area where the NULL-terminated string corresponding to the error message will be stored
lenThe available length of the memory area, in bytes