summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 13:57:54 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:16 +0100
commitf9cf76ae21d569765bae76916ec61011a0ee9b24 (patch)
treed6165aa6ad69c40fa8773e3e5b171ccca5c99877
parent52befdfee44c6e15f305d9094fdd0b9732daee84 (diff)
downloadfribid-f9cf76ae21d569765bae76916ec61011a0ee9b24.tar.gz
fribid-f9cf76ae21d569765bae76916ec61011a0ee9b24.tar.bz2
fribid-f9cf76ae21d569765bae76916ec61011a0ee9b24.zip
Added a comment about Opera compatibility
-rw-r--r--plugin/npmain.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugin/npmain.c b/plugin/npmain.c
index 4bbadde..86961cf 100644
--- a/plugin/npmain.c
+++ b/plugin/npmain.c
@@ -1,6 +1,6 @@
/*
- Copyright (c) 2009 Samuel Lidén Borell <samuel@slbdata.se>
+ Copyright (c) 2009-2010 Samuel Lidén Borell <samuel@slbdata.se>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -33,6 +33,9 @@
#include "plugin.h"
#include "npobject.h"
+// Change to "/" to make this plugin work with Opera
+#define NO_FILE_EXTENSIONS ""
+
NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode,
int16 argc, char *argn[], char *argv[], NPSavedData *data) {
instance->pdata = npobject_fromMIME(instance, pluginType);
@@ -71,9 +74,9 @@ NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
}
char *NPP_GetMIMEDescription() {
- return MIME_VERSION "::Version;"
- MIME_AUTHENTICATION "::Authentication;"
- MIME_SIGNER "::Signer2";
+ return MIME_VERSION ":" NO_FILE_EXTENSIONS ":Version;"
+ MIME_AUTHENTICATION ":" NO_FILE_EXTENSIONS ":Authentication;"
+ MIME_SIGNER ":" NO_FILE_EXTENSIONS ":Signer2";
}
NPError NPP_Initialize() {