Elektra: meta.c File Reference

Elektra 0.8.24

Functions
meta.c File Reference

Methods for metadata manipulation. More...

`#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. 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...
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. More...
KeySet * | elektraMetaArrayToKS (Key *key, const char *metaName)
| Create a `KeySet` from a metakey array. More...
int | elektraSortTopology (KeySet *ks, Key **array)
| topological sorting More...
char * | elektraMetaArrayToString (Key *key, const char *metaName, const char *delim)
| returns the metakey array as a string separated by delim More...

## Detailed Description

Methods for metadata manipulation.

Copyright
  BSD License (see LICENSE.md or https://www.libelektra.org)