source: MondoRescue/branches/2.2.10/mondo/src/common/libmondo-tools-EXT.h@ 2421

Last change on this file since 2421 was 2421, checked in by Bruno Cornec, 15 years ago
  • Remove some compiler warnings on main
  • Adds function mr_chomp and mr_strip_char and use them in mr_date and call_program_and_get_last_line_of_output
  • Fix call_program_and_get_last_line_of_output to return the right result using a temp file instead of popen
  • Fix an issue in mr_getline_int in case of eof (returns now an empty string)
  • Sequencing of Init of bkpinfo reviewed
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[1]1/* libmondo-tools-EXT.h */
2
3extern void clean_up_KDE_desktop_if_necessary(void);
[128]4extern long get_time();
[1]5extern void (*log_debug_msg) (int debug_level, const char *szFile,
[128]6 const char *szFunction, int nLine,
7 const char *fmt, ...);
8extern void standard_log_debug_msg(int debug_level, const char *szFile,
9 const char *szFunction, int nLine,
10 const char *fmt, ...);
[2325]11extern char *read_cfg_var(char *config_file, char *label);
[128]12extern int write_cfg_var(char *config_file, char *label, char *value);
[2321]13extern void init_bkpinfo();
[1]14#ifdef __FreeBSD__
[128]15extern void initialize_raidrec(struct vinum_volume *vv);
[1]16#else
[128]17extern void initialize_raidrec(struct raid_device_record *raidrec);
[1]18#endif
[128]19extern void log_trace(char *o);
20extern int some_basic_system_sanity_checks();
[1]21
22
23extern int g_loglevel;
24
25extern void insmod_crucial_modules(void);
26extern int find_and_store_mondoarchives_home(char *home_sz);
27
28extern void unmount_supermounts_if_necessary(void);
29extern void remount_supermounts_if_necessary(void);
30
[1647]31extern int post_param_configuration();
[1]32
33
[1647]34extern int pre_param_configuration();
[1]35
36
37extern void mount_boot_if_necessary(void);
38extern void unmount_boot_if_necessary(void);
39extern void restart_autofs_if_necessary(void);
40extern void malloc_libmondo_global_strings(void);
41extern void free_libmondo_global_strings(void);
42
43extern double get_kernel_version();
[128]44extern char *get_architecture();
[1383]45extern char *get_uname_m();
[1]46
[128]47extern bool does_nonMS_partition_exist(void);
[1]48
49
50extern void stop_magicdev_if_necessary(void);
51extern void restart_magicdev_if_necessary(void);
52extern void stop_autofs_if_necessary(void);
53extern void restart_autofs_if_necessary(void);
Note: See TracBrowser for help on using the repository browser.