libcfe-tables  2.9.85
some useful C-functions
typedef.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <cfe/cfe_value.h>
Include dependency graph for typedef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TYPE_LEN   8
 
#define RECORD_INVALID   (UINT32_MAX)
 
#define REC_MAX   (RECORD_INVALID - 1)
 
#define REC_MIN   0
 

Typedefs

typedef struct _table table_t
 Table type. More...
 
typedef uint32_t rec_t
 Type to identify a record number. More...
 
typedef table_t *(* table_init_t) (void)
 Type specific initialize function. More...
 
typedef int(* table_compare_t) (void *, void *)
 
typedef rec_t(* table_get_record_number_by_pointer_t) (const table_t *, void *)
 Type specific function to get the record number of a give record. More...
 
typedef void(* table_free_entry_t) (void *)
 Type specific function to free the memory used inside a record. More...
 
typedef void *(* table_malloc_func_t) (const table_t *, size_t)
 
typedef void *(* table_realloc_func_t) (const table_t *, void *, size_t)
 
typedef void(* table_free_func_t) (const table_t *, void *)
 
typedef void(* table_alter_t) (const table_t *, rec_t, void *user_data)
 
typedef cfe_value_t *(* table_get_function_t) (const table_t *, void *)
 

Macro Definition Documentation

◆ REC_MAX

#define REC_MAX   (RECORD_INVALID - 1)

Definition at line 11 of file typedef.h.

◆ REC_MIN

#define REC_MIN   0

Definition at line 12 of file typedef.h.

◆ RECORD_INVALID

#define RECORD_INVALID   (UINT32_MAX)

Definition at line 10 of file typedef.h.

◆ TYPE_LEN

#define TYPE_LEN   8

Definition at line 9 of file typedef.h.

Typedef Documentation

◆ rec_t

typedef uint32_t rec_t

Type to identify a record number.

Definition at line 15 of file typedef.h.

◆ table_alter_t

typedef void(* table_alter_t) (const table_t *, rec_t, void *user_data)

Definition at line 29 of file typedef.h.

◆ table_compare_t

typedef int(* table_compare_t) (void *, void *)

Definition at line 19 of file typedef.h.

◆ table_free_entry_t

typedef void(* table_free_entry_t) (void *)

Type specific function to free the memory used inside a record.

Definition at line 21 of file typedef.h.

◆ table_free_func_t

typedef void(* table_free_func_t) (const table_t *, void *)

Definition at line 26 of file typedef.h.

◆ table_get_function_t

typedef cfe_value_t*(* table_get_function_t) (const table_t *, void *)

Definition at line 32 of file typedef.h.

◆ table_get_record_number_by_pointer_t

typedef rec_t(* table_get_record_number_by_pointer_t) (const table_t *, void *)

Type specific function to get the record number of a give record.

Definition at line 20 of file typedef.h.

◆ table_init_t

typedef table_t*(* table_init_t) (void)

Type specific initialize function.

Definition at line 18 of file typedef.h.

◆ table_malloc_func_t

typedef void*(* table_malloc_func_t) (const table_t *, size_t)

Definition at line 24 of file typedef.h.

◆ table_realloc_func_t

typedef void*(* table_realloc_func_t) (const table_t *, void *, size_t)

Definition at line 25 of file typedef.h.

◆ table_t

typedef struct _table table_t

Table type.

Definition at line 14 of file typedef.h.