source: 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, 11 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
Line 
1/* libmondo-tools-EXT.h */
2
3extern void clean_up_KDE_desktop_if_necessary(void);
4extern long get_time();
5extern void (*log_debug_msg) (int debug_level, const char *szFile,
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, ...);
11extern char *read_cfg_var(char *config_file, char *label);
12extern int write_cfg_var(char *config_file, char *label, char *value);
13extern void init_bkpinfo();
14#ifdef __FreeBSD__
15extern void initialize_raidrec(struct vinum_volume *vv);
16#else
17extern void initialize_raidrec(struct raid_device_record *raidrec);
18#endif
19extern void log_trace(char *o);
20extern int some_basic_system_sanity_checks();
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
31extern int post_param_configuration();
32
33
34extern int pre_param_configuration();
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();
44extern char *get_architecture();
45extern char *get_uname_m();
46
47extern bool does_nonMS_partition_exist(void);
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.