oxcfxics.c File Reference

FastTransfer and ICS object routines and Rops. More...

#include "mapiproxy/libmapiserver/libmapiserver.h"
#include "dcesrv_exchange_emsmdb.h"

Functions

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopFastTransferSourceCopyTo (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopFastTransferSourceGetBuffer (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopGetLocalReplicaIds (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSetLocalReplicaMidsetDeleted (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncConfigure (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncGetTransferState (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportDeletes (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportHierarchyChange (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportMessageChange (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportMessageMove (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportReadStateChanges (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncOpenCollector (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamBegin (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamContinue (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamEnd (TALLOC_CTX *mem_ctx, struct emsmdbp_context *emsmdbp_ctx, struct EcDoRpc_MAPI_REQ *mapi_req, struct EcDoRpc_MAPI_REPL *mapi_repl, uint32_t *handles, uint16_t *size)
static struct MessageReadState * get_MessageReadState (TALLOC_CTX *mem_ctx, struct Binary_r *bin)
static enum MAPISTATUS oxcfxics_check_cnset (struct openchangedb_context *oc_ctx, const char *username, struct idset *parsed_idset, const char *label)
static void oxcfxics_push_folderChange (struct emsmdbp_context *emsmdbp_ctx, struct emsmdbp_object_synccontext *synccontext, const char *owner, struct emsmdbp_object *topmost_folder_object, struct oxcfxics_sync_data *sync_data, struct emsmdbp_object *folder_object)
static bool oxcfxics_push_messageChange (struct emsmdbp_context *emsmdbp_ctx, struct emsmdbp_object_synccontext *synccontext, const char *owner, struct oxcfxics_sync_data *sync_data, struct emsmdbp_object *folder_object)

Detailed Description

FastTransfer and ICS object routines and Rops.

Function Documentation

◆ EcDoRpc_RopFastTransferSourceCopyTo()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopFastTransferSourceCopyTo ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopFastTransferSourceCopyTo (0x4d) Rop. This operation initializes a FastTransfer operation to download content from a given messaging object and its descendant subobjects.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the EcDoRpc_RopFastTransferSourceCopyTo EcDoRpc_MAPI_REQ structure
mapi_replpointer to the EcDoRpc_RopFastTransferSourceCopyTo EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopFastTransferSourceGetBuffer()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopFastTransferSourceGetBuffer ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopFastTransferSourceGetBuffer (0x4e) Rop. This operation downloads the next portion of a FastTransfer stream that is produced by a previously configured download operation.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the FastTransferSourceGetBuffer EcDoRpc_MAPI_REQ structure
mapi_replpointer to the FastTransferSourceGetBuffer EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopGetLocalReplicaIds()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopGetLocalReplicaIds ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopGetLocalReplicaIds (0x7f) Rop. This operation reserves a range of IDs to be used by a local replica.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the GetLocalReplicaIds EcDoRpc_MAPI_REQ structure
mapi_replpointer to the GetLocalReplicaIds EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSetLocalReplicaMidsetDeleted()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSetLocalReplicaMidsetDeleted ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc SetLocalReplicaMidsetDeleted (0x93) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SetLocalReplicaMidsetDeleted EcDoRpc_MAPI_REQ
mapi_replpointer to the SetLocalReplicaMidsetDeleted EcDoRpc_MAPI_REPL
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncConfigure()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncConfigure ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncConfigure (0x70) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncConfigure EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncConfigure EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncGetTransferState()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncGetTransferState ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncGetTransferState (0x82) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncGetTransferState EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncGetTransferState EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncImportDeletes()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportDeletes ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc SyncImportDeletes (0x74) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncImportDeletes EcDoRpc_MAPI_REQ
mapi_replpointer to the SyncImportDeletes EcDoRpc_MAPI_REPL
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncImportHierarchyChange()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportHierarchyChange ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncImportHierarchyChange (0x73) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncImportHierarchyChange EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncImportHierarchyChange EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncImportMessageChange()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportMessageChange ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncImportMessageChange (0x72) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncImportMessageChange EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncImportMessageChange EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncImportMessageMove()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportMessageMove ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc SyncImportMessageMove (0x78) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncImportMessageMove EcDoRpc_MAPI_REQ
mapi_replpointer to the SyncImportMessageMove EcDoRpc_MAPI_REPL
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncImportReadStateChanges()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncImportReadStateChanges ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc SyncImportReadStateChanges (0x80) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncImportReadStateChanges EcDoRpc_MAPI_REQ
mapi_replpointer to the SyncImportReadStateChanges EcDoRpc_MAPI_REPL
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

References get_MessageReadState().

◆ EcDoRpc_RopSyncOpenCollector()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncOpenCollector ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncOpenCollector (0x7e) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncOpenCollector EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncOpenCollector EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncUploadStateStreamBegin()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamBegin ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncUploadStateStreamBegin (0x75) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncUploadStateStreamBegin EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncUploadStateStreamBegin EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncUploadStateStreamContinue()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamContinue ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncUploadStateStreamContinue (0x76) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncUploadStateStreamContinue EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncUploadStateStreamContinue EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

◆ EcDoRpc_RopSyncUploadStateStreamEnd()

_PUBLIC_ enum MAPISTATUS EcDoRpc_RopSyncUploadStateStreamEnd ( TALLOC_CTX * mem_ctx,
struct emsmdbp_context * emsmdbp_ctx,
struct EcDoRpc_MAPI_REQ * mapi_req,
struct EcDoRpc_MAPI_REPL * mapi_repl,
uint32_t * handles,
uint16_t * size )

EcDoRpc EcDoRpc_RopSyncUploadStateStreamEnd (0x77) Rop.

Parameters
mem_ctxpointer to the memory context
emsmdbp_ctxpointer to the emsmdb provider context
mapi_reqpointer to the SyncUploadStateStreamEnd EcDoRpc_MAPI_REQ structure
mapi_replpointer to the SyncUploadStateStreamEnd EcDoRpc_MAPI_REPL structure
handlespointer to the MAPI handles array
sizepointer to the mapi_response size to update
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

References oxcfxics_check_cnset().

◆ get_MessageReadState()

struct MessageReadState * get_MessageReadState ( TALLOC_CTX * mem_ctx,
struct Binary_r * bin )
static

Retrieve a MessageReadState structure from a binary blob

Parameters
mem_ctxpointer to the memory context
binpointer to the Binary_r structure with raw MessageReadState data
Returns
Allocated MessageReadState structure on success, otherwise NULL
Note
Developers must free the allocated MessageReadState when finished.

Referenced by EcDoRpc_RopSyncImportReadStateChanges().

◆ oxcfxics_check_cnset()

enum MAPISTATUS oxcfxics_check_cnset ( struct openchangedb_context * oc_ctx,
const char * username,
struct idset * parsed_idset,
const char * label )
static

Checks that change numbers referenced in parsed_idset are valid

Parameters
oc_ctxpointer to openchangedb context
usernamemailbox name of the current logged user
parsed_idsetpointer to the struct idset to be checked
labelA name to identify where the verification is being done, only used for logging in case the verification fails
Returns
MAPI_E_SUCCESS if check succeeded

Referenced by EcDoRpc_RopSyncUploadStateStreamEnd().

◆ oxcfxics_push_folderChange()

void oxcfxics_push_folderChange ( struct emsmdbp_context * emsmdbp_ctx,
struct emsmdbp_object_synccontext * synccontext,
const char * owner,
struct emsmdbp_object * topmost_folder_object,
struct oxcfxics_sync_data * sync_data,
struct emsmdbp_object * folder_object )
static

fixed header props

remaining props

References oxcfxics_push_folderChange().

Referenced by oxcfxics_push_folderChange().

◆ oxcfxics_push_messageChange()

bool oxcfxics_push_messageChange ( struct emsmdbp_context * emsmdbp_ctx,
struct emsmdbp_object_synccontext * synccontext,
const char * owner,
struct oxcfxics_sync_data * sync_data,
struct emsmdbp_object * folder_object )
static

fixed header props

remaining props


Creative Commons License
Creative Commons Attribution icon Creative Commons Share Alike icon
This content is licensed under the Creative Commons
Attribution ShareAlike License v. 3.0:
http://creativecommons.org/licenses/by-sa/3.0/