/*
- * include/types/cli.h
+ * include/haproxy/cli-t.h
* This file provides structures and types for CLI.
*
+ * 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
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_CLI_H
-#define _TYPES_CLI_H
+#ifndef _HAPROXY_CLI_T_H
+#define _HAPROXY_CLI_T_H
#include <haproxy/applet-t.h>
#include <haproxy/list-t.h>
#define APPCTX_CLI_ST1_PAYLOAD (1 << 1)
#define APPCTX_CLI_ST1_NOLF (1 << 2)
-struct cli_kw {
- const char *str_kw[5]; /* keywords ended by NULL, limited to 5
- separated keywords combination */
- const char *usage; /* usage message */
- int (*parse)(char **args, char *payload, struct appctx *appctx, void *private);
- int (*io_handler)(struct appctx *appctx);
- void (*io_release)(struct appctx *appctx);
- void *private;
- int level; /* this is the level needed to show the keyword usage and to use it */
-};
-
-struct cli_kw_list {
- struct list list;
- struct cli_kw kw[VAR_ARRAY];
-};
-
/* CLI states */
enum {
CLI_ST_INIT = 0, /* initial state, must leave to zero ! */
};
-#endif /* _TYPES_CLI_H */
+struct cli_kw {
+ const char *str_kw[5]; /* keywords ended by NULL, limited to 5
+ separated keywords combination */
+ const char *usage; /* usage message */
+ int (*parse)(char **args, char *payload, struct appctx *appctx, void *private);
+ int (*io_handler)(struct appctx *appctx);
+ void (*io_release)(struct appctx *appctx);
+ void *private;
+ int level; /* this is the level needed to show the keyword usage and to use it */
+};
+
+struct cli_kw_list {
+ struct list list;
+ struct cli_kw kw[VAR_ARRAY];
+};
+
+#endif /* _HAPROXY_CLI_T_H */
/*
- * include/proto/cli.h
+ * include/haproxy/cli.h
* This file contains definitions of some primitives to dedicated to
* statistics output.
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_CLI_H
-#define _PROTO_CLI_H
+#ifndef _HAPROXY_CLI_H
+#define _HAPROXY_CLI_H
#include <haproxy/applet-t.h>
+#include <haproxy/cli-t.h>
#include <haproxy/global.h>
#include <types/channel.h>
-#include <types/cli.h>
#include <types/stream.h>
}
-#endif /* _PROTO_CLI_H */
+#endif /* _HAPROXY_CLI_H */
#include <string.h>
#include <haproxy/api.h>
+#include <haproxy/cli-t.h>
#include <haproxy/list.h>
#include <haproxy/listener-t.h>
-#include <types/cli.h>
/* This function tries to temporarily disable a listener, depending on the OS
* capabilities. Linux unbinds the listen socket after a SHUT_RD, and ignores
#include <haproxy/api.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <haproxy/tools.h>
#include <haproxy/thread-t.h>
#include <haproxy/activity-t.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/freq_ctr.h>
#include <proto/stream_interface.h>
#include <haproxy/action-t.h>
#include <haproxy/api.h>
+#include <haproxy/cli.h>
#include <haproxy/http_htx.h>
#include <haproxy/http_rules.h>
#include <haproxy/shctx.h>
#include <import/eb32tree.h>
#include <import/sha1.h>
-#include <types/cli.h>
#include <types/filters.h>
#include <types/proxy.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <proto/proxy.h>
#include <proto/filters.h>
#include <proto/http_ana.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/check.h>
+#include <haproxy/cli.h>
#include <haproxy/dns-t.h>
#include <haproxy/frontend.h>
#include <haproxy/list.h>
#include <haproxy/activity.h>
#include <proto/backend.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/compression.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>
+#include <haproxy/cli.h>
#include <haproxy/debug.h>
#include <haproxy/hlua.h>
#include <haproxy/task.h>
#include <haproxy/global.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/stream_interface.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/check.h>
+#include <haproxy/cli.h>
#include <haproxy/dns.h>
#include <haproxy/errors.h>
#include <haproxy/http_rules.h>
#include <haproxy/net_helper.h>
#include <haproxy/vars.h>
-#include <types/cli.h>
#include <haproxy/global.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/http_ana.h>
#include <proto/log.h>
#include <haproxy/base64.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
+#include <haproxy/cli.h>
#include <haproxy/connection.h>
#include <haproxy/dns.h>
#include <haproxy/dynbuf.h>
#include <haproxy/vars.h>
#include <haproxy/capture-t.h>
-#include <types/cli.h>
#include <types/filters.h>
#include <haproxy/global.h>
#include <haproxy/arg.h>
#include <proto/backend.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/filters.h>
#include <proto/log.h>
#include <import/ebpttree.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <haproxy/connection.h>
#include <haproxy/http_htx.h>
#include <haproxy/thread.h>
#include <haproxy/tools.h>
#include <haproxy/vars.h>
-#include <types/cli.h>
#include <types/proxy.h>
#include <haproxy/arg.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <proto/queue.h>
#include <proto/http_ana.h>
#include <proto/server.h>
#include <lua.h>
#include <lualib.h>
+#include <haproxy/cli-t.h>
#include <haproxy/hlua-t.h>
#include <haproxy/http.h>
#include <haproxy/net_helper.h>
#include <haproxy/stats.h>
#include <haproxy/time.h>
-#include <types/cli.h>
#include <types/proxy.h>
#include <proto/proxy.h>
#include <haproxy/applet-t.h>
#include <haproxy/api.h>
+#include <haproxy/cli.h>
#include <haproxy/frontend.h>
#include <haproxy/http.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
#include <haproxy/version.h>
-#include <types/cli.h>
#include <haproxy/global.h>
#include <types/log.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/log.h>
#include <haproxy/ring.h>
#include <haproxy/applet-t.h>
#include <haproxy/api.h>
+#include <haproxy/cli.h>
#include <haproxy/map.h>
#include <haproxy/pattern.h>
#include <haproxy/regex.h>
#include <haproxy/stats-t.h>
#include <haproxy/tools.h>
-#include <types/cli.h>
-
#include <haproxy/arg.h>
-#include <proto/cli.h>
#include <proto/log.h>
#include <proto/stream_interface.h>
#include <haproxy/sample.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <haproxy/list.h>
#include <haproxy/listener.h>
#include <haproxy/mworker.h>
#include <haproxy/signal.h>
#include <haproxy/version.h>
-#include <types/cli.h>
#include <haproxy/global.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <haproxy/applet.h>
#include <haproxy/api.h>
+#include <haproxy/cli.h>
#include <haproxy/dict.h>
#include <haproxy/frontend.h>
#include <haproxy/net_helper.h>
#include <haproxy/thread.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <haproxy/applet-t.h>
#include <haproxy/api.h>
-#include <types/cli.h>
+#include <haproxy/cli.h>
#include <haproxy/global.h>
#include <common/cfgparse.h>
#include <haproxy/activity-t.h>
-#include <proto/cli.h>
#include <proto/channel.h>
#include <proto/log.h>
#include <proto/stream_interface.h>
#include <haproxy/applet-t.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <haproxy/errors.h>
#include <haproxy/global.h>
#include <haproxy/listener.h>
#include <import/ebistree.h>
#include <haproxy/capture-t.h>
-#include <types/cli.h>
-#include <proto/cli.h>
#include <proto/backend.h>
#include <haproxy/fd.h>
#include <proto/filters.h>
#include <haproxy/applet.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>
+#include <haproxy/cli.h>
#include <haproxy/thread.h>
-#include <proto/cli.h>
#include <haproxy/ring.h>
#include <proto/stream_interface.h>
#include <common/cfgparse.h>
#include <haproxy/check.h>
+#include <haproxy/cli.h>
#include <haproxy/connection.h>
#include <haproxy/dict-t.h>
#include <haproxy/dns.h>
#include <haproxy/task.h>
#include <haproxy/time.h>
-#include <types/cli.h>
-#include <types/cli.h>
-
-#include <proto/cli.h>
#include <haproxy/port_range.h>
#include <haproxy/protocol.h>
#include <proto/queue.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <import/ist.h>
#include <haproxy/list.h>
#include <haproxy/time.h>
-#include <proto/cli.h>
#include <proto/log.h>
#include <haproxy/ring.h>
#include <haproxy/signal.h>
#include <sys/types.h>
#include <haproxy/base64.h>
+#include <haproxy/cli.h>
#include <haproxy/errors.h>
#include <haproxy/ssl_ckch.h>
#include <haproxy/ssl_utils.h>
#include <import/ebsttree.h>
-#include <types/cli.h>
#include <types/ssl_sock.h>
-#include <proto/cli.h>
#include <proto/channel.h>
#include <proto/ssl_sock.h>
#include <proto/stream_interface.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <haproxy/cli.h>
#include <haproxy/errors.h>
#include <haproxy/ssl_ckch.h>
#include <haproxy/ssl_crtlist.h>
#include <import/ebpttree.h>
#include <import/ebsttree.h>
-#include <types/cli.h>
#include <types/ssl_sock.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <proto/stream_interface.h>
#include <proto/ssl_sock.h>
#include <haproxy/dynbuf.h>
#include <haproxy/chunk.h>
+#include <haproxy/cli.h>
#include <haproxy/connection.h>
#include <haproxy/errors.h>
#include <haproxy/frontend.h>
#include <import/ebpttree.h>
#include <import/ebsttree.h>
-#include <types/cli.h>
#include <types/ssl_sock.h>
#include <haproxy/arg.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <haproxy/proto_tcp.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/check.h>
+#include <haproxy/cli.h>
#include <haproxy/compression.h>
#include <haproxy/debug.h>
#include <haproxy/dns.h>
#include <haproxy/version.h>
#include <haproxy/base64.h>
-#include <types/cli.h>
-
#include <proto/backend.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <proto/log.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
+#include <haproxy/cli.h>
#include <haproxy/global.h>
#include <haproxy/http_rules.h>
#include <haproxy/pool.h>
#include <import/ebmbtree.h>
#include <import/ebsttree.h>
-#include <types/cli.h>
-
#include <haproxy/arg.h>
-#include <proto/cli.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <haproxy/proto_tcp.h>
#include <haproxy/capture.h>
#include <common/cfgparse.h>
#include <haproxy/check.h>
+#include <haproxy/cli.h>
#include <haproxy/connection.h>
#include <haproxy/dict.h>
#include <haproxy/dns.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/vars.h>
-#include <types/cli.h>
#include <types/filters.h>
#include <haproxy/activity.h>
#include <haproxy/arg.h>
#include <proto/backend.h>
#include <proto/channel.h>
-#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/filters.h>
#include <haproxy/freq_ctr.h>
#include <import/ist.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>
+#include <haproxy/cli.h>
#include <haproxy/istbuf.h>
#include <haproxy/list.h>
-#include <proto/cli.h>
#include <proto/log.h>
#include <haproxy/sink.h>
#include <haproxy/trace.h>