pvapi.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2009 iptelorg GmbH
  3. *
  4. * Permission to use, copy, modify, and distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /*!
  17. * \file
  18. * \brief Kamailio core :: pvapi init and destroy functions.
  19. * \ingroup core
  20. * Module: \ref core
  21. */
  22. #ifndef __pvapi_h__
  23. #define __pvapi_h__
  24. int pv_init_api(void);
  25. void pv_destroy_api(void);
  26. int pv_init_buffer(void);
  27. int pv_reinit_buffer(void);
  28. void pv_destroy_buffer(void);
  29. char* pv_get_buffer(void);
  30. int pv_get_buffer_size(void);
  31. int pv_get_buffer_slots(void);
  32. void pv_set_buffer_size(int n);
  33. void pv_set_buffer_slots(int n);
  34. #endif /*__pvapi_h__*/
  35. /* vi: set ts=4 sw=4 tw=79:ai:cindent: */