libcfe-tables  2.9.85
some useful C-functions
str_table.h
Go to the documentation of this file.
1 /* kate: indent-mode cstyle; tab-width 4; indent-width 4; */
2 #ifndef XSTR_TABLES_H
3 #define XSTR_TABLES_H
4 
5 #include <cfe-tables/tables.h>
6 
7 enum
8 {
11 };
12 
14 rec_t str_table_store(table_t *t, const char *str, uint16_t len, rec_t pos);
15 rec_t str_table_get_record_by_string(const table_t *t, const char *str, uint16_t len);
16 rec_t str_table_get_record_by_string2(const table_t *t, const char *str, uint16_t len);
17 rec_t str_table_get_record_by_string_sorted(const table_t *t, const char *str, uint16_t len, rec_t *pos);
18 #define str_table_free(x) table_free(x)
19 #define str_table_get_num_records(x) table_get_num_records(x)
20 
21 #endif /* XSTR_TABLES_H */
rec_t str_table_get_record_by_string2(const table_t *t, const char *str, uint16_t len)
rec_t str_table_get_record_by_string(const table_t *t, const char *str, uint16_t len)
rec_t str_table_store(table_t *t, const char *str, uint16_t len, rec_t pos)
struct _table table_t
Table type.
Definition: typedef.h:14
uint32_t rec_t
Type to identify a record number.
Definition: typedef.h:15
rec_t str_table_get_record_by_string_sorted(const table_t *t, const char *str, uint16_t len, rec_t *pos)
INIT_TABLE_TYPE_DEF(str)