Nothing needed to be changed, there are no exported types.
/*
- include/common/ticks.h
- Functions and macros for manipulation of expiration timers
-
- Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation, version 2.1
- exclusively.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+ * include/haproxy/ticks.h
+ * Functions and macros for manipulation of expiration timers
+ *
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation, version 2.1
+ * exclusively.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
/*
* Using a mix of milliseconds and timeval for internal timers is expensive and
* the dedicated tick_add() function.
*/
-#ifndef _COMMON_TICKS_H
-#define _COMMON_TICKS_H
+#ifndef _HAPROXY_TICKS_H
+#define _HAPROXY_TICKS_H
#include <haproxy/api.h>
return exp - now;
}
-#endif /* _COMMON_TICKS_H */
+#endif /* _HAPROXY_TICKS_H */
/*
* Local variables:
#include <haproxy/chunk.h>
#include <haproxy/dynbuf.h>
#include <common/htx.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/channel.h>
#include <unistd.h>
#include <haproxy/api.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/fd.h>
#include <haproxy/activity.h>
#define _PROTO_PEERS_H
#include <haproxy/api.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <proto/connection.h>
#include <types/stream.h>
#define _PROTO_PROXY_H
#include <haproxy/api.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/applet.h>
#include <types/global.h>
#include <haproxy/errors.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/stick_table.h>
#include <types/dict.h>
#include <haproxy/pool.h>
#include <haproxy/intops.h>
#include <haproxy/list.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/thread.h>
#include <import/eb32sctree.h>
#include <haproxy/api.h>
#include <haproxy/hash.h>
#include <common/htx.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <haproxy/namespace.h>
#include <common/cfgparse.h>
#include <haproxy/list.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <common/uri_auth.h>
#include <haproxy/version.h>
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <haproxy/time.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/net_helper.h>
#include <types/action.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/global.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <proto/connection.h>
#include <haproxy/errors.h>
#include <haproxy/openssl-compat.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <haproxy/base64.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <common/uri_auth.h>
#include <haproxy/version.h>
#include <haproxy/api.h>
#include <haproxy/dynbuf.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <proto/applet.h>
#include <common/cfgparse.h>
#include <haproxy/list.h>
#include <common/standard.h>
-#include <common/ticks.h>
+#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/arg.h>