Elektra  0.8.15
Functions
meta.c File Reference

Methods for meta data manipulation. More...

#include <kdb.h>
#include <kdbconfig.h>
#include <kdbprivate.h>
#include <kdbmeta.h>
Include dependency graph for meta.c:

Functions

const char * keyComment (const Key *key)
 Return a pointer to the real internal key comment. More...
 
ssize_t keyGetCommentSize (const Key *key)
 Calculates number of bytes needed to store a key comment, including final NULL. More...
 
ssize_t keyGetComment (const Key *key, char *returnedComment, size_t maxSize)
 Get the key comment. More...
 
ssize_t keySetComment (Key *key, const char *newComment)
 Set a comment for a key. More...
 
uid_t keyGetUID (const Key *key)
 Get the user ID of a key. More...
 
int keySetUID (Key *key, uid_t uid)
 Set the user ID of a key. More...
 
gid_t keyGetGID (const Key *key)
 Get the group ID of a key. More...
 
int keySetGID (Key *key, gid_t gid)
 Set the group ID of a key. More...
 
int keySetDir (Key *key)
 Set mode so that key will be recognized as directory. More...
 
mode_t keyGetMode (const Key *key)
 Return the key mode permissions. More...
 
int keySetMode (Key *key, mode_t mode)
 Set the key mode permissions. More...
 
time_t keyGetATime (const Key *key)
 Get last time the key data was read from disk. More...
 
int keySetATime (Key *key, time_t atime)
 Update the atime information for a key. More...
 
time_t keyGetMTime (const Key *key)
 Get last modification time of the key on disk. More...
 
int keySetMTime (Key *key, time_t mtime)
 Update the mtime information for a key. More...
 
time_t keyGetCTime (const Key *key)
 Get last time the key metadata was changed from disk. More...
 
int keySetCTime (Key *key, time_t ctime)
 Update the ctime information for a key. More...
 
int elektraKeyCmpOrder (const Key *ka, const Key *kb)
 Compare the order metadata of two keys. More...
 

Detailed Description

Methods for meta data manipulation.