ipc/dbus/DBusThread.h
author Wes Kocher <wkocher@mozilla.com>
Tue, 07 May 2013 19:30:52 -0700
changeset 137985 3dd3245de35751287c9e1596b2dfce014bcc70b9
parent 105999 f52fe5212d92b1a818a4d8f4740f6418a0d5c218
child 140868 ca22a8f84a428b59211a1fd78c2481186d05c764
permissions -rw-r--r--
Bug 869687 - Uplift Add-on SDK integration branch to Firefox

/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_ipc_dbus_gonk_dbusthread_h__
#define mozilla_ipc_dbus_gonk_dbusthread_h__

struct DBusMessage;

namespace mozilla {
namespace ipc {

/** 
 * Starts the DBus thread, which handles returning signals to objects
 * that call asynchronous functions. This should be called from the
 * main thread at startup.
 *
 * @return True on thread starting correctly, false otherwise
 */
bool StartDBus();

/** 
 * Stop the DBus thread, assuming it's currently running. Should be
 * called from main thread.
 *
 * @return True on thread stopping correctly, false otherwise
 */
bool StopDBus();

}
}
#endif