table of contents
| meta.c(3elektra) | Elektra | meta.c(3elektra) |
NAME¶
meta.c - Methods for metadata manipulation.
SYNOPSIS¶
#include <kdb.h>
#include <kdbconfig.h>
#include <kdbease.h>
#include <kdbmeta.h>
#include <kdbprivate.h>
#include <kdbproposal.h>
#include <kdbtypes.h>
Functions¶
const char * keyComment (const Key *key)
Return a pointer to the real internal key comment. " ssize_t
keyGetCommentSize (const Key *key)
Calculates number of bytes needed to store a key comment, including final
NULL. " ssize_t keyGetComment (const Key *key, char
*returnedComment, size_t maxSize)
Get the key comment. ssize_t keySetComment (Key *key, const char
*newComment)
Set a comment for a key. uid_t keyGetUID (const Key *key)
Get the user ID of a key. int keySetUID (Key *key, uid_t uid)
Set the user ID of a key. gid_t keyGetGID (const Key *key)
Get the group ID of a key. int keySetGID (Key *key, gid_t gid)
Set the group ID of a key. int keySetDir (Key *key)
Set mode so that key will be recognized as directory. mode_t keyGetMode
(const Key *key)
Return the key mode permissions. int keySetMode (Key *key, mode_t mode)
Set the key mode permissions. time_t keyGetATime (const Key *key)
Get last time the key data was read from disk. int keySetATime (Key
*key, time_t atime)
Update the atime information for a key. time_t keyGetMTime (const Key
*key)
Get last modification time of the key on disk. int keySetMTime (Key
*key, time_t mtime)
Update the mtime information for a key. time_t keyGetCTime (const Key
*key)
Get last time the key metadata was changed from disk. int keySetCTime
(Key *key, time_t ctime)
Update the ctime information for a key. int elektraKeyCmpOrder (const
Key *ka, const Key *kb)
Compare the order metadata of two keys. void elektraMetaArrayAdd (Key
*key, const char *metaName, const char *value)
creates an metadata array or appends another element to an existing metadata
array e.g. KeySet * elektraMetaArrayToKS (Key *key, const char
*metaName)
Create a KeySet from a metakey array. " int
elektraSortTopology (KeySet *ks, Key **array)
topological sorting char * elektraMetaArrayToString (Key *key, const
char *metaName, const char *delim)
returns the metakey array as a string separated by delim
Detailed Description¶
Methods for metadata manipulation.
Copyright:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |