94#if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
95# error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
98#ifndef PLIBSYS_HEADER_PINIFILE_H
99#define PLIBSYS_HEADER_PINIFILE_H
166 const pchar *section);
177 const pchar *section,
193 const pchar *section,
195 const pchar *default_val);
208 const pchar *section,
223 const pchar *section,
238 const pchar *section,
256 const pchar *section,
struct PError_ PError
Opaque data structure for an error object.
P_LIB_API PList * p_ini_file_sections(const PIniFile *file)
Gets all the sections from a given file.
P_LIB_API double p_ini_file_parameter_double(const PIniFile *file, const pchar *section, const pchar *key, double default_val)
Gets specified parameter's value as a floating point.
P_LIB_API PIniFile * p_ini_file_new(const pchar *path)
Creates a new PIniFile for parsing.
P_LIB_API pint p_ini_file_parameter_int(const PIniFile *file, const pchar *section, const pchar *key, pint default_val)
Gets specified parameter's value as an integer.
P_LIB_API pboolean p_ini_file_is_parsed(const PIniFile *file)
Checks whether PIniFile was already parsed or not.
P_LIB_API pboolean p_ini_file_parse(PIniFile *file, PError **error)
Parses given PIniFile.
P_LIB_API pboolean p_ini_file_is_key_exists(const PIniFile *file, const pchar *section, const pchar *key)
Checks whether a key exists.
struct PIniFile_ PIniFile
INI file opaque data structure.
P_LIB_API pchar * p_ini_file_parameter_string(const PIniFile *file, const pchar *section, const pchar *key, const pchar *default_val)
Gets specified parameter's value as a string.
P_LIB_API PList * p_ini_file_parameter_list(const PIniFile *file, const pchar *section, const pchar *key)
Gets specified parameter's value as a list of strings separated with the spaces or tabs.
P_LIB_API PList * p_ini_file_keys(const PIniFile *file, const pchar *section)
Gets all the keys from a given section.
P_LIB_API void p_ini_file_free(PIniFile *file)
Frees memory and allocated resources of PIniFile.
P_LIB_API pboolean p_ini_file_parameter_boolean(const PIniFile *file, const pchar *section, const pchar *key, pboolean default_val)
Gets specified parameter's value as a boolean.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS.
#define P_LIB_API
Exports a symbol from a shared library.
char pchar
Type for a char.
signed int pboolean
Type for a bool.
Node for a singly linked list.