Asterisk - The Open Source Telephony Project  18.5.0
agent.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Voop as
3  * Thorsten Lockert <[email protected]>
4  *
5  * This program is free software, distributed under the terms of
6  * the GNU General Public License Version 2. See the LICENSE file
7  * at the top of the source tree.
8  */
9 
10 /*! \file
11  *
12  * \brief SNMP Agent / SubAgent support for Asterisk
13  *
14  * \author Thorsten Lockert <[email protected]>
15  */
16 
17 /*!
18  * \internal
19  * \brief Thread running the SNMP Agent or Subagent
20  * \param Not used -- required by pthread_create
21  * \return A pointer with return status -- not used
22  *
23  * This represent the main thread of the SNMP [sub]agent, and
24  * will initialize SNMP and loop, processing requests until
25  * termination is requested by resetting the flag in
26  * \ref res_snmp_dontStop.
27  */
28 void *agent_thread(void *);
29 
30 /*!
31  * \internal
32  * Flag saying whether we run as a Subagent or full Agent
33  */
34 extern int res_snmp_agentx_subagent;
35 
36 /*!
37  * \internal
38  * Flag stating the agent thread should not terminate
39  */
40 extern int res_snmp_dont_stop;
int res_snmp_agentx_subagent
Definition: res_snmp.c:43
void * agent_thread(void *)
Definition: agent.c:189
int res_snmp_dont_stop
Definition: res_snmp.c:44