Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 717a12b7849019bd76f4f45555f90707 > files > 13

libsnapper-devel-0.5.6-1.mga7.armv7hl.rpm


#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <iostream>

#include <snapper/Snapper.h>

using namespace snapper;
using namespace std;

int
main(int argc, char** argv)
{
    Snapper* sh = new Snapper("root", "/");

    SCD scd;
    scd.uid = getuid();
    scd.description = "test";
    scd.cleanup = "number";

    sh->createSingleSnapshot(scd);

    delete sh;

    exit(EXIT_SUCCESS);
}