[1] | 1 | /* libmondo-tools.h
|
---|
[128] | 2 | * $Id: libmondo-tools.h 1103 2007-02-06 10:10:01Z bruno $
|
---|
| 3 | */
|
---|
[1] | 4 |
|
---|
[1103] | 5 | #ifndef LIBMONDO_TOOLS_H
|
---|
| 6 | # define LIBMONDO_TOOLS_H
|
---|
| 7 |
|
---|
[1] | 8 | void clean_up_KDE_desktop_if_necessary(void);
|
---|
| 9 |
|
---|
[1103] | 10 | long get_time(void);
|
---|
[1] | 11 | extern void (*log_debug_msg) (int debug_level, const char *szFile,
|
---|
[128] | 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__
|
---|
[128] | 21 | void initialize_raidrec(struct vinum_volume *vv);
|
---|
[1] | 22 | #else
|
---|
[128] | 23 | void initialize_raidrec(struct raid_device_record *raidrec);
|
---|
[1] | 24 | #endif
|
---|
[128] | 25 | void log_trace(char *o);
|
---|
[1103] | 26 | int some_basic_system_sanity_checks(void);
|
---|
[1] | 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 |
|
---|
[128] | 36 | int post_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
[1] | 37 |
|
---|
| 38 |
|
---|
| 39 | int pre_param_configuration(struct s_bkpinfo *bkpinfo);
|
---|
| 40 |
|
---|
[128] | 41 | long free_space_on_given_partition(char *partition);
|
---|
[1] | 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 |
|
---|
[1103] | 52 | double get_kernel_version(void);
|
---|
| 53 | char *get_architecture(void);
|
---|
[128] | 54 | bool does_nonMS_partition_exist(void);
|
---|
[1] | 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);
|
---|
[1103] | 59 |
|
---|
| 60 | #endif /* LIBMONDO_TOOLS_H */
|
---|
| 61 |
|
---|