| rte_cfgfile.h(3) | Library Functions Manual | rte_cfgfile.h(3) |
rte_cfgfile.h
#include <stddef.h>
struct rte_cfgfile_entry
struct rte_cfgfile_parameters
#define CFG_DEFAULT_COMMENT_CHARACTER ';'
struct rte_cfgfile * rte_cfgfile_load (const char
*filename, int flags)
struct rte_cfgfile * rte_cfgfile_load_with_params (const char
*filename, int flags, const struct rte_cfgfile_parameters *params)
struct rte_cfgfile * rte_cfgfile_create (int flags)
int rte_cfgfile_add_section (struct rte_cfgfile *cfg, const char
*sectionname)
int rte_cfgfile_add_entry (struct rte_cfgfile *cfg, const char
*sectionname, const char *entryname, const char *entryvalue)
int rte_cfgfile_set_entry (struct rte_cfgfile *cfg, const char
*sectionname, const char *entryname, const char *entryvalue)
int rte_cfgfile_save (struct rte_cfgfile *cfg, const char *filename)
int rte_cfgfile_num_sections (struct rte_cfgfile *cfg, const char
*sec_name, size_t length)
int rte_cfgfile_sections (struct rte_cfgfile *cfg, char *sections[],
int max_sections)
int rte_cfgfile_has_section (struct rte_cfgfile *cfg, const char
*sectionname)
int rte_cfgfile_section_num_entries (struct rte_cfgfile *cfg, const
char *sectionname)
int rte_cfgfile_section_num_entries_by_index (struct rte_cfgfile *cfg,
char *sectionname, int index)
int rte_cfgfile_section_entries (struct rte_cfgfile *cfg, const char
*sectionname, struct rte_cfgfile_entry *entries, int max_entries)
int rte_cfgfile_section_entries_by_index (struct rte_cfgfile *cfg, int
index, char *sectionname, struct rte_cfgfile_entry *entries, int
max_entries)
const char * rte_cfgfile_get_entry (struct rte_cfgfile *cfg, const char
*sectionname, const char *entryname)
int rte_cfgfile_has_entry (struct rte_cfgfile *cfg, const char
*sectionname, const char *entryname)
int rte_cfgfile_close (struct rte_cfgfile *cfg)
Configuration File management.
This library allows reading application defined parameters from standard format configuration file.
Definition in file rte_cfgfile.h.
Defines the default comment character used for parsing config files.
Definition at line 63 of file rte_cfgfile.h.
cfgfile load operation flags
Enumerator
Definition at line 46 of file rte_cfgfile.h.
Open config file.
Parameters
Returns
Open config file with specified optional parameters.
Parameters
Returns
Create new cfgfile instance with empty sections and entries
Parameters
Returns
Add section in cfgfile instance.
Parameters
Returns
Add entry to specified section in cfgfile instance.
Parameters
Returns
Update value of specified entry name in given section in config file
Parameters
Returns
Save object cfgfile to file on disc
Parameters
Returns
Get number of sections in config file.
Parameters
Returns
Get name of all config file sections.
Fills in the array sections with the name of all the sections in the file (up to the number of max_sections sections).
Parameters
Returns
Check if given section exists in config file.
Parameters
Returns
Get number of entries in given config file section.
If multiple sections have the given name, this function operates on the first one.
Parameters
Returns
Get number of entries in given config file section.
The index of a section is the same as the index of its name in the result of rte_cfgfile_sections. This API can be used when there are multiple sections with the same name.
Parameters
Returns
Get section entries as key-value pairs.
If multiple sections have the given name, this function operates on the first one.
Parameters
Returns
Get section entries as key-value pairs.
The index of a section is the same as the index of its name in the result of rte_cfgfile_sections. This API can be used when there are multiple sections with the same name.
Parameters
Returns
Get value of the named entry in named config file section.
If multiple sections have the given name, this function operates on the first one.
Parameters
Returns
Check if given entry exists in named config file section.
If multiple sections have the given name, this function operates on the first one.
Parameters
Returns
Close config file.
Parameters
Returns
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |