sablib
Loading...
Searching...
No Matches
data.h File Reference

Definition of data structures for the C interface of sablib, creation and release of data. More...

#include <stddef.h>
#include "sablib_export.h"

Go to the source code of this file.

Classes

struct  _stSablibData
 Definition of sablib data structure. More...
struct  _stSablibBaselineData
 Definition of the data structure for the return value of sablib baseline functions. More...

Typedefs

typedef struct _stSablibData SABLIB_DATA
 Definition of sablib data structure.
typedef struct _stSablibDataSABLIB_DATA_PTR
typedef struct _stSablibBaselineData SABLIB_BASELINE_DATA
 Definition of the data structure for the return value of sablib baseline functions.
typedef struct _stSablibBaselineDataSABLIB_BASELINE_DATA_PTR

Functions

SABLIB_EXPORT const SABLIB_DATA_PTR AllocSablibData (const size_t size)
 Allocates a SABLIB_DATA structure.
SABLIB_EXPORT void FreeSablibData (SABLIB_DATA_PTR data)
 Frees a SABLIB_DATA structure and its data body.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR AllocSablibBaselineData (const size_t size)
 Allocates a SABLIB_BASELINE_DATA structure.
SABLIB_EXPORT void FreeSablibBaselineData (SABLIB_BASELINE_DATA_PTR data)
 Frees a SABLIB_BASELINE_DATA structure and its members.

Detailed Description

Definition of data structures for the C interface of sablib, creation and release of data.

Author
Izadori

Definition in file data.h.

Function Documentation

◆ AllocSablibBaselineData()

SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR AllocSablibBaselineData ( const size_t size)

◆ AllocSablibData()

SABLIB_EXPORT const SABLIB_DATA_PTR AllocSablibData ( const size_t size)

◆ FreeSablibBaselineData()

SABLIB_EXPORT void FreeSablibBaselineData ( SABLIB_BASELINE_DATA_PTR data)

Frees a SABLIB_BASELINE_DATA structure and its members.

Parameters
dataPointer to the SABLIB_BASELINE_DATA structure to free.

Definition at line 51 of file data.cpp.

References _stSablibBaselineData::baseline, _stSablibBaselineData::corrected, and _stSablibData::data.

◆ FreeSablibData()

SABLIB_EXPORT void FreeSablibData ( SABLIB_DATA_PTR data)

Frees a SABLIB_DATA structure and its data body.

Parameters
dataPointer to the SABLIB_DATA structure to free.

Definition at line 24 of file data.cpp.

References _stSablibData::data.