1N/A/***************************************************************************
1N/A * CVSID: $Id$
1N/A *
1N/A * osspec.h : OS Specific interface
1N/A *
1N/A * Copyright (C) 2003 David Zeuthen, <david@fubar.dk>
1N/A *
1N/A * Licensed under the Academic Free License version 2.1
1N/A *
1N/A * This program is free software; you can redistribute it and/or modify
1N/A * it under the terms of the GNU General Public License as published by
1N/A * the Free Software Foundation; either version 2 of the License, or
1N/A * (at your option) any later version.
1N/A *
1N/A * This program is distributed in the hope that it will be useful,
1N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A * GNU General Public License for more details.
1N/A *
1N/A * You should have received a copy of the GNU General Public License
1N/A * along with this program; if not, write to the Free Software
1N/A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1N/A *
1N/A **************************************************************************/
1N/A
1N/A#ifndef OSSPEC_H
1N/A#define OSSPEC_H
1N/A
1N/A#include <stdarg.h>
1N/A#include <stdint.h>
1N/A#include <dbus/dbus.h>
1N/A
1N/A#include "device.h"
1N/A
1N/A/** Initialize the kernel specific parts of the daemon */
1N/Avoid osspec_init (void);
1N/A
1N/A/** Probe all devices present in the system and build the device list */
1N/Avoid osspec_probe (void);
1N/A
1N/A/* Called by kernel specific parts when probing is done */
1N/Avoid osspec_probe_done (void);
1N/A
1N/Agboolean osspec_device_rescan (HalDevice *d);
1N/A
1N/Agboolean osspec_device_reprobe (HalDevice *d);
1N/A
1N/A/* Called to refresh mount state for a device object of capability volume */
1N/Avoid osspec_refresh_mount_state_for_block_device (HalDevice *d);
1N/A
1N/A/** Called when the org.freedesktop.Hal service receives a messaged that the generic daemon
1N/A * doesn't handle. Can be used for intercepting messages from kernel or core OS components.
1N/A *
1N/A * @param connection D-BUS connection
1N/A * @param message Message
1N/A * @param user_data User data
1N/A * @return What to do with the message
1N/A */
1N/ADBusHandlerResult osspec_filter_function (DBusConnection *connection, DBusMessage *message, void *user_data);
1N/A
1N/A#endif /* OSSPEC_H */