[U-Boot] [PATCH v3] Export redesign
Simon Glass
sjg at chromium.org
Wed Dec 3 15:39:15 CET 2014
Hi Martin,
On 1 December 2014 at 00:16, Martin Dorwig <dorwig at tetronik.com> wrote:
> this is an atempt to make the export of functions typesafe.
> I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
> The EXPORT_FUNC macro now has 3 fixed parameters and one
> variadic parameter
> The first is the name of the exported function,
> the rest of the parameters are used to format a functionpointer
> in the jumptable,
>
> the EXPORT_FUNC macros are expanded three times,
> 1. to declare the members of the struct
> 2. to initialize the structmember pointers
> 3. to call the functions in stubs.c
>
> Signed-off-by: Martin Dorwig <dorwig at tetronik.com>
> ---
>
> Changes in v3:
If no one beats me to it, I should get to testing this by early next week.
Regards,
Simon
More information about the U-Boot
mailing list