timelist: Move timelist to lib

Timelist is a generic tool to measure time and it can be moved to lib/

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Otavio Pontes
2019-10-03 15:14:11 -07:00
parent ae9e8ce344
commit 8288a4f657
5 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -78,6 +78,8 @@ swupd_SOURCES = \
src/lib/sys.h \
src/lib/thread_pool.c \
src/lib/thread_pool.h \
src/lib/timelist.c \
src/lib/timelist.h \
src/lock.c \
src/main.c \
src/manifest.c \
@@ -105,8 +107,6 @@ swupd_SOURCES = \
src/swupd_progress.c \
src/swupd_progress.h \
src/telemetry.c \
src/timelist.c \
src/timelist.h \
src/update.c \
src/verify.c \
src/verifytime.c \
+1 -1
View File
@@ -10,7 +10,7 @@
* swupd, as well as functions to handle them.
*/
#include "timelist.h"
#include "lib/timelist.h"
#ifdef __cplusplus
extern "C" {
+3 -1
View File
@@ -23,8 +23,10 @@
#include <stdlib.h>
#include <time.h>
#include "log.h"
#include "macros.h"
#include "memory.h"
#include "swupd.h"
#include "strings.h"
#include "timelist.h"
struct time {
+3
View File
@@ -12,6 +12,9 @@
extern "C" {
#endif
/**
* @brief A timelist object
*/
typedef TAILQ_HEAD(timelist, time) timelist;
/**
+1 -1
View File
@@ -21,12 +21,12 @@
#include "lib/progress.h"
#include "lib/strings.h"
#include "lib/sys.h"
#include "lib/timelist.h"
#include "manifest.h"
#include "scripts.h"
#include "swupd_curl.h"
#include "swupd_exit_codes.h"
#include "swupd_progress.h"
#include "timelist.h"
#ifdef __cplusplus
extern "C" {