Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Functions | Variables
parking_ui.c File Reference

Call Parking CLI commands. More...

#include "asterisk.h"
#include "res_parking.h"
#include "asterisk/config.h"
#include "asterisk/config_options.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/cli.h"
#include "asterisk/astobj2.h"
#include "asterisk/features.h"
#include "asterisk/manager.h"

Go to the source code of this file.

Data Structures

struct  parking_lot_complete
 

Functions

static void cli_display_parking_global (int fd)
 
static void cli_display_parking_lot (int fd, const char *name)
 
static void cli_display_parking_lot_list (int fd)
 
static char * complete_parking_lot (const char *word, int seeking)
 
static int complete_parking_lot_search (void *obj, void *arg, void *data, int flags)
 
static void display_parked_call (struct parked_user *user, int fd)
 
static int display_parked_users_cb (void *obj, void *arg, int flags)
 
static void display_parking_lot (struct parking_lot *lot, int fd)
 
static int display_parking_lot_cb (void *obj, void *arg, int flags)
 
static char * handle_show_parking_lot_cmd (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 command parking show <name>
 
int load_parking_ui (void)
 Register CLI commands. More...
 
void unload_parking_ui (void)
 Unregister CLI commands. More...
 

Variables

static struct ast_cli_entry cli_parking_lot []
 

Detailed Description

Call Parking CLI commands.

Author
Jonathan Rose jrose.nosp@m.@dig.nosp@m.ium.c.nosp@m.om

Definition in file parking_ui.c.

Function Documentation

int load_parking_ui ( void  )

Register CLI commands.

Since
12.0.0
Return values
0if successful
-1on failure

Definition at line 198 of file parking_ui.c.

References ast_cli_register_multiple.

199 {
200  return ast_cli_register_multiple(cli_parking_lot, ARRAY_LEN(cli_parking_lot));
201 }
#define ast_cli_register_multiple(e, len)
Register multiple commands.
Definition: cli.h:265
void unload_parking_ui ( void  )

Unregister CLI commands.

Since
12.0.0

Definition at line 203 of file parking_ui.c.

References ast_cli_unregister_multiple().

204 {
205  ast_cli_unregister_multiple(cli_parking_lot, ARRAY_LEN(cli_parking_lot));
206 }
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
Unregister multiple commands.
Definition: clicompat.c:30

Variable Documentation

struct ast_cli_entry cli_parking_lot[]
static
Initial value:
= {
{ .handler = handle_show_parking_lot_cmd , .summary = "Show a parking lot or a list of all parking lots." ,},
}
static char * handle_show_parking_lot_cmd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
command parking show
Definition: parking_ui.c:162

Definition at line 194 of file parking_ui.c.