ast_version.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2008, Digium, Inc.
  5. *
  6. * Russell Bryant <russell@digium.com>
  7. *
  8. * See http://www.asterisk.org for more information about
  9. * the Asterisk project. Please do not directly contact
  10. * any of the maintainers of this project for assistance;
  11. * the project provides a web site, mailing lists and IRC
  12. * channels for your use.
  13. *
  14. * This program is free software, distributed under the terms of
  15. * the GNU General Public License Version 2. See the LICENSE file
  16. * at the top of the source tree.
  17. */
  18. /*!
  19. * \file
  20. * \brief Asterisk version information
  21. * \author Russell Bryant <russell@digium.com>
  22. */
  23. #ifndef __AST_VERSION_H
  24. #define __AST_VERSION_H
  25. /*!
  26. * \brief Retrieve the Asterisk version string.
  27. */
  28. const char *ast_get_version(void);
  29. /*!
  30. * \brief Retrieve the numeric Asterisk version
  31. *
  32. * Format ABBCC
  33. * AABB - Major version (1.4 would be 104)
  34. * CC - Minor version
  35. *
  36. * 1.4.17 would be 10417.
  37. */
  38. const char *ast_get_version_num(void);
  39. /*! Retrieve the Asterisk build options */
  40. const char *ast_get_build_opts(void);
  41. #endif /* __AST_VERSION_H */