This is a platform-agnostic plug-and-play class that notifies a client when AJA devices are attached/detached, powered on/off, sleep/wake, etc.
More...
#include <pnp.h>
This is a platform-agnostic plug-and-play class that notifies a client when AJA devices are attached/detached, powered on/off, sleep/wake, etc.
- Bug:
- This class has no Linux implementation.
Definition at line 51 of file pnp.h.
◆ AJAPnp()
Default constructor.
Definition at line 25 of file pnp.cpp.
◆ ~AJAPnp()
Default destructor.
Definition at line 31 of file pnp.cpp.
◆ GetCallback()
- Returns
- the address of the currently-installed callback (NULL if none installed).
Definition at line 52 of file pnp.cpp.
◆ GetPnpDevices()
uint32_t AJAPnp::GetPnpDevices |
( |
| ) |
const |
|
virtual |
- Returns
- the current bit mask that filters which devices to include or ignore (see implementation).
Definition at line 66 of file pnp.cpp.
◆ GetRefCon()
void * AJAPnp::GetRefCon |
( |
| ) |
const |
|
virtual |
- Returns
- the currently installed reference cookie.
Definition at line 59 of file pnp.cpp.
◆ Install()
Installs the given plug-n-play notification callback function, replacing any callback function that may have been installed previously. If any matching devices are attached to the host, the callback function is immediately called for each attached device with the AJA_Pnp_DeviceAdded message.
- Parameters
-
[in] | callback | Specifies a pointer to a client-defined function to be called when AJA devices sleep/wake or are attached/detached to/from the host. If non-NULL, must be valid. |
[in] | refCon | Specifies a pointer-sized reference cookie that gets passed to the callback function. Defaults to NULL. |
[in] | devices | Specifies a bit mask that filters which devices to include/ignore (see implementation). Use zero (the default) to see all possible devices. |
- Bug:
- The current Windows implementation doesn't automatically invoke the callback for each attached device. As a workaround, the caller must explicitly enumerate the devices immediately before or after calling this function.
- Returns
- AJA_STATUS_SUCCESS Install succeeded AJA_STATUS_FAIL Install failed
Definition at line 38 of file pnp.cpp.
◆ Uninstall()
Uninstalls any previously-installed callback notifier.
- Returns
- AJA_STATUS_SUCCESS Uninstall succeeded AJA_STATUS_FAIL Uninstall failed
Definition at line 45 of file pnp.cpp.
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/pnp/pnp.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/pnp/pnp.cpp