| // 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. |
| #include <base/logging.h> |
| #include "brillo/glib/abstract_dbus_service.h" |
| bool AbstractDbusService::Register(const brillo::dbus::BusConnection& conn) { |
| return RegisterExclusiveService(conn, |
| bool AbstractDbusService::Run() { |
| LOG(ERROR) << "No run loop. Call Initialize before use."; |
| ::g_main_loop_run(main_loop()); |
| DLOG(INFO) << "Run() completed"; |
| bool AbstractDbusService::Shutdown() { |
| ::g_main_loop_quit(main_loop()); |