AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Implements the MacOS-specific KonaNotifier and DeviceNotifier classes, which invoke a client-registered callback function when devices are attached and/or detached. More...
#include <syslog.h>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <IOKit/IOCFPlugIn.h>
#include "ajantv2/includes/ajatypes.h"
#include "devicenotifier.h"
#include "ajabase/common/common.h"
#include "ajabase/system/debug.h"
Go to the source code of this file.
Macros | |
#define | HEX2(__x__) "0x" << hex << setw(2) << setfill('0') << (0x00FF & uint16_t(__x__)) << dec |
#define | HEX4(__x__) "0x" << hex << setw(4) << setfill('0') << (0xFFFF & uint16_t(__x__)) << dec |
#define | HEX8(__x__) "0x" << hex << setw(8) << setfill('0') << (0xFFFFFFFF & uint32_t(__x__)) << dec |
#define | HEX16(__x__) "0x" << hex << setw(16) << setfill('0') << uint64_t(__x__) << dec |
#define | KR(_kr_) "kernErr=" << HEX8(_kr_) << "(" << ::GetKernErrStr(_kr_) << ")" |
#define | INST(__p__) "Ins-" << hex << setw(16) << setfill('0') << uint64_t(__p__) << dec |
#define | THRD(__t__) "Thr-" << hex << setw(16) << setfill('0') << uint64_t(__t__) << dec |
#define | DNDB(__lvl__, __x__) AJA_sREPORT(AJA_DebugUnit_PnP, (__lvl__), INST(this) << ": " << AJAFUNC << ": " << __x__) |
#define | DNFAIL(__x__) DNDB(AJA_DebugSeverity_Error, __x__) |
#define | DNWARN(__x__) DNDB(AJA_DebugSeverity_Warning, __x__) |
#define | DNNOTE(__x__) DNDB(AJA_DebugSeverity_Notice, __x__) |
#define | DNINFO(__x__) DNDB(AJA_DebugSeverity_Info, __x__) |
#define | DNDBG(__x__) DNDB(AJA_DebugSeverity_Debug, __x__) |
Functions | |
static const char * | GetKernErrStr (const kern_return_t inError) |
Implements the MacOS-specific KonaNotifier and DeviceNotifier classes, which invoke a client-registered callback function when devices are attached and/or detached.
Definition in file devicenotifier.cpp.
#define DNDB | ( | __lvl__, | |
__x__ | |||
) | AJA_sREPORT(AJA_DebugUnit_PnP, (__lvl__), INST(this) << ": " << AJAFUNC << ": " << __x__) |
Definition at line 35 of file devicenotifier.cpp.
#define DNDBG | ( | __x__ | ) | DNDB(AJA_DebugSeverity_Debug, __x__) |
Definition at line 40 of file devicenotifier.cpp.
#define DNFAIL | ( | __x__ | ) | DNDB(AJA_DebugSeverity_Error, __x__) |
Definition at line 36 of file devicenotifier.cpp.
#define DNINFO | ( | __x__ | ) | DNDB(AJA_DebugSeverity_Info, __x__) |
Definition at line 39 of file devicenotifier.cpp.
#define DNNOTE | ( | __x__ | ) | DNDB(AJA_DebugSeverity_Notice, __x__) |
Definition at line 38 of file devicenotifier.cpp.
#define DNWARN | ( | __x__ | ) | DNDB(AJA_DebugSeverity_Warning, __x__) |
Definition at line 37 of file devicenotifier.cpp.
#define HEX16 | ( | __x__ | ) | "0x" << hex << setw(16) << setfill('0') << uint64_t(__x__) << dec |
Definition at line 30 of file devicenotifier.cpp.
#define HEX2 | ( | __x__ | ) | "0x" << hex << setw(2) << setfill('0') << (0x00FF & uint16_t(__x__)) << dec |
Definition at line 27 of file devicenotifier.cpp.
#define HEX4 | ( | __x__ | ) | "0x" << hex << setw(4) << setfill('0') << (0xFFFF & uint16_t(__x__)) << dec |
Definition at line 28 of file devicenotifier.cpp.
#define HEX8 | ( | __x__ | ) | "0x" << hex << setw(8) << setfill('0') << (0xFFFFFFFF & uint32_t(__x__)) << dec |
Definition at line 29 of file devicenotifier.cpp.
#define INST | ( | __p__ | ) | "Ins-" << hex << setw(16) << setfill('0') << uint64_t(__p__) << dec |
Definition at line 32 of file devicenotifier.cpp.
#define KR | ( | _kr_ | ) | "kernErr=" << HEX8(_kr_) << "(" << ::GetKernErrStr(_kr_) << ")" |
Definition at line 31 of file devicenotifier.cpp.
#define THRD | ( | __t__ | ) | "Thr-" << hex << setw(16) << setfill('0') << uint64_t(__t__) << dec |
Definition at line 33 of file devicenotifier.cpp.
|
static |
Definition at line 428 of file devicenotifier.cpp.