From 85d7486a21a9eb0e0f345b587b3ac506edcb72fe Mon Sep 17 00:00:00 2001
From: vdutta <vivek.dutta@iopsys.eu>
Date: Thu, 28 Apr 2022 19:46:57 +0530
Subject: [PATCH] Updated headers

---
 bbf_plugin/Makefile    |  2 +-
 bbf_plugin/datamodel.c | 11 ++++++-----
 bbf_plugin/datamodel.h | 11 ++++++-----
 src/buci.c             | 18 +++++++++---------
 src/buci.h             | 18 +++++++++---------
 src/bulkdata.c         | 19 ++++++++++---------
 src/config.c           | 19 ++++++++++---------
 src/config.h           | 18 +++++++++---------
 src/report.c           | 20 ++++++++++----------
 src/utils.c            | 18 +++++++++---------
 src/utils.h            | 18 +++++++++---------
 11 files changed, 88 insertions(+), 84 deletions(-)

diff --git a/bbf_plugin/Makefile b/bbf_plugin/Makefile
index 8c22d6e..819bf7b 100644
--- a/bbf_plugin/Makefile
+++ b/bbf_plugin/Makefile
@@ -3,7 +3,7 @@ LIB_BULKDATA = libbulkdata.so
 LIB_OBJS = datamodel.o
 
 LIB_CFLAGS = $(CFLAGS) -Wall -Werror -fstrict-aliasing
-LIB_LDFLAGS = $(LDFLAGS) -lbbf_api
+LIB_LDFLAGS = $(LDFLAGS)
 FPIC := -fPIC
 
 .PHONY: all clean
diff --git a/bbf_plugin/datamodel.c b/bbf_plugin/datamodel.c
index 92f9c34..ddcebd9 100644
--- a/bbf_plugin/datamodel.c
+++ b/bbf_plugin/datamodel.c
@@ -1,11 +1,12 @@
 /*
- * Copyright (C) 2021 iopsys Software Solutions AB
+ * datamodel.c - Bulkdata datamodel plugin
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 2.1
- * as published by the Free Software Foundation
+ * Copyright (C) 2021-2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
  *
- *		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
  */
 
 #include <libbbf_api/dmbbf.h>
diff --git a/bbf_plugin/datamodel.h b/bbf_plugin/datamodel.h
index 79bac35..8f94abb 100644
--- a/bbf_plugin/datamodel.h
+++ b/bbf_plugin/datamodel.h
@@ -1,11 +1,12 @@
 /*
- * Copyright (C) 2020 iopsys Software Solutions AB
+ * datamodel.h - Bulkdata datamodel plugin
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 2.1
- * as published by the Free Software Foundation
+ * Copyright (C) 2021-2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
  *
- *		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
  */
 
 #ifndef _BULKDATA_H_
diff --git a/src/buci.c b/src/buci.c
index 31167f2..f50aca9 100644
--- a/src/buci.c
+++ b/src/buci.c
@@ -1,13 +1,13 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*
-*/
+ * buci.c - uci utilities
+ *
+ * Copyright (C) 2021-2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #include <strings.h>
 #include <string.h>
diff --git a/src/buci.h b/src/buci.h
index 481fd4a..b409a8b 100644
--- a/src/buci.h
+++ b/src/buci.h
@@ -1,13 +1,13 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*
-*/
+ * buci.h - uci utilities
+ *
+ * Copyright (C) 2021-2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #ifndef __BUCI_H
 #define __BUCI_H
diff --git a/src/bulkdata.c b/src/bulkdata.c
index fe96a64..536767d 100644
--- a/src/bulkdata.c
+++ b/src/bulkdata.c
@@ -1,13 +1,14 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*				Omar Kallel <omar.kallel@pivasoftware.com>
-*/
+ * bulkdata.c - Bulkdata core
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ * Author: Omar Kallel <omar.kallel@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #include <stdio.h>
 #include <string.h>
diff --git a/src/config.c b/src/config.c
index d794d72..2b54915 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1,13 +1,14 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*				Omar Kallel <omar.kallel@pivasoftware.com>
-*/
+ * config.c - common utility functions
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ * Author: Omar Kallel <omar.kallel@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #include <stdio.h>
 #include <strings.h>
diff --git a/src/config.h b/src/config.h
index 443e170..7e727e8 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,13 +1,13 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*
-*/
+ * config.c - common utility functions
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #ifndef __CONFIG_H
 #define __CONFIG_H
diff --git a/src/report.c b/src/report.c
index 73ba38d..3da1517 100644
--- a/src/report.c
+++ b/src/report.c
@@ -1,14 +1,14 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*		Author: Omar Kallel <omar.kallel@pivasoftware.com>
-*
-*/
+ * report.c - bulkdata report generation
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ * Author: Omar Kallel <omar.kallel@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #include <string.h>
 #include <json-c/json.h>
diff --git a/src/utils.c b/src/utils.c
index 3fc0e31..5859cb2 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,13 +1,13 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*
-*/
+ * utils.c - common utility functions
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #include <curl/curl.h>
 #include <libubus.h>
diff --git a/src/utils.h b/src/utils.h
index 6f227d9..e12b111 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,13 +1,13 @@
 /*
-*	This program is free software: you can redistribute it and/or modify
-*	it under the terms of the GNU General Public License as published by
-*	the Free Software Foundation, either version 2 of the License, or
-*	(at your option) any later version.
-*
-*	Copyright (C) 2022 iopsys Software Solutions AB
-*		Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
-*
-*/
+ * utils.c - common utility functions
+ *
+ * Copyright (C) 2022, IOPSYS Software Solutions AB.
+ *
+ * Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
+ *
+ * See LICENSE file for license related information.
+ *
+ */
 
 #ifndef __UTILS_H
 #define __UTILS_H
-- 
GitLab