summaryrefslogtreecommitdiffstats
path: root/src/ofono.h
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2011-01-31 11:01:48 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-10 00:27:01 -0600
commit2b50146a21a0382e1fb68374b8f92d02358e1555 (patch)
treeaf47df08e72bfe0bc8eebe2b6bcf2c25b816012d /src/ofono.h
parent50c3d98ff3a6ccab021f498bafb29c4c4ff53ac2 (diff)
downloadofono-2b50146a21a0382e1fb68374b8f92d02358e1555.tar.bz2
modem Add powered watch API
Diffstat (limited to 'src/ofono.h')
-rw-r--r--src/ofono.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ofono.h b/src/ofono.h
index 229fcb2c..328213c6 100644
--- a/src/ofono.h
+++ b/src/ofono.h
@@ -188,6 +188,13 @@ unsigned int __ofono_modem_add_online_watch(struct ofono_modem *modem,
void __ofono_modem_remove_online_watch(struct ofono_modem *modem,
unsigned int id);
+typedef void (*ofono_modem_powered_notify_func)(ofono_bool_t powered, void *data);
+unsigned int __ofono_modem_add_powered_watch(struct ofono_modem *modem,
+ ofono_modem_online_notify_func notify,
+ void *data, ofono_destroy_func destroy);
+void __ofono_modem_remove_powered_watch(struct ofono_modem *modem,
+ unsigned int id);
+
#include <ofono/call-barring.h>
gboolean __ofono_call_barring_is_busy(struct ofono_call_barring *cb);