diff options
Diffstat (limited to 'src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c')
-rw-r--r-- | src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c b/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c index 32177e8..e0929ac 100644 --- a/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c +++ b/src/libXNVCtrlAttributes/NvCtrlAttributesNvControl.c @@ -174,7 +174,7 @@ NvCtrlNvControlGetStringAttribute (NvCtrlAttributePrivateHandle *h, return NvCtrlNoAttribute; -} /* NvCtrlGetStringAttribute() */ +} /* NvCtrlNvControlGetStringAttribute() */ ReturnStatus @@ -235,6 +235,26 @@ NvCtrlNvControlGetBinaryAttribute(NvCtrlAttributePrivateHandle *h, ReturnStatus +NvCtrlNvControlStringOperation(NvCtrlAttributePrivateHandle *h, + unsigned int display_mask, int attr, + char *ptrIn, char **ptrOut) +{ + if (attr <= NV_CTRL_STRING_OPERATION_LAST_ATTRIBUTE) { + if (XNVCTRLStringOperation (h->dpy, h->target_type, + h->target_id, display_mask, + attr, ptrIn, ptrOut)) { + return NvCtrlSuccess; + } else { + return NvCtrlAttributeNotAvailable; + } + } + + return NvCtrlNoAttribute; + +} /* NvCtrlNvControlStringOperation() */ + + +ReturnStatus NvCtrlSetGvoColorConversion(NvCtrlAttributeHandle *handle, float colorMatrix[3][3], float colorOffset[3], |