main.h
1 #ifndef MAIN_H
2 #define MAIN_H 1
3 
4 
5 /* ========================================================================== */
6 /* Include files */
7 
8 #include <time.h>
9 
10 
11 /*! \addtogroup MAIN */
12 /*! @{ */
13 
14 
15 /* ========================================================================== */
16 /* Macros */
17 
18 /*! \brief Prepend module prefix and print error message */
19 #define PRINT_ERROR(s) { print_error(MAIN_ERR_PREFIX s); }
20 
21 
22 /*! @} */
23 
24 
25 /* ========================================================================== */
26 /* Variables */
27 
28 extern int main_debug;
29 extern const char* main_confprefix;
30 
31 
32 /* ========================================================================== */
33 /* Function prototypes */
34 
35 void print_error(const char*);
36 void ts_environ_init(void);
37 void ts_environ_exit(void);
38 int ts_getenv(const char*, const char**);
39 int ts_lock_ui(void);
40 int ts_unlock_ui(void);
41 
42 
43 #endif /* MAIN_H */
44 
45 /* EOF */
ts_environ_exit
void ts_environ_exit(void)
Destroy copy of environment variables.
Definition: ts_functions.c:107
ts_environ_init
void ts_environ_init(void)
Copy environment variables.
Definition: ts_functions.c:58
main_debug
int main_debug
Enable additional debug output if nonzero.
Definition: main.cxx:64
ts_unlock_ui
int ts_unlock_ui(void)
Unlock UI thread.
Definition: main.cxx:244
ts_getenv
int ts_getenv(const char *, const char **)
Thread safe replacement for getenv()
Definition: ts_functions.c:136
main_confprefix
const char * main_confprefix
Configuration directory path from command line option or NULL otherwise.
Definition: main.cxx:67
ts_lock_ui
int ts_lock_ui(void)
Lock UI thread.
Definition: main.cxx:217
print_error
void print_error(const char *)
Print error message.
Definition: main.cxx:276

Generated at 2024-04-27 using  doxygen