Usage of the SAForum AIS (Application Interface Specification) More...
#include "asterisk.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "ais.h"
#include "asterisk/module.h"
#include "asterisk/utils.h"
#include "asterisk/cli.h"
#include "asterisk/logger.h"
Go to the source code of this file.
Functions | |
static char * | ais_clm_show_members (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
int | ast_ais_clm_load_module (void) |
int | ast_ais_clm_unload_module (void) |
ASTERISK_FILE_VERSION (__FILE__,"$Revision: 369001 $") | |
static void | clm_node_get_cb (SaInvocationT invocation, const SaClmClusterNodeT *cluster_node, SaAisErrorT error) |
static void | clm_track_cb (const SaClmClusterNotificationBufferT *notif_buffer, SaUint32T num_members, SaAisErrorT error) |
Variables | |
static struct ast_cli_entry | ais_cli [] |
static const SaClmCallbacksT | clm_callbacks |
SaClmHandleT | clm_handle |
static SaAisErrorT | clm_init_res |
Usage of the SAForum AIS (Application Interface Specification)
This file contains the code specific to the use of the CLM (Cluster Membership) Service.
Definition in file clm.c.
|
static |
Definition at line 94 of file clm.c.
References ast_cli_args::argc, ast_cli_entry::args, ARRAY_LEN, ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, clm_handle, ast_cli_entry::command, ast_cli_args::fd, and ast_cli_entry::usage.
int ast_ais_clm_load_module | ( | void | ) |
Definition at line 157 of file clm.c.
References ais_err2str(), ais_version, ARRAY_LEN, ast_cli_register_multiple(), ast_log(), clm_callbacks, clm_handle, clm_init_res, and LOG_ERROR.
Referenced by load_module().
int ast_ais_clm_unload_module | ( | void | ) |
Definition at line 178 of file clm.c.
References ais_err2str(), ARRAY_LEN, ast_cli_unregister_multiple(), ast_log(), clm_handle, clm_init_res, and LOG_ERROR.
Referenced by load_module(), and unload_module().
ASTERISK_FILE_VERSION | ( | __FILE__ | , |
"$Revision: 369001 $" | |||
) |
|
static |
|
static |
Definition at line 71 of file clm.c.
References AST_AIS_CMD_MEMBERSHIP_CHANGED, and ast_debug.
|
static |
|
static |
Definition at line 60 of file clm.c.
Referenced by ast_ais_clm_load_module().
SaClmHandleT clm_handle |
Definition at line 52 of file clm.c.
Referenced by ais_clm_show_members(), ast_ais_clm_load_module(), ast_ais_clm_unload_module(), ast_event_cb(), and dispatch_thread_handler().
|
static |
Definition at line 53 of file clm.c.
Referenced by ast_ais_clm_load_module(), and ast_ais_clm_unload_module().