public OCPF write API More...
#include "libocpf/ocpf.h"Functions | |
| _PUBLIC_ int | ocpf_write_auto (uint32_t context_id, mapi_object_t *obj_message, struct mapi_SPropValue_array *mapi_lpProps) |
| _PUBLIC_ int | ocpf_write_commit (uint32_t context_id) |
| _PUBLIC_ int | ocpf_write_init (uint32_t context_id, mapi_id_t folder_id) |
public OCPF write API
| _PUBLIC_ int ocpf_write_auto | ( | uint32_t | context_id, |
| mapi_object_t * | obj_message, | ||
| struct mapi_SPropValue_array * | mapi_lpProps | ||
| ) |
Create the OCPF structure required for the commit operation
This function process properties and named properties from the specified mapi_SPropValue_array and generates an OCPF structure with all the attributes required to create an OCPF file in the commit operation.
| context_id | the identifier representing the context |
| obj_message | the message object |
| mapi_lpProps | the array of mapi properties returned by GetPropsAll |
References ocpf_context_search_by_context_id().
| _PUBLIC_ int ocpf_write_commit | ( | uint32_t | context_id | ) |
Write OCPF structure to OCPF file
This function dumps the OCPF structure content into the OCPF file defined in ocpf_write_init.
| context_id | the identifier representing the context |
References ocpf_context_search_by_context_id().
| _PUBLIC_ int ocpf_write_init | ( | uint32_t | context_id, |
| mapi_id_t | folder_id | ||
| ) |
Specify the OCPF file name to write
Specify the ocpf file to create
| context_id | the identifier representing the context |
| folder_id | the folder |
References ocpf_context_search_by_context_id().
|
|
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |