2016-11-21 16:49:11 +00:00
|
|
|
/*
|
|
|
|
* include/proto/cli.h
|
|
|
|
* This file contains definitions of some primitives to dedicated to
|
|
|
|
* statistics output.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2000-2011 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PROTO_CLI_H
|
|
|
|
#define _PROTO_CLI_H
|
|
|
|
|
|
|
|
|
|
|
|
void cli_register_kw(struct cli_kw_list *kw_list);
|
|
|
|
|
2016-11-23 16:01:39 +00:00
|
|
|
int cli_has_level(struct appctx *appctx, int level);
|
|
|
|
|
2018-10-26 12:47:45 +00:00
|
|
|
/* mworker proxy functions */
|
|
|
|
|
2018-10-26 12:47:35 +00:00
|
|
|
int mworker_cli_proxy_create();
|
2018-10-26 12:47:36 +00:00
|
|
|
int mworker_cli_proxy_new_listener(char *line);
|
2018-10-26 12:47:30 +00:00
|
|
|
int mworker_cli_sockpair_new(struct mworker_proc *mworker_proc, int proc);
|
2018-10-26 12:47:45 +00:00
|
|
|
void mworker_cli_proxy_stop();
|
2018-10-26 12:47:30 +00:00
|
|
|
|
2018-10-26 12:47:40 +00:00
|
|
|
/* proxy mode cli functions */
|
|
|
|
|
|
|
|
/* analyzers */
|
|
|
|
int pcli_wait_for_request(struct stream *s, struct channel *req, int an_bit);
|
|
|
|
int pcli_wait_for_response(struct stream *s, struct channel *rep, int an_bit);
|
|
|
|
|
|
|
|
|
2016-11-21 16:49:11 +00:00
|
|
|
#endif /* _PROTO_CLI_H */
|
|
|
|
|