The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
radmin.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /**
19  * $Id: 27d7a7f4febed089d1ef6ba15c4a2df74cc557eb $
20  *
21  * @file lib/server/radmin.h
22  * @brief Administration tools
23  *
24  * @copyright 2018 The FreeRADIUS server project
25  * @copyright 2018 Alan DeKok (aland@freeradius.org)
26  */
27 RCSIDH(radmin_h, "$Id: 27d7a7f4febed089d1ef6ba15c4a2df74cc557eb $")
28 
29 #include <freeradius-devel/server/command.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  * For radmin over TCP.
37  */
38 #define FR_RADMIN_PORT 18120
39 
40 int fr_radmin_start(main_config_t *config, bool cli);
41 void fr_radmin_stop(void);
42 
43 int fr_radmin_register(TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table);
44 int fr_radmin_run(fr_cmd_info_t *info, FILE *fp, FILE *fp_err, char *command, bool read_only);
45 void fr_radmin_help(FILE *fp, char const *text);
46 void fr_radmin_complete(FILE *fp, const char *text, int start);
47 
48 #ifdef __cplusplus
49 }
50 #endif
#define RCSIDH(h, id)
Definition: build.h:445
Main server configuration.
Definition: main_config.h:51
static const conf_parser_t config[]
Definition: base.c:188
void fr_radmin_stop(void)
Definition: radmin.c:1101
int fr_radmin_start(main_config_t *config, bool cli)
Definition: radmin.c:1064
int fr_radmin_run(fr_cmd_info_t *info, FILE *fp, FILE *fp_err, char *command, bool read_only)
Run a command from an input string.
Definition: radmin.c:1135
void fr_radmin_complete(FILE *fp, const char *text, int start)
Definition: radmin.c:1171
void fr_radmin_help(FILE *fp, char const *text)
Definition: radmin.c:1166
int fr_radmin_register(TALLOC_CTX *talloc_ctx, char const *name, void *ctx, fr_cmd_table_t *table)
static char const * name