summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile.am.inc5
-rw-r--r--plugin/plugin.c24
2 files changed, 29 insertions, 0 deletions
diff --git a/plugin/Makefile.am.inc b/plugin/Makefile.am.inc
new file mode 100644
index 0000000..c1d4425
--- /dev/null
+++ b/plugin/Makefile.am.inc
@@ -0,0 +1,5 @@
+lib_LTLIBRARIES += plugin/libzbarplugin.la
+plugin_libzbarplugin_la_SOURCES = \
+ plugin/plugin.c
+plugin_libzbarplugin_la_CPPFLAGS = $(MOZILLA_CFLAGS) $(AM_CPPFLAGS)
+plugin_libzbarplugin_la_LDFLAGS = $(MOZILLA_LIBS) $(AM_LDFLAGS)
diff --git a/plugin/plugin.c b/plugin/plugin.c
new file mode 100644
index 0000000..89a8a5e
--- /dev/null
+++ b/plugin/plugin.c
@@ -0,0 +1,24 @@
+/*------------------------------------------------------------------------
+ * Copyright 2009 (c) Jeff Brown <spadix@users.sourceforge.net>
+ *
+ * This file is part of the ZBar Bar Code Reader.
+ *
+ * The ZBar Bar Code Reader is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * The ZBar Bar Code Reader is distributed in the hope that it will be
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser Public License
+ * along with the ZBar Bar Code Reader; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ *
+ * http://sourceforge.net/projects/zbar
+ *------------------------------------------------------------------------*/
+
+#include <npapi.h>