FreeRDP
ini.c File Reference
#include <winpr/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include <winpr/ini.h>

Functions

static BOOL IniFile_Load_NextLine (wIniFile *ini, char *str)
 
static BOOL IniFile_Load_String (wIniFile *ini, const char *iniString)
 
static BOOL IniFile_Open_File (wIniFile *ini, const char *filename)
 
static BOOL IniFile_Load_File (wIniFile *ini, const char *filename)
 
static void IniFile_Load_Finish (wIniFile *ini)
 
static BOOL IniFile_Load_HasNextLine (wIniFile *ini)
 
static char * IniFile_Load_GetNextLine (wIniFile *ini)
 
static void IniFile_Key_Free (wIniFileKey *key)
 
static wIniFileKey * IniFile_Key_New (const char *name, const char *value)
 
static wIniFileSection * IniFile_Section_New (const char *name)
 
static void IniFile_Section_Free (wIniFileSection *section)
 
static wIniFileSection * IniFile_GetSection (wIniFile *ini, const char *name)
 
static wIniFileSection * IniFile_AddSection (wIniFile *ini, const char *name)
 
static wIniFileKey * IniFile_GetKey (wIniFile *ini, wIniFileSection *section, const char *name)
 
static wIniFileKey * IniFile_AddKey (wIniFile *ini, wIniFileSection *section, const char *name, const char *value)
 
static int IniFile_Load (wIniFile *ini)
 
int IniFile_ReadBuffer (wIniFile *ini, const char *buffer)
 
int IniFile_ReadFile (wIniFile *ini, const char *filename)
 
char ** IniFile_GetSectionNames (wIniFile *ini, int *count)
 
char ** IniFile_GetSectionKeyNames (wIniFile *ini, const char *section, int *count)
 
const char * IniFile_GetKeyValueString (wIniFile *ini, const char *section, const char *key)
 
int IniFile_GetKeyValueInt (wIniFile *ini, const char *section, const char *key)
 
int IniFile_SetKeyValueString (wIniFile *ini, const char *section, const char *key, const char *value)
 
int IniFile_SetKeyValueInt (wIniFile *ini, const char *section, const char *key, int value)
 
char * IniFile_WriteBuffer (wIniFile *ini)
 
int IniFile_WriteFile (wIniFile *ini, const char *filename)
 
wIniFile * IniFile_New (void)
 
void IniFile_Free (wIniFile *ini)
 

Function Documentation

◆ IniFile_AddKey()

static wIniFileKey* IniFile_AddKey ( wIniFile *  ini,
wIniFileSection *  section,
const char *  name,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_AddSection()

static wIniFileSection* IniFile_AddSection ( wIniFile *  ini,
const char *  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Free()

void IniFile_Free ( wIniFile *  ini)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetKey()

static wIniFileKey* IniFile_GetKey ( wIniFile *  ini,
wIniFileSection *  section,
const char *  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetKeyValueInt()

int IniFile_GetKeyValueInt ( wIniFile *  ini,
const char *  section,
const char *  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetKeyValueString()

const char* IniFile_GetKeyValueString ( wIniFile *  ini,
const char *  section,
const char *  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetSection()

static wIniFileSection* IniFile_GetSection ( wIniFile *  ini,
const char *  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetSectionKeyNames()

char** IniFile_GetSectionKeyNames ( wIniFile *  ini,
const char *  section,
int *  count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_GetSectionNames()

char** IniFile_GetSectionNames ( wIniFile *  ini,
int *  count 
)
Here is the caller graph for this function:

◆ IniFile_Key_Free()

static void IniFile_Key_Free ( wIniFileKey *  key)
static
Here is the caller graph for this function:

◆ IniFile_Key_New()

static wIniFileKey* IniFile_Key_New ( const char *  name,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Load()

static int IniFile_Load ( wIniFile *  ini)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Load_File()

static BOOL IniFile_Load_File ( wIniFile *  ini,
const char *  filename 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Load_Finish()

static void IniFile_Load_Finish ( wIniFile *  ini)
static
Here is the caller graph for this function:

◆ IniFile_Load_GetNextLine()

static char* IniFile_Load_GetNextLine ( wIniFile *  ini)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Load_HasNextLine()

static BOOL IniFile_Load_HasNextLine ( wIniFile *  ini)
static
Here is the caller graph for this function:

◆ IniFile_Load_NextLine()

static BOOL IniFile_Load_NextLine ( wIniFile *  ini,
char *  str 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Load_String()

static BOOL IniFile_Load_String ( wIniFile *  ini,
const char *  iniString 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_New()

wIniFile* IniFile_New ( void  )
Here is the caller graph for this function:

◆ IniFile_Open_File()

static BOOL IniFile_Open_File ( wIniFile *  ini,
const char *  filename 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_ReadBuffer()

int IniFile_ReadBuffer ( wIniFile *  ini,
const char *  buffer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_ReadFile()

int IniFile_ReadFile ( wIniFile *  ini,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Section_Free()

static void IniFile_Section_Free ( wIniFileSection *  section)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_Section_New()

static wIniFileSection* IniFile_Section_New ( const char *  name)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_SetKeyValueInt()

int IniFile_SetKeyValueInt ( wIniFile *  ini,
const char *  section,
const char *  key,
int  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_SetKeyValueString()

int IniFile_SetKeyValueString ( wIniFile *  ini,
const char *  section,
const char *  key,
const char *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IniFile_WriteBuffer()

char* IniFile_WriteBuffer ( wIniFile *  ini)
Here is the caller graph for this function:

◆ IniFile_WriteFile()

int IniFile_WriteFile ( wIniFile *  ini,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function: