\hypertarget{meta_8c}{}\section{meta.\+c File Reference}
\label{meta_8c}\index{meta.\+c@{meta.\+c}}


Methods for metadata manipulation.  


{\ttfamily \#include $<$kdb.\+h$>$}\newline
{\ttfamily \#include $<$kdbconfig.\+h$>$}\newline
{\ttfamily \#include $<$kdbease.\+h$>$}\newline
{\ttfamily \#include $<$kdbmeta.\+h$>$}\newline
{\ttfamily \#include $<$kdbprivate.\+h$>$}\newline
{\ttfamily \#include $<$kdbproposal.\+h$>$}\newline
{\ttfamily \#include $<$kdbtypes.\+h$>$}\newline
Include dependency graph for meta.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{meta_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \hyperlink{group__meta_gac89fd319783b3457db45b4c09e55274a}{key\+Comment} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Return a pointer to the real internal {\ttfamily key} comment. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__meta_ga0dd737fadc16d4cf16720d17f066a9d3}{key\+Get\+Comment\+Size} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Calculates number of bytes needed to store a key comment, including final N\+U\+LL. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__meta_gafb89735689929ff717cc9f2d0d0b46a2}{key\+Get\+Comment} (const Key $\ast$key, char $\ast$returned\+Comment, size\+\_\+t max\+Size)
\begin{DoxyCompactList}\small\item\em Get the key comment. \end{DoxyCompactList}\item 
ssize\+\_\+t \hyperlink{group__meta_ga8863a877a84fa46e6017fe72e49b89c1}{key\+Set\+Comment} (Key $\ast$key, const char $\ast$new\+Comment)
\begin{DoxyCompactList}\small\item\em Set a comment for a key. \end{DoxyCompactList}\item 
uid\+\_\+t \hyperlink{group__meta_gacaa5060e67b03f50ae49a3620c54bc46}{key\+Get\+U\+ID} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Get the user ID of a key. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_gab5f284f5ecd261e0a290095f50ba1af7}{key\+Set\+U\+ID} (Key $\ast$key, uid\+\_\+t uid)
\begin{DoxyCompactList}\small\item\em Set the user ID of a key. \end{DoxyCompactList}\item 
gid\+\_\+t \hyperlink{group__meta_ga46a95e81d7d7f4e3eb59e60e5f3738c0}{key\+Get\+G\+ID} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Get the group ID of a key. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_ga9e3d0fb3f7ba906e067727b9155d22e3}{key\+Set\+G\+ID} (Key $\ast$key, gid\+\_\+t gid)
\begin{DoxyCompactList}\small\item\em Set the group ID of a key. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_gaae575bd86a628a15ee45baa860522e75}{key\+Set\+Dir} (Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Set mode so that key will be recognized as directory. \end{DoxyCompactList}\item 
mode\+\_\+t \hyperlink{group__meta_gabc0cec592ce3b77e9bc33dbc8e8f6bdc}{key\+Get\+Mode} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Return the key mode permissions. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_ga8803037e35b9da1ce492323a88ff6bc3}{key\+Set\+Mode} (Key $\ast$key, mode\+\_\+t mode)
\begin{DoxyCompactList}\small\item\em Set the key mode permissions. \end{DoxyCompactList}\item 
time\+\_\+t \hyperlink{group__meta_ga6b05da399c3c78904969ef39f191b0eb}{key\+Get\+A\+Time} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Get last time the key data was read from disk. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_ga995d8b84731673c88c7c01f3fed538b9}{key\+Set\+A\+Time} (Key $\ast$key, time\+\_\+t atime)
\begin{DoxyCompactList}\small\item\em Update the atime information for a key. \end{DoxyCompactList}\item 
time\+\_\+t \hyperlink{group__meta_ga57689eb5691679071463b777ae786ae9}{key\+Get\+M\+Time} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Get last modification time of the key on disk. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_ga481d8997187992fe4bbf288bc8ef4db7}{key\+Set\+M\+Time} (Key $\ast$key, time\+\_\+t mtime)
\begin{DoxyCompactList}\small\item\em Update the mtime information for a key. \end{DoxyCompactList}\item 
time\+\_\+t \hyperlink{group__meta_ga2c213c120cbe02201278ef7fb8cd94be}{key\+Get\+C\+Time} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Get last time the key metadata was changed from disk. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_ga9f502ecab8ab43f0b17220fcc95f3fa5}{key\+Set\+C\+Time} (Key $\ast$key, time\+\_\+t ctime)
\begin{DoxyCompactList}\small\item\em Update the ctime information for a key. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_gab8b30dfabb0867bd6899e60e7bd193a2}{elektra\+Key\+Cmp\+Order} (const Key $\ast$ka, const Key $\ast$kb)
\begin{DoxyCompactList}\small\item\em Compare the order metadata of two keys. \end{DoxyCompactList}\item 
void \hyperlink{group__meta_ga166c65c4eb2d758ced57b0bd74fb9a57}{elektra\+Meta\+Array\+Add} (Key $\ast$key, const char $\ast$meta\+Name, const char $\ast$value)
\begin{DoxyCompactList}\small\item\em creates an metadata array or appends another element to an existing metadata array e.\+g. \end{DoxyCompactList}\item 
Key\+Set $\ast$ \hyperlink{group__meta_gacee3e2d9285dd2bde975a09fdbe50502}{elektra\+Meta\+Array\+To\+KS} (Key $\ast$key, const char $\ast$meta\+Name)
\begin{DoxyCompactList}\small\item\em Create a {\ttfamily Key\+Set} from a metakey array. \end{DoxyCompactList}\item 
int \hyperlink{group__meta_gaadfae80314be2415a7654fe8a0d2ee82}{elektra\+Sort\+Topology} (Key\+Set $\ast$ks, Key $\ast$$\ast$array)
\begin{DoxyCompactList}\small\item\em topological sorting \end{DoxyCompactList}\item 
char $\ast$ \hyperlink{group__meta_ga04ceef7845af79a2628a2d4e9217bbb5}{elektra\+Meta\+Array\+To\+String} (Key $\ast$key, const char $\ast$meta\+Name, const char $\ast$delim)
\begin{DoxyCompactList}\small\item\em returns the metakey array as a string separated by delim \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods for metadata manipulation. 

\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}
