Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/platform/cryptohome/interface.cc

Issue 2051003: Initial patch from Will. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Address style nits. Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "cryptohome/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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } \ 47 } \
48 return self->service->_NAME(args, error); 48 return self->service->_NAME(args, error);
49 49
50 gboolean cryptohome_check_key(Cryptohome *self, 50 gboolean cryptohome_check_key(Cryptohome *self,
51 gchar *userid, 51 gchar *userid,
52 gchar *key, 52 gchar *key,
53 gboolean *OUT_success, 53 gboolean *OUT_success,
54 GError **error) { 54 GError **error) {
55 CRYPTOHOME_WRAP_METHOD(CheckKey, userid, key, OUT_success); 55 CRYPTOHOME_WRAP_METHOD(CheckKey, userid, key, OUT_success);
56 } 56 }
57 gboolean cryptohome_migrate_key(Cryptohome *self,
58 gchar *userid,
59 gchar *from_key,
60 gchar *to_key,
61 gboolean *OUT_success,
62 GError **error) {
63 CRYPTOHOME_WRAP_METHOD(MigrateKey, userid, from_key, to_key, OUT_success);
64 }
65 gboolean cryptohome_remove(Cryptohome *self,
66 gchar *userid,
67 gboolean *OUT_success,
68 GError **error) {
69 CRYPTOHOME_WRAP_METHOD(Remove, userid, OUT_success);
70 }
71 gboolean cryptohome_get_system_salt(Cryptohome *self,
72 GArray **OUT_salt,
73 GError **error) {
74 CRYPTOHOME_WRAP_METHOD(GetSystemSalt, OUT_salt);
75 }
57 gboolean cryptohome_is_mounted(Cryptohome *self, 76 gboolean cryptohome_is_mounted(Cryptohome *self,
58 gboolean *out_is_mounted, 77 gboolean *OUT_is_mounted,
59 GError **error) { 78 GError **error) {
60 CRYPTOHOME_WRAP_METHOD(IsMounted, out_is_mounted); 79 CRYPTOHOME_WRAP_METHOD(IsMounted, OUT_is_mounted);
61 } 80 }
62 gboolean cryptohome_mount(Cryptohome *self, 81 gboolean cryptohome_mount(Cryptohome *self,
63 gchar *userid, 82 gchar *userid,
64 gchar *key, 83 gchar *key,
65 gboolean *OUT_done, 84 gboolean *OUT_done,
66 GError **error) { 85 GError **error) {
67 CRYPTOHOME_WRAP_METHOD(Mount, userid, key, OUT_done); 86 CRYPTOHOME_WRAP_METHOD(Mount, userid, key, OUT_done);
68 } 87 }
69 gboolean cryptohome_unmount(Cryptohome *self, 88 gboolean cryptohome_unmount(Cryptohome *self,
70 gboolean *out_done, 89 gboolean *OUT_done,
71 GError **error) { 90 GError **error) {
72 CRYPTOHOME_WRAP_METHOD(Unmount, out_done); 91 CRYPTOHOME_WRAP_METHOD(Unmount, OUT_done);
73 } 92 }
74 #undef CRYPTOHOME_WRAP_METHOD 93 #undef CRYPTOHOME_WRAP_METHOD
75 94
76 } // namespace gobject 95 } // namespace gobject
77 } // namespace cryptohome 96 } // namespace cryptohome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698