NVIDIA Corporation
Quadro FX 4800/5800 and Quadro CX SDI User’s Guide – Version 1.0 73
C
HAPTER 5
API Control
•BadValue‐Thescreendoesnʹtexist.
• BadMatch‐TheNVIDIAdriverisnotpresentonthatscreen.
•BadAlloc‐Insufficientresourcestofulfilltherequest.
XNVCTRLSetStringAttribute()
Bool XNVCTRLSetStringAttribute (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
char *ptr
);
ReturnsTrueiftheoperationsucceeded,otherwiseFalse.
PossibleXerrors:
•BadValue‐Thescreendoesnʹtexist.
• BadMatch‐TheNVIDIAdriverisnotpresentonthatscreen.
•BadAlloc‐Insufficientresourcestofulfilltherequest.
XNVCTRLQueryValidAttributeValues()
Bool XNVCTRLQueryValidAttributeValues (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
NVCTRLAttributeValidValuesRec *values
);
ThisfunctionreturnsTrueiftheattributeexists.otherwiseFalse.If
XNVCTRLQueryValidAttributeValuesreturnsTrue,valueswillindicatethevalidvalues
forthespecifiedattribute.
SeethedescriptionofNVCTRLAttributeValidValues inNVCtrl.h.