Lines Matching defs:pErrInfo

417  * @returns @a pErrInfo.
418 * @param pErrInfo The error info structure to init.
422 DECLINLINE(PRTERRINFO) RTErrInfoInit(PRTERRINFO pErrInfo, char *pszMsg, size_t cbMsg)
426 pErrInfo->fFlags = RTERRINFO_FLAGS_T_CUSTOM | RTERRINFO_FLAGS_MAGIC;
427 pErrInfo->rc = /*VINF_SUCCESS*/ 0;
428 pErrInfo->pszMsg = pszMsg;
429 pErrInfo->cbMsg = cbMsg;
430 pErrInfo->apvReserved[0] = NULL;
431 pErrInfo->apvReserved[1] = NULL;
433 return pErrInfo;
476 * @param pErrInfo The error info structure.
478 RTDECL(void) RTErrInfoFree(PRTERRINFO pErrInfo);
485 * @param pErrInfo The error info structure to fill in.
489 RTDECL(int) RTErrInfoSet(PRTERRINFO pErrInfo, int rc, const char *pszMsg);
496 * @param pErrInfo The error info structure to fill in.
501 RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...);
508 * @param pErrInfo The error info structure to fill in.
513 RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va);
520 * @param pErrInfo The error info structure to fill in.
524 RTDECL(int) RTErrInfoAdd(PRTERRINFO pErrInfo, int rc, const char *pszMsg);
531 * @param pErrInfo The error info structure to fill in.
536 RTDECL(int) RTErrInfoAddF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...);
543 * @param pErrInfo The error info structure to fill in.
548 RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va);
554 * @param pErrInfo The error info structure. NULL is OK.
556 DECLINLINE(bool) RTErrInfoIsSet(PCRTERRINFO pErrInfo)
558 if (!pErrInfo)
560 return (pErrInfo->fFlags & (RTERRINFO_FLAGS_MAGIC_MASK | RTERRINFO_FLAGS_SET))
567 * @param pErrInfo The error info structure. NULL is OK.
569 DECLINLINE(void) RTErrInfoClear(PRTERRINFO pErrInfo)
571 if (pErrInfo)
573 pErrInfo->fFlags &= ~RTERRINFO_FLAGS_SET;
574 pErrInfo->rc = /*VINF_SUCCESS*/0;
575 *pErrInfo->pszMsg = '\0';