diff options
Diffstat (limited to 'thunar-volman/tvm-device.h')
-rw-r--r-- | thunar-volman/tvm-device.h | 67 |
1 files changed, 26 insertions, 41 deletions
diff --git a/thunar-volman/tvm-device.h b/thunar-volman/tvm-device.h index 4934383..5f4417e 100644 --- a/thunar-volman/tvm-device.h +++ b/thunar-volman/tvm-device.h @@ -1,57 +1,42 @@ -/* $Id$ */ +/* vi:set et ai sw=2 sts=2 ts=2: */ /*- - * Copyright (c) 2007 Benedikt Meurer <benny@xfce.org>. + * Copyright (c) 2010 Jannis Pohlmann <> * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __TVM_DEVICE_H__ #define __TVM_DEVICE_H__ -#include <libhal.h> +#include <glib.h> -#include <exo-hal/exo-hal.h> - -#include <thunar-volman/tvm-preferences.h> +#include <thunar-volman/tvm-context.h> G_BEGIN_DECLS -/** - * TvmDeviceCallback: - * @preferences : a #TvmPreferences. - * @context : a #LibHalContext. - * @udi : the HAL device UDI of the newly added device. - * @capability : the capability that caused this callback to be invoked. - * @error : return location for errors or %NULL. - * - * Prototype for device callbacks, which are invoked if a device is inserted, - * with a capability they claim to be able to handle. Returns %TRUE if the - * device was handled, %FALSE if the device cannot be handled or an unrecoverable - * error occurred (in which case the @error should be set). - * - * Return value: - **/ -typedef gboolean (*TvmDeviceCallback) (TvmPreferences *preferences, - LibHalContext *context, - const gchar *udi, - const gchar *capability, - GError **error); - -gboolean tvm_device_added (TvmPreferences *preferences, - const gchar *udi, - GError **error) G_GNUC_INTERNAL; +/* callback function type for device handlers */ +typedef void (*TvmDeviceHandlerCallback) (TvmContext *context); + +/* function type for device handlers */ +typedef void (*TvmDeviceHandlerFunc) (TvmContext *context); + + + +void tvm_device_added (TvmContext *context); +void tvm_device_handler_finished (TvmContext *context); G_END_DECLS |