#include "cleanup.h"
+namespace snapper
+{
+
using namespace std;
EmptyPrePostCleaner cleaner(snapper, verbose, parameters);
cleaner.cleanup(condition, report);
}
+
+}
#include "proxy/proxy.h"
+namespace snapper
+{
+
/*
* The following three functions do the cleanup based on the conditionals defined in the
* config, that are hard limit, quota and free space.
void
do_cleanup_empty_pre_post(ProxySnapper* snapper, bool verbose, std::function<bool()> condition,
Plugins::Report& report);
+
+}
#include "misc.h"
+namespace snapper
+{
+
unsigned int
read_num(const string& str)
{
for (const string& line : cmd.get_stderr())
cerr << line << endl;
}
+
+}
#include "proxy/proxy.h"
-using namespace snapper;
-using namespace std;
-
+namespace snapper
+{
unsigned int
read_num(const string& str);
};
-namespace snapper
-{
-
/**
* Return a string listing the possible enum values. E.g. "Use auto, classic or
* transactional." for possible_enum_values<Ambit>().
#include "dbus/DBusPipe.h"
#include "snapper/AppUtil.h"
-using namespace std;
-
#define SERVICE "org.opensuse.Snapper"
#define OBJECT "/org/opensuse/Snapper"
#define INTERFACE "org.opensuse.Snapper"
+namespace snapper
+{
+
+using namespace std;
+
+
vector<XConfigInfo>
command_list_xconfigs(DBus::Connection& conn)
{
return lines;
}
+
+}
*/
-#include <string>
-#include <vector>
-#include <map>
-
-using std::string;
-using std::vector;
-using std::map;
-
#include "types.h"
+namespace snapper
+{
+
vector<XConfigInfo>
command_list_xconfigs(DBus::Connection& conn);
vector<string>
command_debug(DBus::Connection& conn);
+
+}
#include "../utils/text.h"
+namespace snapper
+{
+
using namespace std;
{
return ProxySnappers(new ProxySnappersDbus());
}
+
+}
#include "proxy.h"
+namespace snapper
+{
+
class ProxySnapshotDbus;
class ProxySnapshotsDbus;
class ProxySnapperDbus;
};
+}
+
#endif
#include "proxy-lib.h"
+namespace snapper
+{
+
using namespace std;
{
return dynamic_cast<const ProxySnapshotLib&>(proxy_snapshot.get_impl());
}
+
+}
#include <snapper/Comparison.h>
+namespace snapper
+{
+
class ProxySnapshotLib : public ProxySnapshot::Impl
{
const ProxySnapshotLib&
to_lib(const ProxySnapshot& proxy_snapshot);
+}
#endif
#include "proxy.h"
+namespace snapper
+{
+
using namespace std;
return end();
}
+
+}
#include <snapper/File.h>
-using namespace snapper;
-
+namespace snapper
+{
/**
* The proxy classes here allow clients, so far only the snapper command line
};
+}
+
#endif
#include <vector>
#include <map>
-using std::string;
-using std::vector;
-using std::map;
-
#include "dbus/DBusMessage.h"
#include "dbus/DBusConnection.h"
#include "snapper/Snapshot.h"
#include "snapper/SnapperTmpl.h"
#include "snapper/Snapper.h"
-using namespace snapper;
+
+namespace snapper
+{
+
+using std::string;
+using std::vector;
+using std::map;
struct XConfigInfo
int exit_status;
};
+}
+
namespace DBus
{
#include <boost/algorithm/string.hpp>
#include <json.h>
-// a collision with client/errors.h
+// a collision with client/proxy/errors.h
#ifdef error_description
#undef error_description
#endif