do not pollute namespace in the headers with using (Closes: #500198)
[ntk/apt.git] / test / interactive-helper / test_udevcdrom.cc
1 #include <apt-pkg/cdrom.h>
2 #include <stdio.h>
3 #include <assert.h>
4
5 #include <vector>
6
7 int main()
8 {
9 pkgUdevCdromDevices c;
10 assert(c.Dlopen());
11
12 std::vector<CdromDevice> l;
13 l = c.Scan();
14 assert(l.empty() == false);
15 for (size_t i = 0; i < l.size(); ++i)
16 std::cerr << l[i].DeviceName << " "
17 << l[i].Mounted << " "
18 << l[i].MountPath << std::endl;
19
20 }