mediamonitor-darwin.cpp File Reference

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

Detailed Description

MythMediaMonitor for Darwin/Mac OS X.

Version:
$Id$
Author:
Andrew Kimpton, Nigel Pearson

Definition in file mediamonitor-darwin.cpp.


Function Documentation

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]
static const QString getModel ( io_object_t  drive  )  [static]

Definition at line 583 of file mediamonitor-darwin.cpp.


Variable Documentation

mach_port_t sMasterPort [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:48 2012 for MythTV by  doxygen 1.6.3