\hypertarget{ciniparser_8h}{}\section{/home/mk/tmp/lirc/lib/ciniparser.h File Reference}
\label{ciniparser_8h}\index{/home/mk/tmp/lirc/lib/ciniparser.\+h(dad0c0a 2015-\/02-\/09 13\+:36\+:06 +0100)@{/home/mk/tmp/lirc/lib/ciniparser.\+h(dad0c0a 2015-\/02-\/09 13\+:36\+:06 +0100)}}


Parser for ini files.  


{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
{\ttfamily \#include \char`\"{}dictionary.\+h\char`\"{}}\newline
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries ciniparser\+\_\+getstr}(d,  k)~\hyperlink{group__ciniparser_gaeb8a3530ebcbacf04b16a06c2353699a}{ciniparser\+\_\+getstring}(d, k, N\+U\+LL)
\item 
\#define {\bfseries ciniparser\+\_\+setstr}~\hyperlink{group__ciniparser_ga2890386ff0d944066f74cecff3cd0922}{ciniparser\+\_\+setstring}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__ciniparser_ga306ec559a5feef2a44712a16a72ba64b}{ciniparser\+\_\+getnsec} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d)
\begin{DoxyCompactList}\small\item\em Get number of sections in a dictionary. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_ga57f6090b503edee285e7897b280ee6d0}{ciniparser\+\_\+getsecname} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, int n)
\begin{DoxyCompactList}\small\item\em Get name for section n in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gaedeba8efcca011ca841b7d27f892e930}{ciniparser\+\_\+dump\+\_\+ini} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+LE $\ast$f)
\begin{DoxyCompactList}\small\item\em Save a dictionary to a loadable ini file. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gac3baf2303bc7715836462364ad3d1b71}{ciniparser\+\_\+dump} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+LE $\ast$f)
\begin{DoxyCompactList}\small\item\em Dump a dictionary to an opened file pointer. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_gaeb8a3530ebcbacf04b16a06c2353699a}{ciniparser\+\_\+getstring} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, char $\ast$def)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga494c830a31e50ba9daa03c5b3b596d1d}{ciniparser\+\_\+getint} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, int notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to an int. \end{DoxyCompactList}\item 
double \hyperlink{group__ciniparser_gab47e041735c05feab41bb03b2c2b09f7}{ciniparser\+\_\+getdouble} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, double notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to a double. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga21a20d1db5df6cb8854829a9649d57eb}{ciniparser\+\_\+getboolean} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, int notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to a boolean. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga2890386ff0d944066f74cecff3cd0922}{ciniparser\+\_\+setstring} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ini, char const $\ast$entry, const char $\ast$val)
\begin{DoxyCompactList}\small\item\em Set an entry in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gad0046980ed3cbf9da80b4f47655d27d9}{ciniparser\+\_\+unset} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ini, char $\ast$entry)
\begin{DoxyCompactList}\small\item\em Delete an entry in a dictionary. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_gafeceb3aa96858ad6d94367e834a84d19}{ciniparser\+\_\+find\+\_\+entry} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ini, const char $\ast$entry)
\begin{DoxyCompactList}\small\item\em Finds out if a given entry exists in a dictionary. \end{DoxyCompactList}\item 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ \hyperlink{group__ciniparser_ga1e877c8cb81d953914b7f10030d84ccd}{ciniparser\+\_\+load} (const char $\ast$ininame)
\begin{DoxyCompactList}\small\item\em Parse an ini file and return an allocated dictionary object. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gaddec45454d13abb8fc4a8da8dd4cc338}{ciniparser\+\_\+freedict} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d)
\begin{DoxyCompactList}\small\item\em Free all memory associated to an ini dictionary. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga169dabf5b0a86dc1f4bd01ba6d7e23ce}{ciniparser\+\_\+set} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$entry, const char $\ast$val)
\begin{DoxyCompactList}\small\item\em Set an item in the dictionary. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Parser for ini files. 

\begin{DoxyAuthor}{Author}
N. Devillard 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
Sep 2007 
\end{DoxyDate}
\begin{DoxyVersion}{Version}
3.\+0 
\end{DoxyVersion}
