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


Implements a dictionary for string variables.

This module implements a simple dictionary object, i.\+e. a list of string/string associations. This object is useful to store e.\+g. information retrieved from a configuration file (ini files).  


{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include $<$stdlib.\+h$>$}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$unistd.\+h$>$}\\*
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct__dictionary__}{\+\_\+dictionary\+\_\+}
\begin{DoxyCompactList}\small\item\em Dictionary object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{struct__dictionary__}{\+\_\+dictionary\+\_\+} \hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary}
\begin{DoxyCompactList}\small\item\em Dictionary object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{group__ciniparser_ga7c1ef0a729e668d1e8d6a7e774feaf2e}{dictionary\+\_\+hash} (const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Compute the hash key for a string. \end{DoxyCompactList}\item 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ \hyperlink{group__ciniparser_ga876a908eb786f957f939a08a362e514d}{dictionary\+\_\+new} (int size)
\begin{DoxyCompactList}\small\item\em Create a new dictionary object. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga9d792f2544cf674a371663e2f32128fa}{dictionary\+\_\+del} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$vd)
\begin{DoxyCompactList}\small\item\em Delete a dictionary object. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_ga9b891a858ce598f8c87e3312d47bb2fc}{dictionary\+\_\+get} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, const char $\ast$def)
\begin{DoxyCompactList}\small\item\em Get a value from a dictionary. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_gaab65a95ad09062716b24a129d8529b76}{dictionary\+\_\+set} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$vd, const char $\ast$key, const char $\ast$val)
\begin{DoxyCompactList}\small\item\em Set a value in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga27f0752948d52ccd2568dae22f5db2bc}{dictionary\+\_\+unset} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Delete a key in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga6e29ecf9c79331b1c6c26cd662cba042}{dictionary\+\_\+dump} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+L\+E $\ast$out)
\begin{DoxyCompactList}\small\item\em Dump a dictionary to an opened file pointer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements a dictionary for string variables.

This module implements a simple dictionary object, i.\+e. a list of string/string associations. This object is useful to store e.\+g. information retrieved from a configuration file (ini files). 

\begin{DoxyAuthor}{Author}
N. Devillard 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
Sep 2007 
\end{DoxyDate}
\begin{DoxyVersion}{Version}
Revision\+: 1.\+12 
\end{DoxyVersion}
