Lines Matching defs:pErrInfo

38 RTDECL(int) RTErrInfoSet(PRTERRINFO pErrInfo, int rc, const char *pszMsg)
40 if (pErrInfo)
42 AssertPtr(pErrInfo);
43 Assert((pErrInfo->fFlags & RTERRINFO_FLAGS_MAGIC_MASK) == RTERRINFO_FLAGS_MAGIC);
45 RTStrCopy(pErrInfo->pszMsg, pErrInfo->cbMsg, pszMsg);
46 pErrInfo->rc = rc;
47 pErrInfo->fFlags |= RTERRINFO_FLAGS_SET;
53 RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...)
57 RTErrInfoSetV(pErrInfo, rc, pszFormat, va);
63 RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va)
65 if (pErrInfo)
67 AssertPtr(pErrInfo);
68 Assert((pErrInfo->fFlags & RTERRINFO_FLAGS_MAGIC_MASK) == RTERRINFO_FLAGS_MAGIC);
70 RTStrPrintfV(pErrInfo->pszMsg, pErrInfo->cbMsg, pszFormat, va);
71 pErrInfo->rc = rc;
72 pErrInfo->fFlags |= RTERRINFO_FLAGS_SET;
78 RTDECL(int) RTErrInfoAdd(PRTERRINFO pErrInfo, int rc, const char *pszMsg)
80 if (pErrInfo)
82 AssertPtr(pErrInfo);
83 if (pErrInfo->fFlags & RTERRINFO_FLAGS_SET)
84 RTStrCat(pErrInfo->pszMsg, pErrInfo->cbMsg, pszMsg);
89 return RTErrInfoSet(pErrInfo, rc, pszMsg);
96 RTDECL(int) RTErrInfoAddF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...)
100 RTErrInfoAddV(pErrInfo, rc, pszFormat, va);
106 RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va)
108 if (pErrInfo)
110 AssertPtr(pErrInfo);
111 Assert((pErrInfo->fFlags & RTERRINFO_FLAGS_MAGIC_MASK) == RTERRINFO_FLAGS_MAGIC);
112 if (pErrInfo->fFlags & RTERRINFO_FLAGS_SET)
114 char *pszOut = (char *)memchr(pErrInfo->pszMsg, '\0', pErrInfo->cbMsg - 2);
116 RTStrPrintfV(pszOut, &pErrInfo->pszMsg[pErrInfo->cbMsg] - pszOut, pszFormat, va);
122 return RTErrInfoSetV(pErrInfo, rc, pszFormat, va);