Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
OF_getprop_alloc takes element size argument and returns number of
elements in the property. There are valid use cases for such behavior
but mostly API consumers pass 1 as element size to get string
properties. What API users would expect from OF_getprop_alloc is to be
a combination of malloc + OF_getprop with the same semantic of return
value. This patch modifies API signature to match these expectations.

For the valid use cases with element size != 1 and to reduce
modification scope new OF_getprop_alloc_multi function has been
introduced that behaves the same way OF_getprop_alloc behaved prior to
this patch.

Reviewed by:	ian, manu
Differential Revision:	https://reviews.freebsd.org/D14850
2018-04-08 22:59:34 +00:00
..
2018-04-08 22:59:34 +00:00
2018-04-08 22:59:34 +00:00
2018-03-08 19:24:10 +00:00
2018-01-10 20:05:19 +00:00
2018-03-21 15:57:36 +00:00
2018-03-23 15:35:07 +00:00
2017-11-09 13:38:17 +00:00
2017-12-30 19:27:22 +00:00
2018-04-08 22:59:34 +00:00
2018-03-30 20:24:29 +00:00
2018-04-08 22:59:34 +00:00
2018-04-08 22:59:34 +00:00
2018-04-08 22:59:34 +00:00
2018-03-30 02:25:12 +00:00
2018-04-08 22:59:34 +00:00
2018-03-14 18:27:06 +00:00
2018-03-28 07:59:16 +00:00
2018-04-08 22:59:34 +00:00
2017-11-30 20:33:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-08 22:59:34 +00:00
2018-04-08 22:59:34 +00:00
2017-11-30 20:33:45 +00:00
2018-03-29 17:36:34 +00:00
2017-12-29 00:59:56 +00:00
2018-04-08 22:59:34 +00:00
2018-02-19 19:31:18 +00:00
2018-04-08 22:59:34 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00
2018-03-23 15:35:15 +00:00