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

Unified Diff: src/platform/update_engine/dbus_service.h

Issue 1733013: AU: Beginnings of dbus support. (Closed)
Patch Set: fixes for wad's review Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/dbus_constants.h ('k') | src/platform/update_engine/dbus_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/dbus_service.h
diff --git a/src/platform/update_engine/dbus_service.h b/src/platform/update_engine/dbus_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b2604e51c5497a4013a989906a621fae6530c9c
--- /dev/null
+++ b/src/platform/update_engine/dbus_service.h
@@ -0,0 +1,59 @@
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__
+#define CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__
+
+#include <inttypes.h>
+#include <dbus/dbus-glib.h>
+#include <dbus/dbus-glib-bindings.h>
+#include <dbus/dbus-glib-lowlevel.h>
+#include <glib-object.h>
+
+#include "update_engine/update_attempter.h"
+
+// Type macros:
+#define UPDATE_ENGINE_TYPE_SERVICE (update_engine_service_get_type())
+#define UPDATE_ENGINE_SERVICE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), UPDATE_ENGINE_TYPE_SERVICE, \
+ UpdateEngineService))
+#define UPDATE_ENGINE_IS_SERVICE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), UPDATE_ENGINE_TYPE_SERVICE))
+#define UPDATE_ENGINE_SERVICE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), UPDATE_ENGINE_TYPE_SERVICE, \
+ UpdateEngineService))
+#define UPDATE_ENGINE_IS_SERVICE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), UPDATE_ENGINE_TYPE_SERVICE))
+#define UPDATE_ENGINE_SERVICE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS((obj), UPDATE_ENGINE_TYPE_SERVICE, \
+ UpdateEngineService))
+
+G_BEGIN_DECLS
+
+struct UpdateEngineService {
+ GObject parent_instance;
+
+ chromeos_update_engine::UpdateAttempter* update_attempter_;
+};
+
+struct UpdateEngineServiceClass {
+ GObjectClass parent_class;
+};
+
+UpdateEngineService* update_engine_service_new(void);
+GType update_engine_service_get_type(void);
+
+// Methods
+
+gboolean update_engine_service_get_status(UpdateEngineService* self,
+ int64_t* last_checked_time,
+ double* progress,
+ gchar** current_operation,
+ gchar** new_version,
+ int64_t* new_size,
+ GError **error);
+
+G_END_DECLS
+
+#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DBUS_SERVICE_H__
« no previous file with comments | « src/platform/update_engine/dbus_constants.h ('k') | src/platform/update_engine/dbus_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698