mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-04 15:58:22 +00:00
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:
+2
-2
@@ -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
@@ -10,7 +10,7 @@
|
||||
* swupd, as well as functions to handle them.
|
||||
*/
|
||||
|
||||
#include "timelist.h"
|
||||
#include "lib/timelist.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -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 {
|
||||
@@ -12,6 +12,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief A timelist object
|
||||
*/
|
||||
typedef TAILQ_HEAD(timelist, time) timelist;
|
||||
|
||||
/**
|
||||
+1
-1
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user