RFC: Neighbouring Cell Info, take 2

Bastian, Waldo waldo.bastian at intel.com
Thu Feb 11 11:25:49 PST 2010


> > struct ofono_cell_info_driver {
> > 	const char *name;
> > 	int (*probe)(struct ofono_cell_info *ci, unsigned int vendor,
> > 			void *data);
> > 	void (*remove)(struct ofono_cell_info *ci);
> > 	void (*query)(struct ofono_cell_info *ci,
> > 			ofono_cell_info_query_cb_t cb,
> > 			void *data);
> > };
> >
> > void ofono_cell_info_query(struct ofono_cell_info *ci,
> ofono_cell_info_query_cb_t cb, void *data);
> 
> What's this for?

It's basically ofono_cell_info_driver->query(...) for use by a plugin after it has acquired the atom, something like:
cell_info_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_CELL_INFO);
cell_info = __ofono_atom_get_data(cell_info_atom);
ofono_cell_info_query(cell_info, plugin_query_cb, plugin_data);

Cheers,
Waldo


More information about the ofono mailing list