Skip to content

File storage_defs.h

File List > defs > storage_defs > storage_defs.h

Go to the documentation of this file

#ifndef STORAGE_DEFS_H
#define STORAGE_DEFS_H

/******************************************************************************/
/****************************** Includes **************************************/
/******************************************************************************/

#ifdef __cplusplus
#include <cstdint>
#else
#include "stdlib.h"
#include "stdint.h"
#endif

/******************************************************************************/
/****************************** Macro *****************************************/
/******************************************************************************/

/******************************************************************************/
/****************************** typedef ***************************************/
/******************************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif
typedef uint8_t (*storage_write_funptr_t)(const char *key,
                                          const char *index,
                                          const char *value);
typedef const char *(*storage_read_funptr_t)(const char *key,
                                             const char *index);
#ifdef __cplusplus
}
#endif
/******************************************************************************/
/****************************** Defines ***************************************/
/******************************************************************************/

/****************************** write Status *********************************/

#define STORE_DEFS_WRITE_SUCCESS    (0u)

#define STORE_DEFS_WRITE_FAIL       (1u)

/****************************** Read Status *********************************/

#define STORE_DEFS_READ_SUCCESS    (0u)

#define STORE_DEFS_READ_FAIL       (1u)

#endif /* end STORAGE_DEFS_H */