Port pamusb-agent and pamusb-conf to UDisks.
[pam_usb.git] / src / hal.h
blob43f597ac8caedb931294c971f486e9c99ccc6924
1 /*
2 * Copyright (c) 2003-2007 Andrea Luzzardi <scox@sig11.org>
4 * This file is part of the pam_usb project. pam_usb is free software;
5 * you can redistribute it and/or modify it under the terms of the GNU General
6 * Public License version 2, as published by the Free Software Foundation.
8 * pam_usb is distributed in the hope that it will be useful, but WITHOUT ANY
9 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 * details.
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 * Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifndef PUSB_HAL_H_
19 # define PUSB_HAL_H_
21 DBusConnection *pusb_hal_dbus_connect(void);
22 void pusb_hal_dbus_disconnect(DBusConnection *dbus);
23 LibHalContext *pusb_hal_init(DBusConnection *dbus);
24 void pusb_hal_destroy(LibHalContext *ctx);
25 char *pusb_hal_get_property(LibHalContext *ctx, const char *udi, const char *name);
26 int pusb_hal_check_property(LibHalContext *ctx, const char *udi, const char *name, const char *value);
27 char *pusb_hal_find_item(LibHalContext *ctx, const char *property, const char *value, ...);
29 #endif /* !PUSB_HAL_H_ */