gstdeviceproviderfactory.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* GStreamer
  2. * Copyright (C) 1999,2000 Erik Walthinsen <[email protected]>
  3. * 2000,2004 Wim Taymans <[email protected]>
  4. * 2012 Olivier Crete <[email protected]>
  5. *
  6. * gstdeviceproviderfactory.h: Header for GstDeviceProviderFactory
  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., 59 Temple Place - Suite 330,
  21. * Boston, MA 02111-1307, USA.
  22. */
  23. #ifndef __GST_DEVICE_PROVIDER_FACTORY_H__
  24. #define __GST_DEVICE_PROVIDER_FACTORY_H__
  25. /**
  26. * GstDeviceProviderFactory:
  27. *
  28. * The opaque #GstDeviceProviderFactory data structure.
  29. *
  30. * Since: 1.4
  31. */
  32. /**
  33. * GstDeviceProviderFactoryClass:
  34. *
  35. * The opaque #GstDeviceProviderFactoryClass data structure.
  36. *
  37. * Since: 1.4
  38. */
  39. typedef struct _GstDeviceProviderFactory GstDeviceProviderFactory;
  40. typedef struct _GstDeviceProviderFactoryClass GstDeviceProviderFactoryClass;
  41. #include <gst/gstconfig.h>
  42. #include <gst/gstplugin.h>
  43. #include <gst/gstpluginfeature.h>
  44. #include <gst/gstdeviceprovider.h>
  45. G_BEGIN_DECLS
  46. #define GST_TYPE_DEVICE_PROVIDER_FACTORY (gst_device_provider_factory_get_type())
  47. #define GST_DEVICE_PROVIDER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DEVICE_PROVIDER_FACTORY,\
  48. GstDeviceProviderFactory))
  49. #define GST_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY,\
  50. GstDeviceProviderFactoryClass))
  51. #define GST_IS_DEVICE_PROVIDER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DEVICE_PROVIDER_FACTORY))
  52. #define GST_IS_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY))
  53. #define GST_DEVICE_PROVIDER_FACTORY_CAST(obj) ((GstDeviceProviderFactory *)(obj))
  54. GType gst_device_provider_factory_get_type (void);
  55. GstDeviceProviderFactory * gst_device_provider_factory_find (const gchar *name);
  56. GType gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
  57. const gchar * gst_device_provider_factory_get_metadata (GstDeviceProviderFactory *factory, const gchar *key);
  58. gchar ** gst_device_provider_factory_get_metadata_keys (GstDeviceProviderFactory *factory);
  59. GstDeviceProvider* gst_device_provider_factory_get (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
  60. GstDeviceProvider* gst_device_provider_factory_get_by_name (const gchar *factoryname) G_GNUC_MALLOC;
  61. gboolean gst_device_provider_register (GstPlugin *plugin, const gchar *name,
  62. guint rank,
  63. GType type);
  64. gboolean gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
  65. gchar ** classes);
  66. gboolean gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
  67. const gchar * classes);
  68. GList * gst_device_provider_factory_list_get_device_providers (
  69. GstRank minrank) G_GNUC_MALLOC;
  70. G_END_DECLS
  71. #endif /* __GST_DEVICE_PROVIDER_FACTORY_H__ */