1 | /* libmondo-tools.h
|
---|
2 | * $Id: libmondo-tools.h 1106 2007-02-07 22:55:11Z 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 | int some_basic_system_sanity_checks(void);
|
---|
26 |
|
---|
27 |
|
---|
28 | void insmod_crucial_modules(void);
|
---|
29 | char *find_and_store_mondoarchives_home(void);
|
---|
30 |
|
---|
31 |
|
---|
32 | void unmount_supermounts_if_necessary(void);
|
---|
33 | void remount_supermounts_if_necessary(void);
|
---|
34 |
|
---|
35 | int post_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
36 |
|
---|
37 |
|
---|
38 | int pre_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
39 |
|
---|
40 | long free_space_on_given_partition(char *partition);
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 | void mount_boot_if_necessary(void);
|
---|
45 | void unmount_boot_if_necessary(void);
|
---|
46 |
|
---|
47 | void malloc_libmondo_global_strings(void);
|
---|
48 | void free_libmondo_global_strings(void);
|
---|
49 |
|
---|
50 | double get_kernel_version(void);
|
---|
51 | char *get_architecture(void);
|
---|
52 | bool does_nonMS_partition_exist(void);
|
---|
53 | void stop_magicdev_if_necessary(void);
|
---|
54 | void restart_magicdev_if_necessary(void);
|
---|
55 |
|
---|
56 | #endif /* LIBMONDO_TOOLS_H */
|
---|