Index: system_utils.h |
diff --git a/system_utils.h b/system_utils.h |
index cd4479b0c806b2a77ab0efc815b7961d39da1658..3369ddce5122bc8e1b9e47d92619c82161c2e4f8 100644 |
--- a/system_utils.h |
+++ b/system_utils.h |
@@ -5,11 +5,15 @@ |
#ifndef LOGIN_MANAGER_SYSTEM_UTILS_H_ |
#define LOGIN_MANAGER_SYSTEM_UTILS_H_ |
+#include <dbus/dbus.h> |
+#include <dbus/dbus-glib.h> |
+#include <glib.h> |
#include <unistd.h> |
#include <string> |
#include <base/basictypes.h> |
#include <base/stringprintf.h> |
+#include <chromeos/dbus/service_constants.h> |
class FilePath; |
@@ -62,6 +66,16 @@ class SystemUtils { |
// persisted across stateful partition wipes. |
virtual void AppendToClobberLog(const char* msg) const; |
+ // Initializes |error| with |code| and |message|. |
+ virtual void SetGError(GError** error, |
+ ChromeOSLoginError code, |
+ const char* message); |
+ |
+ // Initializes |error| with |code| and |message|. |
+ virtual void SetAndSendGError(ChromeOSLoginError code, |
+ DBusGMethodInvocation* context, |
+ const char* message); |
+ |
private: |
// If this file exists on the next boot, the stateful partition will be wiped. |
static const char kResetFile[]; |