MythTV  master
Macros | Typedefs | Functions | Variables
mythxdisplay.cpp File Reference
#include <map>
#include <vector>
#include "config.h"
#include "mythlogging.h"
#include "mythuihelper.h"
#include "mythxdisplay.h"
#include <X11/extensions/Xinerama.h>
#include <X11/extensions/xf86vmode.h>
#include <QMutex>
Include dependency graph for mythxdisplay.cpp:

Go to the source code of this file.

Macros

#define V_INTERLACE   (0x010)
 This file is intended to hold X11 specific utility functions. More...
 

Typedefs

typedef int(* XErrorCallbackType) (Display *, XErrorEvent *)
 
typedef std::vector< XErrorEvent > XErrorVectorType
 

Functions

static int ErrorHandler (Display *d, XErrorEvent *xeev)
 
void LockMythXDisplays (bool lock)
 
MythXDisplayGetMythXDisplay (Display *d)
 
MythXDisplayOpenMythXDisplay (void)
 

Variables

std::map< Display *, XErrorVectorTypexerrors
 
std::map< Display *, XErrorCallbackTypexerror_handlers
 
std::map< Display *, MythXDisplay * > xdisplays
 

Macro Definition Documentation

◆ V_INTERLACE

#define V_INTERLACE   (0x010)

This file is intended to hold X11 specific utility functions.

Definition at line 12 of file mythxdisplay.cpp.

Typedef Documentation

◆ XErrorCallbackType

typedef int(* XErrorCallbackType) (Display *, XErrorEvent *)

Definition at line 18 of file mythxdisplay.cpp.

◆ XErrorVectorType

typedef std::vector<XErrorEvent> XErrorVectorType

Definition at line 19 of file mythxdisplay.cpp.

Function Documentation

◆ ErrorHandler()

static int ErrorHandler ( Display *  d,
XErrorEvent *  xeev 
)
static

Definition at line 30 of file mythxdisplay.cpp.

Referenced by MythXDisplay::StartLog().

◆ LockMythXDisplays()

void LockMythXDisplays ( bool  lock)

Definition at line 36 of file mythxdisplay.cpp.

◆ GetMythXDisplay()

MythXDisplay* GetMythXDisplay ( Display *  d)

Definition at line 52 of file mythxdisplay.cpp.

◆ OpenMythXDisplay()

MythXDisplay* OpenMythXDisplay ( void  )

Variable Documentation

◆ xerrors

std::map<Display*, XErrorVectorType> xerrors

◆ xerror_handlers

std::map<Display*, XErrorCallbackType> xerror_handlers

◆ xdisplays

std::map<Display*, MythXDisplay*> xdisplays