\hypertarget{keyset_8c}{}\section{keyset.\+c File Reference}
\label{keyset_8c}\index{keyset.\+c@{keyset.\+c}}


Methods for key sets.  


{\ttfamily \#include $<$kdbtypes.\+h$>$}\newline
{\ttfamily \#include \char`\"{}kdbinternal.\+h\char`\"{}}\newline
{\ttfamily \#include $<$kdbassert.\+h$>$}\newline
{\ttfamily \#include $<$kdbrand.\+h$>$}\newline
Include dependency graph for keyset.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{keyset_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Key\+Set $\ast$ \hyperlink{group__keyset_ga671e1aaee3ae9dc13b4834a4ddbd2c3c}{ks\+New} (size\+\_\+t alloc,...)
\begin{DoxyCompactList}\small\item\em Allocate, initialize and return a new Key\+Set object. \end{DoxyCompactList}\item 
Key\+Set $\ast$ \hyperlink{group__keyset_ga4ff760f56693b51ab785ed7ce628e649}{ks\+V\+New} (size\+\_\+t alloc, va\+\_\+list va)
\begin{DoxyCompactList}\small\item\em Allocate, initialize and return a new Key\+Set object. \end{DoxyCompactList}\item 
Key\+Set $\ast$ \hyperlink{group__keyset_gac59e4b328245463f1451f68d5106151c}{ks\+Dup} (const Key\+Set $\ast$source)
\begin{DoxyCompactList}\small\item\em Return a duplicate of a keyset. \end{DoxyCompactList}\item 
int \hyperlink{group__keyset_gaba1f1dbea191f4d7e7eb3e4296ae7d5e}{ks\+Copy} (Key\+Set $\ast$dest, const Key\+Set $\ast$source)
\begin{DoxyCompactList}\small\item\em Replace the content of a keyset with another one. \end{DoxyCompactList}\item 
int \hyperlink{group__keyset_ga27e5c16473b02a422238c8d970db7ac8}{ks\+Del} (Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em A destructor for Key\+Set objects. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_gaf6e66e12fe04d535a5d1c8218ced803e}{key\+Cmp} (const Key $\ast$k1, const Key $\ast$k2)
\begin{DoxyCompactList}\small\item\em Compare the name of two keys. \end{DoxyCompactList}\item 
int \hyperlink{group__keyset_ga8f210432e664d8ba06d7d55a2aba2d0f}{ks\+Need\+Sync} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Checks if Key\+Set needs sync. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__keyset_ga7474ad6b0a0fa969dbdf267ba5770eee}{ks\+Get\+Size} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Return the number of keys that {\ttfamily ks} contains. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__keyset_gaa5a1d467a4d71041edce68ea7748ce45}{ks\+Append\+Key} (Key\+Set $\ast$ks, Key $\ast$to\+Append)
\begin{DoxyCompactList}\small\item\em Appends a Key to the end of {\ttfamily ks}. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__keyset_ga21eb9c3a14a604ee3a8bdc779232e7b7}{ks\+Append} (Key\+Set $\ast$ks, const Key\+Set $\ast$to\+Append)
\begin{DoxyCompactList}\small\item\em Append all {\ttfamily to\+Append} contained keys to the end of the {\ttfamily ks}. \end{DoxyCompactList}\item 
Key\+Set $\ast$ \hyperlink{group__keyset_ga6b00cf82b59af4d883a9bad6cf4a4a4a}{ks\+Cut} (Key\+Set $\ast$ks, const Key $\ast$cutpoint)
\begin{DoxyCompactList}\small\item\em Cuts out a keyset at the cutpoint. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_gae42530b04defb772059de0600159cf69}{ks\+Pop} (Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Remove and return the last key of {\ttfamily ks}. \end{DoxyCompactList}\item 
int \hyperlink{group__keyset_gabe793ff51f1728e3429c84a8a9086b70}{ks\+Rewind} (Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Rewinds the Key\+Set internal cursor. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_ga317321c9065b5a4b3e33fe1c399bcec9}{ks\+Next} (Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Returns the next Key in a Key\+Set. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_ga4287b9416912c5f2ab9c195cb74fb094}{ks\+Current} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Return the current Key. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_gae7dbf3aef70e67b5328475eb3d1f92f5}{ks\+Head} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Return the first key in the Key\+Set. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_gadca442c4ab43cf532b15091d7711559e}{ks\+Tail} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Return the last key in the Key\+Set. \end{DoxyCompactList}\item 
elektra\+Cursor \hyperlink{group__keyset_gace0444eb8ec958a429794f8586fc72e7}{ks\+Get\+Cursor} (const Key\+Set $\ast$ks)
\begin{DoxyCompactList}\small\item\em Get the Key\+Set internal cursor. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_ga12b8fefaa20546e4790d60338b0db836}{ks\+At\+Cursor} (Key\+Set $\ast$ks, elektra\+Cursor pos)
\begin{DoxyCompactList}\small\item\em return key at given position \end{DoxyCompactList}\item 
int \hyperlink{group__keyset_ga28b2a7d13c620b3c9d4815a0608c738f}{ks\+Set\+Cursor} (Key\+Set $\ast$ks, elektra\+Cursor cursor)
\begin{DoxyCompactList}\small\item\em Set the Key\+Set internal cursor. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_ga60f1ddcf23272f2b29b90e92ebe9b56f}{ks\+Lookup} (Key\+Set $\ast$ks, Key $\ast$key, \hyperlink{group__keyset_gada05f4bbf46fde81d0d57df86e73d914}{elektra\+Lookup\+Flags} options)
\begin{DoxyCompactList}\small\item\em Look for a Key contained in {\ttfamily ks} that matches the name of the {\ttfamily key}. \end{DoxyCompactList}\item 
Key $\ast$ \hyperlink{group__keyset_gad65d2cdcbb5381194a1688e169af8a83}{ks\+Lookup\+By\+Name} (Key\+Set $\ast$ks, const char $\ast$name, \hyperlink{group__keyset_gada05f4bbf46fde81d0d57df86e73d914}{elektra\+Lookup\+Flags} options)
\begin{DoxyCompactList}\small\item\em Convenience method to look for a Key contained in {\ttfamily ks} that matches {\ttfamily name}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods for key sets. 

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