AJA NTV2 SDK
17.0.1.1246
NTV2 SDK 17.0.1.1246
pnpimpl.cpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MIT */
8
#include "
ajabase/pnp/linux/pnpimpl.h
"
9
10
11
AJAPnpImpl::AJAPnpImpl
() : mRefCon(
NULL
), mCallback(
NULL
), mDevices(0)
12
{
13
}
14
15
16
AJAPnpImpl::~AJAPnpImpl
()
17
{
18
Uninstall
();
19
}
20
21
22
AJAStatus
23
AJAPnpImpl::Install
(
AJAPnpCallback
callback,
void
* refCon, uint32_t devices)
24
{
25
mCallback = callback;
26
mRefCon = refCon;
27
mDevices = devices;
28
29
if
(mCallback)
30
(*(mCallback))(
AJA_Pnp_DeviceAdded
, mRefCon);
31
32
return
AJA_STATUS_SUCCESS
;
33
}
34
35
36
AJAStatus
37
AJAPnpImpl::Uninstall
(
void
)
38
{
39
mCallback =
NULL
;
40
mRefCon =
NULL
;
41
mDevices = 0;
42
43
return
AJA_STATUS_SUCCESS
;
44
}
45
46
47
AJAPnpCallback
48
AJAPnpImpl::GetCallback
()
49
{
50
return
mCallback;
51
}
52
53
54
void
*
55
AJAPnpImpl::GetRefCon
()
56
{
57
return
mRefCon;
58
}
59
60
61
uint32_t
62
AJAPnpImpl::GetPnpDevices
()
63
{
64
return
mDevices;
65
}
66
67
68
AJAPnpImpl::Uninstall
AJAStatus Uninstall(void)
Definition:
pnpimpl.cpp:37
AJAPnpImpl::GetPnpDevices
uint32_t GetPnpDevices()
Definition:
pnpimpl.cpp:62
AJAPnpImpl::GetRefCon
void * GetRefCon()
Definition:
pnpimpl.cpp:55
NULL
#define NULL
Definition:
ntv2caption608types.h:19
AJA_STATUS_SUCCESS
@ AJA_STATUS_SUCCESS
Definition:
types.h:368
AJAPnpCallback
void(* AJAPnpCallback)(AJAPnpMessage inMessage, void *inRefCon)
If installed (see AJAPnp::Install) in an AJAPnp instance, this function is called when an AJA device ...
Definition:
pnp.h:39
pnpimpl.h
Declares the AJAPnpImpl class.
AJAStatus
AJAStatus
Definition:
types.h:365
AJAPnpImpl::Install
AJAStatus Install(AJAPnpCallback callback, void *refCon, uint32_t devices)
Definition:
pnpimpl.cpp:23
AJAPnpImpl::AJAPnpImpl
AJAPnpImpl()
Definition:
pnpimpl.cpp:11
AJAPnpImpl::~AJAPnpImpl
virtual ~AJAPnpImpl(void)
Definition:
pnpimpl.cpp:16
AJA_Pnp_DeviceAdded
@ AJA_Pnp_DeviceAdded
Definition:
pnp.h:24
AJAPnpImpl::GetCallback
AJAPnpCallback GetCallback()
Definition:
pnpimpl.cpp:48
libajantv2
ajabase
pnp
linux
pnpimpl.cpp
Generated on Tue Oct 1 2024 16:33:51 for AJA NTV2 SDK by
1.8.17