fix kolibri_libini.h
Correction of the set of function arguments and addition of function descriptions
This commit is contained in:
@@ -3,15 +3,51 @@
|
||||
|
||||
extern int kolibri_libini_init(void);
|
||||
|
||||
extern uint32_t (*LIBINI_enum_sections)(const char*, void*) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_enum_keys)(const char*, const char*, void*) __attribute__((__stdcall__));
|
||||
/*
|
||||
Loop through the sections, calling the user-defined function for each one.
|
||||
*/
|
||||
extern uint32_t(*LIBINI_enum_sections)(const char* f_name, void(*)(const char* f_name, const char* sec_name)) __attribute__((__stdcall__));
|
||||
|
||||
extern uint32_t (*LIBINI_get_str)(const char*, const char*, const char*, char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_set_str)(const char*, const char*, const char*, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_get_int)(const char*, const char*, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_set_int)(const char*, const char*, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_get_color)(const char*, const char*, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_set_color)(const char*, const char*, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
extern uint32_t (*LIBINI_get_shortcut)(const char*, const char*, const char*, uint32_t, const char*, uint32_t) __attribute__((__stdcall__));
|
||||
/*
|
||||
Loop through the keys in the section, calling the user-defined function for each one.
|
||||
*/
|
||||
extern uint32_t(*LIBINI_enum_keys)(const char* f_name, const char* sec_name, void(*)(const char* f_name, const char* sec_name, const char* key_name, const char* key_value)) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Read string
|
||||
*/
|
||||
extern uint32_t(*LIBINI_get_str)(const char* f_name, const char* sec_name, const char* key_name, char* buffer, uint32_t buf_len, const char* def_val) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Write string
|
||||
*/
|
||||
extern uint32_t(*LIBINI_set_str)(const char* f_name, const char* sec_name, const char* key_name, const char* buffer, uint32_t buf_len) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Read integer
|
||||
*/
|
||||
extern uint32_t(*LIBINI_get_int)(const char* f_name, const char* sec_name, const char* key_name, const char* def_val) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Write integer
|
||||
*/
|
||||
extern uint32_t(*LIBINI_set_int)(const char* f_name, const char* sec_name, const char* key_name, uint32_t val) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Read color
|
||||
*/
|
||||
extern uint32_t(*LIBINI_get_color)(const char* f_name, const char* sec_name, const char* key_name, const char* def_val) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Write color
|
||||
*/
|
||||
extern uint32_t(*LIBINI_set_color)(const char* f_name, const char* sec_name, const char* key_name, uint32_t val) __attribute__((__stdcall__));
|
||||
|
||||
/*
|
||||
Read the hotkey.
|
||||
|
||||
The string for ini_get_shortcut is an arbitrary number of modifiers Ctrl/Alt/Shift/LCtrl/LAlt/LShift/RCtrl/RAlt/RShift, followed by a Latin letter/number/key name (proper names are Home, End, PgUp, PgDn, Ins=Insert, Del=Delete, Tab, Plus, Esc, Enter, Backspace, Space, Left, Right, Up, Down). The string can be written with any case of characters. Parts are either written together or separated by a plus. For example: Ctrl+Alt+Backspace, RCtrl+RShift, ShiftA, f10, shiftalt5
|
||||
*/
|
||||
extern uint32_t(*LIBINI_get_shortcut)(const char* f_name, const char* sec_name, const char* key_name, uint32_t def_val, const char* modifiers) __attribute__((__stdcall__));
|
||||
|
||||
#endif /* KOLIBRI_LIBINI_H */
|
||||
|
||||
Reference in New Issue
Block a user