]>
Commit | Line | Data |
---|---|---|
aa32874b DD |
1 | /* |
2 | * Copyright (c) 2000, Red Hat, Inc. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by DJ Delorie <dj@cygnus.com> | |
13 | * | |
14 | */ | |
15 | ||
12e726c4 MB |
16 | #ifndef SETUP_MOUNT_H |
17 | #define SETUP_MOUNT_H | |
18 | ||
23c9e63c DD |
19 | /* Finds the existing root mount, or returns NULL. istext is set to |
20 | nonzero if the existing mount is a text mount, else zero for | |
21 | binary. */ | |
aa32874b | 22 | |
2bba98e8 | 23 | #include <string> |
3c054baf RC |
24 | #include "String++.h" |
25 | ||
e49fef4d YS |
26 | #define SETUP_KEY_WOW64 (is_64bit ? KEY_WOW64_64KEY : KEY_WOW64_32KEY) |
27 | ||
2bba98e8 | 28 | void create_mount (const std::string posix, const std::string win32, |
2f0315ad CV |
29 | int istext, int issystem); |
30 | void create_install_root (); | |
31 | void read_mounts (const std::string); | |
f8a6415f DD |
32 | |
33 | /* Sets the cygdrive flags. Used to make the automounted drives' binary/text | |
34 | mode consistent with the standard Cygwin mounts. */ | |
35 | ||
36 | void set_cygdrive_flags (int istext, int issystem); | |
2f0315ad | 37 | std::string cygpath (const std::string&); |
2bba98e8 MB |
38 | void set_root_dir (const std::string); |
39 | const std::string get_root_dir (); | |
12e726c4 MB |
40 | |
41 | #endif /* SETUP_MOUNT_H */ |