]>
Commit | Line | Data |
---|---|---|
0e5943eb JF |
1 | #include <apt-pkg/cdrom.h> |
2 | #include <stdio.h> | |
3 | #include <assert.h> | |
4 | ||
5 | int main() | |
6 | { | |
7 | int i; | |
8 | pkgUdevCdromDevices c; | |
9 | assert(c.Dlopen()); | |
10 | ||
11 | vector<CdromDevice> l; | |
12 | l = c.Scan(); | |
13 | assert(l.size() > 0); | |
14 | for (i=0;i<l.size();i++) | |
15 | std::cerr << l[i].DeviceName << " " | |
16 | << l[i].Mounted << " " | |
17 | << l[i].MountPath << std::endl; | |
18 | ||
19 | } |