gstatomicqueue.inc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. /* GStreamer
  3. * Copyright (C) 2009-2010 Edward Hervey <[email protected]>
  4. * (C) 2011 Wim Taymans <[email protected]>
  5. *
  6. * gstatomicqueue.h:
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  21. * Boston, MA 02110-1301, USA.
  22. */
  23. }
  24. Type
  25. PGstAtomicQueue = ^TGstAtomicQueue;
  26. PGstAtomicQueue_autoptr = ^TGstAtomicQueue_autoptr;
  27. PGstAtomicQueue_listautoptr = ^TGstAtomicQueue_listautoptr;
  28. PGstAtomicQueue_queueautoptr = ^TGstAtomicQueue_queueautoptr;
  29. PGstAtomicQueue_slistautoptr = ^TGstAtomicQueue_slistautoptr;
  30. TGstAtomicQueue = record end;
  31. T_GstAtomicQueue = TGstAtomicQueue;
  32. TGstAtomicQueue_autoptr = PGstAtomicQueue;
  33. TGstAtomicQueue_listautoptr = PGList;
  34. TGstAtomicQueue_slistautoptr = PGSList;
  35. TGstAtomicQueue_queueautoptr = PGQueue;
  36. function gst_atomic_queue_get_type:TGType;cdecl;external gstreamerlib name 'gst_atomic_queue_get_type';
  37. function gst_atomic_queue_new(initial_size:Tguint):PGstAtomicQueue;cdecl;external gstreamerlib name 'gst_atomic_queue_new';
  38. procedure gst_atomic_queue_ref(queue:PGstAtomicQueue);cdecl;external gstreamerlib name 'gst_atomic_queue_ref';
  39. procedure gst_atomic_queue_unref(queue:PGstAtomicQueue);cdecl;external gstreamerlib name 'gst_atomic_queue_unref';
  40. procedure gst_atomic_queue_push(queue:PGstAtomicQueue; data:Tgpointer);cdecl;external gstreamerlib name 'gst_atomic_queue_push';
  41. function gst_atomic_queue_pop(queue:PGstAtomicQueue):Tgpointer;cdecl;external gstreamerlib name 'gst_atomic_queue_pop';
  42. function gst_atomic_queue_peek(queue:PGstAtomicQueue):Tgpointer;cdecl;external gstreamerlib name 'gst_atomic_queue_peek';
  43. function gst_atomic_queue_length(queue:PGstAtomicQueue):Tguint;cdecl;external gstreamerlib name 'gst_atomic_queue_length';