REORG: include: move freq_ctr to haproxy/

types/freq_ctr.h was moved to haproxy/freq_ctr-t.h and proto/freq_ctr.h
was moved to haproxy/freq_ctr.h. Files were updated accordingly, no other
change was applied.
This commit is contained in:
Willy Tarreau 2020-06-01 12:18:08 +02:00
parent 889faf467b
commit 6634794992
25 changed files with 34 additions and 34 deletions

View File

@ -1,8 +1,8 @@
/*
* include/types/freq_ctr.h
* include/haproxy/freq_ctr.h
* This file contains structure declarations for frequency counters.
*
* Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu
* 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
@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _TYPES_FREQ_CTR_H
#define _TYPES_FREQ_CTR_H
#ifndef _HAPROXY_FREQ_CTR_T_H
#define _HAPROXY_FREQ_CTR_T_H
#include <haproxy/api-t.h>
@ -45,7 +45,7 @@ struct freq_ctr_period {
unsigned int prev_ctr; /* value for last period */
};
#endif /* _TYPES_FREQ_CTR_H */
#endif /* _HAPROXY_FREQ_CTR_T_H */
/*
* Local variables:

View File

@ -1,8 +1,8 @@
/*
* include/proto/freq_ctr.h
* include/haproxy/freq_ctr.h
* This file contains macros and inline functions for frequency counters.
*
* Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
* 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
@ -19,14 +19,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _PROTO_FREQ_CTR_H
#define _PROTO_FREQ_CTR_H
#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>
#include <haproxy/time.h>
#include <types/freq_ctr.h>
/* Update a frequency counter by <inc> incremental units. It is automatically
@ -324,7 +324,7 @@ static inline unsigned int swrate_avg(unsigned int sum, unsigned int n)
return (sum + n - 1) / n;
}
#endif /* _PROTO_FREQ_CTR_H */
#endif /* _HAPROXY_FREQ_CTR_H */
/*
* Local variables:

View File

@ -26,7 +26,7 @@
#include <haproxy/api.h>
#include <haproxy/time.h>
#include <types/activity.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
/* bit fields for "profiling" */
#define HA_PROF_TASKS_OFF 0x00000000 /* per-task CPU profiling forced disabled */

View File

@ -29,7 +29,7 @@
#include <types/global.h>
#include <types/proxy.h>
#include <types/listener.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
extern struct proxy *proxies_list;
extern struct eb_root used_proxy_id; /* list of proxy IDs in use */

View File

@ -34,7 +34,7 @@
#include <proto/queue.h>
#include <proto/log.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
__decl_thread(extern HA_SPINLOCK_T idle_conn_srv_lock);

View File

@ -27,7 +27,7 @@
#include <types/action.h>
#include <types/stream.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/obj_type.h>
#include <proto/queue.h>
#include <proto/stick_table.h>

View File

@ -23,7 +23,7 @@
#define _TYPES_ACTIVITY_H
#include <haproxy/api-t.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
/* per-thread activity reports. It's important that it's aligned on cache lines
* because some elements will be updated very often. Most counters are OK on

View File

@ -23,7 +23,7 @@
#define _TYPES_APPLET_H
#include <haproxy/api-t.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/hlua.h>
#include <types/obj_type.h>
#include <types/proxy.h>

View File

@ -27,7 +27,7 @@
#include <haproxy/api-t.h>
#include <haproxy/thread.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/listener.h>
#include <types/proxy.h>
#include <types/task.h>

View File

@ -42,7 +42,7 @@
#include <types/checks.h>
#include <types/counters.h>
#include <types/filters.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/listener.h>
#include <types/log.h>
#include <types/obj_type.h>

View File

@ -35,7 +35,7 @@
#include <types/connection.h>
#include <types/counters.h>
#include <types/dns.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/obj_type.h>
#include <types/proxy.h>
#include <types/queue.h>

View File

@ -29,7 +29,7 @@
#include <haproxy/thread.h>
#include <types/filters.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/log.h>
#include <types/proxy.h>
#include <types/sample.h>

View File

@ -31,7 +31,7 @@
#include <import/eb32tree.h>
#include <common/memory.h>
#include <types/dict.h>
#include <types/freq_ctr.h>
#include <haproxy/freq_ctr-t.h>
#include <types/peers.h>
#include <types/sample.h>

View File

@ -17,7 +17,7 @@
#include <types/activity.h>
#include <proto/channel.h>
#include <proto/cli.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/stream_interface.h>

View File

@ -50,7 +50,7 @@
#include <proto/compression.h>
#include <proto/stats.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/log.h>
#include <proto/pattern.h>

View File

@ -36,7 +36,7 @@
#include <proto/acl.h>
#include <proto/compression.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/stream.h>

View File

@ -27,7 +27,7 @@
#include <proto/arg.h>
#include <proto/backend.h>
#include <proto/filters.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/http_rules.h>
#include <proto/log.h>

View File

@ -13,7 +13,7 @@
#include <haproxy/api.h>
#include <common/standard.h>
#include <haproxy/time.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
/* Read a frequency counter taking history into account for missing time in
* current period. Current second is sub-divided in 1000 chunks of one ms,

View File

@ -31,7 +31,7 @@
#include <proto/acl.h>
#include <proto/connection.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/log.h>
#include <proto/listener.h>
#include <proto/protocol.h>

View File

@ -37,7 +37,7 @@
#include <proto/connection.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/listener.h>
#include <proto/log.h>
#include <proto/protocol.h>

View File

@ -30,7 +30,7 @@
#include <proto/connection.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/log.h>
#include <proto/pipe.h>
#include <proto/raw_sock.h>

View File

@ -68,7 +68,7 @@
#include <proto/connection.h>
#include <proto/cli.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/http_rules.h>
#include <proto/listener.h>

View File

@ -52,7 +52,7 @@
#include <proto/dns.h>
#include <proto/stats.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/http_htx.h>
#include <proto/log.h>

View File

@ -42,7 +42,7 @@
#include <proto/stats.h>
#include <proto/fd.h>
#include <proto/filters.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/hlua.h>
#include <proto/http_rules.h>

View File

@ -21,7 +21,7 @@
#include <import/eb32tree.h>
#include <proto/fd.h>
#include <proto/freq_ctr.h>
#include <haproxy/freq_ctr.h>
#include <proto/proxy.h>
#include <proto/stream.h>
#include <proto/task.h>