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

27 lines
387 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", "/");
SCD scd;
scd.uid = getuid();
scd.description = "test";
scd.cleanup = "number";
Plugins::Report report;
snapper.createSingleSnapshot(scd, report);
exit(EXIT_SUCCESS);
}