\hypertarget{driver_8c}{}\section{/home/mk/tmp/lirc/lib/driver.c File Reference}
\label{driver_8c}\index{/home/mk/tmp/lirc/lib/driver.\+c(0851399 2016-\/05-\/03 10\+:48\+:56 +0200)@{/home/mk/tmp/lirc/lib/driver.\+c(0851399 2016-\/05-\/03 10\+:48\+:56 +0200)}}


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


{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include \char`\"{}driver.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}lirc\+\_\+log.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__driver__api_ga6e377ea8a639984e713db080d0909d93}{glob\+\_\+t\+\_\+init} (glob\+\_\+t $\ast$glob)
\item 
void \hyperlink{group__driver__api_gab161fca4b5f718227912839380529892}{glob\+\_\+t\+\_\+add\+\_\+path} (glob\+\_\+t $\ast$glob, const char $\ast$path)
\item 
void \hyperlink{group__driver__api_ga802fd321399ff103cc2702beec67e29f}{glob\+\_\+t\+\_\+free} (glob\+\_\+t $\ast$glob)
\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\+MT} = \char`\"{}\%32s\%64s\char`\"{}
\item 
const struct \hyperlink{structdriver}{driver} $\ast$const \hyperlink{driver_8c_a656110ac202d464ae49251c9599baf66}{curr\+\_\+driver} = \&\hyperlink{drv__admin_8c_a18548a9bde23bdaa38bd8be5ab24428f}{drv}
\item 
const int \hyperlink{driver_8c_a120e92d46830aa04786248a6821df39c}{G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE} = 32
\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_a656110ac202d464ae49251c9599baf66}{}\label{driver_8c_a656110ac202d464ae49251c9599baf66} 
\index{driver.\+c@{driver.\+c}!curr\+\_\+driver@{curr\+\_\+driver}}
\index{curr\+\_\+driver@{curr\+\_\+driver}!driver.\+c@{driver.\+c}}
\subsubsection{\texorpdfstring{curr\+\_\+driver}{curr\_driver}}
{\footnotesize\ttfamily const struct \hyperlink{structdriver}{driver}$\ast$ const curr\+\_\+driver = \&\hyperlink{drv__admin_8c_a18548a9bde23bdaa38bd8be5ab24428f}{drv}}

Read-\/only access to drv for client code. 

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

\hypertarget{driver_8c_a18548a9bde23bdaa38bd8be5ab24428f}{}\label{driver_8c_a18548a9bde23bdaa38bd8be5ab24428f} 
\index{driver.\+c@{driver.\+c}!drv@{drv}}
\index{drv@{drv}!driver.\+c@{driver.\+c}}
\subsubsection{\texorpdfstring{drv}{drv}}
{\footnotesize\ttfamily struct \hyperlink{structdriver}{driver} drv}

The global driver data that drivers etc are accessing. Set by \hyperlink{drv__admin_8c_a1eaff4902d2d278d2d42e47e763c89da}{hw\+\_\+choose\+\_\+driver()}. 

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

\hypertarget{driver_8c_a120e92d46830aa04786248a6821df39c}{}\label{driver_8c_a120e92d46830aa04786248a6821df39c} 
\index{driver.\+c@{driver.\+c}!G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE@{G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE}}
\index{G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE@{G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE}!driver.\+c@{driver.\+c}}
\subsubsection{\texorpdfstring{G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE}{GLOB\_CHUNK\_SIZE}}
{\footnotesize\ttfamily const int G\+L\+O\+B\+\_\+\+C\+H\+U\+N\+K\+\_\+\+S\+I\+ZE = 32}

Allocation chunk in glob\+\_\+t\+\_\+$\ast$ routines. 

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

\hypertarget{driver_8c_a47ecbd16ae0f73ec16bf3186beea0e27}{}\label{driver_8c_a47ecbd16ae0f73ec16bf3186beea0e27} 
\index{driver.\+c@{driver.\+c}!O\+P\+T\+I\+O\+N\+\_\+\+F\+MT@{O\+P\+T\+I\+O\+N\+\_\+\+F\+MT}}
\index{O\+P\+T\+I\+O\+N\+\_\+\+F\+MT@{O\+P\+T\+I\+O\+N\+\_\+\+F\+MT}!driver.\+c@{driver.\+c}}
\subsubsection{\texorpdfstring{O\+P\+T\+I\+O\+N\+\_\+\+F\+MT}{OPTION\_FMT}}
{\footnotesize\ttfamily const char$\ast$ const O\+P\+T\+I\+O\+N\+\_\+\+F\+MT = \char`\"{}\%32s\%64s\char`\"{}}

sscanf format to parse \hyperlink{structoption__t}{option\+\_\+t}. 

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

