forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.h
29 lines (24 loc) · 750 Bytes
/
prepare.h
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
/**
* @file prepare.h
*
* @brief Contains functionality for preparing a keyset to be written.
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_PLUGIN_TOML_PREPARE_H
#define ELEKTRA_PLUGIN_TOML_PREPARE_H
#include <kdb.h>
#include <stdbool.h>
/* @brief Prepares a keyset for writing.
*
* Adds missing array metakeys, removes invalid array metakeys, adds missing order metakeys and adds missing comment metakeys.
*
* @param keys Keyset which should be prepared.
* @param parent The parent key of the keyset.
*
* @retval true On success
* @retval false If unordered keys could not be prepared.
*/
bool prepareKeySet (KeySet * keys, Key * parent);
#endif // ELEKTRA_PLUGIN_TOML_PREPARE_H