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


Implements \hyperlink{driver_8h}{driver.\+h}.  


{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include \char`\"{}driver.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}lirc\+\_\+log.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__driver__api_gac0f7baaef9fe524365c16022001804d3}{default\+\_\+open} (const char $\ast$path)
\item 
int \hyperlink{group__driver__api_ga683dd53e7e5d62746c1a645fe133daf0}{default\+\_\+close} (void)
\item 
int \hyperlink{group__driver__api_ga96e3243bc45ff488f6c55dde5e9b377b}{default\+\_\+drvctl} (unsigned int fd, void $\ast$arg)
\item 
int \hyperlink{group__driver__api_gaae1b223d2bd3a0d0be6e77019c9a976c}{drv\+\_\+handle\+\_\+options} (const char $\ast$options)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structdriver}{driver} \hyperlink{driver_8c_a18548a9bde23bdaa38bd8be5ab24428f}{drv}
\item 
const char $\ast$const \hyperlink{driver_8c_a47ecbd16ae0f73ec16bf3186beea0e27}{O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T} = \char`\"{}\%32s\%64s\char`\"{}
\item 
const struct \hyperlink{structdriver}{driver} const $\ast$ \hyperlink{driver_8c_ad91d56c6105bc2b6a4ae984b35095307}{curr\+\_\+driver} = \&\hyperlink{drv__admin_8c_a18548a9bde23bdaa38bd8be5ab24428f}{drv}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements \hyperlink{driver_8h}{driver.\+h}. 

\begin{DoxyAuthor}{Author}
Alec Leamas 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
August 2014  G\+P\+L2 or later Access and support for \hyperlink{driver_8h}{driver.\+h}, the global driver. 
\end{DoxyDate}


\subsection{Variable Documentation}
\hypertarget{driver_8c_ad91d56c6105bc2b6a4ae984b35095307}{}\index{driver.\+c@{driver.\+c}!curr\+\_\+driver@{curr\+\_\+driver}}
\index{curr\+\_\+driver@{curr\+\_\+driver}!driver.\+c@{driver.\+c}}
\subsubsection[{curr\+\_\+driver}]{\setlength{\rightskip}{0pt plus 5cm}const struct {\bf driver} const$\ast$ curr\+\_\+driver = \&{\bf drv}}\label{driver_8c_ad91d56c6105bc2b6a4ae984b35095307}
Read-\/only access to drv for client code. 

Definition at line 26 of file driver.\+c.

\hypertarget{driver_8c_a18548a9bde23bdaa38bd8be5ab24428f}{}\index{driver.\+c@{driver.\+c}!drv@{drv}}
\index{drv@{drv}!driver.\+c@{driver.\+c}}
\subsubsection[{drv}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf driver} drv}\label{driver_8c_a18548a9bde23bdaa38bd8be5ab24428f}
The global driver data that drivers etc are accessing. Set by \hyperlink{drv__admin_8c_a1eaff4902d2d278d2d42e47e763c89da}{hw\+\_\+choose\+\_\+driver()}. 

Definition at line 20 of file driver.\+c.

\hypertarget{driver_8c_a47ecbd16ae0f73ec16bf3186beea0e27}{}\index{driver.\+c@{driver.\+c}!O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T@{O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T}}
\index{O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T@{O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T}!driver.\+c@{driver.\+c}}
\subsubsection[{O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ const O\+P\+T\+I\+O\+N\+\_\+\+F\+M\+T = \char`\"{}\%32s\%64s\char`\"{}}\label{driver_8c_a47ecbd16ae0f73ec16bf3186beea0e27}
sscanf format to parse \hyperlink{structoption__t}{option\+\_\+t}. 

Definition at line 23 of file driver.\+c.

