MythMediaMonitor for Darwin/Mac OS X. More...
Go to the source code of this file.
Functions | |
| void | diskAppearedCallback (DADiskRef disk, void *context) |
| void | diskDisappearedCallback (DADiskRef disk, void *context) |
| void | diskChangedCallback (DADiskRef disk, CFArrayRef keys, void *context) |
| MythMediaType | MediaTypeForBSDName (const char *bsdName) |
| Given a BSD device node name, guess its media type. | |
| MythMediaType | FindMediaType (io_service_t service) |
| Guess the media that a volume/partition is on. | |
| static char * | getVolName (CFDictionaryRef diskDetails) |
| Given a description of a disk, copy and return the volume name. | |
| static const QString | getModel (CFDictionaryRef diskDetails) |
| static const QString | getModel (io_object_t drive) |
Variables | |
| static mach_port_t | sMasterPort |
MythMediaMonitor for Darwin/Mac OS X.
Definition in file mediamonitor-darwin.cpp.
| void diskAppearedCallback | ( | DADiskRef | disk, | |
| void * | context | |||
| ) |
Definition at line 256 of file mediamonitor-darwin.cpp.
Referenced by MonitorThreadDarwin::run().
| void diskDisappearedCallback | ( | DADiskRef | disk, | |
| void * | context | |||
| ) |
Definition at line 326 of file mediamonitor-darwin.cpp.
Referenced by MonitorThreadDarwin::run().
| void diskChangedCallback | ( | DADiskRef | disk, | |
| CFArrayRef | keys, | |||
| void * | context | |||
| ) |
Definition at line 334 of file mediamonitor-darwin.cpp.
Referenced by MonitorThreadDarwin::run().
| MythMediaType MediaTypeForBSDName | ( | const char * | bsdName | ) |
Given a BSD device node name, guess its media type.
Definition at line 112 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback().
| MythMediaType FindMediaType | ( | io_service_t | service | ) |
Guess the media that a volume/partition is on.
Definition at line 42 of file mediamonitor-darwin.cpp.
Referenced by MediaTypeForBSDName().
| static char* getVolName | ( | CFDictionaryRef | diskDetails | ) | [static] |
Given a description of a disk, copy and return the volume name.
Definition at line 177 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback(), and diskChangedCallback().
| static const QString getModel | ( | CFDictionaryRef | diskDetails | ) | [static] |
Definition at line 210 of file mediamonitor-darwin.cpp.
Referenced by diskAppearedCallback(), and MediaMonitorDarwin::GetCDROMBlockDevices().
| static const QString getModel | ( | io_object_t | drive | ) | [static] |
Definition at line 583 of file mediamonitor-darwin.cpp.
mach_port_t sMasterPort [static] |
Definition at line 36 of file mediamonitor-darwin.cpp.
Referenced by MediaMonitorDarwin::GetCDROMBlockDevices(), MediaTypeForBSDName(), and MonitorThreadDarwin::run().
1.6.3