Updated documentation for 0.2 release
[mtetherd] / hal.h
1 /*
2   mtetherd
3   (c) 2010 Gregor Riepl <onitake@gmail.com>
4   
5   Tethering utility for Maemo
6   
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.
11   
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.
16   
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/>.
19 */
20
21 #ifndef _MTETHERD_HAL_H
22 #define _MTETHERD_HAL_H
23
24 #include <glib.h>
25 #include <dbus/dbus-glib-lowlevel.h>
26 #include <libhal.h>
27 #include "plugin.h"
28
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);
39
40 #endif //_MTETHERD_HAL_H
41