📄 zdmparams.c
字号:
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamCCEmailRecipientList", (unsigned char *)0)
return (status);
}
int VtZDMParamBufferType (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VtBufferTypeInfo* bufferTypeInfo;
VtFileCtx fileCtx = (VtFileCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
VOLT_DECLARE_ERROR_TYPE(errorType)
do
{
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
if ((flag == VOLT_ZDM_SET_TYPE_FLAG) && (zdmObj != (VtZDMObject)0))
{
libCtx = zdmObj->voltObject.libraryCtx;
VT_ASSERT(libCtx != (VtLibCtx)0);
if (info != (Pointer)0)
{
bufferTypeInfo = (VtBufferTypeInfo*)info;
VOLT_SET_ERROR_TYPE(errorType, VT_ERROR_TYPE_PRIMARY)
if (bufferTypeInfo->bufferType == VT_BUFFER_TYPE_FILE)
{
if (bufferTypeInfo->fileCtx == (VtFileCtx)0)
{
VOLT_SET_FNCT_LINE (fnctLine)
status = VtGetLibCtxParam(libCtx, VtLibCtxParamFileCtx, (Pointer*)&fileCtx);
if ((status == VT_ERROR_GET_INFO_UNAVAILABLE) || (fileCtx == (VtFileCtx)0))
status = VT_ERROR_NO_FILE_CTX;
if (status != 0)
break;
}
else if (VOLT_OBJECT_TYPE_NOT_EQUAL(bufferTypeInfo->fileCtx, VOLT_OBJECT_TYPE_FILE_CTX))
{
VOLT_SET_FNCT_LINE (fnctLine)
status = VT_ERROR_INVALID_ASSOCIATED_INFO;
break;
}
}
else if (bufferTypeInfo->bufferType != VT_BUFFER_TYPE_MEMORY)
{
VOLT_SET_FNCT_LINE (fnctLine)
status = VT_ERROR_INVALID_ASSOCIATED_INFO;
break;
}
}
}
VOLT_SET_ERROR_TYPE(errorType, 0)
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED, VT_ZDM_PARAM_BUFFER_TYPE);
}
while (0);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, errorType,
fnctLine, "VtZDMParamBufferType", (unsigned char *)0)
return (status);
}
int VtZDMParamInputStream (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
VOLT_DECLARE_ERROR_TYPE(errorType)
do
{
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
if ((flag == VOLT_ZDM_SET_TYPE_FLAG) && (info != (Pointer)0) &&
VOLT_OBJECT_TYPE_NOT_EQUAL(info, VOLT_OBJECT_TYPE_STREAM))
{
VOLT_SET_ERROR_TYPE (errorType, VT_ERROR_TYPE_PRIMARY)
VOLT_SET_FNCT_LINE(fnctLine)
status = VT_ERROR_INVALID_ASSOCIATED_INFO;
break;
}
VOLT_SET_ERROR_TYPE(errorType, 0)
VOLT_SET_FNCT_LINE(fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_INPUT_STREAM);
}
while (0);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, errorType,
fnctLine, "VtZDMParamInputStream", (unsigned char *)0)
return (status);
}
int VtZDMParamCurrentEntry (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VtZDMCurrentEntryInfo* currentEntryInfo;
VOLT_DECLARE_FNCT_LINE (fnctLine)
VOLT_DECLARE_ERROR_TYPE(errorType)
do
{
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
if ((flag == VOLT_ZDM_SET_TYPE_FLAG) && (info != (Pointer)0))
{
currentEntryInfo = (VtZDMCurrentEntryInfo*)info;
if ((currentEntryInfo->type != VT_ZDM_CURRENT_ENTRY_MESSAGE_BODY) &&
(currentEntryInfo->type != VT_ZDM_CURRENT_ENTRY_ATTACHMENT) &&
(currentEntryInfo->type != VT_ZDM_CURRENT_ENTRY_DONE))
{
VOLT_SET_ERROR_TYPE (errorType, VT_ERROR_TYPE_PRIMARY)
VOLT_SET_FNCT_LINE(fnctLine)
status = VT_ERROR_INVALID_ASSOCIATED_INFO;
break;
}
}
VOLT_SET_ERROR_TYPE (errorType, 0)
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_CURRENT_ENTRY);
}
while (0);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, errorType, fnctLine,
"VtZDMParamCurrentEntry", (unsigned char *)0)
return (status);
}
int VtZDMParamMessageFormat (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
unsigned int format;
VOLT_DECLARE_FNCT_LINE (fnctLine)
VOLT_DECLARE_ERROR_TYPE(errorType)
do
{
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
if ((flag == VOLT_ZDM_SET_TYPE_FLAG) && (info != (Pointer)0))
{
format = *(unsigned int*)info;
if ((format != VT_MESSAGE_FORMAT_ZDM_DATA) &&
(format != VT_MESSAGE_FORMAT_ZDM) &&
(format != VT_MESSAGE_FORMAT_SECURE_MAIL))
{
VOLT_SET_ERROR_TYPE (errorType, VT_ERROR_TYPE_PRIMARY)
VOLT_SET_FNCT_LINE(fnctLine)
status = VT_ERROR_INVALID_ASSOCIATED_INFO;
break;
}
}
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_MESSAGE_FORMAT);
}
while (0);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, errorType,
fnctLine, "VtZDMParamMessageFormat", (unsigned char *)0)
return (status);
}
int VtZDMParamMessageBodySize (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_SUPPORTED, VT_ZDM_PARAM_MESSAGE_BODY_SIZE);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamMessageBodySize", (unsigned char *)0)
return (status);
}
int VtZDMParamReplyTo (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_AND_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_REPLY_TO);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamReplyTo", (unsigned char *)0)
return (status);
}
int VtZDMParamMessageID (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_AND_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_MESSAGE_ID);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamMessageID", (unsigned char *)0)
return (status);
}
int VtZDMParamInsecureMessageID (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_AND_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_INSECURE_MESSAGE_ID);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamInsecureMessageID", (unsigned char *)0)
return (status);
}
int VtZDMParamTemplateCharset (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_TEMPLATE_CHARSET);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamTemplateCharset", (unsigned char *)0)
return (status);
}
int VtZDMParamDesignatedRecipient (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_DESIGNATED_RECIPIENT);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamDesignatedRecipient", (unsigned char *)0)
return (status);
}
int VtZDMParamSupportedVersion (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_SUPPORTED, VT_ZDM_PARAM_SUPPORTED_VERSION);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamSupportedVersion", (unsigned char *)0)
return (status);
}
int VtZDMParamAttachmentCount (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_SUPPORTED, VT_ZDM_PARAM_ATTACHMENT_COUNT);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamAttachmentCount", (unsigned char *)0)
return (status);
}
int VtZDMParamCompressionEnabled (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_COMPRESSION_ENABLED);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamCompressionEnabled", (unsigned char *)0)
return (status);
}
int VtZDMParamDataPadding (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_DATA_PADDING);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamDataPadding", (unsigned char *)0)
return (status);
}
int VtZDMParamSurrenderCallback (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_SET_SUPPORTED | VT_ZDM_SET_INFO_REQUIRED,
VT_ZDM_PARAM_SURRENDER_CALLBACK);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamSurrenderCallback", (unsigned char *)0)
return (status);
}
int VtZDMParamRemainingOutputSize (
VtZDMObject zdmObj,
Pointer info,
unsigned int flag
)
{
int status;
VtLibCtx libCtx = (VtLibCtx)0;
VOLT_DECLARE_FNCT_LINE (fnctLine)
if (zdmObj != (VtZDMObject)0)
libCtx = zdmObj->voltObject.libraryCtx;
VOLT_SET_FNCT_LINE (fnctLine)
status = VoltZDMParamCommon(zdmObj, info, flag,
VT_ZDM_GET_SUPPORTED, VT_ZDM_PARAM_REMAINING_OUTPUT_SIZE);
VOLT_LOG_ERROR_COMPARE (
status, libCtx, status, 0, fnctLine,
"VtZDMParamRemainingOutputSize", (unsigned char *)0)
return (status);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -