| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 4 |
| 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ |
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ |
| 7 | 7 |
| 8 #include <inttypes.h> | 8 #include <inttypes.h> |
| 9 #include <dbus/dbus-glib.h> | 9 #include <dbus/dbus-glib.h> |
| 10 #include <dbus/dbus-glib-bindings.h> | 10 #include <dbus/dbus-glib-bindings.h> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 UpdateEngineService* update_engine_service_new(void); | 44 UpdateEngineService* update_engine_service_new(void); |
| 45 GType update_engine_service_get_type(void); | 45 GType update_engine_service_get_type(void); |
| 46 | 46 |
| 47 // Methods | 47 // Methods |
| 48 | 48 |
| 49 gboolean update_engine_service_attempt_update(UpdateEngineService* self, | 49 gboolean update_engine_service_attempt_update(UpdateEngineService* self, |
| 50 gchar* app_version, | 50 gchar* app_version, |
| 51 gchar* omaha_url, | 51 gchar* omaha_url, |
| 52 GError **error); | 52 GError **error); |
| 53 | 53 |
| 54 gboolean update_engine_service_check_for_update(UpdateEngineService* self, | |
| 55 GError **error); | |
| 56 | |
| 57 gboolean update_engine_service_get_status(UpdateEngineService* self, | 54 gboolean update_engine_service_get_status(UpdateEngineService* self, |
| 58 int64_t* last_checked_time, | 55 int64_t* last_checked_time, |
| 59 double* progress, | 56 double* progress, |
| 60 gchar** current_operation, | 57 gchar** current_operation, |
| 61 gchar** new_version, | 58 gchar** new_version, |
| 62 int64_t* new_size, | 59 int64_t* new_size, |
| 63 GError **error); | 60 GError **error); |
| 64 | 61 |
| 65 gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self, | 62 gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self, |
| 66 GError **error); | 63 GError **error); |
| 67 | 64 |
| 68 gboolean update_engine_service_emit_status_update( | 65 gboolean update_engine_service_emit_status_update( |
| 69 UpdateEngineService* self, | 66 UpdateEngineService* self, |
| 70 gint64 last_checked_time, | 67 gint64 last_checked_time, |
| 71 gdouble progress, | 68 gdouble progress, |
| 72 const gchar* current_operation, | 69 const gchar* current_operation, |
| 73 const gchar* new_version, | 70 const gchar* new_version, |
| 74 gint64 new_size); | 71 gint64 new_size); |
| 75 | 72 |
| 76 G_END_DECLS | 73 G_END_DECLS |
| 77 | 74 |
| 78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ | 75 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ |
| OLD | NEW |