| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Functions | |
| X400COMMON_CDECL int | X400Initialize (char *myname) |
| Initialize X.400 API. | |
| X400COMMON_CDECL int | X400MsgNew (int type, struct X400Message **mpp) |
| Creates new message. | |
| X400COMMON_CDECL int | X400MsgCountRecip (struct X400Message *mp, int recipient_type, int *number) |
| Returns count of addresses of given type in message object. | |
| X400COMMON_CDECL int | X400MsgFree (struct X400Message *mp) |
| Frees a message. | |
| X400COMMON_CDECL int | X400MsgAddAttachment (struct X400Message *mp, int type, const char *string, size_t length) |
| Add an attachment to the message. | |
| X400COMMON_CDECL int | X400MsgAddBodypart (struct X400Message *mp, struct X400Bodypart *bp) |
| Add a body part object to a message. | |
| X400COMMON_CDECL int | X400MsgAddMessageBody (struct X400Message *mp, struct X400Message *mbp) |
| X400COMMON_CDECL int | X400MsgAddMessageBodyWType (struct X400Message *mp, struct X400Message *mbp, int type) |
| Add a message body part object to a message. | |
| X400COMMON_CDECL int | X400MsgAddIntParam (struct X400Message *mp, int paramtype, int value) |
| Add integer-valued parameter to the message. | |
| X400COMMON_CDECL int | X400MsgAddStrParam (struct X400Message *mp, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the message. | |
| X400COMMON_CDECL int | X400MsgAddRecip (struct X400Message *mp, int reciptype, struct X400Recipient *recip) |
| Add a recipient object to the message. | |
| X400COMMON_CDECL int | X400MsgGetIntParam (struct X400Message *mp, int paramtype, int *valuep) |
| Return a integer-valued parameter from the message object. | |
| X400COMMON_CDECL int | X400MsgGetStrParam (struct X400Message *mp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Return a string-valued parameter from the message object. | |
| X400COMMON_CDECL int | X400MsgGetAttachment (struct X400Message *mp, int number, int *typep, char *buffer, size_t buflen, size_t *lengthp) |
| Return data from a simple attachment. | |
| X400COMMON_CDECL int | X400MsgGetBodypart (struct X400Message *mp, int number, int *typep, struct X400Bodypart **bpp) |
| Return a pointer to a body part object. | |
| X400COMMON_CDECL int | X400MsgGetMessageBody (struct X400Message *mp, int number, struct X400Message **mbpp) |
| Return a pointer to a body part object. | |
| X400COMMON_CDECL int | X400MsgGetRecip (struct X400Message *mp, int recip_type, int number, struct X400Recipient **rpp) |
| Get recipient object from message. | |
| X400COMMON_CDECL int | X400RecipNew (int type, struct X400Recipient **rpp) |
| Create a new recipient object. | |
| X400COMMON_CDECL int | X400RecipFree (struct X400Recipient *rpp) |
| Free a recipient object. | |
| X400COMMON_CDECL int | X400RecipAddIntParam (struct X400Recipient *rp, int paramtype, int value) |
| Add integer-valued parameter to the recipient. | |
| X400COMMON_CDECL int | X400RecipAddStrParam (struct X400Recipient *rp, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the recipient. | |
| X400COMMON_CDECL int | X400RecipGetStrParam (struct X400Recipient *rp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Return a string-valued parameter from the recipient object. | |
| X400COMMON_CDECL int | X400RecipGetIntParam (struct X400Recipient *rp, int paramtype, int *valp) |
| Return a integer-valued parameter from the recipient object. | |
| X400COMMON_CDECL int | X400BodypartNew (int type, struct X400Bodypart **bpp) |
| Create a new body part object. | |
| X400COMMON_CDECL int | X400BodypartFree (struct X400Bodypart *bpp) |
| Free a body part object. | |
| X400COMMON_CDECL int | X400BodypartAddIntParam (struct X400Bodypart *bp, int paramtype, int value) |
| Add integer-valued parameter to the body part. | |
| X400COMMON_CDECL int | X400BodypartAddStrParam (struct X400Bodypart *bp, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the body part. | |
| X400COMMON_CDECL int | X400BodypartGetStrParam (struct X400Bodypart *bp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Return a string-valued parameter from the body part object. | |
| X400COMMON_CDECL int | X400BodypartGetIntParam (struct X400Bodypart *bp, int paramtype, int *valp) |
| Return a integer-valued parameter from the body part object. | |
| X400COMMON_CDECL int | X400DefaultsNew (struct x400_attribute **ap) |
| Return a new defaults object. | |
| X400COMMON_CDECL int | X400DefaultsFree (struct x400_attribute *ap) |
| Free a defaults object. | |
| X400COMMON_CDECL int | X400SetStrDefault (struct x400_attribute *ap, int paramtype, const char *value, size_t length) |
| Set a string value in a defaults object. | |
| X400COMMON_CDECL int | X400SetIntDefault (struct x400_attribute *ap, int paramtype, int value) |
| Set an integer value in a defaults object. | |
| X400COMMON_CDECL const char * | X400Error (int error) |
| Return string for error code. | |
| X400COMMON_CDECL int | X400DLExpHistGet (struct X400Message *mp, int entry, struct X400DLExpHist **hist) |
| Create a new DL Expansion History object from the message object. | |
| X400COMMON_CDECL int | X400DLExpHistDelete (struct X400DLExpHist *hist) |
| Delete the DL Expansion History object. | |
| X400COMMON_CDECL int | X400DLGetStrParam (struct X400DLExpHist *hist, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Return a string parameter from the DL Expansion History object. | |
| X400COMMON_CDECL int | X400DLExpHistNew (struct X400DLExpHist **histp) |
| Create a new X400DLExpHist object. | |
| X400COMMON_CDECL int | X400MsgAddDLExpHist (struct X400Message *mp, struct X400DLExpHist *histp) |
| Associates a X400DLExpHist object with a X400Message object. | |
| X400COMMON_CDECL int | X400DLExpHistAddStrParam (struct X400DLExpHist *hist, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the X400DLExpHist object. | |
| X400COMMON_CDECL int | X400TraceInfoGet (struct X400Message *mp, int entry, struct X400TraceInfo **info, int trace_info_type) |
| Get the Trace information object from a message. | |
| X400COMMON_CDECL int | X400TraceInfoGetStrParam (struct X400TraceInfo *info, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Trace Information object. | |
| X400COMMON_CDECL int | X400TraceInfoGetIntParam (struct X400TraceInfo *info, int paramtype, int *valuep) |
| Get int parameter from Trace Information object. | |
| X400COMMON_CDECL int | X400TraceInfoNew (struct X400Message *msg, struct X400TraceInfo **info, int type) |
| Create a new Trace information object. | |
| X400COMMON_CDECL int | X400MsgAddTraceInfo (struct X400Message *mp, struct X400TraceInfo *info, int type) |
| Create a new Trace information object. | |
| X400COMMON_CDECL int | X400TraceInfoAddStrParam (struct X400TraceInfo *info, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the X400TraceInfo object. | |
| X400COMMON_CDECL int | X400TraceInfoAddIntParam (struct X400TraceInfo *info, int paramtype, int value) |
| Set an integer value in a Trace Info object. | |
| X400COMMON_CDECL int | X400RediHistAddStrParam (struct X400RediHist *hist, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the X400RediHist object. | |
| X400COMMON_CDECL int | X400RediHistAddIntParam (struct X400RediHist *hist, int paramtype, int value) |
| Set an integer value in a Redirection History object. | |
| X400COMMON_CDECL int | X400RediHistGetStrParam (struct X400RediHist *hist, int paramtype, char *value, size_t length, size_t *lengthp) |
| Get string-valued parameter from the X400RediHist object. | |
| X400COMMON_CDECL int | X400RediHistGetIntParam (struct X400RediHist *info, int paramtype, int *valuep) |
| Get int parameter from Redirection History object. | |
| X400COMMON_CDECL int | X400RediHistGet (struct X400Recipient *recip, int entry, struct X400RediHist **hist) |
| Get the Redirection History object from a recipient. | |
| X400COMMON_CDECL int | X400RediHistNew (struct X400Recipient *recip, struct X400RediHist **hist) |
| Create a new Redirection History object. | |
| X400COMMON_CDECL int | X400RediHistGetEnv (struct X400Message *msg, int entry, struct X400RediHist **hist) |
| Get the Redirection History object from a message envelope this is represented by 8.3.1.2.1.5 in X.411. | |
| X400COMMON_CDECL int | X400RediHistNewEnv (struct X400Message *msg, struct X400RediHist **hist) |
| Create a new Redirection History object for a message envelope this is represented by 8.3.1.2.1.5 in X.411. | |
| X400COMMON_CDECL const char * | X400RediReason (int redirection_reason) |
| Return a human readable string based on a redirection reason. | |
| X400COMMON_CDECL int | X400InternalTraceInfoGet (struct X400Message *mp, int entry, struct X400InternalTraceInfo **info) |
| Get the Trace information object from a message. | |
| X400COMMON_CDECL int | X400InternalTraceInfoNew (struct X400Message *msg, struct X400InternalTraceInfo **info) |
| Create a new Trace information object. | |
| X400COMMON_CDECL int | X400MsgAddInternalTraceInfo (struct X400Message *mp, struct X400InternalTraceInfo *info) |
| Create a new Trace information object. | |
| X400COMMON_CDECL int | X400InternalTraceInfoGetStrParam (struct X400InternalTraceInfo *info, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Internal Trace Information object. | |
| X400COMMON_CDECL int | X400InternalTraceInfoGetIntParam (struct X400InternalTraceInfo *info, int paramtype, int *valuep) |
| Get int parameter from Internal Trace Information object. | |
| X400COMMON_CDECL int | X400InternalTraceInfoAddStrParam (struct X400InternalTraceInfo *info, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the Internal Trace info object. | |
| X400COMMON_CDECL int | X400InternalTraceInfoAddIntParam (struct X400InternalTraceInfo *info, int paramtype, int value) |
| Set an integer value in an Internal Trace Info object. | |
| X400COMMON_CDECL int | X400ALIGet (struct X400Message *mp, int entry, struct X400ALI **ali) |
| Get the Address List Indicator information object from a message. | |
| X400COMMON_CDECL int | X400ALINew (struct X400Message *msg, struct X400ALI **ali) |
| Create an Address List Indicator object. | |
| X400COMMON_CDECL int | X400ALIGetStrParam (struct X400ALI *ALI, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Address List Indicator object. | |
| X400COMMON_CDECL int | X400ALIGetIntParam (struct X400ALI *ALI, int paramtype, int *valuep) |
| Get int parameter from Address List Indicator object. | |
| X400COMMON_CDECL int | X400ALIAddStrParam (struct X400ALI *info, int paramtype, const char *value, size_t length) |
| Add string-valued parameter to the ALI info object. | |
| X400COMMON_CDECL int | X400ALIAddIntParam (struct X400ALI *info, int paramtype, int value) |
| Set an integer value in an Address List Indicator object. | |
| X400COMMON_CDECL int | X400PSSGet (struct X400Message *mp, int type, int entry, struct X400PSS **pss) |
| Get the Printable String Sequence object from a message. | |
| X400COMMON_CDECL int | X400PSSNew (struct X400Message *msg, struct X400PSS **pss, int type) |
| Create a Printable String Sequence object. | |
| X400COMMON_CDECL int | X400PSSGetStrParam (struct X400PSS *pss, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Printable String Sequence object. | |
| X400COMMON_CDECL int | X400PSSAddStrParam (struct X400PSS *pss, const char *value, size_t length) |
| Add string-valued parameter to the PSS info object. | |
| X400COMMON_CDECL int | X400DistFieldGet (struct X400Message *mp, int entry, struct X400DistField **distfield) |
| Get the Distribution Code extension Field object from a message. | |
| X400COMMON_CDECL int | X400DistFieldNew (struct X400Message *msg, struct X400DistField **distfield) |
| Create a P772 Distribution Code extension Field object. | |
| X400COMMON_CDECL int | X400DistFieldGetStrParam (struct X400DistField *distfield, int type, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Distribution Code extension Field object. | |
| X400COMMON_CDECL int | X400DistFieldAddStrParam (struct X400DistField *distfield, int type, const char *value, size_t length) |
| Add string-valued parameter to the DistField info object. | |
| X400COMMON_CDECL int | X400OtherRecipGet (struct X400Message *mp, int entry, struct X400OtherRecip **otherrecip) |
| Get a new P772 Other Recipient object for a message object. | |
| X400COMMON_CDECL int | X400OtherRecipNew (struct X400Message *mp, struct X400OtherRecip **otherrecip) |
| Create a new P772 Other Recipient object for a message object. | |
| X400COMMON_CDECL int | X400OtherRecipGetStrParam (struct X400OtherRecip *otherrecip, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from Other Recipient object. | |
| X400COMMON_CDECL int | X400OtherRecipAddStrParam (struct X400OtherRecip *otherrecip, const char *value, size_t length) |
| Add string-valued parameter to the Other Recipient Indicator object. | |
| X400COMMON_CDECL int | X400OtherRecipAddIntParam (struct X400OtherRecip *otherrecip, int value) |
| Add integer parameter to the Other Recipient Indicator object. | |
| X400COMMON_CDECL int | X400OtherRecipGetIntParam (struct X400OtherRecip *otherrecip, int *value) |
| Get integer parameter from the Other Recipient Indicator object. | |
| X400COMMON_CDECL int | X400ACP127RespGet (struct X400Recipient *rp, struct X400ACP127Resp **resp) |
| Get the ACP127 Response object from a message. | |
| X400COMMON_CDECL int | X400ACP127RespNew (struct X400Recipient *rp, struct X400ACP127Resp **resp) |
| Create a P772 ACP127 Response object. | |
| X400COMMON_CDECL int | X400ACP127RespGetStrParam (struct X400ACP127Resp *resp, int type, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from ACP127 Response object. | |
| X400COMMON_CDECL int | X400ACP127RespAddStrParam (struct X400ACP127Resp *resp, int type, const char *value, size_t length) |
| Add string-valued parameter to the ACP127 Response object. | |
| X400COMMON_CDECL int | X400ACP127RespAddIntParam (struct X400ACP127Resp *resp, int value) |
| Add integer parameter to the ACP127 Response object. | |
| X400COMMON_CDECL int | X400ACP127RespGetIntParam (struct X400ACP127Resp *resp, int *value) |
| Get integer parameter from the ACP127 Response object. | |
| X400COMMON_CDECL int | X400ACP127RespNewALI (struct X400ACP127Resp *resp, struct X400ALI **ali) |
| Create new Address List Indicator object associated with the X400ACP127 Resp. | |
| X400COMMON_CDECL int | X400ACP127RespGetALI (struct X400ACP127Resp *resp, struct X400ALI **ali, int entry) |
| Get an Address List Indicator object associated with the X400ACP127 object. | |
| X400COMMON_CDECL int | X400ORandDLAddStrParam (struct X400ORandDL *or_and_dl, int type, const char *value, size_t length) |
| Add string parameter for a Originator and DL Expansion History object. | |
| X400COMMON_CDECL int | X400ORandDLNew (struct X400Message *msg, struct X400ORandDL **or_and_dl) |
| Create new Originator and DL Expansion history object. | |
| X400COMMON_CDECL int | X400MsgORandDLGet (struct X400Message *msg, int entry, struct X400ORandDL **or_and_dl) |
| Get Originator and DL expansion history object. | |
| X400COMMON_CDECL int | X400ORandDLGetStrParam (struct X400ORandDL *or_and_dl, int paramtype, char *buffer, size_t buflen, size_t *paramlenp) |
| Get string parameter from ACP127 Response object. | |
| X400COMMON_CDECL int X400Initialize | ( | char * | myname | ) |
Initialize X.400 API.
| myname | [in] Name of application |
| X400COMMON_CDECL int X400MsgNew | ( | int | type, | |
| struct X400Message ** | mpp | |||
| ) |
Creates new message.
| type | [in] Type of message object | |
| mpp | [out] pointer to receive pointer to message object |
| X400COMMON_CDECL int X400MsgCountRecip | ( | struct X400Message * | mp, | |
| int | recipient_type, | |||
| int * | number | |||
| ) |
Returns count of addresses of given type in message object.
| mp | [in] X400 message | |
| recipient_type | [in] Type of address to count | |
| number | [out] pointer integer to receive count of addresses |
| X400COMMON_CDECL int X400MsgFree | ( | struct X400Message * | mp | ) |
Frees a message.
| mp | [in] message object to free |
| X400COMMON_CDECL int X400MsgAddAttachment | ( | struct X400Message * | mp, | |
| int | type, | |||
| const char * | string, | |||
| size_t | length | |||
| ) |
Add an attachment to the message.
| mp | [in] Message pointer | |
| type | [in] Type of attachment | |
| string | [in] String value for attachment | |
| length | [in] Length of string |
| X400COMMON_CDECL int X400MsgAddBodypart | ( | struct X400Message * | mp, | |
| struct X400Bodypart * | bp | |||
| ) |
Add a body part object to a message.
| mp | [in] Message pointer | |
| bp | [in] Bodypart pointer |
| X400COMMON_CDECL int X400MsgAddMessageBody | ( | struct X400Message * | mp, | |
| struct X400Message * | mbp | |||
| ) |
| X400COMMON_CDECL int X400MsgAddMessageBodyWType | ( | struct X400Message * | mp, | |
| struct X400Message * | mbp, | |||
| int | type | |||
| ) |
Add a message body part object to a message.
| mp | [in] Message pointer | |
| mbp | [in] Message body part pointer | |
| type | [in] BodyPart type (E.G X400_T_MESSAGE) |
If the message object being created has an IPN content, then any envelope information is ignored.
| X400COMMON_CDECL int X400MsgAddIntParam | ( | struct X400Message * | mp, | |
| int | paramtype, | |||
| int | value | |||
| ) |
Add integer-valued parameter to the message.
| mp | [in] Message pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter |
| X400COMMON_CDECL int X400MsgAddStrParam | ( | struct X400Message * | mp, | |
| int | paramtype, | |||
| const char * | value, | |||
| size_t | length | |||
| ) |
Add string-valued parameter to the message.
| mp | [in] Message pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter | |
| length | [in] Length of parameter, -1 if NUL terminated |
| X400COMMON_CDECL int X400MsgAddRecip | ( | struct X400Message * | mp, | |
| int | reciptype, | |||
| struct X400Recipient * | recip | |||
| ) |
Add a recipient object to the message.
| mp | [in] Message pointer | |
| reciptype | [in] Type of recipient | |
| recip | [in] Recipient object to add |
| X400COMMON_CDECL int X400MsgGetIntParam | ( | struct X400Message * | mp, | |
| int | paramtype, | |||
| int * | valuep | |||
| ) |
Return a integer-valued parameter from the message object.
| mp | [in] message object pointer | |
| paramtype | [in] type of parameter | |
| valuep | [out] Pointer to receive value |
| X400COMMON_CDECL int X400MsgGetStrParam | ( | struct X400Message * | mp, | |
| int | paramtype, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | paramlenp | |||
| ) |
Return a string-valued parameter from the message object.
| mp | [in] message object pointer | |
| paramtype | [in] type of parameter | |
| buffer | [in/out] address for result | |
| buflen | [in] length of buffer provided | |
| paramlenp | [out] Pointer to receive actual length |
| X400COMMON_CDECL int X400MsgGetAttachment | ( | struct X400Message * | mp, | |
| int | number, | |||
| int * | typep, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | lengthp | |||
| ) |
Return data from a simple attachment.
| mp | [in] message object pointer | |
| number | [in] Attachment number | |
| typep | [out] Pointer to receive attachment type | |
| buffer | [in] Buffer to receive string | |
| buflen | [in] Buffer length | |
| lengthp | [out] Pointer to receive length of string |
| X400COMMON_CDECL int X400MsgGetBodypart | ( | struct X400Message * | mp, | |
| int | number, | |||
| int * | typep, | |||
| struct X400Bodypart ** | bpp | |||
| ) |
Return a pointer to a body part object.
int number, int *typep, struct X400Bodypart **bpp)
| mp | [in] message object pointer | |
| number | [in] Bodypart number | |
| typep | [out] Pointer to receive attachment type | |
| bpp | [out] Pointer to pointer to object |
| X400COMMON_CDECL int X400MsgGetMessageBody | ( | struct X400Message * | mp, | |
| int | number, | |||
| struct X400Message ** | mbpp | |||
| ) |
Return a pointer to a body part object.
| mp | [in] message object pointer | |
| number | [in] Bodypart number | |
| mbpp | [out] Pointer to address of BodyPart |
| X400COMMON_CDECL int X400MsgGetRecip | ( | struct X400Message * | mp, | |
| int | recip_type, | |||
| int | number, | |||
| struct X400Recipient ** | rpp | |||
| ) |
Get recipient object from message.
| mp | [in] Message object pointer | |
| recip_type | [in] Type of recipient | |
| number | [in] Ordinal number of recipient | |
| rpp | [out] Pointer to receive recipient object pointer |
| X400COMMON_CDECL int X400RecipNew | ( | int | type, | |
| struct X400Recipient ** | rpp | |||
| ) |
Create a new recipient object.
| type | [in] type of recipient | |
| rpp | [out] Pointer to place for pointer to recipient information |
To set a given recipient in both envelope and header, add together the values, e.g. X400_RECIP_PRIMARY + X400_RECIP_ENVELOPE. The value X400_RECIP_STANDARD is a shorthand for this combination.
| X400COMMON_CDECL int X400RecipFree | ( | struct X400Recipient * | rpp | ) |
Free a recipient object.
| rpp | [out] Recipient object to free |
| X400COMMON_CDECL int X400RecipAddIntParam | ( | struct X400Recipient * | rp, | |
| int | paramtype, | |||
| int | value | |||
| ) |
Add integer-valued parameter to the recipient.
| rp | [in] Message pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter |
| X400COMMON_CDECL int X400RecipAddStrParam | ( | struct X400Recipient * | rp, | |
| int | paramtype, | |||
| const char * | value, | |||
| size_t | length | |||
| ) |
Add string-valued parameter to the recipient.
| rp | [in] Recipient pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter | |
| length | [in] Length of parameter, -1 if NUL terminated |
| X400COMMON_CDECL int X400RecipGetStrParam | ( | struct X400Recipient * | rp, | |
| int | paramtype, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | paramlenp | |||
| ) |
Return a string-valued parameter from the recipient object.
| rp | [in] recipient object pointer | |
| paramtype | [in] type of parameter | |
| buffer | [in/out] address for result | |
| buflen | [in] length of buffer provided | |
| paramlenp | [out] Pointer to receive actual length |
| X400COMMON_CDECL int X400RecipGetIntParam | ( | struct X400Recipient * | rp, | |
| int | paramtype, | |||
| int * | valp | |||
| ) |
Return a integer-valued parameter from the recipient object.
| rp | [in] recipient object pointer | |
| paramtype | [in] type of parameter | |
| valp | [out] Pointer to receive value |
| X400COMMON_CDECL int X400BodypartNew | ( | int | type, | |
| struct X400Bodypart ** | bpp | |||
| ) |
Create a new body part object.
| type | [in] type of bodypart | |
| bpp | [out] Pointer to place for pointer to body part object |
| X400COMMON_CDECL int X400BodypartFree | ( | struct X400Bodypart * | bpp | ) |
Free a body part object.
| bpp | [out] body part object to free |
| X400COMMON_CDECL int X400BodypartAddIntParam | ( | struct X400Bodypart * | bp, | |
| int | paramtype, | |||
| int | value | |||
| ) |
Add integer-valued parameter to the body part.
| bp | [in] Body part pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter |
| X400COMMON_CDECL int X400BodypartAddStrParam | ( | struct X400Bodypart * | bp, | |
| int | paramtype, | |||
| const char * | value, | |||
| size_t | length | |||
| ) |
Add string-valued parameter to the body part.
| bp | [in] Body part pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter | |
| length | [in] Length of parameter, -1 if NUL terminated |
| X400COMMON_CDECL int X400BodypartGetStrParam | ( | struct X400Bodypart * | bp, | |
| int | paramtype, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | paramlenp | |||
| ) |
Return a string-valued parameter from the body part object.
| bp | [in] body part object pointer | |
| paramtype | [in] type of parameter | |
| buffer | [in/out] address for result | |
| buflen | [in] length of buffer provided | |
| paramlenp | [out] Pointer to receive actual length |
| X400COMMON_CDECL int X400BodypartGetIntParam | ( | struct X400Bodypart * | bp, | |
| int | paramtype, | |||
| int * | valp | |||
| ) |
Return a integer-valued parameter from the body part object.
| bp | [in] bodypart object pointer | |
| paramtype | [in] type of parameter | |
| valp | [out] Pointer to receive value |
| X400COMMON_CDECL int X400DefaultsNew | ( | struct x400_attribute ** | ap | ) |
Return a new defaults object.
| ap | [out] Address of pointer to receive defaults object |
| X400COMMON_CDECL int X400DefaultsFree | ( | struct x400_attribute * | ap | ) |
Free a defaults object.
| ap | [in] Address of defaults object to free |
| X400COMMON_CDECL int X400SetStrDefault | ( | struct x400_attribute * | ap, | |
| int | paramtype, | |||
| const char * | value, | |||
| size_t | length | |||
| ) |
Set a string value in a defaults object.
| ap | [in] Defaults object to operate on | |
| paramtype | [in] Type of parameter to set | |
| value | [in] String value to set | |
| length | [in] Length of value to set |
| X400COMMON_CDECL int X400SetIntDefault | ( | struct x400_attribute * | ap, | |
| int | paramtype, | |||
| int | value | |||
| ) |
Set an integer value in a defaults object.
| ap | [in] Defaults object to operate on | |
| paramtype | [in] Type of parameter to set | |
| value | [in] Integer value to set |
| X400COMMON_CDECL const char* X400Error | ( | int | error | ) |
Return string for error code.
| error | [in] error code |
| X400COMMON_CDECL int X400DLExpHistGet | ( | struct X400Message * | mp, | |
| int | entry, | |||
| struct X400DLExpHist ** | hist | |||
| ) |
Create a new DL Expansion History object from the message object.
| mp | [in] message object pointer | |
| entry | [in] DL expansion history element to fetch | |
| hist | [out] pointer to receive new DL Expansion History object |
| X400COMMON_CDECL int X400DLExpHistDelete | ( | struct X400DLExpHist * | hist | ) |
Delete the DL Expansion History object.
| hist | [in] DL Expansion History object to be deleted |
| X400COMMON_CDECL int X400DLGetStrParam | ( | struct X400DLExpHist * | hist, | |
| int | paramtype, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | paramlenp | |||
| ) |
Return a string parameter from the DL Expansion History object.
| hist | [in] DL Expansion History object pointer | |
| paramtype | [in] type of parameter | |
| buffer | [in/out] pointer to receive value | |
| buflen | [in] Size of buffer | |
| paramlenp | [out] pointer to receive actual length |
| X400COMMON_CDECL int X400DLExpHistNew | ( | struct X400DLExpHist ** | histp | ) |
Create a new X400DLExpHist object.
| histp | [out] pointer to receive object |
| X400COMMON_CDECL int X400MsgAddDLExpHist | ( | struct X400Message * | mp, | |
| struct X400DLExpHist * | histp | |||
| ) |
Associates a X400DLExpHist object with a X400Message object.
| mp | [in] Pointer to X400Message object | |
| histp | [in] Pointer to X400DLExpHist object. |
| X400COMMON_CDECL int X400DLExpHistAddStrParam | ( | struct X400DLExpHist * | hist, | |
| int | paramtype, | |||
| const char * | value, | |||
| size_t | length | |||
| ) |
Add string-valued parameter to the X400DLExpHist object.
| hist | [in] X400DLExpHist pointer | |
| paramtype | [in] Type of parameter | |
| value | [in] Value of parameter | |
| length | [in] Length of parameter, -1 if NULL terminated |
| X400COMMON_CDECL int X400TraceInfoGet | ( | struct X400Message * | mp, | |
| int | entry, | |||
| struct X400TraceInfo ** | info, | |||
| int | trace_info_type | |||
| ) |
Get the Trace information object from a message.
| mp | [in] X.400 Message pointer | |
| entry | [in] Trace Info object to use | |
| info | [out] Pointer to trace info object | |
| trace_info_type | [in] Type of trace info object. |
| X400COMMON_CDECL int X400TraceInfoGetStrParam | ( | struct X400TraceInfo * | info, | |
| int | paramtype, | |||
| char * | buffer, | |||
| size_t | buflen, | |||
| size_t * | paramlenp | |||
| ) |
Get string parameter from Trace Information object.
| info | [in] Trace Info object | |
| paramtype | [in] Type of parameter | |
| buffer | [out] Buffer to contain string value | |
| buflen | [in] Length of buffer | |
| paramlenp | [out] Length of require buffer |
| X400COMMON_CDECL int X400TraceInfoGetIntParam | ( | struct X400TraceInfo * | info, | |
| int | paramtype, | |||
| int * | valuep | |||
| ) |
Get int parameter from Trace Information object.
| info | [in] Trace Info object | |
| paramtype | [in] Type of parameter | |
| valuep | [out] pointer to integer to return |
| X400COMMON_CDECL int X400TraceInfoNew | ( | struct X400Message * | msg, | |
| struct X400TraceInfo ** | info, | |||
| int | type | |||
| ) |
Create a new Trace information object.
| msg | [in] X400 message pointer | |
| info | [out] Pointer to trace info object | |
| type | [in] Type info object X400_TRACE_INFO or X400_SUBJECT_TRACE_INFO |
| X400COMMON_CDECL int X400MsgAddTraceInfo | ( | struct X400Message * | mp, | |
| struct X400TraceInfo * | info, | |||
| int | type | |||
| ) |
Create a new Trace information object.
| mp | [in] X400 message pointer | |
| info | [in] Pointer to trace info object | |
| type | [in] Either X400_TRACE_INFO or X400_SUBJECT_TRACE_INFO |
| X400COMMON_CDECL int X400TraceInfoAddStrParam | ( | struct X400TraceInfo *&nb |