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