blob: 76917b886ea2e18f4ea5e0f95d914661eff6d9e0 [file] [log] [blame]
David Sodmanbbcb0522014-09-19 10:34:07 -07001/*
David Sodman8ef20062015-01-06 09:23:40 -08002 * Copyright 2014 The Chromium OS Authors. All rights reserved.
David Sodmanbbcb0522014-09-19 10:34:07 -07003 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
David Sodman8ef20062015-01-06 09:23:40 -08007#ifndef FRECON_DBUS_H
8#define FRECON_DBUS_H
David Sodmanbbcb0522014-09-19 10:34:07 -07009
David Sodman8ef20062015-01-06 09:23:40 -080010#include <sys/select.h>
David Sodmanbbcb0522014-09-19 10:34:07 -070011#include <dbus/dbus.h>
12#include <stdbool.h>
13#include <memory.h>
14#include <stdio.h>
15
Dominik Behr797a3832016-01-11 15:53:11 -080016bool dbus_init();
Dominik Behr5f6742f2016-03-10 18:03:54 -080017bool dbus_init_wait();
Dominik Behr797a3832016-01-11 15:53:11 -080018void dbus_destroy(void);
Dominik Behrd7112672016-01-20 16:59:34 -080019void dbus_add_fds(fd_set* read_set, fd_set* exception_set, int *maxfd);
Dominik Behr797a3832016-01-11 15:53:11 -080020void dbus_dispatch_io(void);
21void dbus_report_user_activity(int activity_type);
22void dbus_take_display_ownership(void);
23void dbus_release_display_ownership(void);
24bool dbus_is_initialized(void);
Dominik Behr46c567f2016-03-08 15:11:48 -080025void dbus_set_login_prompt_visible_callback(void (*callback)(void*),
26 void* userptr);
David Sodmanbbcb0522014-09-19 10:34:07 -070027
David Sodman8ef20062015-01-06 09:23:40 -080028#endif // FRECON_DBUS_H