Hi Andras,
On 10/25/2010 03:03 AM, Andras Domokos wrote:
> From: Andras Domokos <[email protected]>
>
<snip>
> diff --git a/src/ofono.h b/src/ofono.h
> index 6c7f649..b132727 100644
> --- a/src/ofono.h
> +++ b/src/ofono.h
> @@ -177,6 +177,21 @@ unsigned int
> __ofono_modemwatch_add(ofono_modemwatch_cb_t cb, void *user,
> ofono_destroy_func destroy);
> gboolean __ofono_modemwatch_remove(unsigned int id);
>
> +enum ofono_modem_state {
> + MODEM_STATE_POWER_OFF,
> + MODEM_STATE_PRE_SIM,
> + MODEM_STATE_OFFLINE,
> + MODEM_STATE_ONLINE,
Please see doc/coding-style.txt item M11.
> +};
> +
> +typedef void (*ofono_modem_state_notify_func)(enum ofono_modem_state state,
> + void *data);
> +unsigned int __ofono_modem_add_state_watch(struct ofono_modem *modem,
> + ofono_modem_state_notify_func notify,
> + void *data, ofono_destroy_func destroy);
> +void __ofono_modem_remove_state_watch(struct ofono_modem *modem,
> + unsigned int id);
> +
I believe that me and Pekka already agreed not to use MODEM_STATE, but
instead only watch for the online state of the modem.
> #include <ofono/call-barring.h>
>
> gboolean __ofono_call_barring_is_busy(struct ofono_call_barring *cb);
Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono