/usr/include/elektra/kdbmeta.h is in libelektra-dev 0.8.14-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /***************************************************************************
kdbextension.h - Optional Methods which sit on top of elektra
-------------------
begin : Mon Dec 29 2003
copyright : (C) 2010 by Markus Raab
email : elektra@markus-raab.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the BSD License (revised). *
*
* It is debatable if these functions belong to a general purpose key
* database. However there are here to make working with Elektra more
* easy or just as backwards compatability.
*
* They might be removed in a later version.
*
* They are not part of the documentation.
* *
***************************************************************************/
#ifndef KDBMETA_H
#define KDBMETA_H
#include "kdb.h"
#ifdef __cplusplus
namespace ckdb {
extern "C" {
#endif
const char *keyOwner(const Key *key);
ssize_t keyGetOwnerSize(const Key *key);
ssize_t keyGetOwner(const Key *key, char *returned, size_t maxSize);
ssize_t keySetOwner(Key *key, const char *owner);
const char *keyComment(const Key *key);
ssize_t keyGetCommentSize(const Key *key);
ssize_t keyGetComment(const Key *key, char *returnedDesc, size_t maxSize);
ssize_t keySetComment(Key *key, const char *newDesc);
#ifndef _WIN32
/* Conveniences Methods regarding Meta Info */
uid_t keyGetUID(const Key *key);
int keySetUID(Key *key, uid_t uid);
gid_t keyGetGID(const Key *key);
int keySetGID(Key *key, gid_t gid);
int keySetDir(Key *key);
mode_t keyGetMode(const Key *key);
int keySetMode(Key *key, mode_t mode);
time_t keyGetATime(const Key *key);
int keySetATime(Key *key, time_t atime);
time_t keyGetMTime(const Key *key);
int keySetMTime(Key *key, time_t mtime);
time_t keyGetCTime(const Key *key);
int keySetCTime(Key *key, time_t ctime);
#endif
int elektraKeyCmpOrder(const Key *a, const Key *b);
#ifdef __cplusplus
}
}
#endif
#endif
|