FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
netdata/src/main.h at master · datawithdev/netdata · GitHub
datawithdev
/
netdata
Public
forked from
netdata/netdata
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
netdata
/
src
/
main.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (33 loc) · 1.06 KB
Breadcrumbs
netdata
/
src
/
main.h
Copy path
File metadata and controls
43 lines (33 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
// SPDX-License-Identifier: GPL-3.0+
#ifndef
NETDATA_MAIN_H
#define
NETDATA_MAIN_H
1
#define
NETDATA_MAIN_THREAD_RUNNING
CONFIG_BOOLEAN_YES
#define
NETDATA_MAIN_THREAD_EXITING
(CONFIG_BOOLEAN_YES + 1)
#define
NETDATA_MAIN_THREAD_EXITED
CONFIG_BOOLEAN_NO
/**
* This struct contains information about command line options.
*/
struct
option_def
{
/** The option character */
const
char
val
;
/** The name of the long option. */
const
char
*
description
;
/** Short descripton what the option does */
/** Name of the argument displayed in SYNOPSIS */
const
char
*
arg_name
;
/** Default value if not set */
const
char
*
default_value
;
};
struct
netdata_static_thread
{
char
*
name
;
char
*
config_section
;
char
*
config_name
;
volatile
sig_atomic_t
enabled
;
netdata_thread_t
*
thread
;
void
(
*
init_routine
) (
void
);
void
*
(
*
start_routine
) (
void
*
);
};
extern
void
cancel_main_threads
(
void
);
extern
int
killpid
(
pid_t
pid
,
int
signal
);
extern
void
netdata_cleanup_and_exit
(
int
ret
)
NORETURN
;
#endif
/* NETDATA_MAIN_H */
Back
|
FazBrowse Home
|
New Git URL