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