1*2912Sartem /*************************************************************************** 2*2912Sartem * CVSID: $Id$ 3*2912Sartem * 4*2912Sartem * osspec.h : OS Specific interface 5*2912Sartem * 6*2912Sartem * Copyright (C) 2003 David Zeuthen, <david@fubar.dk> 7*2912Sartem * 8*2912Sartem * Licensed under the Academic Free License version 2.1 9*2912Sartem * 10*2912Sartem * This program is free software; you can redistribute it and/or modify 11*2912Sartem * it under the terms of the GNU General Public License as published by 12*2912Sartem * the Free Software Foundation; either version 2 of the License, or 13*2912Sartem * (at your option) any later version. 14*2912Sartem * 15*2912Sartem * This program is distributed in the hope that it will be useful, 16*2912Sartem * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*2912Sartem * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*2912Sartem * GNU General Public License for more details. 19*2912Sartem * 20*2912Sartem * You should have received a copy of the GNU General Public License 21*2912Sartem * along with this program; if not, write to the Free Software 22*2912Sartem * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23*2912Sartem * 24*2912Sartem **************************************************************************/ 25*2912Sartem 26*2912Sartem #ifndef OSSPEC_H 27*2912Sartem #define OSSPEC_H 28*2912Sartem 29*2912Sartem #include <stdarg.h> 30*2912Sartem #include <stdint.h> 31*2912Sartem #include <dbus/dbus.h> 32*2912Sartem 33*2912Sartem #include "device.h" 34*2912Sartem 35*2912Sartem /** Initialize the kernel specific parts of the daemon */ 36*2912Sartem void osspec_init (void); 37*2912Sartem 38*2912Sartem /** Probe all devices present in the system and build the device list */ 39*2912Sartem void osspec_probe (void); 40*2912Sartem 41*2912Sartem /* Called by kernel specific parts when probing is done */ 42*2912Sartem void osspec_probe_done (void); 43*2912Sartem 44*2912Sartem gboolean osspec_device_rescan (HalDevice *d); 45*2912Sartem 46*2912Sartem gboolean osspec_device_reprobe (HalDevice *d); 47*2912Sartem 48*2912Sartem /* Called to refresh mount state for a device object of capability volume */ 49*2912Sartem void osspec_refresh_mount_state_for_block_device (HalDevice *d); 50*2912Sartem 51*2912Sartem /** Called when the org.freedesktop.Hal service receives a messaged that the generic daemon 52*2912Sartem * doesn't handle. Can be used for intercepting messages from kernel or core OS components. 53*2912Sartem * 54*2912Sartem * @param connection D-BUS connection 55*2912Sartem * @param message Message 56*2912Sartem * @param user_data User data 57*2912Sartem * @return What to do with the message 58*2912Sartem */ 59*2912Sartem DBusHandlerResult osspec_filter_function (DBusConnection *connection, DBusMessage *message, void *user_data); 60*2912Sartem 61*2912Sartem #endif /* OSSPEC_H */ 62