Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Functions | Variables
res/ari/cli.c File Reference

Command line for ARI. More...

#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/cli.h"
#include "asterisk/stasis_app.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  app_complete
 
struct  user_complete
 

Functions

static char * ari_mkpasswd (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_set_debug (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_show (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_show_app (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_show_apps (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_show_user (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * ari_show_users (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
int ast_ari_cli_register (void)
 Register CLI commands for ARI. More...
 
void ast_ari_cli_unregister (void)
 Unregister CLI commands for ARI.
 
static char * complete_ari_app (struct ast_cli_args *a, int include_all)
 
static int complete_ari_app_search (void *obj, void *arg, void *data, int flags)
 
static char * complete_ari_show_user (struct ast_cli_args *a)
 
static char * complete_ari_user (struct ast_cli_args *a)
 
static int complete_ari_user_search (void *obj, void *arg, void *data, int flags)
 
static int show_users_cb (void *obj, void *arg, int flags)
 

Variables

static struct ast_cli_entry cli_ari []
 

Detailed Description

Command line for ARI.

Author
David M. Lee, II dlee@.nosp@m.digi.nosp@m.um.co.nosp@m.m

Definition in file res/ari/cli.c.

Function Documentation

int ast_ari_cli_register ( void  )

Register CLI commands for ARI.

Returns
0 on success.
Non-zero on error.

Definition at line 431 of file res/ari/cli.c.

References ast_cli_register_multiple.

431  {
432  return ast_cli_register_multiple(cli_ari, ARRAY_LEN(cli_ari));
433 }
#define ast_cli_register_multiple(e, len)
Register multiple commands.
Definition: cli.h:265