NVIDIA Corporation
Quadro FX 4800/5800 and Quadro CX SDI User’s Guide
– Version 1.0
73
C
HAPTER
5
API Control
• BadValue
‐
The
screen
doesn
ʹ
t
exist.
• BadMatch
‐
The
NVIDIA
driver
is
not
present
on
that
screen.
• BadAlloc
‐
Insufficient
resources
to
fulfill
the
request.
XNVCTRLSetStringAttribute()
Bool XNVCTRLSetStringAttribute (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
char *ptr
);
Returns
True
if
the
operation
succeeded,
otherwise
False
.
Possible
X
errors:
• BadValue
‐
The
screen
doesn
ʹ
t
exist.
• BadMatch
‐
The
NVIDIA
driver
is
not
present
on
that
screen.
• BadAlloc
‐
Insufficient
resources
to
fulfill
the
request.
XNVCTRLQueryValidAttributeValues()
Bool XNVCTRLQueryValidAttributeValues (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
NVCTRLAttributeValidValuesRec *values
);
This
function
returns
True
if
the
attribute
exists.
otherwise
False
.
If
XNVCTRLQueryValidAttributeValues
returns
True,
values
will
indicate
the
valid
values
for
the
specified
attribute.
See
the
description
of
NVCTRLAttributeValidValues
in
NVCtrl.h.