Skip to content

Commit

Permalink
- move functions to namespace snapper
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Nov 4, 2024
1 parent ea4895c commit 7223525
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/proxy/errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
#include "errors.h"


using namespace std;
using namespace snapper;

namespace snapper
{

void
convert_exception(const DBus::ErrorException& e)
Expand Down Expand Up @@ -121,3 +120,5 @@ error_description(const DBus::ErrorException& e)

return sformat(_("Failure (%s)."), name.c_str());
}

}
9 changes: 9 additions & 0 deletions client/proxy/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@
*/


#include <string>

#include "dbus/DBusConnection.h"


namespace snapper
{

using std::string;


/**
* Translate an DBus exception to the corresponding snapper exception
* (iff such exists). Unfinished.
Expand All @@ -40,3 +48,4 @@ convert_exception(const DBus::ErrorException& e) __attribute__ ((__noreturn__));
string
error_description(const DBus::ErrorException& e);

}

0 comments on commit 7223525

Please sign in to comment.