\hypertarget{lirc__options_8h}{}\section{/home/mk/tmp/lirc/lib/lirc\+\_\+options.h File Reference}
\label{lirc__options_8h}\index{/home/mk/tmp/lirc/lib/lirc\+\_\+options.\+h(9acb2e2 2016-\/01-\/06 15\+:30\+:13 +0100)@{/home/mk/tmp/lirc/lib/lirc\+\_\+options.\+h(9acb2e2 2016-\/01-\/06 15\+:30\+:13 +0100)}}


Options management\+: options file, parse and retrieve.  


{\ttfamily \#include \char`\"{}lirc\+\_\+log.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ciniparser.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{lirc__options_8h_a6a05c88bc1c7265388606141a91d353e}{}\label{lirc__options_8h_a6a05c88bc1c7265388606141a91d353e} 
void {\bfseries options\+\_\+set\+\_\+opt} (const char $\ast$key, const char $\ast$value)
\item 
\hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} \hyperlink{lirc__options_8h_a21ea46a90d52096ab0a309317312b346}{options\+\_\+set\+\_\+loglevel} (const char $\ast$optarg)
\item 
\hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} \hyperlink{lirc__options_8h_a2e0ec345fba828920ffe10c85d4aa9c9}{options\+\_\+get\+\_\+app\+\_\+loglevel} (const char $\ast$app)
\item 
\hypertarget{lirc__options_8h_a9917b4b8d7a19dc7ff99235e581a58b0}{}\label{lirc__options_8h_a9917b4b8d7a19dc7ff99235e581a58b0} 
const char $\ast$ {\bfseries options\+\_\+getstring} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8h_a1eec84b36958fc178e354b487a080865}{}\label{lirc__options_8h_a1eec84b36958fc178e354b487a080865} 
int {\bfseries options\+\_\+getint} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8h_a333b13c75679c2afa86790b304b16100}{}\label{lirc__options_8h_a333b13c75679c2afa86790b304b16100} 
int {\bfseries options\+\_\+getboolean} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8h_ab9373283ae6a21a09e9f5d5e54e25a28}{}\label{lirc__options_8h_ab9373283ae6a21a09e9f5d5e54e25a28} 
void {\bfseries options\+\_\+add\+\_\+defaults} (const char $\ast$const defaults\mbox{[}$\,$\mbox{]})
\item 
\hypertarget{lirc__options_8h_a12b91158bd39e399de7a502cfb627ac2}{}\label{lirc__options_8h_a12b91158bd39e399de7a502cfb627ac2} 
void {\bfseries options\+\_\+load} (int argc, char $\ast$$\ast$const argv, const char $\ast$options\+\_\+file, void($\ast$options\+\_\+load)(int, char $\ast$$\ast$const))
\item 
\hypertarget{lirc__options_8h_a90f379fbbe68f7cd94b115975c57a7ce}{}\label{lirc__options_8h_a90f379fbbe68f7cd94b115975c57a7ce} 
void {\bfseries options\+\_\+unload} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{lirc__options_8h_a2d47d46e8babed68a22a0a8505e534c8}{}\label{lirc__options_8h_a2d47d46e8babed68a22a0a8505e534c8} 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ {\bfseries lirc\+\_\+options}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Options management\+: options file, parse and retrieve. 



\subsection{Function Documentation}
\hypertarget{lirc__options_8h_a2e0ec345fba828920ffe10c85d4aa9c9}{}\label{lirc__options_8h_a2e0ec345fba828920ffe10c85d4aa9c9} 
\index{lirc\+\_\+options.\+h@{lirc\+\_\+options.\+h}!options\+\_\+get\+\_\+app\+\_\+loglevel@{options\+\_\+get\+\_\+app\+\_\+loglevel}}
\index{options\+\_\+get\+\_\+app\+\_\+loglevel@{options\+\_\+get\+\_\+app\+\_\+loglevel}!lirc\+\_\+options.\+h@{lirc\+\_\+options.\+h}}
\subsubsection{\texorpdfstring{options\+\_\+get\+\_\+app\+\_\+loglevel()}{options\_get\_app\_loglevel()}}
{\footnotesize\ttfamily \hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} options\+\_\+get\+\_\+app\+\_\+loglevel (\begin{DoxyParamCaption}\item[{const char $\ast$}]{app }\end{DoxyParamCaption})}

Return loglevel based on (falling priority)
\begin{DoxyItemize}
\item L\+I\+R\+C\+\_\+\+L\+O\+G\+L\+E\+V\+EL in environment,
\item If app is non-\/\+N\+U\+LL the \textquotesingle{}debug\textquotesingle{} value in the \mbox{[}app\mbox{]}section
\item The \textquotesingle{}debug\textquotesingle{} value in the \mbox{[}lircd\mbox{]} options file section.
\item The hardcoded default L\+I\+R\+C\+\_\+\+D\+E\+B\+UG 
\end{DoxyItemize}

Definition at line 156 of file lirc\+\_\+options.\+c.

\hypertarget{lirc__options_8h_a21ea46a90d52096ab0a309317312b346}{}\label{lirc__options_8h_a21ea46a90d52096ab0a309317312b346} 
\index{lirc\+\_\+options.\+h@{lirc\+\_\+options.\+h}!options\+\_\+set\+\_\+loglevel@{options\+\_\+set\+\_\+loglevel}}
\index{options\+\_\+set\+\_\+loglevel@{options\+\_\+set\+\_\+loglevel}!lirc\+\_\+options.\+h@{lirc\+\_\+options.\+h}}
\subsubsection{\texorpdfstring{options\+\_\+set\+\_\+loglevel()}{options\_set\_loglevel()}}
{\footnotesize\ttfamily \hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} options\+\_\+set\+\_\+loglevel (\begin{DoxyParamCaption}\item[{const char $\ast$}]{optarg }\end{DoxyParamCaption})}

Parse and store a loglevel, returning value (possibly L\+I\+R\+C\+\_\+\+B\+A\+D\+L\+E\+V\+EL). 

Definition at line 40 of file lirc\+\_\+options.\+c.

