Hi Richard,

On 8/12/19 3:18 PM, richard.rojf...@gmail.com wrote:
From: Richard Röjfors <rich...@puffinpack.se>

This is useful for instance during startup where early
activated contexts can be listed at a suitable point in time.
---
  include/gprs.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/include/gprs.h b/include/gprs.h
index 988d6102..c276517f 100644
--- a/include/gprs.h
+++ b/include/gprs.h
@@ -45,6 +45,8 @@ struct ofono_gprs_driver {
                                ofono_gprs_cb_t cb, void *data);
        void (*attached_status)(struct ofono_gprs *gprs,
                                        ofono_gprs_status_cb_t cb, void *data);
+       void (*list_active_contexts)(struct ofono_gprs *gprs,
+                                       ofono_gprs_status_cb_t cb, void *data);

Using ofono_gprs_status_cb_t is a bit confusing. Do you really need the number of contexts? The core can easily compute this anyway if it cares.

Otherwise just use ofono_gprs_cb_t.

  };
enum gprs_suspend_cause {


Regards,
-Denis
_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to