aboutsummaryrefslogtreecommitdiff
path: root/ponymap.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-02-28 21:57:57 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-02-28 21:57:57 +0100
commit2e44af621d1ef33bad80fd89e91afe874a377cee (patch)
tree80d10827ae1f91745d0cdd127ae48aada5e96862 /ponymap.c
parent2dccb650bbd39ce2b99dfdaf819c22c47611d7c9 (diff)
downloadponymap-2e44af621d1ef33bad80fd89e91afe874a377cee.tar.gz
ponymap-2e44af621d1ef33bad80fd89e91afe874a377cee.tar.xz
ponymap-2e44af621d1ef33bad80fd89e91afe874a377cee.zip
Move to liberty
Diffstat (limited to 'ponymap.c')
-rw-r--r--ponymap.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/ponymap.c b/ponymap.c
index 9635fe9..e76c808 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -18,8 +18,13 @@
*
*/
-#include "utils.c"
+#define LIBERTY_WANT_SSL
+#define LIBERTY_WANT_POLLER
+
+#include "config.h"
+#include "liberty/liberty.c"
#include "plugin-api.h"
+
#include <inttypes.h>
#include <dirent.h>
@@ -150,7 +155,7 @@ print_bold (FILE *stream, const char *s)
struct port_range
{
- LIST_HEADER (port_range)
+ LIST_HEADER (struct port_range)
uint16_t start; ///< The beginning of the range
uint16_t end; ///< The end of the range
};
@@ -165,7 +170,7 @@ port_range_delete (struct port_range *self)
struct ip_range
{
- LIST_HEADER (ip_range)
+ LIST_HEADER (struct ip_range)
uint32_t start; ///< The beginning of the range
uint32_t end; ///< The end of the range
@@ -184,7 +189,7 @@ ip_range_delete (struct ip_range *self)
struct target
{
- LIST_HEADER (target)
+ LIST_HEADER (struct target)
size_t ref_count; ///< Reference count
struct app_context *ctx; ///< Application context
@@ -210,7 +215,7 @@ static void target_unref (struct target *self);
struct unit
{
- LIST_HEADER (unit)
+ LIST_HEADER (struct unit)
size_t ref_count; ///< Reference count
struct target *target; ///< Target context
@@ -250,7 +255,7 @@ enum transport_io_result
// The only real purpose of this is to abstract away TLS/SSL
struct transport
{
- LIST_HEADER (transport)
+ LIST_HEADER (struct transport)
const char *name; ///< Name of the transport