Debian Codegraph @

libs/gst/check/gstharnesslink.h

raw
1 /* GstHarnessLink - A ref counted class arbitrating access to a
2 * pad harness in a thread-safe manner.
3 *
4 * Copyright (C) 2023 Igalia S.L.
5 * Copyright (C) 2023 Metrological
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
21 */
22
23 #ifndef __GST_HARNESS_LINK_H__
24 #define __GST_HARNESS_LINK_H__
25
26 #include <gst/gst.h>
27 #include <gst/check/check-prelude.h>
28
29 G_BEGIN_DECLS
30
31 typedef struct _GstHarness GstHarness;
32
33 /**
34 * GstHarnessLink: (skip)
35 *
36 * Opaque handle that can be used to release a pad lock over the harness.
37 */
38 typedef struct _GstHarnessLink GstHarnessLink;
39
40 G_GNUC_INTERNAL
41 GType gst_harness_link_get_type (void);
42
43 G_GNUC_INTERNAL
44 void gst_harness_pad_link_set (GstPad* pad, GstHarness* harness);
45
46 G_GNUC_INTERNAL
47 GstHarnessLink* gst_harness_pad_link_lock (GstPad* pad, GstHarness** dst_harness);
48
49 G_GNUC_INTERNAL
50 void gst_harness_link_unlock (GstHarnessLink* link);
51
52 G_GNUC_INTERNAL
53 void gst_harness_pad_link_tear_down (GstPad* pad);
54
55 G_END_DECLS
56
57 #endif /* __GST_HARNESS_LINK_H__ */