1DMXAddInput(3)             Library Functions Manual             DMXAddInput(3)
2
3
4

NAME

6       DMXAddInput,  DMXAddBackendInput,  DMXAddConsoleInput  -  attach  a new
7       input
8

SYNOPSIS

10       #include <X11/extensions/dmxext.h>
11
12       Bool DMXAddInput(Display *dpy,
13                        unsigned int mask,
14                        DMXInputAttributes *attr,
15                        int *id);
16       Bool DMXAddBackendInput(Display *dpy,
17                               int screen,
18                               int sendsCore,
19                               int *newId);
20       Bool DMXAddConsoleInput(Display *dpy,
21                               const char *name,
22                               int sendsCore,
23                               int *newId);
24

DESCRIPTION

26       DMXAddInput() is used to attach a new input (or a  previously  detached
27       input)  to  the Xdmx(1) server.  mask specifies the fields in attr that
28       are active, and id returns the device if of the  first  device  in  the
29       series that is added.
30
31       The value of mask is computed from the following values:
32
33       DMXInputType
34       DMXInputPhysicalScreen
35       DMXInputSendsCore
36
37       The DMXInputAttributes structure is:
38
39       typedef struct {
40           DMXInputEnum inputType;
41           int          physicalScreen;
42           int          physicalId;
43           Bool         isCore;
44           Bool         sendsCore;
45           const char   *name;
46           Bool         detached;
47       } DMXInputAttributes;
48
49       inputType  may bave the value DmxConsoleInputType  or  DmxBackendInput‐
50       Type .
51
52       For console devices, name will specify the display to be used.
53
54       For back-end devices, physicalScreen will specify  the  Xdmx(1)  screen
55       number.
56
57       If  sendsCore  is  True,  the  new  device will be added as a true core
58       device.
59
60       If a device was removed with DMXRemoveInput(3) an attempt will be  made
61       to reconnect the previous devices (sendsCore is ignored in this case).
62
63       DMXAddBackendInput()  is  a  helper  function that is used to add input
64       from a back-end server.  With this function, screen refers to the back-
65       end  screen, sendsCore is True if the new input should send core events
66       (and it ignored if the input has been detached), and  newId  will  hold
67       the device id of the first device in the series added.
68
69       DMXAddConsoleInput()  is  a  helper  function that is used to add input
70       from a console.  With this function, name is the name  of  the  console
71       display,  sendsCore  is  True  if the new input should send core events
72       (and it ignored if the input has been detached), and  newId  will  hold
73       the device id of the first device in the series added.
74

RETURN VALUE

76       DMXAddInput() returns True on success and False otherwise.
77
78       DMXAddInput()  can generate BadValue (if inputType is invalid or physi‐
79       calScreen is out of range), BadAccess (if the input  has  already  been
80       attached or if the backend screen is currently detached).
81

NOTES

83       Local devices cannot be attached or detached.
84
85       Attributes  that are not specified will default to 0.  This may lead to
86       unintended results.
87

SEE ALSO

89       DMXRemoveInput(3), DMX(3), Xdmx(1)
90
91
92
93X Version 11                     libdmx 1.1.0                   DMXAddInput(3)
Impressum