NVIDIA Corporation
72 Quadro FX 4800/5800 and Quadro CX SDI User’s Guide– Version 1.0
C
HAPTER 5
API Control
);
ThisfunctionisthesameasXNVCTRLSetAttribute(),andreturnsTrueiftheoperation
succeeds,otherwiseFalse.
XNVCTRLQueryAttribute()
Bool XNVCTRLQueryAttribute (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
int *value
);
ThisfunctionreturnsTrueiftheattributeexists,otherwiseFalse.
IfXNVCTRLQueryAttributereturnsTrue,valuewillcontainthevalueofthespecified
attribute.Notallattributesrequirethedisplay_maskparameter.See“NV_CTRL_GVO
Attributes”onpage 75 fordetails.
Possibleerrors:
•BadValue‐Thescreendoesnʹtexist.
• BadMatch‐TheNVIDIAdriverisnotpresent
onthatscreen.
XNVCTRLQueryStringAttribute()
Bool XNVCTRLQueryStringAttribute (
Display *dpy,
int screen,
unsigned int display_mask,
unsigned int attribute,
char **ptr
);
ThisfunctionreturnsTrueiftheattributeexists,otherwiseFalse.
IfXNVCTRLQueryStringAttributereturnsTrue,*ptrwillpointtoanallocatedstring
containingthestringattributerequested.Itisthecallerʹsresponsibilitytofreethestring
whendone.
Possibleerrors: