]> git.saurik.com Git - apt.git/blame - test/interactive-helper/test_udevcdrom.cc
refactor and move generation of the MetaIndex FileName out of the FindSrc()
[apt.git] / test / interactive-helper / test_udevcdrom.cc
CommitLineData
cbc9bed8
MV
1#include <apt-pkg/cdrom.h>
2#include <stdio.h>
3#include <assert.h>
4
8f3ba4e8 5#include <vector>
472ff00e 6#include <iostream>
8f3ba4e8 7
cbc9bed8
MV
8int main()
9{
cbc9bed8
MV
10 pkgUdevCdromDevices c;
11 assert(c.Dlopen());
12
8f3ba4e8 13 std::vector<CdromDevice> l;
cbc9bed8 14 l = c.Scan();
f7f0d6c7 15 assert(l.empty() == false);
59f9dcbd 16 for (size_t i = 0; i < l.size(); ++i)
cbc9bed8
MV
17 std::cerr << l[i].DeviceName << " "
18 << l[i].Mounted << " "
19 << l[i].MountPath << std::endl;
20
21}