File: tr2_sysenv.h

package info (click to toggle)
git 1%3A2.50.1-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 61,696 kB
  • sloc: ansic: 302,907; sh: 260,696; perl: 27,874; tcl: 22,303; makefile: 4,280; python: 3,442; javascript: 772; csh: 45; lisp: 12
file content (39 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (7)
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
#ifndef TR2_SYSENV_H
#define TR2_SYSENV_H

/*
 * The Trace2 settings that can be loaded from /etc/gitconfig
 * and/or user environment variables.
 *
 * Note that this set does not contain any of the transient
 * environment variables used to pass information from parent
 * to child git processes, such "GIT_TRACE2_PARENT_SID".
 */
enum tr2_sysenv_variable {
	TR2_SYSENV_CFG_PARAM = 0,
	TR2_SYSENV_ENV_VARS,

	TR2_SYSENV_DST_DEBUG,

	TR2_SYSENV_NORMAL,
	TR2_SYSENV_NORMAL_BRIEF,

	TR2_SYSENV_EVENT,
	TR2_SYSENV_EVENT_BRIEF,
	TR2_SYSENV_EVENT_NESTING,

	TR2_SYSENV_PERF,
	TR2_SYSENV_PERF_BRIEF,

	TR2_SYSENV_MAX_FILES,

	TR2_SYSENV_MUST_BE_LAST
};

void tr2_sysenv_load(void);

const char *tr2_sysenv_get(enum tr2_sysenv_variable);
const char *tr2_sysenv_display_name(enum tr2_sysenv_variable var);
void tr2_sysenv_release(void);

#endif /* TR2_SYSENV_H */