> It seemed faintly preferable to tell the caller how big the array was
> rather than forcing the caller to count for itself.

If you really wanted that, I would be more inclined towards:

    struct ibv_device ** ibv_get_device(*length_ptr)

and if you do not want length, you could pass a null length_ptr.  But since
I also cannot think of a strong case for it, I prefer the cleaner interface
of leaving it out.

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