]> git.saurik.com Git - apt.git/blob - test/interactive-helper/test_udevcdrom.cc
aptwebserver: fix html validation issues
[apt.git] / test / interactive-helper / test_udevcdrom.cc
1 #include <config.h>
2
3 #include <apt-pkg/cdrom.h>
4
5 #include <stddef.h>
6 #include <string>
7 #include <assert.h>
8 #include <vector>
9 #include <iostream>
10
11 int main()
12 {
13 pkgUdevCdromDevices c;
14 assert(c.Dlopen());
15
16 std::vector<CdromDevice> l;
17 l = c.Scan();
18 assert(l.empty() == false);
19 for (size_t i = 0; i < l.size(); ++i)
20 std::cerr << l[i].DeviceName << " "
21 << l[i].Mounted << " "
22 << l[i].MountPath << std::endl;
23 }