> So how about just doing
> 
> /* put list of devices in list and return length of list */
> extern int ibv_get_device_list(struct ibv_device * const **list);
> 
> /* free a list of devices from ibv_get_device_list */
> extern void ibv_free_device_list(struct ibv_device * const *list);

I like it much better than what we have now.  Clean, simple and easy to
understand.

> Or are the consts too confusing?  Should we be a little less safe but
> make it nice and simple and just do

I often find consts a bit of a nuisance for what they give me; but am fine
either way.  Both are simple enough.

Johann
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to