]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: include: make atomic.h part of the base API
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 05:58:05 +0000 (07:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:59 +0000 (10:18 +0200)
Atomic ops are used about everywhere, let's make them part of the base
API by including atomic.h in api.h.

include/haproxy/activity.h
include/haproxy/api.h
include/haproxy/freq_ctr.h
include/haproxy/port_range.h
include/haproxy/thread.h
include/haproxy/xref.h

index 452e5f8472673bf07680ee57f19500c5bc2abde1..7b68530668734f819c47af74f0337018f8b81a0a 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _HAPROXY_ACTIVITY_H
 #define _HAPROXY_ACTIVITY_H
 
-#include <haproxy/atomic.h>
 #include <haproxy/api.h>
 #include <haproxy/time.h>
 #include <haproxy/activity-t.h>
index f32050d7153f7897fa94f5c0ddbe4a5dd96e0c7e..dd8b02a4fb2b3acc1986400014c9323cc230e117 100644 (file)
@@ -30,6 +30,7 @@
 #ifndef _HAPROXY_BASE_H
 #define _HAPROXY_BASE_H
 
+#include <haproxy/atomic.h>
 #include <haproxy/bug.h>
 #include <haproxy/initcall.h>
 #include <haproxy/api-t.h>
index ba9de6995e195642cb18f909b682aeb1093130de..ce6fb952a6621f68e47e6cc805d7edf2494b42d0 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _HAPROXY_FREQ_CTR_H
 #define _HAPROXY_FREQ_CTR_H
 
-#include <haproxy/atomic.h>
 #include <haproxy/api.h>
 #include <haproxy/freq_ctr-t.h>
 #include <haproxy/intops.h>
index be0160be0bebcb9256ec2e7fd3c233a77342dbda..8e7a937f527955e2fae74409d5581e0fc85bb73b 100644 (file)
@@ -23,7 +23,6 @@
 #define _HAPROXY_PORT_RANGE_H
 
 #include <stdlib.h>
-#include <haproxy/atomic.h>
 #include <haproxy/api.h>
 #include <haproxy/port_range-t.h>
 
index 1afd95848f446bd03c542f04ce66c5d23c9aa152..6520b7788809e3e7e314fa763fedebbe5a61ebf4 100644 (file)
@@ -29,7 +29,6 @@
 #include <sched.h>
 #endif
 
-#include <haproxy/atomic.h>
 #include <haproxy/api.h>
 #include <haproxy/thread-t.h>
 
index e76638599f16a80a654432ab14a7272da1560d22..42eed5808d9b01ef8895bf4115fb3e70c25e35e1 100644 (file)
@@ -28,7 +28,6 @@
 #ifndef __HAPROXY_XREF_H__
 #define __HAPROXY_XREF_H__
 
-#include <haproxy/atomic.h>
 #include <haproxy/xref-t.h>
 
 /* xref is used to create relation between two elements.