mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 15:34:35 +00:00
de57a578ba
This function is used to check that the CLI features the appropriate level of permissions or to prepare the adequate error message.
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/*
|
|
* 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
|
|
|
|
|
|
struct cli_kw* cli_find_kw(char **args);
|
|
void cli_register_kw(struct cli_kw_list *kw_list);
|
|
|
|
int cli_has_level(struct appctx *appctx, int level);
|
|
|
|
#endif /* _PROTO_CLI_H */
|
|
|