Hi Rafael, > + > +#include <ofono/types.h> > + > +struct ofono_gps; > + > +enum ofono_gps_device_type { > + OFONO_GPS_DEVICE_TYPE_NMEA = 0, > +}; > + > +typedef void (*ofono_gps_enable_cb_t)(const struct ofono_error *error, > + enum ofono_gps_device_type type, > + const char *device, > + void *data);
This function's signature would be modified to receive an int fd instead of type and device. > +typedef void (*ofono_gps_disable_cb_t)(const struct ofono_error *error, > + void *data); > + > +struct ofono_gps_driver { > + const char *name; This structure should contain enum ofono_gps_device_type type member. > + int (*probe)(struct ofono_gps *gps, unsigned int vendor, void *data); > + void (*remove)(struct ofono_gps *gps); > + void (*enable)(struct ofono_gps *gps, > + ofono_gps_enable_cb_t cb, void *data); > + void (*disable)(struct ofono_gps *gps, > + ofono_gps_disable_cb_t cb, void *data); > +}; > + The rest is left more or less as is. Regards, -Denis _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono