This file is indexed.

/usr/include/elektra/kdbtools.h is in libelektra-dev 0.8.7-4.

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
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
/***************************************************************************
                kdbtools.h  -  Elektra High Level methods
                             -------------------
    begin                : Sat Jan 22 2005
    copyright            : (C) 2005 by Avi Alkalay
    email                : avi@unix.sh
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the BSD License (revised).                      *
 *                                                                         *
 ***************************************************************************/


/* Subversion stuff

$Id$

*/

#ifndef KDBTOOLS_H
#define KDBTOOLS_H


#include <kdb.h>

#include <stdio.h>


/**
 * Options to change the default behavior of streaming.
 *
 * On default the streaming options only output the names of the given
 * keysets. If you want more information, header, metainfo, compressed
 * output, full names, values or comments you will find the appropriate
 * options here.
 *
 * For full influence of value, comment and metadata shown, use these
 * options together with #keyswitch_t. All bits of meta-information ORed
 * together are KDB_O_SHOWMETA.
 *
 * For more information about the flags, consult the documentation of
 * the streaming methods.
 *
 * These options can be ORed. That is the |-Operator in C.
 *
 * It uses the values defined in #keyswitch_t too, so it starts with 14.
 *
 * @ingroup stream
 * @see kdbGetChildKeys()
 * @see ksToStream()
 * @see keyToStream()
 */
enum KDBStream {
	KDB_O_SHOWMETA=0xF0,		/*!< Show all metadata (type, uid, gid, mode) */
	KDB_O_SHOWFLAGS=1<<14,		/*!< Show all flags */
	KDB_O_SHOWINDICES=1<<15,	/*!< Show the indices for the entries */
	KDB_O_CONDENSED=1<<16,		/*!< Spare any whitespaces and do not group visually together.*/
	KDB_O_NUMBER=1<<17,		/*!< Use a number intead of user and group name.*/
	KDB_O_HEADER=1<<18,		/*!< Show also the header of the document. */
	KDB_O_FULLNAME=1<<19,		/*!< Export @p user keys using full name.*/
	KDB_O_HIER=1<<20		/*!< Export to the new hierarchical XML
						representation using key basename.
						See ksToStream(). */
};


typedef int (*KSFromXMLfile)(KeySet *ks,const char *filename);
typedef int (*KSFromXML)(KeySet *ks,int fd);
typedef ssize_t (*output) (const KeySet *ks, FILE* stream, option_t options);


#define KDB_SCHEMA_PATH_KEY   "system/elektra/xml/schemapath"

#ifndef DYN_LINK

#ifdef __cplusplus
namespace ckdb {
extern "C" {
#endif


int ksFromXMLfile(KeySet *ks,const char *filename);
int ksFromXML(KeySet *ks,int fd);

ssize_t ksToStream(const KeySet *ks, FILE* stream, option_t options);
int ksOutput (const KeySet *ks, FILE *stream, option_t options);
int ksGenerate (const KeySet *ks, FILE *stream, option_t options);

ssize_t keyToStream(const Key *key, FILE *stream, option_t options);
ssize_t keyToStreamBasename(const Key *key, FILE *stream,
	const char *parent, const size_t parentSize, option_t options);

int keyOutput (const Key *key, FILE *stream, option_t options);
int keyGenerate (const Key *key, FILE *stream, option_t options);

#ifdef __cplusplus
}
}
#endif

#endif /* DYN_LINK */

#endif /* KDBTOOLS_H */