include: Add serving_system method to cdma-netreg
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Thu, 24 Nov 2011 17:46:21 +0000 (18:46 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 24 Nov 2011 23:41:53 +0000 (17:41 -0600)
include/cdma-netreg.h

index 31ed289..529dab5 100644 (file)
@@ -36,12 +36,19 @@ enum cdma_netreg_status {
 
 struct ofono_cdma_netreg;
 
+typedef void (*ofono_cdma_netreg_serving_system_cb_t)(
+                               const struct ofono_error *error,
+                               const char *sid,
+                               void *data);
+
 struct ofono_cdma_netreg_driver {
        const char *name;
        int (*probe)(struct ofono_cdma_netreg *cdma_netreg,
                                unsigned int vendor,
                                void *data);
        void (*remove)(struct ofono_cdma_netreg *cdma_netreg);
+       void (*serving_system)(struct ofono_cdma_netreg *cdma_netreg,
+                       ofono_cdma_netreg_serving_system_cb_t cb, void *data);
 };
 
 void ofono_cdma_netreg_status_notify(struct ofono_cdma_netreg *netreg,