Moved utils.[ch] to utils folder
This commit is contained in:
+1
-1
@@ -16,8 +16,8 @@
|
|||||||
#include "ietf/ietf_attr.h"
|
#include "ietf/ietf_attr.h"
|
||||||
#include "ita/ita_attr.h"
|
#include "ita/ita_attr.h"
|
||||||
|
|
||||||
#include <utils.h>
|
|
||||||
#include <utils/debug.h>
|
#include <utils/debug.h>
|
||||||
|
#include <utils/utils.h>
|
||||||
#include <pen/pen.h>
|
#include <pen/pen.h>
|
||||||
|
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c
|
|||||||
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
|
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
|
||||||
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
|
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
|
||||||
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
|
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
|
||||||
utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
|
utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
|
||||||
utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
|
utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
|
||||||
utils/printf_hook.c utils/settings.c
|
utils/printf_hook.c utils/settings.c
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c
|
|||||||
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
|
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
|
||||||
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
|
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
|
||||||
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
|
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
|
||||||
utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
|
utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
|
||||||
utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
|
utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
|
||||||
utils/printf_hook.c utils/settings.c
|
utils/printf_hook.c utils/settings.c
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ processing/scheduler.h selectors/traffic_selector.h \
|
|||||||
threading/thread.h threading/thread_value.h \
|
threading/thread.h threading/thread_value.h \
|
||||||
threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
|
threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
|
||||||
threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
|
threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
|
||||||
utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
|
utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
|
||||||
utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
|
utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
|
||||||
utils/leak_detective.h utils/printf_hook.h utils/settings.h utils/integrity_checker.h
|
utils/leak_detective.h utils/printf_hook.h utils/settings.h utils/integrity_checker.h
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
typedef struct enumerator_t enumerator_t;
|
typedef struct enumerator_t enumerator_t;
|
||||||
|
|
||||||
#include "../utils.h"
|
#include <utils/utils.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumerator interface, allows enumeration over collections.
|
* Enumerator interface, allows enumeration over collections.
|
||||||
|
|||||||
@@ -80,9 +80,9 @@
|
|||||||
# error config.h not included, pass "-include [...]/config.h" to gcc
|
# error config.h not included, pass "-include [...]/config.h" to gcc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* make sure we include printf_hook.h first */
|
/* make sure we include printf_hook.h and utils.h first */
|
||||||
#include "utils/printf_hook.h"
|
#include "utils/printf_hook.h"
|
||||||
#include "utils.h"
|
#include "utils/utils.h"
|
||||||
#include "networking/host_resolver.h"
|
#include "networking/host_resolver.h"
|
||||||
#include "processing/processor.h"
|
#include "processing/processor.h"
|
||||||
#include "processing/scheduler.h"
|
#include "processing/scheduler.h"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ struct chunk_t {
|
|||||||
size_t len;
|
size_t len;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "../utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A { NULL, 0 }-chunk handy for initialization.
|
* A { NULL, 0 }-chunk handy for initialization.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef INTEGRITY_CHECKER_H_
|
#ifndef INTEGRITY_CHECKER_H_
|
||||||
#define INTEGRITY_CHECKER_H_
|
#define INTEGRITY_CHECKER_H_
|
||||||
|
|
||||||
#include "../utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
typedef struct integrity_checker_t integrity_checker_t;
|
typedef struct integrity_checker_t integrity_checker_t;
|
||||||
typedef struct integrity_checksum_t integrity_checksum_t;
|
typedef struct integrity_checksum_t integrity_checksum_t;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
typedef struct settings_t settings_t;
|
typedef struct settings_t settings_t;
|
||||||
|
|
||||||
#include "../utils.h"
|
#include "utils.h"
|
||||||
#include "collections/enumerator.h"
|
#include "collections/enumerator.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup utils utils
|
* @defgroup utils_i utils
|
||||||
* @{ @ingroup libstrongswan
|
* @{ @ingroup utils
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef UTILS_H_
|
#ifndef UTILS_H_
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "utils/enum.h"
|
#include "enum.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* strongSwan program return codes
|
* strongSwan program return codes
|
||||||
Reference in New Issue
Block a user