pvapi.h 1.2 KB

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