3 (c) 2010 Gregor Riepl <onitake@gmail.com>
5 Tethering utility for Maemo
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _MTETHERD_HAL_H
22 #define _MTETHERD_HAL_H
25 #include <dbus/dbus-glib-lowlevel.h>
29 // Initialize DBUS and HAL connection
30 gboolean mtetherd_hal_init(MTetherDStatusPlugin *plugin);
31 // Release resources required for HAL connection
32 void mtetherd_hal_finalize(MTetherDStatusPlugin *plugin);
33 // Scan the HAL network interface list and call
34 // mtetherd_status_plugin_device_added() for each device
35 void mtetherd_hal_device_scan(MTetherDStatusPlugin *plugin);
36 // Check the USB cable state
37 // Returns TRUE if plugged in, FALSE if not
38 gboolean mtetherd_usb_state(MTetherDStatusPlugin *plugin);
40 #endif //_MTETHERD_HAL_H