summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/plugin/README_plugin.txt9
-rw-r--r--src/plugin/install.rdf19
-rwxr-xr-xsrc/plugin/make_xpi.sh22
-rw-r--r--src/plugin/plugin.c199
-rw-r--r--src/plugin/plugin.h29
-rw-r--r--src/plugin/test.html17
6 files changed, 295 insertions, 0 deletions
diff --git a/src/plugin/plugin.h b/src/plugin/plugin.h
new file mode 100644
index 0000000..2f1d505
--- a/dev/null
+++ b/src/plugin/plugin.h
@@ -0,0 +1,29 @@
+#ifndef PLUGIN_H
+#define PLUGIN_H
+
+/*
+ * Based on Basic Plugin exmaple from Mozilla on-line at
+ * http://mxr.mozilla.org/mozilla-central/source/modules/plugin/sdk/samples/basic/unix/BasicPlugin.h
+ */
+
+#include <npapi.h>
+#include <npupp.h>
+
+NPError NP_Initialize(NPNetscapeFuncs* bFuncs, NPPluginFuncs* pFuncs);
+NPError NP_Shutdown();
+
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved);
+NPError NPP_Destroy(NPP instance, NPSavedData** save);
+NPError NPP_SetWindow(NPP instance, NPWindow* window);
+NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype);
+NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
+int32_t NPP_WriteReady(NPP instance, NPStream* stream);
+int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer);
+void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
+void NPP_Print(NPP instance, NPPrint* platformPrint);
+int16_t NPP_HandleEvent(NPP instance, void* event);
+void NPP_URLNotify(NPP instance, const char* URL, NPReason reason, void* notifyData);
+NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value);
+NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value);
+
+#endif // PLUGIN_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.