Skip to content
Snippets Groups Projects
Select Git revision
  • 0bb95a68fc92bce3cc044ae3c006f6e33431617d
  • master default protected
  • v2020.01-ktn
  • caam_hab_mx8m
  • pmic_pca9450
  • feature_swupdate
  • wip_swupdate_env
  • v2020.01-rc1
  • v2019.10
  • v2019.10-rc4
  • v2019.10-rc3
  • v2019.10-rc2
  • v2019.10-rc1
  • v2019.07
  • v2019.07-rc4
  • v2019.07-rc3
  • v2019.07-rc2
  • v2019.07-rc1
  • v2019.04
  • v2019.04-rc4
  • v2019.04-rc3
  • v2019.04-rc2
  • v2019.04-rc1
  • v2019.01
  • v2019.01-rc3
  • v2019.01-rc2
  • v2019.01-rc1
27 results

examples

user avatar
Martin Dorwig authored and Simon Glass committed
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: default avatarMartin Dorwig <dorwig@tetronik.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
(resending to the list since my tweaks are not quite trivial)
49cad547
History
Name Last commit Last update
..
api
standalone
Makefile