-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
envchain.h
24 lines (19 loc) · 862 Bytes
/
envchain.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
#ifndef ENVCHAIN_H
#define ENVCHAIN_H
extern const char *envchain_name;
typedef void (*envchain_search_callback)(const char *key, const char *value,
void *context);
typedef void (*envchain_namespace_search_callback)(const char *name,
void *context);
typedef struct {
const char *target;
int show_value;
} envchain_list_context;
int envchain_search_namespaces(envchain_namespace_search_callback callback,
void *data);
int envchain_search_values(const char *name, envchain_search_callback callback,
void *data);
void envchain_save_value(const char *name, const char *key, char *value,
int require_passphrase);
void envchain_delete_value(const char *name, const char *key);
#endif