Clean up references to UPP types, plugin/host glue.
commitc133c59b35c2596281d8c584f95c17658eba9c08
authorDavid Menestrina <dmenest-vlc@ofb.net>
Fri, 16 Apr 2010 01:34:45 +0000 (15 18:34 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 27 Apr 2010 21:44:55 +0000 (27 23:44 +0200)
tree7d59028c06c919686301f13f1430f566a4284d3a
parent56335ed186a104492806ecc345bfc72195ae3b67
Clean up references to UPP types, plugin/host glue.

The old gecko-sdk defines a bunch of types and macros in npupp.h,
which is no longer available in xulrunner-sdk 1.9.2.  Luckily,
all of the NPN*UPP types were typedeffed to UniversalProcPtr,
so this change just uses that type, incorporated into the
HOST_TO_PLUGIN_GLUE macro.  We also define a new CALL_NPN macro
for choosing to use the CallNPN_*Proc macros from npupp.h or
just invoking the function pointer directly.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 9668d7a27736e2876ad3c9adf8d1794dca1c0c91)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
projects/mozilla/support/npmac.cpp