1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-06 18:46:06 +01:00
Files
snapper/examples/c++-lib/List.cc
2025-08-06 09:30:21 +02:00

23 lines
347 B
C++

#include <cstdlib>
#include <iostream>
#include <snapper/Snapper.h>
using namespace snapper;
using namespace std;
int
main(int argc, char** argv)
{
Snapper snapper("root", "/");
const Snapshots& snapshots = snapper.getSnapshots();
for (const Snapshot& snapshot : snapshots)
cout << snapshot << '\n';
exit(EXIT_SUCCESS);
}