22 #ifndef INI_CONFIGMOD_H 23 #define INI_CONFIGMOD_H 197 const char *comments[],
198 size_t count_comment,
200 const char *other_section,
226 const char *comments[],
227 size_t count_comment);
245 const char *newname);
263 const char *section);
365 const char *comments[],
366 size_t count_comment,
369 const char *other_key,
385 const char *comments[],
386 size_t count_comment,
389 const char *other_key,
405 const char *comments[],
406 size_t count_comment,
409 const char *other_key,
425 const char *comments[],
426 size_t count_comment,
429 const char *other_key,
445 const char *comments[],
446 size_t count_comment,
449 const char *other_key,
465 const char *comments[],
466 size_t count_comment,
469 const char *other_key,
485 const char *comments[],
486 size_t count_comment,
489 const char *other_key,
505 const char *comments[],
506 size_t count_comment,
509 const char *other_key,
525 const char *comments[],
526 size_t count_comment,
529 const char *other_key,
545 const char *comments[],
546 size_t count_comment,
549 const char *other_key,
571 const char *comments[],
572 size_t count_comment,
575 const char *other_key,
591 const char *value_str_arr[],
594 const char *comments[],
595 size_t count_comment,
598 const char *other_key,
614 char *value_str_arr[],
617 const char *comments[],
618 size_t count_comment,
621 const char *other_key,
640 const char *comments[],
641 size_t count_comment,
644 const char *other_key,
660 long *value_long_arr,
663 const char *comments[],
664 size_t count_comment,
667 const char *other_key,
683 double *value_double_arr,
686 const char *comments[],
687 size_t count_comment,
690 const char *other_key,
761 const char *comments[],
762 size_t count_comment,
Clean all duplicates.
Definition: ini_configmod.h:101
int ini_config_add_double_value(struct ini_cfgobj *ini_config, const char *section, const char *key, double value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a double value to a particular section.
int ini_config_update_comment(struct ini_cfgobj *ini_config, const char *section, const char *key, const char *comments[], size_t count_comment, int idx)
Function to update a comment.
int ini_config_add_bin_value(struct ini_cfgobj *ini_config, const char *section, const char *key, void *value, size_t value_len, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a binary value to a particular section.
Error if duplicate.
Definition: ini_configmod.h:107
Update or add if not found (with error).
Definition: ini_configmod.h:94
INI_VA
Definition: ini_configmod.h:40
int ini_config_add_str_arr_value(struct ini_cfgobj *ini_config, const char *section, const char *key, char *value_str_arr[], size_t count_str, char sep, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a value that consists of an array of strings to a particular section.
int ini_config_add_str_value(struct ini_cfgobj *ini_config, const char *section, const char *key, const char *value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to a add string value to a particular section.
int ini_config_add_section(struct ini_cfgobj *ini_config, const char *section, const char *comments[], size_t count_comment, int position, const char *other_section, int idx)
Function to add a section.
int ini_config_delete_value(struct ini_cfgobj *ini_config, const char *section, int position, const char *key, int idx)
Function to delete a value.
int ini_config_add_ulong_value(struct ini_cfgobj *ini_config, const char *section, const char *key, unsigned long value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an unsigned long value to a particular section.
int ini_config_add_int32_value(struct ini_cfgobj *ini_config, const char *section, const char *key, int32_t value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an int32 value to a particular section.
Update a specific value (best effort).
Definition: ini_configmod.h:56
int ini_config_add_unsigned_value(struct ini_cfgobj *ini_config, const char *section, const char *key, unsigned value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an unsigned value to a particular section.
int ini_config_add_int64_value(struct ini_cfgobj *ini_config, const char *section, const char *key, int64_t value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an int64 value to a particular section.
int ini_config_comment_section(struct ini_cfgobj *ini_config, const char *section, const char *comments[], size_t count_comment)
Function to update a comment for a section.
int ini_config_add_long_value(struct ini_cfgobj *ini_config, const char *section, const char *key, long value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a long value to a particular section.
int ini_config_add_uint64_value(struct ini_cfgobj *ini_config, const char *section, const char *key, uint64_t value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an uint64 value to a particular section.
No check.
Definition: ini_configmod.h:46
int ini_config_rename_section(struct ini_cfgobj *ini_config, const char *section, const char *newname)
Function to rename a section.
int ini_config_add_uint32_value(struct ini_cfgobj *ini_config, const char *section, const char *key, uint32_t value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an uint32 value to a particular section.
Update or add if not found (best effort).
Definition: ini_configmod.h:80
int ini_config_delete_section_by_name(struct ini_cfgobj *ini_config, const char *section)
Function to delete a section by name.
Update a specific value (with error).
Definition: ini_configmod.h:66
int ini_config_add_const_str_arr_value(struct ini_cfgobj *ini_config, const char *section, const char *key, const char *value_str_arr[], size_t count_str, char sep, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a value that consists of an array of constant strings to a particular section.
int ini_config_delete_section_by_position(struct ini_cfgobj *ini_config, int position, const char *section, int idx)
Function to delete a section by position or name.
int ini_config_add_long_arr_value(struct ini_cfgobj *ini_config, const char *section, const char *key, long *value_long_arr, size_t count_long, char sep, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a value that consists of an array of long integers to a particular section.
int ini_config_add_int_arr_value(struct ini_cfgobj *ini_config, const char *section, const char *key, int *value_int_arr, size_t count_int, char sep, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a value that consists of an array of integers to a particular section.
int ini_config_add_double_arr_value(struct ini_cfgobj *ini_config, const char *section, const char *key, double *value_double_arr, size_t count_double, char sep, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add a value that consists of an array of doubles to a particular section.
int ini_config_add_int_value(struct ini_cfgobj *ini_config, const char *section, const char *key, int value, const char *comments[], size_t count_comment, int border, int position, const char *other_key, int idx, enum INI_VA flags)
Function to add an integer value to a particular section.