| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "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: |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 CRYPTOHOME_WRAP_METHOD(TpmIsBeingOwned, OUT_owning); | 194 CRYPTOHOME_WRAP_METHOD(TpmIsBeingOwned, OUT_owning); |
| 195 } | 195 } |
| 196 gboolean cryptohome_tpm_can_attempt_ownership(Cryptohome *self, | 196 gboolean cryptohome_tpm_can_attempt_ownership(Cryptohome *self, |
| 197 GError **error) { | 197 GError **error) { |
| 198 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmCanAttemptOwnership); | 198 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmCanAttemptOwnership); |
| 199 } | 199 } |
| 200 gboolean cryptohome_tpm_clear_stored_password(Cryptohome *self, | 200 gboolean cryptohome_tpm_clear_stored_password(Cryptohome *self, |
| 201 GError **error) { | 201 GError **error) { |
| 202 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmClearStoredPassword); | 202 CRYPTOHOME_WRAP_METHOD_NO_ARGS(TpmClearStoredPassword); |
| 203 } | 203 } |
| 204 gboolean cryptohome_pkcs11_get_tpm_token_info(Cryptohome *self, |
| 205 gchar **OUT_label, |
| 206 gchar **OUT_user_pin, |
| 207 GError **error) { |
| 208 CRYPTOHOME_WRAP_METHOD(Pkcs11GetTpmTokenInfo, OUT_label, OUT_user_pin); |
| 209 } |
| 210 gboolean cryptohome_pkcs11_is_tpm_token_ready(Cryptohome *self, |
| 211 gboolean *OUT_ready, |
| 212 GError **error) { |
| 213 CRYPTOHOME_WRAP_METHOD(Pkcs11IsTpmTokenReady, OUT_ready); |
| 214 } |
| 204 gboolean cryptohome_get_status_string(Cryptohome *self, | 215 gboolean cryptohome_get_status_string(Cryptohome *self, |
| 205 gchar **OUT_status, | 216 gchar **OUT_status, |
| 206 GError **error) { | 217 GError **error) { |
| 207 CRYPTOHOME_WRAP_METHOD(GetStatusString, OUT_status); | 218 CRYPTOHOME_WRAP_METHOD(GetStatusString, OUT_status); |
| 208 } | 219 } |
| 209 #undef CRYPTOHOME_WRAP_METHOD | 220 #undef CRYPTOHOME_WRAP_METHOD |
| 210 | 221 |
| 211 } // namespace gobject | 222 } // namespace gobject |
| 212 } // namespace cryptohome | 223 } // namespace cryptohome |
| OLD | NEW |