summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/modem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modem.h b/include/modem.h
index 0a5ef604..43030248 100644
--- a/include/modem.h
+++ b/include/modem.h
@@ -50,10 +50,19 @@ ofono_bool_t ofono_modem_get_powered(struct ofono_modem *modem);
struct ofono_modem_driver {
const char *name;
+
+ /* probe - Detect existence of device and initialize any
+ * device-specific data structures */
int (*probe)(struct ofono_modem *modem);
+ /* remove - Destroy data structures allocated during probe */
int (*remove)(struct ofono_modem *modem);
+
+ /* enable - Power up device */
int (*enable)(struct ofono_modem *modem);
+ /* disable - Power down device */
int (*disable)(struct ofono_modem *modem);
+
+ /* populate - Populate the atoms supported by this device */
int (*populate)(struct ofono_modem *modem);
};