Skip to content
Permalink
Browse files

add metadata to version modules for web ui

  • Loading branch information...
Chemin1 committed Feb 20, 2019
1 parent 0c750fc commit 49b6be50f73abc74fa67e900c42eb532ef6c3319
Showing with 6 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 src/libs/elektra/plugin.c
@@ -16,6 +16,7 @@ cmake-build*/

#ignore ctags + gdb history files
.ctags
tags
.gdb_history

#ignore emacs backup files
@@ -411,6 +411,11 @@ Plugin * elektraPluginMissing (void)
static int elektraVersionGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * error ELEKTRA_UNUSED)
{
KeySet * info = elektraVersionKeySet ();
keySetMeta(info->array[0], "restrict/write", "1");
keySetMeta(info->array[0], "restrict/remove", "1");
for (size_t i = 1; i < info->size; i++) {
keyCopyAllMeta(info->array[i], info->array[0]);
}
ksAppend (returned, info);
ksDel (info);
return 1;

0 comments on commit 49b6be5

Please sign in to comment.
You can’t perform that action at this time.