mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-06 09:46:06 +01:00
27 lines
387 B
C++
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);
|
|
}
|