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 #ifndef CRYPTOHOME_INTERFACE_H_ | 4 #ifndef CRYPTOHOME_INTERFACE_H_ |
5 #define CRYPTOHOME_INTERFACE_H_ | 5 #define CRYPTOHOME_INTERFACE_H_ |
6 | 6 |
7 #include <dbus/dbus-glib.h> | 7 #include <dbus/dbus-glib.h> |
8 #include <dbus/dbus-glib-bindings.h> | 8 #include <dbus/dbus-glib-bindings.h> |
9 #include <glib-object.h> | 9 #include <glib-object.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 18 matching lines...) Expand all Loading... |
29 // macro. This macro defines a number of other GLib class system specific | 29 // macro. This macro defines a number of other GLib class system specific |
30 // functions and variables discussed in interface.cc. | 30 // functions and variables discussed in interface.cc. |
31 GType cryptohome_get_type(); // defined by G_DEFINE_TYPE | 31 GType cryptohome_get_type(); // defined by G_DEFINE_TYPE |
32 | 32 |
33 // Interface function prototypes which wrap service. | 33 // Interface function prototypes which wrap service. |
34 gboolean cryptohome_check_key(Cryptohome *self, | 34 gboolean cryptohome_check_key(Cryptohome *self, |
35 gchar *userid, | 35 gchar *userid, |
36 gchar *key, | 36 gchar *key, |
37 gboolean *OUT_success, | 37 gboolean *OUT_success, |
38 GError **error); | 38 GError **error); |
| 39 gboolean cryptohome_migrate_key(Cryptohome *self, |
| 40 gchar *userid, |
| 41 gchar *from_key, |
| 42 gchar *to_key, |
| 43 gboolean *OUT_success, |
| 44 GError **error); |
| 45 gboolean cryptohome_remove(Cryptohome *self, |
| 46 gchar *userid, |
| 47 gboolean *OUT_success, |
| 48 GError **error); |
| 49 gboolean cryptohome_get_system_salt(Cryptohome *self, |
| 50 GArray **OUT_salt, |
| 51 GError **error); |
39 gboolean cryptohome_is_mounted(Cryptohome *self, | 52 gboolean cryptohome_is_mounted(Cryptohome *self, |
40 gboolean *out_is_mounted, | 53 gboolean *OUT_is_mounted, |
41 GError **error); | 54 GError **error); |
42 gboolean cryptohome_mount(Cryptohome *self, | 55 gboolean cryptohome_mount(Cryptohome *self, |
43 gchar *userid, | 56 gchar *userid, |
44 gchar *key, | 57 gchar *key, |
45 gboolean *OUT_done, | 58 gboolean *OUT_done, |
46 GError **error); | 59 GError **error); |
47 gboolean cryptohome_unmount(Cryptohome *self, | 60 gboolean cryptohome_unmount(Cryptohome *self, |
48 gboolean *out_done, | 61 gboolean *OUT_done, |
49 GError **error); | 62 GError **error); |
50 } // namespace gobject | 63 } // namespace gobject |
51 } // namespace cryptohome | 64 } // namespace cryptohome |
52 #endif // CRYPTOHOME_INTERFACE_H_ | 65 #endif // CRYPTOHOME_INTERFACE_H_ |
OLD | NEW |