Declares entities to handle return status codes used in VPI. More...
Macros | |
#define | VPI_MAX_STATUS_MESSAGE_LENGTH 256 |
Maximum status message length in bytes. More... | |
Enumerations | |
enum | VPIStatus |
Status codes. More... | |
Functions | |
const char * | vpiStatusGetName (VPIStatus code) |
Returns a string representation of the status code. More... | |
VPIStatus | vpiGetLastStatus () |
Returns and resets the status of the last VPI function call in current thread. More... | |
VPIStatus | vpiGetLastStatusMessage (char *msgBuffer, int32_t lenBuffer) |
Returns and resets the status code and message of the last VPI function call in current thread. More... | |
VPIStatus | vpiPeekAtLastStatus () |
Returns the status of the last VPI function call in current thread. More... | |
VPIStatus | vpiPeekAtLastStatusMessage (char *msgBuffer, int32_t lenBuffer) |
Returns and status code and message of the last VPI function call in current thread. More... | |
Declares entities to handle return status codes used in VPI.
VPI functions uses status codes to return if they succeeded or not.
#define VPI_MAX_STATUS_MESSAGE_LENGTH 256 |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Maximum status message length in bytes.
This is the maximum number of bytes that will be written by vpiGetLastStatusMessage and vpiPeekAtLastStatusMessage to the status message output buffer.
enum VPIStatus |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Status codes.
const char* vpiStatusGetName | ( | VPIStatus | code | ) |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Returns a string representation of the status code.
[in] | code | Status code whose string representation is to be returned. |
VPIStatus vpiGetLastStatus | ( | ) |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Returns and resets the status of the last VPI function call in current thread.
A new call to this function will return VPI_SUCCESS, as the thread-specific status was reset. This operation doesn't affect the statuses in other threads.
VPIStatus vpiGetLastStatusMessage | ( | char * | msgBuffer, |
int32_t | lenBuffer | ||
) |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Returns and resets the status code and message of the last VPI function call in current thread.
A new call to this function will return VPI_SUCCESS, as the thread-specific status was reset. This operation doesn't affect the status in other threads.
It's guaranteed that the message is never larger than VPI_MAX_STATUS_MESSAGE_LENGTH bytes, including the '\0' string terminator.
[out] | msgBuffer | Pointer to memory where the status message will be written to. If NULL, no message is returned. |
[in] | lenBuffer | Size in bytes of msgBuffer.
|
VPIStatus vpiPeekAtLastStatus | ( | ) |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Returns the status of the last VPI function call in current thread.
The status code won't be reset.
VPIStatus vpiPeekAtLastStatusMessage | ( | char * | msgBuffer, |
int32_t | lenBuffer | ||
) |
#include </opt/nvidia/vpi2/include/vpi/Status.h>
Returns and status code and message of the last VPI function call in current thread.
The status code and message won't be reset.
It's guaranteed that the message is never larger than VPI_MAX_STATUS_MESSAGE_LENGTH bytes, including the '\0' string terminator.
[out] | msgBuffer | Pointer to memory where the status message will be written to. If NULL, no message is returned. |
[in] | lenBuffer | Size in bytes of msgBuffer.
|