gsttocsetter.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* GStreamer
  2. * Copyright (C) 2010, 2012 Alexander Saprykin <[email protected]>
  3. *
  4. * gsttocsetter.h: Interfaces for TOC
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef __GST_TOC_SETTER_H__
  22. #define __GST_TOC_SETTER_H__
  23. #include <gst/gst.h>
  24. G_BEGIN_DECLS
  25. #define GST_TYPE_TOC_SETTER (gst_toc_setter_get_type ())
  26. #define GST_TOC_SETTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TOC_SETTER, GstTocSetter))
  27. #define GST_IS_TOC_SETTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TOC_SETTER))
  28. #define GST_TOC_SETTER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_TOC_SETTER, GstTocSetterInterface))
  29. /**
  30. * GstTocSetter:
  31. *
  32. * Opaque #GstTocSetter data structure.
  33. */
  34. typedef struct _GstTocSetter GstTocSetter;
  35. typedef struct _GstTocSetterInterface GstTocSetterInterface;
  36. /**
  37. * GstTocSetterInterface:
  38. * @g_iface: parent interface type.
  39. *
  40. * #GstTocSetterInterface interface.
  41. */
  42. struct _GstTocSetterInterface
  43. {
  44. GTypeInterface g_iface;
  45. /* signals */
  46. /* virtual table */
  47. };
  48. GType gst_toc_setter_get_type (void);
  49. void gst_toc_setter_reset (GstTocSetter *setter);
  50. GstToc * gst_toc_setter_get_toc (GstTocSetter *setter);
  51. void gst_toc_setter_set_toc (GstTocSetter *setter, GstToc *toc);
  52. G_END_DECLS
  53. #endif /* __GST_TOC_SETTER_H__ */