| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include "cryptohome/interface.h" | 4 #include "interface.h" |
| 5 | 5 |
| 6 namespace cryptohome { | 6 namespace cryptohome { |
| 7 namespace gobject { | 7 namespace gobject { |
| 8 | 8 |
| 9 // Register with the glib type system. | 9 // Register with the glib type system. |
| 10 // This macro automatically defines a number of functions and variables | 10 // This macro automatically defines a number of functions and variables |
| 11 // which are required to make cryptohome functional as a GObject: | 11 // which are required to make cryptohome functional as a GObject: |
| 12 // - cryptohome_parent_class | 12 // - cryptohome_parent_class |
| 13 // - cryptohome_get_type() | 13 // - cryptohome_get_type() |
| 14 // - dbus_glib_cryptohome_object_info | 14 // - dbus_glib_cryptohome_object_info |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 CRYPTOHOME_WRAP_METHOD(GetSystemSalt, OUT_salt); | 74 CRYPTOHOME_WRAP_METHOD(GetSystemSalt, OUT_salt); |
| 75 } | 75 } |
| 76 gboolean cryptohome_is_mounted(Cryptohome *self, | 76 gboolean cryptohome_is_mounted(Cryptohome *self, |
| 77 gboolean *OUT_is_mounted, | 77 gboolean *OUT_is_mounted, |
| 78 GError **error) { | 78 GError **error) { |
| 79 CRYPTOHOME_WRAP_METHOD(IsMounted, OUT_is_mounted); | 79 CRYPTOHOME_WRAP_METHOD(IsMounted, OUT_is_mounted); |
| 80 } | 80 } |
| 81 gboolean cryptohome_mount(Cryptohome *self, | 81 gboolean cryptohome_mount(Cryptohome *self, |
| 82 gchar *userid, | 82 gchar *userid, |
| 83 gchar *key, | 83 gchar *key, |
| 84 gint *OUT_error, |
| 84 gboolean *OUT_done, | 85 gboolean *OUT_done, |
| 85 GError **error) { | 86 GError **error) { |
| 86 CRYPTOHOME_WRAP_METHOD(Mount, userid, key, OUT_done); | 87 CRYPTOHOME_WRAP_METHOD(Mount, userid, key, OUT_error, OUT_done); |
| 88 } |
| 89 gboolean cryptohome_mount_guest(Cryptohome *self, |
| 90 gint *OUT_error, |
| 91 gboolean *OUT_done, |
| 92 GError **error) { |
| 93 CRYPTOHOME_WRAP_METHOD(MountGuest, OUT_error, OUT_done); |
| 87 } | 94 } |
| 88 gboolean cryptohome_unmount(Cryptohome *self, | 95 gboolean cryptohome_unmount(Cryptohome *self, |
| 89 gboolean *OUT_done, | 96 gboolean *OUT_done, |
| 90 GError **error) { | 97 GError **error) { |
| 91 CRYPTOHOME_WRAP_METHOD(Unmount, OUT_done); | 98 CRYPTOHOME_WRAP_METHOD(Unmount, OUT_done); |
| 92 } | 99 } |
| 93 #undef CRYPTOHOME_WRAP_METHOD | 100 #undef CRYPTOHOME_WRAP_METHOD |
| 94 | 101 |
| 95 } // namespace gobject | 102 } // namespace gobject |
| 96 } // namespace cryptohome | 103 } // namespace cryptohome |
| OLD | NEW |