blob: 12b6b38a98cd13f84762c73d1ab21d8831dcf3a0 (
plain)
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
|
#ifndef CLI_OBJ_H
#define CLI_OBJ_H
#include "cli_val.h"
#define APATH (get_f_seg_a_ptr())
#define CPATH (get_f_seg_c_ptr())
#define MPATH (get_f_seg_m_ptr())
/* names of VYATTA env vars */
#define ENV_EDIT_LEVEL "VYATTA_EDIT_LEVEL"
#define ENV_TEMPLATE_LEVEL "VYATTA_TEMPLATE_LEVEL"
#define ENV_A_DIR "VYATTA_ACTIVE_CONFIGURATION_DIR"
#define ENV_C_DIR "VYATTA_CHANGES_ONLY_DIR"
#define ENV_M_DIR "VYATTA_TEMP_CONFIG_DIR"
#define ENV_T_DIR "VYATTA_CONFIG_TEMPLATE"
#define ENV_TMP_DIR "VYATTA_CONFIG_TMP"
#define DEF_A_DIR "/opt/vyatta/config/active"
#define DEF_T_DIR "/opt/vyatta/share/ofr/template"
#define ENV_OLD_PS1 "VYATTA_OLD_PS1"
/* the string to use as $(@), must be set
before call to expand_string */
char* get_at_string(void);
void set_at_string(char* s);
void free_at_string(void);
boolean is_in_delete_action(void);
void set_in_delete_action(boolean b);
boolean is_in_commit(void);
void set_in_commit(boolean b);
boolean is_in_exec(void);
void set_in_exec(boolean b);
boolean is_echo(void);
void set_echo(boolean b);
boolean is_silent_msg(void);
void set_silent_msg(boolean b);
valstruct* get_cli_value_ptr(void);
first_seg* get_f_seg_a_ptr(void);
first_seg* get_f_seg_c_ptr(void);
first_seg* get_f_seg_m_ptr(void);
int is_in_cond_tik(void);
void set_in_cond_tik(int ict);
void dec_in_cond_tik(void);
const char* get_tdirp(void);
const char* get_cdirp(void);
const char* get_adirp(void);
const char* get_mdirp(void);
const char* get_tmpp(void);
char* get_elevp(void);
char* get_tlevp(void);
void init_edit(void);
void init_paths(boolean for_commit);
#endif /* CLI_OBJ_H */
|