aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/host.h')
-rw-r--r--src/libstrongswan/utils/host.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstrongswan/utils/host.h b/src/libstrongswan/utils/host.h
index 38bdc809a..74b75ee97 100644
--- a/src/libstrongswan/utils/host.h
+++ b/src/libstrongswan/utils/host.h
@@ -25,6 +25,9 @@
#ifndef HOST_H_
#define HOST_H_
+typedef enum host_diff_t host_diff_t;
+typedef struct host_t host_t;
+
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
@@ -35,7 +38,6 @@
#include <types.h>
-
/**
* printf() specifier to print a host.
* The specifier option '#' does include the port number, e.g.:
@@ -43,8 +45,6 @@
*/
#define HOST_PRINTF_SPEC 'H'
-typedef enum host_diff_t host_diff_t;
-
/**
* Differences between two hosts. They differ in
* address, port, or both.
@@ -55,8 +55,6 @@ enum host_diff_t {
HOST_DIFF_PORT = 2,
};
-typedef struct host_t host_t;
-
/**
* @brief Representates a Host
*