cobf
PE imports obfuscator
ini.h File Reference

Go to the source code of this file.

Macros

#define MAX_INI_LINE   0x100
 

Typedefs

typedef void(* ini_line_cb) (void *data, unsigned int line, const char *section, const char *name, const char *value)
 Callback with the data found at each line. More...
 

Functions

int parse_ini_file (const char *f_path, ini_line_cb handler, void *data)
 Parse ini file, supply the data to a callback. More...
 

Detailed Description

This file contains the definitions of the ini parser.

Definition in file ini.h.

Macro Definition Documentation

◆ MAX_INI_LINE

#define MAX_INI_LINE   0x100

Definition at line 12 of file ini.h.

Typedef Documentation

◆ ini_line_cb

typedef void(* ini_line_cb) (void *data, unsigned int line, const char *section, const char *name, const char *value)

Callback with the data found at each line.

Parameters
[in]dataThe extra pointer to pass.
[in]lineProcessed line number.
[in]sectionSection if found.
[in]nameName of a normal pair.
[in]valueValue of a normal pair.

Definition at line 26 of file ini.h.

Function Documentation

◆ parse_ini_file()

int parse_ini_file ( const char *  f_path,
ini_line_cb  handler,
void *  data 
)

Parse ini file, supply the data to a callback.

Parameters
[in]f_pathThe path for the ini file.
[in]handlerThe callback function.
[in]dataExtra pointer to pass to the callback.
Returns
1 if done successfully, 0 if not.

Definition at line 22 of file ini.c.