00001 /* 00002 * Asterisk -- An open source telephony toolkit. 00003 * 00004 * Copyright (C) 2007, Digium, Inc. 00005 * 00006 * Russell Bryant <russell@digium.com> 00007 * 00008 * See http://www.asterisk.org for more information about 00009 * the Asterisk project. Please do not directly contact 00010 * any of the maintainers of this project for assistance; 00011 * the project provides a web site, mailing lists and IRC 00012 * channels for your use. 00013 * 00014 * This program is free software, distributed under the terms of 00015 * the GNU General Public License Version 2. See the LICENSE file 00016 * at the top of the source tree. 00017 */ 00018 00019 /*! 00020 * \file 00021 * \author Russell Bryant <russell@digium.com> 00022 * 00023 * \brief Usage of the SAForum AIS (Application Interface Specification) 00024 * 00025 * \arg http://www.openais.org/ 00026 */ 00027 00028 #ifndef RES_AIS_AIS_H 00029 #define RES_AIS_AIS_H 00030 00031 #include <saAis.h> 00032 #include <saClm.h> 00033 #include <saEvt.h> 00034 00035 extern SaVersionT ais_version; 00036 00037 extern SaClmHandleT clm_handle; 00038 extern SaEvtHandleT evt_handle; 00039 00040 int ast_ais_clm_load_module(void); 00041 int ast_ais_clm_unload_module(void); 00042 00043 int ast_ais_evt_load_module(void); 00044 int ast_ais_evt_unload_module(void); 00045 00046 const char *ais_err2str(SaAisErrorT error); 00047 00048 void ast_ais_evt_membership_changed(void); 00049 00050 enum ast_ais_cmd { 00051 AST_AIS_CMD_EXIT, 00052 AST_AIS_CMD_MEMBERSHIP_CHANGED, 00053 }; 00054 00055 int ast_ais_cmd(enum ast_ais_cmd cmd); 00056 00057 #endif /* RES_AIS_AIS_H */