cdma-netreg: add registration status to public api

This commit is contained in:
Bertrand Aygon 2011-08-05 15:21:05 +02:00 committed by Denis Kenzior
parent a8bf6e96b6
commit b7be25e120
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,12 @@ extern "C" {
#include <ofono/types.h>
enum cdma_netreg_status {
CDMA_NETWORK_REGISTRATION_STATUS_NOT_REGISTERED = 0,
CDMA_NETWORK_REGISTRATION_STATUS_REGISTERED = 1,
CDMA_NETWORK_REGISTRATION_STATUS_ROAMING = 2,
};
struct ofono_cdma_netreg;
struct ofono_cdma_netreg_driver {
@ -38,6 +44,9 @@ struct ofono_cdma_netreg_driver {
void (*remove)(struct ofono_cdma_netreg *cdma_netreg);
};
void ofono_cdma_netreg_status_notify(struct ofono_cdma_netreg *netreg,
enum cdma_netreg_status status);
int ofono_cdma_netreg_driver_register(
const struct ofono_cdma_netreg_driver *d);
void ofono_cdma_netreg_driver_unregister(