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

Side by Side Diff: dbus_service.h

Issue 3034026: AU: Provide a reboot_if_needed D-Bus API. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: reboot error code doesn't necessarily signal a problem. Created 10 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « UpdateEngine.conf ('k') | dbus_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 39
40 struct UpdateEngineServiceClass { 40 struct UpdateEngineServiceClass {
41 GObjectClass parent_class; 41 GObjectClass parent_class;
42 }; 42 };
43 43
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,
50 gchar* app_version,
51 gchar* omaha_url,
52 GError **error);
53
54 gboolean update_engine_service_check_for_update(UpdateEngineService* self,
55 GError **error);
56
49 gboolean update_engine_service_get_status(UpdateEngineService* self, 57 gboolean update_engine_service_get_status(UpdateEngineService* self,
50 int64_t* last_checked_time, 58 int64_t* last_checked_time,
51 double* progress, 59 double* progress,
52 gchar** current_operation, 60 gchar** current_operation,
53 gchar** new_version, 61 gchar** new_version,
54 int64_t* new_size, 62 int64_t* new_size,
55 GError **error); 63 GError **error);
56 64
57 gboolean update_engine_service_check_for_update(UpdateEngineService* self, 65 gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self,
58 GError **error); 66 GError **error);
59 67
60 gboolean update_engine_service_attempt_update(UpdateEngineService* self,
61 gchar* app_version,
62 gchar* omaha_url,
63 GError **error);
64
65 gboolean update_engine_service_emit_status_update( 68 gboolean update_engine_service_emit_status_update(
66 UpdateEngineService* self, 69 UpdateEngineService* self,
67 gint64 last_checked_time, 70 gint64 last_checked_time,
68 gdouble progress, 71 gdouble progress,
69 const gchar* current_operation, 72 const gchar* current_operation,
70 const gchar* new_version, 73 const gchar* new_version,
71 gint64 new_size); 74 gint64 new_size);
72 75
73 G_END_DECLS 76 G_END_DECLS
74 77
75 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__ 78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__
OLDNEW
« no previous file with comments | « UpdateEngine.conf ('k') | dbus_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698