summaryrefslogtreecommitdiffstats
path: root/plugin/npshell.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-07-28 21:51:20 +0100
committerDaniel P. Berrange <berrange@redhat.com>2009-07-28 21:51:20 +0100
commit3680317d91439d8accb7e6a1002db5747a87d5e6 (patch)
treedb185ce6d89c65061da8132a2b04744cf8281e8c /plugin/npshell.c
parente135b1c2f751fd21e96b32c9feb789b30bad1da4 (diff)
downloadvirt-viewer-3680317d91439d8accb7e6a1002db5747a87d5e6.tar.gz
virt-viewer-3680317d91439d8accb7e6a1002db5747a87d5e6.tar.xz
virt-viewer-3680317d91439d8accb7e6a1002db5747a87d5e6.zip
Make plugin work again
Diffstat (limited to 'plugin/npshell.c')
-rw-r--r--plugin/npshell.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/npshell.c b/plugin/npshell.c
index 03a3dc0..ccd11a5 100644
--- a/plugin/npshell.c
+++ b/plugin/npshell.c
@@ -76,7 +76,7 @@ Portions created by Adobe Systems Incorporated are Copyright (C) 2007. All Right
Contributor(s): Adobe Systems Incorporated.
*/
-#include <config.h>
+//#include <config.h>
#include <stdio.h>
#include <stdlib.h>
@@ -84,6 +84,7 @@ Contributor(s): Adobe Systems Incorporated.
#include <strings.h>
#include <npapi.h>
+#include <npupp.h>
#include "virt-viewer-plugin.h"
@@ -197,7 +198,7 @@ NPP_New(NPMIMEType pluginType G_GNUC_UNUSED,
This->mode = mode;
This->instance = instance;
This->uri = This->name = NULL;
- This->direct = This->waitvm = This->reconnect = 0;
+ This->direct = This->waitvm = This->debug = This->reconnect = 0;
/* Read the parameters passed to the plugin. */
for (i = 0; i < argc; i++)
@@ -210,6 +211,8 @@ NPP_New(NPMIMEType pluginType G_GNUC_UNUSED,
This->direct = strcmp (argv[i], "1") == 0;
else if (strcasecmp (argn[i], "wait") == 0)
This->waitvm = strcmp (argv[i], "1") == 0;
+ else if (strcasecmp (argn[i], "debug") == 0)
+ This->debug = strcmp (argv[i], "1") == 0;
else if (strcasecmp (argn[i], "reconnect") == 0)
This->reconnect = strcmp (argv[i], "1") == 0;
}