QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstContextBridgeRegistry.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4
5#if defined(QGC_HAS_ANY_GPU_PATH)
6
7#include <gst/gst.h>
8
11namespace GstContextBridgeRegistry {
12
13using BridgeHandler = GstBusSyncReply (*)(GstMessage*);
14using ResetCallback = void (*)();
15
18enum class RegistrationHandle : int
19{
20 Invalid = -1
21};
22inline constexpr RegistrationHandle kInvalidHandle = RegistrationHandle::Invalid;
23
25RegistrationHandle registerBridgeHandler(BridgeHandler handler);
26
28RegistrationHandle registerResetCallback(ResetCallback callback);
29
32RegistrationHandle registerCacheReset(ResetCallback callback);
33
35GstBusSyncReply dispatchBridges(GstMessage* message);
36
38void resetAllBridges();
39
41void resetAllCaches();
42
43#ifdef QGC_GST_BUILD_TESTING
45void clearForTest();
46#endif
47
48} // namespace GstContextBridgeRegistry
49
50#endif // QGC_HAS_ANY_GPU_PATH