agent.h 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2006 Voop as
  3. * Thorsten Lockert <tholo@voop.as>
  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. /*! \file
  10. *
  11. * \brief SNMP Agent / SubAgent support for Asterisk
  12. *
  13. * \author Thorsten Lockert <tholo@voop.as>
  14. */
  15. /*!
  16. * \internal
  17. * \brief Thread running the SNMP Agent or Subagent
  18. * \param Not used -- required by pthread_create
  19. * \return A pointer with return status -- not used
  20. *
  21. * This represent the main thread of the SNMP [sub]agent, and
  22. * will initialize SNMP and loop, processing requests until
  23. * termination is requested by resetting the flag in
  24. * \ref res_snmp_dontStop.
  25. */
  26. void *agent_thread(void *);
  27. /*!
  28. * \internal
  29. * Flag saying whether we run as a Subagent or full Agent
  30. */
  31. extern int res_snmp_agentx_subagent;
  32. /*!
  33. * \internal
  34. * Flag stating the agent thread should not terminate
  35. */
  36. extern int res_snmp_dont_stop;