source: MondoRescue/branches/stable/mondo/src/common/libmondo-tools.h@ 1377

Last change on this file since 1377 was 1377, checked in by Bruno Cornec, 17 years ago
  • ARCH removed from configure.in as useless
  • addition of get_uname_m (to give the underlying arch)
  • get_architecture now returns correctly the built arch used (including x86_64)
  • IA32 is defined for both i386 and x86_64. An additional vdefine X86_64 is also setup for tha later arch.
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1 /* libmondo-tools.h
2 * $Id: libmondo-tools.h 1377 2007-04-30 09:25:39Z bruno $
3 */
4
5#ifndef LIBMONDO_TOOLS_H
6# define LIBMONDO_TOOLS_H
7
8void clean_up_KDE_desktop_if_necessary(void);
9
10long get_time(void);
11int read_cfg_var(char *config_file, char *label, char *value);
12int write_cfg_var(char *config_file, char *label, char *value);
13void reset_bkpinfo(struct s_bkpinfo *bkpinfo);
14#ifdef __FreeBSD__
15void initialize_raidrec(struct vinum_volume *vv);
16#else
17void initialize_raidrec(struct raid_device_record *raidrec);
18#endif
19int some_basic_system_sanity_checks(void);
20
21
22void insmod_crucial_modules(void);
23int find_and_store_mondoarchives_home(char *home_sz);
24
25
26void unmount_supermounts_if_necessary(void);
27void remount_supermounts_if_necessary(void);
28
29int post_param_configuration(struct s_bkpinfo *bkpinfo);
30
31
32int pre_param_configuration(struct s_bkpinfo *bkpinfo);
33
34long free_space_on_given_partition(char *partition);
35
36
37
38void mount_boot_if_necessary(void);
39void unmount_boot_if_necessary(void);
40
41void restart_autofs_if_necessary(void);
42void malloc_libmondo_global_strings(void);
43void free_libmondo_global_strings(void);
44
45double get_kernel_version(void);
46char *get_architecture(void);
47char *get_uname_m();
48bool does_nonMS_partition_exist(void);
49void stop_magicdev_if_necessary(void);
50void restart_magicdev_if_necessary(void);
51void stop_autofs_if_necessary(void);
52
53#endif /* LIBMONDO_TOOLS_H */
54
Note: See TracBrowser for help on using the repository browser.