• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer AVTP Plugin
3  * Copyright (C) 2019 Intel Corporation
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later
9  * 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef __GST_AVTP_SRC_H__
23 #define __GST_AVTP_SRC_H__
24 
25 #include <gst/gst.h>
26 #include <gst/base/gstpushsrc.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GST_TYPE_AVTP_SRC (gst_avtp_src_get_type())
31 #define GST_AVTP_SRC(obj) \
32   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AVTP_SRC,GstAvtpSrc))
33 #define GST_AVTP_SRC_CLASS(klass) \
34   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AVTP_SRC,GstAvtpSrcClass))
35 #define GST_IS_AVTP_SRC(obj) \
36   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AVTP_SRC))
37 #define GST_IS_AVTP_SRC_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AVTP_SRC))
39 
40 typedef struct _GstAvtpSrc GstAvtpSrc;
41 typedef struct _GstAvtpSrcClass GstAvtpSrcClass;
42 
43 struct _GstAvtpSrc
44 {
45   GstPushSrc parent;
46 
47   gchar * ifname;
48   gchar * address;
49 
50   int sk_fd;
51 };
52 
53 struct _GstAvtpSrcClass
54 {
55   GstPushSrcClass parent_class;
56 };
57 
58 GType gst_avtp_src_get_type (void);
59 
60 GST_ELEMENT_REGISTER_DECLARE (avtpsrc);
61 
62 G_END_DECLS
63 
64 #endif /* __GST_AVTP_SRC_H__ */
65