1 | /* libmondo-tools.h
|
---|
2 | * $Id: libmondo-tools.h 1103 2007-02-06 10:10:01Z bruno $
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef LIBMONDO_TOOLS_H
|
---|
6 | # define LIBMONDO_TOOLS_H
|
---|
7 |
|
---|
8 | void clean_up_KDE_desktop_if_necessary(void);
|
---|
9 |
|
---|
10 | long get_time(void);
|
---|
11 | extern void (*log_debug_msg) (int debug_level, const char *szFile,
|
---|
12 | const char *szFunction, int nLine,
|
---|
13 | const char *fmt, ...);
|
---|
14 | void standard_log_debug_msg(int debug_level, const char *szFile,
|
---|
15 | const char *szFunction, int nLine,
|
---|
16 | const char *fmt, ...);
|
---|
17 | int read_cfg_var(char *config_file, char *label, char *value);
|
---|
18 | int write_cfg_var(char *config_file, char *label, char *value);
|
---|
19 | void reset_bkpinfo(struct s_bkpinfo *bkpinfo);
|
---|
20 | #ifdef __FreeBSD__
|
---|
21 | void initialize_raidrec(struct vinum_volume *vv);
|
---|
22 | #else
|
---|
23 | void initialize_raidrec(struct raid_device_record *raidrec);
|
---|
24 | #endif
|
---|
25 | void log_trace(char *o);
|
---|
26 | int some_basic_system_sanity_checks(void);
|
---|
27 |
|
---|
28 |
|
---|
29 | void insmod_crucial_modules(void);
|
---|
30 | int find_and_store_mondoarchives_home(char *home_sz);
|
---|
31 |
|
---|
32 |
|
---|
33 | void unmount_supermounts_if_necessary(void);
|
---|
34 | void remount_supermounts_if_necessary(void);
|
---|
35 |
|
---|
36 | int post_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
37 |
|
---|
38 |
|
---|
39 | int pre_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
40 |
|
---|
41 | long free_space_on_given_partition(char *partition);
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 | void mount_boot_if_necessary(void);
|
---|
46 | void unmount_boot_if_necessary(void);
|
---|
47 |
|
---|
48 | void restart_autofs_if_necessary(void);
|
---|
49 | void malloc_libmondo_global_strings(void);
|
---|
50 | void free_libmondo_global_strings(void);
|
---|
51 |
|
---|
52 | double get_kernel_version(void);
|
---|
53 | char *get_architecture(void);
|
---|
54 | bool does_nonMS_partition_exist(void);
|
---|
55 | void stop_magicdev_if_necessary(void);
|
---|
56 | void restart_magicdev_if_necessary(void);
|
---|
57 | void stop_autofs_if_necessary(void);
|
---|
58 | void restart_autofs_if_necessary(void);
|
---|
59 |
|
---|
60 | #endif /* LIBMONDO_TOOLS_H */
|
---|
61 |
|
---|