30 #ifndef LEGATO_TABLESTRING_H 31 #define LEGATO_TABLESTRING_H 39 #define LE_STRING_NULLIDX -1 48 #define LE_TABLESTRING_VTABLE(THIS_TYPE) \ 49 LE_STRING_VTABLE(THIS_TYPE) \ 51 uint32_t (*getID)(const THIS_TYPE* _this); \ 52 leResult (*setID)(THIS_TYPE* _this, uint32_t id); \ 53 uint32_t (*sizeInBytes)(const THIS_TYPE* _this); \ 55 typedef struct leTableStringVTable
58 } leTableStringVTable;
83 const leTableStringVTable* fn;
162 #define THIS_TYPE struct leWidget This struct represents a table string.
Definition: legato_tablestring.h:79
This struct represents a string.
Definition: legato_string.h:107
leResult
This enum represents function call results.
Definition: legato_common.h:123
struct leTableString leTableString
This struct represents a table string.
void leTableString_Constructor(leTableString *str, uint32_t idx)
Constructs a new table string.
Definition: legato_tablestring.c:43
virtual leResult setID(leTableString *this, uint32_t id)
Set string table ID.
virtual uint32_t sizeInBytes(const leTableString *this)
Get size of this string in bytes.
virtual uint32_t getID(const leTableString *_this)
Get id.
Fixed string functions and definitions.
leTableString * leTableString_New(uint32_t idx)
Constructs a new table string.
Definition: legato_tablestring.c:65