mapi: print function declarations for shared glapi
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 25 Jan 2019 16:25:43 +0000 (16:25 +0000)
committerEric Anholt <eric@anholt.net>
Fri, 25 Jan 2019 21:04:04 +0000 (13:04 -0800)
commit3b6aaab7e9f211197b79368dabcec0fb1c92b24c
tree57aacc9fa5dbd7aeac7a1e0c5e0e33c91cfafb22
parent4aa64940c63408b7dc641e9d2756ac4c3f512676
mapi: print function declarations for shared glapi

Earlier commit aimed to remove unneeded function declarations. Namely
OpenGL entrypoints which are not applicable for OpenGLES*

Although it did not consider the shared glapi which needs all,
including hidden ones. Resulting in warning/errors like the following

../build/src/mapi/shared-glapi/glapi_mapi_tmp.h:26014:15:
error: no previous prototype for ‘shared_dispatch_stub_1414’ [-Werror=missing-prototypes]

This patch addressed that.

Cc: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reported-by: Eric Anholt <eric@anholt.net>
Fixes: 6148cce388f ("mapi: drop unneeded gl_dispatch_stub declarations")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/mapi/mapi_abi.py