[1] | 1 | /* libmondo-tools.h
|
---|
[59] | 2 | * $Id: libmondo-tools.h 1106 2007-02-07 22:55:11Z bruno $
|
---|
| 3 | */
|
---|
[1] | 4 |
|
---|
[1106] | 5 | #ifndef LIBMONDO_TOOLS_H
|
---|
| 6 | # define LIBMONDO_TOOLS_H
|
---|
| 7 |
|
---|
[1] | 8 | void clean_up_KDE_desktop_if_necessary(void);
|
---|
| 9 |
|
---|
[1106] | 10 | long get_time(void);
|
---|
[1] | 11 | extern void (*log_debug_msg) (int debug_level, const char *szFile,
|
---|
[59] | 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);
|
---|
[1] | 20 | #ifdef __FreeBSD__
|
---|
[59] | 21 | void initialize_raidrec(struct vinum_volume *vv);
|
---|
[1] | 22 | #else
|
---|
[59] | 23 | void initialize_raidrec(struct raid_device_record *raidrec);
|
---|
[1] | 24 | #endif
|
---|
[1106] | 25 | int some_basic_system_sanity_checks(void);
|
---|
[1] | 26 |
|
---|
| 27 |
|
---|
| 28 | void insmod_crucial_modules(void);
|
---|
[94] | 29 | char *find_and_store_mondoarchives_home(void);
|
---|
[1] | 30 |
|
---|
| 31 |
|
---|
| 32 | void unmount_supermounts_if_necessary(void);
|
---|
| 33 | void remount_supermounts_if_necessary(void);
|
---|
| 34 |
|
---|
[59] | 35 | int post_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
[1] | 36 |
|
---|
| 37 |
|
---|
| 38 | int pre_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
| 39 |
|
---|
[59] | 40 | long free_space_on_given_partition(char *partition);
|
---|
[1] | 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 |
|
---|
[1106] | 50 | double get_kernel_version(void);
|
---|
| 51 | char *get_architecture(void);
|
---|
[59] | 52 | bool does_nonMS_partition_exist(void);
|
---|
[1] | 53 | void stop_magicdev_if_necessary(void);
|
---|
| 54 | void restart_magicdev_if_necessary(void);
|
---|
[1106] | 55 |
|
---|
| 56 | #endif /* LIBMONDO_TOOLS_H */
|
---|