Blame SOURCES/0145-cleanup-Remove-fp_internal.h-and-update-drivers_api..patch

73b847
From 106cfd6615bedebdfab573bea6f0a8df5e02c499 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Mon, 16 Dec 2019 20:37:15 +0100
73b847
Subject: [PATCH 145/181] cleanup: Remove fp_internal.h and update
73b847
 drivers_api.h
73b847
73b847
Remove the uneeded internal API, as we can now include each header directly
73b847
if needed, while move the assembling stuff to the drivers API.
73b847
---
73b847
 doc/meson.build            |  1 -
73b847
 libfprint/drivers/aeslib.c |  4 +---
73b847
 libfprint/drivers_api.h    | 12 ++++++------
73b847
 libfprint/fp_internal.h    | 25 -------------------------
73b847
 libfprint/fpi-assembling.c |  3 ++-
73b847
 5 files changed, 9 insertions(+), 36 deletions(-)
73b847
 delete mode 100644 libfprint/fp_internal.h
73b847
73b847
diff --git a/doc/meson.build b/doc/meson.build
73b847
index 2c7a384..e138ea2 100644
73b847
--- a/doc/meson.build
73b847
+++ b/doc/meson.build
73b847
@@ -4,7 +4,6 @@ private_headers = [
73b847
     'config.h',
73b847
     'nbis-helpers.h',
73b847
     'fprint.h',
73b847
-    'fp_internal.h',
73b847
 
73b847
     # Subdirectories to ignore
73b847
     'drivers',
73b847
diff --git a/libfprint/drivers/aeslib.c b/libfprint/drivers/aeslib.c
73b847
index 4839c62..de56c6b 100644
73b847
--- a/libfprint/drivers/aeslib.c
73b847
+++ b/libfprint/drivers/aeslib.c
73b847
@@ -19,13 +19,11 @@
73b847
 
73b847
 #define FP_COMPONENT "aeslib"
73b847
 
73b847
-#include "fp_internal.h"
73b847
+#include "drivers_api.h"
73b847
 
73b847
 #include <errno.h>
73b847
 #include <string.h>
73b847
 
73b847
-#include "fpi-usb-transfer.h"
73b847
-#include "fpi-assembling.h"
73b847
 #include "aeslib.h"
73b847
 
73b847
 #define MAX_REGWRITES_PER_REQUEST 16
73b847
diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h
73b847
index bb401cd..e8ed900 100644
73b847
--- a/libfprint/drivers_api.h
73b847
+++ b/libfprint/drivers_api.h
73b847
@@ -2,6 +2,7 @@
73b847
  * Driver API definitions
73b847
  * Copyright (C) 2007-2008 Daniel Drake <dsd@gentoo.org>
73b847
  * Copyright (C) 2018 Bastien Nocera <hadess@hadess.net>
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
@@ -21,14 +22,13 @@
73b847
 #ifndef __DRIVERS_API_H__
73b847
 #define __DRIVERS_API_H__
73b847
 
73b847
-#include <config.h>
73b847
-
73b847
-#include "fp_internal.h"
73b847
-
73b847
+#include "fpi-assembling.h"
73b847
+#include "fpi-device.h"
73b847
+#include "fpi-image-device.h"
73b847
+#include "fpi-image.h"
73b847
 #include "fpi-log.h"
73b847
+#include "fpi-print.h"
73b847
 #include "fpi-usb-transfer.h"
73b847
 #include "fpi-ssm.h"
73b847
-#include "fpi-assembling.h"
73b847
-#include "fpi-image-device.h"
73b847
 
73b847
 #endif
73b847
diff --git a/libfprint/fp_internal.h b/libfprint/fp_internal.h
73b847
deleted file mode 100644
73b847
index 56ada18..0000000
73b847
--- a/libfprint/fp_internal.h
73b847
+++ /dev/null
73b847
@@ -1,25 +0,0 @@
73b847
-/*
73b847
- * Internal/private definitions for libfprint
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
-#include "fpi-log.h"
73b847
-#include "fpi-image.h"
73b847
-#include "fpi-image-device.h"
73b847
-#include "fpi-minutiae.h"
73b847
diff --git a/libfprint/fpi-assembling.c b/libfprint/fpi-assembling.c
73b847
index fef08f0..2b55ee3 100644
73b847
--- a/libfprint/fpi-assembling.c
73b847
+++ b/libfprint/fpi-assembling.c
73b847
@@ -21,7 +21,8 @@
73b847
 
73b847
 #define FP_COMPONENT "assembling"
73b847
 
73b847
-#include "fp_internal.h"
73b847
+#include "fpi-log.h"
73b847
+#include "fpi-image.h"
73b847
 
73b847
 #include <string.h>
73b847
 
73b847
-- 
73b847
2.24.1
73b847