|
|
73b847 |
From 228fda84601a9a9f3ba5b39bbea2302f73c2580c Mon Sep 17 00:00:00 2001
|
|
|
73b847 |
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
|
|
73b847 |
Date: Wed, 4 Dec 2019 13:12:52 +0100
|
|
|
73b847 |
Subject: [PATCH 073/181] nbis: Add a global include file with all the
|
|
|
73b847 |
definitions ignoring erros
|
|
|
73b847 |
|
|
|
73b847 |
The nbis headers are full of redundant declarations, we can't fix them all
|
|
|
73b847 |
now, so in the mean time let's use an header using pragma to ignore such
|
|
|
73b847 |
errors.
|
|
|
73b847 |
|
|
|
73b847 |
Add the error to nbis private include folder that should be used only by
|
|
|
73b847 |
headers of libfprint-nbis.
|
|
|
73b847 |
---
|
|
|
73b847 |
libfprint/fp-image.c | 2 +-
|
|
|
73b847 |
libfprint/fp-print.c | 3 +--
|
|
|
73b847 |
libfprint/meson.build | 6 +++++
|
|
|
73b847 |
libfprint/nbis/libfprint-include/nbis.h | 35 +++++++++++++++++++++++++
|
|
|
73b847 |
4 files changed, 43 insertions(+), 3 deletions(-)
|
|
|
73b847 |
create mode 100644 libfprint/nbis/libfprint-include/nbis.h
|
|
|
73b847 |
|
|
|
73b847 |
diff --git a/libfprint/fp-image.c b/libfprint/fp-image.c
|
|
|
73b847 |
index 4b8b3cd..c66b010 100644
|
|
|
73b847 |
--- a/libfprint/fp-image.c
|
|
|
73b847 |
+++ b/libfprint/fp-image.c
|
|
|
73b847 |
@@ -20,7 +20,7 @@
|
|
|
73b847 |
|
|
|
73b847 |
#include "fpi-image.h"
|
|
|
73b847 |
|
|
|
73b847 |
-#include "nbis/include/lfs.h"
|
|
|
73b847 |
+#include <nbis.h>
|
|
|
73b847 |
|
|
|
73b847 |
#if HAVE_PIXMAN
|
|
|
73b847 |
#include <pixman.h>
|
|
|
73b847 |
diff --git a/libfprint/fp-print.c b/libfprint/fp-print.c
|
|
|
73b847 |
index e7b119a..ed29ec1 100644
|
|
|
73b847 |
--- a/libfprint/fp-print.c
|
|
|
73b847 |
+++ b/libfprint/fp-print.c
|
|
|
73b847 |
@@ -22,8 +22,7 @@
|
|
|
73b847 |
#include "fpi-image.h"
|
|
|
73b847 |
#include "fpi-device.h"
|
|
|
73b847 |
|
|
|
73b847 |
-#include "nbis/include/bozorth.h"
|
|
|
73b847 |
-#include "nbis/include/lfs.h"
|
|
|
73b847 |
+#include <nbis.h>
|
|
|
73b847 |
|
|
|
73b847 |
/**
|
|
|
73b847 |
* SECTION: fp-print
|
|
|
73b847 |
diff --git a/libfprint/meson.build b/libfprint/meson.build
|
|
|
73b847 |
index 100865d..99ebf73 100644
|
|
|
73b847 |
--- a/libfprint/meson.build
|
|
|
73b847 |
+++ b/libfprint/meson.build
|
|
|
73b847 |
@@ -187,11 +187,17 @@ deps = [ mathlib_dep, glib_dep, gusb_dep, nss_dep, imaging_dep, gio_dep ]
|
|
|
73b847 |
deps += declare_dependency(include_directories: [
|
|
|
73b847 |
root_inc,
|
|
|
73b847 |
include_directories('nbis/include'),
|
|
|
73b847 |
+ include_directories('nbis/libfprint-include'),
|
|
|
73b847 |
])
|
|
|
73b847 |
|
|
|
73b847 |
libnbis = static_library('nbis',
|
|
|
73b847 |
nbis_sources,
|
|
|
73b847 |
dependencies: deps,
|
|
|
73b847 |
+ c_args: cc.get_supported_arguments([
|
|
|
73b847 |
+ '-Wno-error=redundant-decls',
|
|
|
73b847 |
+ '-Wno-redundant-decls',
|
|
|
73b847 |
+ '-Wno-discarded-qualifiers',
|
|
|
73b847 |
+ ]),
|
|
|
73b847 |
install: false)
|
|
|
73b847 |
|
|
|
73b847 |
libfprint = library('fprint',
|
|
|
73b847 |
diff --git a/libfprint/nbis/libfprint-include/nbis.h b/libfprint/nbis/libfprint-include/nbis.h
|
|
|
73b847 |
new file mode 100644
|
|
|
73b847 |
index 0000000..e3f667f
|
|
|
73b847 |
--- /dev/null
|
|
|
73b847 |
+++ b/libfprint/nbis/libfprint-include/nbis.h
|
|
|
73b847 |
@@ -0,0 +1,35 @@
|
|
|
73b847 |
+/*
|
|
|
73b847 |
+ * Example fingerprint device prints listing and deletion
|
|
|
73b847 |
+ * Enrolls your right index finger and saves the print to disk
|
|
|
73b847 |
+ * Copyright (C) 2019 Marco Trevisan <marco.trevisan@canonical.com>
|
|
|
73b847 |
+ *
|
|
|
73b847 |
+ * This library is free software; you can redistribute it and/or
|
|
|
73b847 |
+ * modify it under the terms of the GNU Lesser General Public
|
|
|
73b847 |
+ * License as published by the Free Software Foundation; either
|
|
|
73b847 |
+ * version 2.1 of the License, or (at your option) any later version.
|
|
|
73b847 |
+ *
|
|
|
73b847 |
+ * This library is distributed in the hope that it will be useful,
|
|
|
73b847 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
73b847 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
73b847 |
+ * Lesser General Public License for more details.
|
|
|
73b847 |
+ *
|
|
|
73b847 |
+ * You should have received a copy of the GNU Lesser General Public
|
|
|
73b847 |
+ * License along with this library; if not, write to the Free Software
|
|
|
73b847 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
73b847 |
+ */
|
|
|
73b847 |
+
|
|
|
73b847 |
+#pragma once
|
|
|
73b847 |
+
|
|
|
73b847 |
+#pragma GCC diagnostic push
|
|
|
73b847 |
+#pragma GCC diagnostic ignored "-Wredundant-decls"
|
|
|
73b847 |
+
|
|
|
73b847 |
+#include <bozorth.h>
|
|
|
73b847 |
+#include <bz_array.h>
|
|
|
73b847 |
+#include <defs.h>
|
|
|
73b847 |
+#include <lfs.h>
|
|
|
73b847 |
+#include <log.h>
|
|
|
73b847 |
+#include <morph.h>
|
|
|
73b847 |
+#include <mytime.h>
|
|
|
73b847 |
+#include <sunrast.h>
|
|
|
73b847 |
+
|
|
|
73b847 |
+#pragma GCC diagnostic pop
|
|
|
73b847 |
--
|
|
|
73b847 |
2.24.1
|
|
|
73b847 |
|