diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-08-21 08:34:17 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-08-21 08:43:02 -0700 |
commit | 679aea1db4468c42845a743b2ccad9bda0e7c4ea (patch) | |
tree | cc6d1d445da8215bec74d82f7302f984cab7674e /src | |
parent | 8d3d670baf6bafc010ba18173d544179d034eb4a (diff) |
Limit exported symbols to just those needed for NPAPI
To load the plugin only NP_Initialize and friends are needed. After that
the NPPluginFuncs vtable is used to call into the plugin. This keeps the
symbols from the viewer widget and mime code from being visible outside
of the plugin.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/evbp.sym | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index dcf011b..1364eaf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,7 +10,8 @@ libevbp3_viewer_la_LIBADD = $(EVINCE3_LIBS) libevbp3_viewer_la_SOURCES = $(libevbp2_viewer_la_SOURCES) libevince2_plugin_la_CFLAGS = $(E_CFLAGS) $(MOZILLA_CFLAGS) $(EVINCE2_CFLAGS) -libevince2_plugin_la_LDFLAGS = -avoid-version -module +libevince2_plugin_la_LDFLAGS = -avoid-version -module \ + -export-symbols $(srcdir)/evbp.sym libevince2_plugin_la_LIBADD = libevbp2-viewer.la libevince2_plugin_la_SOURCES = evbp.c libevince3_plugin_la_CFLAGS = $(E_CFLAGS) $(MOZILLA_CFLAGS) $(EVINCE3_CFLAGS) @@ -27,3 +28,5 @@ if ENABLE_GTK3 noinst_LTLIBRARIES += libevbp3-viewer.la gtk3_plugin_LTLIBRARIES = libevince3-plugin.la endif + +EXTRA_DIST = evbp.sym diff --git a/src/evbp.sym b/src/evbp.sym new file mode 100644 index 0000000..1bbcf1a --- /dev/null +++ b/src/evbp.sym @@ -0,0 +1,5 @@ +NP_Initialize +NP_Shutdown +NP_GetPluginVersion +NP_GetMIMEDescription +NP_GetValue |