]> git.ipfire.org Git - ipfire-2.x.git/blob - src/install+setup/install/hw.h
3ef0d18bfed8e3213c958ba7cd1ec8bca36dafe8
[ipfire-2.x.git] / src / install+setup / install / hw.h
1 /*#############################################################################
2 # #
3 # IPFire - An Open Source Firewall Distribution #
4 # Copyright (C) 2014 IPFire development team #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 #############################################################################*/
20
21 #ifndef HEADER_HW_H
22 #define HEADER_HW_H
23
24 #include <libudev.h>
25
26 #define SOURCE_MOUNT_PATH "/cdrom"
27 #define SOURCE_TEST_FILE SOURCE_MOUNT_PATH "/" VERSION ".media"
28
29 struct hw {
30 struct udev *udev;
31 };
32
33 struct hw* hw_init();
34 void hw_free(struct hw* hw);
35
36 int hw_mount(const char* source, const char* target, int flags);
37 int hw_umount(const char* target);
38
39 char* hw_find_source_medium(struct hw* hw);
40
41 #endif /* HEADER_HW_H */