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

Functions

BOOL IniFile_Load_NextLine (wIniFile *ini, char *str)
 
int IniFile_Load_String (wIniFile *ini, const char *iniString)
 
int IniFile_Open_File (wIniFile *ini, const char *filename)
 
int IniFile_Load_File (wIniFile *ini, const char *filename)
 
void IniFile_Load_Finish (wIniFile *ini)
 
BOOL IniFile_Load_HasNextLine (wIniFile *ini)
 
char * IniFile_Load_GetNextLine (wIniFile *ini)
 
wIniFileKey * IniFile_Key_New (const char *name, const char *value)
 
void IniFile_Key_Free (wIniFileKey *key)
 
wIniFileSection * IniFile_Section_New (const char *name)
 
void IniFile_Section_Free (wIniFileSection *section)
 
wIniFileSection * IniFile_GetSection (wIniFile *ini, const char *name)
 
wIniFileSection * IniFile_AddSection (wIniFile *ini, const char *name)
 
wIniFileKey * IniFile_GetKey (wIniFile *ini, wIniFileSection *section, const char *name)
 
wIniFileKey * IniFile_AddKey (wIniFile *ini, wIniFileSection *section, const char *name, const char *value)
 
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 IniFile_Free (wIniFile *ini)
 

Function Documentation

wIniFileKey* IniFile_AddKey ( wIniFile *  ini,
wIniFileSection *  section,
const char *  name,
const char *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

wIniFileSection* IniFile_AddSection ( wIniFile *  ini,
const char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void IniFile_Free ( wIniFile *  ini)

Here is the call graph for this function:

Here is the caller graph for this function:

wIniFileKey* IniFile_GetKey ( wIniFile *  ini,
wIniFileSection *  section,
const char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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:

wIniFileSection* IniFile_GetSection ( wIniFile *  ini,
const char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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:

char** IniFile_GetSectionNames ( wIniFile *  ini,
int *  count 
)

Here is the caller graph for this function:

void IniFile_Key_Free ( wIniFileKey *  key)

Here is the caller graph for this function:

wIniFileKey* IniFile_Key_New ( const char *  name,
const char *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int IniFile_Load ( wIniFile *  ini)

Here is the call graph for this function:

Here is the caller graph for this function:

int IniFile_Load_File ( wIniFile *  ini,
const char *  filename 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void IniFile_Load_Finish ( wIniFile *  ini)

Here is the caller graph for this function:

char* IniFile_Load_GetNextLine ( wIniFile *  ini)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL IniFile_Load_HasNextLine ( wIniFile *  ini)

Here is the caller graph for this function:

BOOL IniFile_Load_NextLine ( wIniFile *  ini,
char *  str 
)

WinPR: Windows Portable Runtime .ini config file

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

Here is the caller graph for this function:

int IniFile_Load_String ( wIniFile *  ini,
const char *  iniString 
)

Here is the call graph for this function:

Here is the caller graph for this function:

wIniFile* IniFile_New ( )

Here is the caller graph for this function:

int IniFile_Open_File ( wIniFile *  ini,
const char *  filename 
)

Here is the caller graph for this function:

int IniFile_ReadBuffer ( wIniFile *  ini,
const char *  buffer 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int IniFile_ReadFile ( wIniFile *  ini,
const char *  filename 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void IniFile_Section_Free ( wIniFileSection *  section)

Here is the call graph for this function:

Here is the caller graph for this function:

wIniFileSection* IniFile_Section_New ( const char *  name)

Here is the call graph for this function:

Here is the caller graph for this function:

int IniFile_SetKeyValueInt ( wIniFile *  ini,
const char *  section,
const char *  key,
int  value 
)

Here is the call graph for this function:

int IniFile_SetKeyValueString ( wIniFile *  ini,
const char *  section,
const char *  key,
const char *  value 
)

Here is the call graph for this function:

char* IniFile_WriteBuffer ( wIniFile *  ini)

Here is the caller graph for this function:

int IniFile_WriteFile ( wIniFile *  ini,
const char *  filename 
)

Here is the call graph for this function: