diff options
author | Andras Domokos <andras.domokos@nokia.com> | 2010-11-15 18:57:55 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-22 09:53:41 -0600 |
commit | d7fb7da021c71767889442d57e9234990f09a618 (patch) | |
tree | 6eb32561a077ca18e4f82e11233a994d8d19803f /src/ofono.h | |
parent | f3c75c928510a7e1a7a485ee220ce5998c2d708a (diff) | |
download | ofono-d7fb7da021c71767889442d57e9234990f09a618.tar.bz2 |
modem: add modem online-offline watch
Diffstat (limited to 'src/ofono.h')
-rw-r--r-- | src/ofono.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ofono.h b/src/ofono.h index 4d76d20a..566dacb1 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -177,6 +177,14 @@ unsigned int __ofono_modemwatch_add(ofono_modemwatch_cb_t cb, void *user, ofono_destroy_func destroy); gboolean __ofono_modemwatch_remove(unsigned int id); +typedef void (*ofono_modem_online_notify_func)(ofono_bool_t online, + void *data); +unsigned int __ofono_modem_add_online_watch(struct ofono_modem *modem, + ofono_modem_online_notify_func notify, + void *data, ofono_destroy_func destroy); +void __ofono_modem_remove_online_watch(struct ofono_modem *modem, + unsigned int id); + #include <ofono/call-barring.h> gboolean __ofono_call_barring_is_busy(struct ofono_call_barring *cb); |