Sophie

Sophie

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

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)
{
    list<ConfigInfo> c = Snapper::getConfigs("/");

    list<Snapper*> sh;

    for (list<ConfigInfo>::const_iterator it = c.begin(); it != c.end(); ++it)
	sh.push_back(new Snapper(it->getConfigName(), "/"));

    for (list<Snapper*>::const_iterator it = sh.begin(); it != sh.end(); ++it)
	cout << (*it)->configName() << " " << (*it)->subvolumeDir() << " "
	     << (*it)->getSnapshots().size() << endl;

    for (list<Snapper*>::const_iterator it = sh.begin(); it != sh.end(); ++it)
	delete *it;

    exit(EXIT_SUCCESS);
}