f78b12e570284aa8291f4ca1add24937fd107403vboxsync/*
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Copyright © 2006-2007 Daniel Stone
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * copy of this software and associated documentation files (the "Software"),
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * to deal in the Software without restriction, including without limitation
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * and/or sell copies of the Software, and to permit persons to whom the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Software is furnished to do so, subject to the following conditions:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * The above copyright notice and this permission notice (including the next
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * paragraph) shall be included in all copies or substantial portions of the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Software.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * DEALINGS IN THE SOFTWARE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Author: Daniel Stone <daniel@fooishbar.org>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifdef HAVE_DIX_CONFIG_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <dix-config.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include "input.h"
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid remove_devices(const char *backend, const char *config_info);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncBOOL device_is_duplicate(const char *config_info);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid add_option(InputOption **options, const char *key, const char *value);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifdef CONFIG_UDEV
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncint config_udev_init(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid config_udev_fini(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#else
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# ifdef CONFIG_NEED_DBUS
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <dbus/dbus.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*config_dbus_core_connect_hook)(DBusConnection *connection,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync void *data);
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef void (*config_dbus_core_disconnect_hook)(void *data);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncstruct config_dbus_core_hook {
f78b12e570284aa8291f4ca1add24937fd107403vboxsync config_dbus_core_connect_hook connect;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync config_dbus_core_disconnect_hook disconnect;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync void *data;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync struct config_dbus_core_hook *next;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync};
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncint config_dbus_core_init(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid config_dbus_core_fini(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncint config_dbus_core_add_hook(struct config_dbus_core_hook *hook);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid config_dbus_core_remove_hook(struct config_dbus_core_hook *hook);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# ifdef CONFIG_DBUS_API
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncint config_dbus_init(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid config_dbus_fini(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# ifdef CONFIG_HAL
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncint config_hal_init(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncvoid config_hal_fini(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif