Sophie

Sophie

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

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


#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", "/");

    const Snapshots& snapshots = sh->getSnapshots();
    for (Snapshots::const_iterator it = snapshots.begin(); it != snapshots.end(); ++it)
    {
	cout << *it << endl;
    }

    delete sh;

    exit(EXIT_SUCCESS);
}