This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e864052
commit 1abbbb2
Showing
2 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
/** | ||
* @file | ||
* | ||
* @brief KDB set subcommand header | ||
* | ||
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org) | ||
*/ | ||
* @file | ||
* | ||
* @brief KDB set subcommand header | ||
* | ||
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org) | ||
*/ | ||
|
||
#ifndef ELEKTRA_KDB_SET_H | ||
#define ELEKTRA_KDB_SET_H | ||
|
||
#include <kdb.h> | ||
|
||
/** | ||
* Adds options specification of set command to keySet | ||
* | ||
* @param spec the base spec where the commands spec should be added | ||
*/ | ||
* Adds options specification of set command to keySet | ||
* | ||
* @param spec the base spec where the commands spec should be added | ||
*/ | ||
void addSetSpec (KeySet * spec); | ||
|
||
/** | ||
* Runs the set command | ||
* | ||
* @param options cli options and arguments as specified in addSetSpec() | ||
* @param errorKey key where errors and warnings should be saved | ||
* | ||
* @retval 0 set command ran without errors | ||
* @retval 1 errors occurred, keySetMeta (errorKey, "error/reason") for info | ||
* | ||
*/ | ||
* Runs the set command | ||
* | ||
* @param options cli options and arguments as specified in addSetSpec() | ||
* @param errorKey key where errors and warnings should be saved | ||
* | ||
* @retval 0 set command ran without errors | ||
* @retval 1 errors occurred, keySetMeta (errorKey, "error/reason") for info | ||
* | ||
*/ | ||
int execSet (KeySet * options, Key * errorKey); | ||
|
||
#endif // ELEKTRA_KDB_SET_H |