\hypertarget{kdbmacros_8h}{\section{kdbmacros.\+h File Reference}
\label{kdbmacros_8h}\index{kdbmacros.\+h@{kdbmacros.\+h}}
}


Macros by Elektra.  


This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{kdbmacros_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{kdbmacros_8h_a0c44b5c214e7a7cf5ed2869c7253d79b}{E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y}(info, returned, error)
\begin{DoxyCompactList}\small\item\em Sets error 84 if info != returned. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Macros by Elektra. 

Macros start with E\+L\+E\+K\+T\+R\+A\+\_\+ and are uppercase.

\begin{DoxyCopyright}{Copyright}
B\+S\+D License (see doc/\+L\+I\+C\+E\+N\+S\+E.\+md or \href{http://www.libelektra.org}{\tt http\+://www.\+libelektra.\+org}) 
\end{DoxyCopyright}


\subsection{Macro Definition Documentation}
\hypertarget{kdbmacros_8h_a0c44b5c214e7a7cf5ed2869c7253d79b}{\index{kdbmacros.\+h@{kdbmacros.\+h}!E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y@{E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y}}
\index{E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y@{E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y}!kdbmacros.\+h@{kdbmacros.\+h}}
\subsubsection[{E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+L\+E\+K\+T\+R\+A\+\_\+\+S\+E\+T\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+D\+\_\+\+O\+N\+L\+Y(
\begin{DoxyParamCaption}
\item[{}]{info, }
\item[{}]{returned, }
\item[{}]{error}
\end{DoxyParamCaption}
)}}\label{kdbmacros_8h_a0c44b5c214e7a7cf5ed2869c7253d79b}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                                                         
                              \(\backslash\)
        \{                                                                                                  
                                      \(\backslash\)
                Key * k;                                                                                   
                                      \hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{\(\backslash\)}
\hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{                ksRewind} (info);                                                                 
                                                \hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{\(\backslash\)}
\hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{                ksRewind} (returned);                                                             
                                                \(\backslash\)
                while ((k = \hyperlink{group__keyset_ga317321c9065b5a4b3e33fe1c399bcec9}{ksNext} (returned)))                                                      
                                            \(\backslash\)
                \{                                                                                          
                                      \(\backslash\)
                        Key * c = \hyperlink{group__keyset_ga317321c9065b5a4b3e33fe1c399bcec9}{ksNext} (info);                                                     
                                            \(\backslash\)
                        if (!c)                                                                            
                                      \(\backslash\)
                        \{                                                                                  
                                      \hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{\(\backslash\)}
\hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{                                ELEKTRA\_SET\_ERRORF} (84, error, \textcolor{stringliteral}{"the key %s (value %s)
       was added"}, \hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (k), \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (k));             \hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{\(\backslash\)}
\hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{                                ksDel} (info);                                                     
                                               \(\backslash\)
                                return -1;                                                                 
                                      \(\backslash\)
                        \}                                                                                  
                                      \(\backslash\)
                        if (strcmp (\hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (k), \hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (c)) || strcmp (
      \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (k), \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (c)))                                    \(\backslash\)
                        \{                                                                                  
                                      \hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{\(\backslash\)}
\hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{                                ELEKTRA\_SET\_ERRORF} (84, error, \textcolor{stringliteral}{"the key %s (expected
       %s) was modified to %s (expected %s)"}, \hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (k),   \(\backslash\)
                                                    \hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (c), 
      \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (k), \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (c));                                            
      \hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{\(\backslash\)}
\hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{                                ksDel} (info);                                                     
                                               \(\backslash\)
                                return -1;                                                                 
                                      \(\backslash\)
                        \}                                                                                  
                                      \(\backslash\)
                \}                                                                                          
                                      \(\backslash\)
                if ((k = \hyperlink{group__keyset_ga317321c9065b5a4b3e33fe1c399bcec9}{ksNext} (info)) != 0)                                                        
                                            \(\backslash\)
                \{                                                                                          
                                      \hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{\(\backslash\)}
\hyperlink{group__plugin_ga3e4fc2c20d8e64bed7a54bb1af882e34}{                        ELEKTRA\_SET\_ERRORF} (84, error, \textcolor{stringliteral}{"the key %s (value %s) was
       removed"}, \hyperlink{group__keyname_ga8e805c726a60da921d3736cda7813513}{keyName} (k), \hyperlink{group__keyvalue_ga880936f2481d28e6e2acbe7486a21d05}{keyString} (k));                   \hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{\(\backslash\)}
\hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{                        ksDel} (info);                                                              
                                              \(\backslash\)
                        return -1;                                                                         
                                      \(\backslash\)
                \}                                                                                          
                                      \hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{\(\backslash\)}
\hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{                ksDel} (info);                                                                       
                                             \(\backslash\)
        \} \textcolor{keywordflow}{while} (0)
\end{DoxyCode}


Sets error 84 if info != returned. 


\begin{DoxyParams}{Parameters}
{\em info} & how the info is now (freshly received) \\
\hline
{\em returned} & how the info passed from user is \\
\hline
{\em error} & key to set error to\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
with -\/1 on error 
\end{DoxyReturn}
