DMXAddInput(3)



DMXAddInput

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
NOTES
SEE ALSO

NAME

DMXAddInput, DMXAddBackendInput, DMXAddConsoleInput − attach a new input

SYNOPSIS

#include <X11/extensions/dmxext.h>

Bool DMXAddInput(Display *dpy,
unsigned int
mask,
DMXInputAttributes
*attr,
int
*id);
Bool DMXAddBackendInput(Display
*dpy,
int
screen,
int
sendsCore,
int
*newId);
Bool DMXAddConsoleInput(Display
*dpy,
const char
*name,
int
sendsCore,
int
*newId);

DESCRIPTION

DMXAddInput() is used to attach a new input (or a previously detached input) to the Xdmx(1) server. mask specifies the fields in attr that are active, and id returns the device if of the first device in the series that is added.

The value of mask is computed from the following values:

DMXInputType
DMXInputPhysicalScreen
DMXInputSendsCore

The DMXInputAttributes structure is:

typedef struct {
DMXInputEnum inputType;
int physicalScreen;
int physicalId;
Bool isCore;
Bool sendsCore;
const char *name;
Bool detached;
} DMXInputAttributes;

inputType may bave the value DmxConsoleInputType or DmxBackendInputType .

For console devices, name will specify the display to be used.

For back-end devices, physicalScreen will specify the Xdmx(1) screen number.

If sendsCore is True, the new device will be added as a true core device.

If a device was removed with DMXRemoveInput(3) an attempt will be made to reconnect the previous devices (sendsCore is ignored in this case).

DMXAddBackendInput() is a helper function that is used to add input from a back-end server. With this function, screen refers to the back-end screen, sendsCore is True if the new input should send core events (and it ignored if the input has been detached), and newId will hold the device id of the first device in the series added.

DMXAddConsoleInput() is a helper function that is used to add input from a console. With this function, name is the name of the console display, sendsCore is True if the new input should send core events (and it ignored if the input has been detached), and newId will hold the device id of the first device in the series added.

RETURN VALUE

DMXAddInput() returns True on success and False otherwise.

DMXAddInput() can generate BadValue (if inputType is invalid or physicalScreen is out of range), BadAccess (if the input has already been attached or if the backend screen is currently detached).

NOTES

Local devices cannot be attached or detached.

Attributes that are not specified will default to 0. This may lead to unintended results.

SEE ALSO

DMXRemoveInput(3), DMX(3), Xdmx(1)



More Linux Commands

manpages/rendition.4.html
rendition(4) - Rendition video driver - Linux manual page...
rendition is an Xorg driver for Rendition/Micron based video cards. The driver supports following framebuffer depths: 8, 15 (Verite V1000 only), 16 and 24. Acce

manpages/get_nprocs.3.html
get_nprocs(3) get number of processors - Linux manual page
The function get_nprocs_conf() returns the number of processors configured by the operating system. The function get_nprocs() returns the number of processors c

manpages/Tcl_DiscardInterpState.3.html
Tcl_DiscardInterpState(3) - save and restore an interpreter'
These routines allows a C procedure to take a snapshot of the current &amp;#9474; state of an interpreter so that it can be restored after a call to &amp;#9474; Tcl_Eva

manpages/intro.html
intro(1) - Introduction to user commands - Linux man page...
Section 1 of the manual describes user commands and tools, for example, file manipulation tools, shells, compilers, web browsers, file and image viewers and edi

manpages/Tcl_FSGetPathType.3.html
Tcl_FSGetPathType(3) - procedures to interact with any files
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

manpages/gprof.1.html
gprof(1) - display call graph profile data - Linux man page
gprof produces an execution profile of C, Pascal, or Fortran77 programs. The effect of called routines is incorporated in the profile of each caller. The profil

manpages/Mail::SpamAssassin::Plugin::MIMEHeader.3pm.html
Mail::SpamAssassin::Plugin::MIMEHeader(3pm) - perform regexp
This plugin allows regexp rules to be written against MIME headers in the message. RULE DEFINITIONS AND PRIVILEGED SETTINGS mimeheader NAME_OF_RULE Header-Name

manpages/gnutls_handshake_set_post_client_hello_function.3.html
gnutls_handshake_set_post_client_hello_function.3...........
This function will set a callback to be called after the client hello has been received (callback valid in server side only). This allows the server to adjust s

manpages/md.4.html
md(4) - Multiple Device driver aka Linux Software RAID......
The md driver provides virtual devices that are created from one or more independent underlying devices. This array of devices often contains redundancy and the

manpages/mjpegtools.1.html
mjpegtools(1) (Commands - Linux manual page)...............
MJPEG HOWTO - An introduction to the MJPEG-tools capture/editting/replay and MPEG encoding toolset description. The creation of MPEG 1/2 videos, VCD and SVCD...

manpages/pthread_attr_getstacksize.3.html
pthread_attr_getstacksize(3) - set/get stack size attribute
The pthread_attr_setstacksize() function sets the stack size attribute of the thread attributes object referred to by attr to the value specified in stacksize.

manpages/globfree.3.html
globfree(3) - find pathnames matching a pattern, free memory
The glob() function searches for all the pathnames matching pattern according to the rules used by the shell (see glob(7)). No tilde expansion or parameter subs





We can't live, work or learn in freedom unless the software we use is free.