\hypertarget{kdbmerge_8h}{}\doxysection{kdbmerge.\+h File Reference}
\label{kdbmerge_8h}\index{kdbmerge.h@{kdbmerge.h}}


Kdb merge tool.  


{\ttfamily \#include \char`\"{}kdb.\+h\char`\"{}}\newline
Include dependency graph for kdbmerge.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=155pt]{kdbmerge_8h__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Key\+Set $\ast$ \mbox{\hyperlink{kdbmerge_8h_a5cb2bdc8c7e955afcd37c7fce5de6cf9}{elektra\+Merge}} (Key\+Set $\ast$our, Key $\ast$our\+Root, Key\+Set $\ast$their, Key $\ast$their\+Root, Key\+Set $\ast$base, Key $\ast$base\+Root, Key $\ast$result\+Key, int strategy, Key $\ast$information\+Key)
\begin{DoxyCompactList}\small\item\em This function can incorporate changes from two modified versions (our and their) into a common preceding version (base) of a key set. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{kdbmerge_8h_aa4b4c9a6f50a1f5d602fc84c8abce208}{elektra\+Merge\+Get\+Conflicts}} (Key $\ast$information\+Key)
\begin{DoxyCompactList}\small\item\em This function returns the number of conflicts that is store in the key. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Kdb merge tool. 

\begin{DoxyCopyright}{Copyright}
BSD License (see LICENSE.\+md or \href{https://ww.libelektra.org}{\texttt{ https\+://ww.\+libelektra.\+org}}) 
\end{DoxyCopyright}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{kdbmerge_8h_a5cb2bdc8c7e955afcd37c7fce5de6cf9}\label{kdbmerge_8h_a5cb2bdc8c7e955afcd37c7fce5de6cf9}} 
\index{kdbmerge.h@{kdbmerge.h}!elektraMerge@{elektraMerge}}
\index{elektraMerge@{elektraMerge}!kdbmerge.h@{kdbmerge.h}}
\doxysubsubsection{\texorpdfstring{elektraMerge()}{elektraMerge()}}
{\footnotesize\ttfamily Key\+Set$\ast$ elektra\+Merge (\begin{DoxyParamCaption}\item[{Key\+Set $\ast$}]{our,  }\item[{Key $\ast$}]{our\+Root,  }\item[{Key\+Set $\ast$}]{their,  }\item[{Key $\ast$}]{their\+Root,  }\item[{Key\+Set $\ast$}]{base,  }\item[{Key $\ast$}]{base\+Root,  }\item[{Key $\ast$}]{result\+Root,  }\item[{int}]{strategy,  }\item[{Key $\ast$}]{information\+Key }\end{DoxyParamCaption})}



This function can incorporate changes from two modified versions (our and their) into a common preceding version (base) of a key set. 

This lets you merge the sets of changes represented by the two newer key sets. This is called a three-\/way merge between key sets.

Join three key sets together 
\begin{DoxyParams}{Parameters}
{\em our} & our key set \\
\hline
{\em our\+Root} & key that has the root of our as name \\
\hline
{\em their} & their key set \\
\hline
{\em their\+Root} & key that has the root of their as name \\
\hline
{\em base} & base key set \\
\hline
{\em base\+Root} & key that has the root of base as name \\
\hline
{\em result\+Root} & the name of this key determines where the resulting key set will be stored \\
\hline
{\em strategy} & specify which merge strategy to choose in case of a conflict \\
\hline
{\em information\+Key} & stores errors as well as statistics \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the merged key set and NULL on error 
\end{DoxyReturn}
\mbox{\Hypertarget{kdbmerge_8h_aa4b4c9a6f50a1f5d602fc84c8abce208}\label{kdbmerge_8h_aa4b4c9a6f50a1f5d602fc84c8abce208}} 
\index{kdbmerge.h@{kdbmerge.h}!elektraMergeGetConflicts@{elektraMergeGetConflicts}}
\index{elektraMergeGetConflicts@{elektraMergeGetConflicts}!kdbmerge.h@{kdbmerge.h}}
\doxysubsubsection{\texorpdfstring{elektraMergeGetConflicts()}{elektraMergeGetConflicts()}}
{\footnotesize\ttfamily int elektra\+Merge\+Get\+Conflicts (\begin{DoxyParamCaption}\item[{Key $\ast$}]{information\+Key }\end{DoxyParamCaption})}



This function returns the number of conflicts that is store in the key. 


\begin{DoxyParams}{Parameters}
{\em information\+Key} & contains the statistics in its meta information \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the number of conflicts stored in the key 
\end{DoxyReturn}
