]> git.saurik.com Git - apt.git/blob - test/interactive-helper/test_udevcdrom.cc
enable APT in unpack/configure ordering to handle loops as well
[apt.git] / test / interactive-helper / test_udevcdrom.cc
1 #include <apt-pkg/cdrom.h>
2 #include <stdio.h>
3 #include <assert.h>
4
5 int main()
6 {
7 pkgUdevCdromDevices c;
8 assert(c.Dlopen());
9
10 vector<CdromDevice> l;
11 l = c.Scan();
12 assert(l.empty() == false);
13 for (size_t i = 0; i < l.size(); ++i)
14 std::cerr << l[i].DeviceName << " "
15 << l[i].Mounted << " "
16 << l[i].MountPath << std::endl;
17
18 }