\hypertarget{lirc__options_8c}{}\section{/home/mk/tmp/lirc/lib/lirc\+\_\+options.c File Reference}
\label{lirc__options_8c}\index{/home/mk/tmp/lirc/lib/lirc\+\_\+options.\+c(06ece08 2016-\/01-\/08 19\+:03\+:17 +0100)@{/home/mk/tmp/lirc/lib/lirc\+\_\+options.\+c(06ece08 2016-\/01-\/08 19\+:03\+:17 +0100)}}


Implements \hyperlink{lirc__options_8h}{lirc\+\_\+options.\+h}.  


{\ttfamily \#include $<$getopt.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include \char`\"{}ciniparser.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc\+\_\+options.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc\+\_\+log.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} \hyperlink{lirc__options_8c_a21ea46a90d52096ab0a309317312b346}{options\+\_\+set\+\_\+loglevel} (const char $\ast$optarg)
\item 
\hypertarget{lirc__options_8c_a6a05c88bc1c7265388606141a91d353e}{}\label{lirc__options_8c_a6a05c88bc1c7265388606141a91d353e} 
void {\bfseries options\+\_\+set\+\_\+opt} (const char $\ast$key, const char $\ast$value)
\item 
\hypertarget{lirc__options_8c_a9917b4b8d7a19dc7ff99235e581a58b0}{}\label{lirc__options_8c_a9917b4b8d7a19dc7ff99235e581a58b0} 
const char $\ast$ {\bfseries options\+\_\+getstring} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8c_a1eec84b36958fc178e354b487a080865}{}\label{lirc__options_8c_a1eec84b36958fc178e354b487a080865} 
int {\bfseries options\+\_\+getint} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8c_a333b13c75679c2afa86790b304b16100}{}\label{lirc__options_8c_a333b13c75679c2afa86790b304b16100} 
int {\bfseries options\+\_\+getboolean} (const char $\ast$const key)
\item 
\hypertarget{lirc__options_8c_a4ae178af397fc56d63a526535bbffe5d}{}\label{lirc__options_8c_a4ae178af397fc56d63a526535bbffe5d} 
void {\bfseries options\+\_\+load} (int argc, char $\ast$$\ast$const argv, const char $\ast$path\+\_\+arg, void($\ast$parse\+\_\+options)(int, char $\ast$$\ast$const))
\item 
\hyperlink{lirc__log_8h_a24e101a095456e946efea0b971fc2ee3}{loglevel\+\_\+t} \hyperlink{lirc__options_8c_a2e0ec345fba828920ffe10c85d4aa9c9}{options\+\_\+get\+\_\+app\+\_\+loglevel} (const char $\ast$app)
\item 
\hypertarget{lirc__options_8c_ab9373283ae6a21a09e9f5d5e54e25a28}{}\label{lirc__options_8c_ab9373283ae6a21a09e9f5d5e54e25a28} 
void {\bfseries options\+\_\+add\+\_\+defaults} (const char $\ast$const defaults\mbox{[}$\,$\mbox{]})
\item 
\hypertarget{lirc__options_8c_a90f379fbbe68f7cd94b115975c57a7ce}{}\label{lirc__options_8c_a90f379fbbe68f7cd94b115975c57a7ce} 
void {\bfseries options\+\_\+unload} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{lirc__options_8c_a2d47d46e8babed68a22a0a8505e534c8}{}\label{lirc__options_8c_a2d47d46e8babed68a22a0a8505e534c8} 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ {\bfseries lirc\+\_\+options} = N\+U\+LL
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements \hyperlink{lirc__options_8h}{lirc\+\_\+options.\+h}. 



\subsection{Function Documentation}
\hypertarget{lirc__options_8c_a2e0ec345fba828920ffe10c85d4aa9c9}{}\label{lirc__options_8c_a2e0ec345fba828920ffe10c85d4aa9c9} 
\index{lirc\+\_\+options.\+c@{lirc\+\_\+options.\+c}!options\+\_\+get\+\_\+app\+\_\+loglevel@{options\+\_\+get\+\_\+app\+\_\+loglevel}}
\index{options\+\_\+get\+\_\+app\+\_\+loglevel@{options\+\_\+get\+\_\+app\+\_\+loglevel}!lirc\+\_\+options.\+c@{lirc\+\_\+options.\+c}}
\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_8c_a21ea46a90d52096ab0a309317312b346}{}\label{lirc__options_8c_a21ea46a90d52096ab0a309317312b346} 
\index{lirc\+\_\+options.\+c@{lirc\+\_\+options.\+c}!options\+\_\+set\+\_\+loglevel@{options\+\_\+set\+\_\+loglevel}}
\index{options\+\_\+set\+\_\+loglevel@{options\+\_\+set\+\_\+loglevel}!lirc\+\_\+options.\+c@{lirc\+\_\+options.\+c}}
\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.

