\hypertarget{ciniparser_8c}{}\section{/home/mk/tmp/lirc/lib/ciniparser.c File Reference}
\label{ciniparser_8c}\index{/home/mk/tmp/lirc/lib/ciniparser.\+c(9c596ec 2015-\/02-\/10 14\+:16\+:32 +0100)@{/home/mk/tmp/lirc/lib/ciniparser.\+c(9c596ec 2015-\/02-\/10 14\+:16\+:32 +0100)}}


Parser for ini files.  


{\ttfamily \#include $<$ctype.\+h$>$}\newline
{\ttfamily \#include $<$ciniparser.\+h$>$}\newline
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries A\+S\+C\+I\+I\+L\+I\+N\+E\+SZ}~(1024)
\item 
\#define {\bfseries I\+N\+I\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+K\+EY}~((char$\ast$)N\+U\+LL)
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef enum \hyperlink{group__ciniparser_ga2fdd0675424601a39f3534cf0088822c}{\+\_\+line\+\_\+status\+\_\+} \hyperlink{group__ciniparser_gadc101255f1686a23210fb9ea88394d46}{line\+\_\+status}
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__ciniparser_ga2fdd0675424601a39f3534cf0088822c}{\+\_\+line\+\_\+status\+\_\+} \{ \newline
{\bfseries L\+I\+N\+E\+\_\+\+U\+N\+P\+R\+O\+C\+E\+S\+S\+ED}, 
{\bfseries L\+I\+N\+E\+\_\+\+E\+R\+R\+OR}, 
{\bfseries L\+I\+N\+E\+\_\+\+E\+M\+P\+TY}, 
{\bfseries L\+I\+N\+E\+\_\+\+C\+O\+M\+M\+E\+NT}, 
\newline
{\bfseries L\+I\+N\+E\+\_\+\+S\+E\+C\+T\+I\+ON}, 
{\bfseries L\+I\+N\+E\+\_\+\+V\+A\+L\+UE}
 \}
\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_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 
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 
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_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 
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}\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 
\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}\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}
