Typedef anjay_smsdrv_should_try_recv_t
Defined in File sms.h
Typedef Documentation
-
typedef int anjay_smsdrv_should_try_recv_t(anjay_smsdrv_t *driver, avs_time_duration_t timeout)
Waits for new messages in the inbox. Checks whether any new messages came since last call to anjay_smsdrv_recv_all_cb_t, and if not - waits for notification about new message to come before the specified timeout.
- Param driver:
SMS driver object to operate on.
- Param timeout:
Duration of time after which to give up waiting for notification.
- Return:
1 if there are new messages in the inbox, 0 if none came before timeout, or a negative value in case of error.