async_emsmdb.c File Reference

Async_EMSMDB stack functions. More...

#include "libmapi/libmapi.h"
#include "libmapi/libmapi_private.h"

Functions

enum MAPISTATUS emsmdb_async_waitex (struct emsmdb_context *emsmdb_ctx, uint32_t flagsIn, uint32_t *flagsOut)
 

Detailed Description

Async_EMSMDB stack functions.

Function Documentation

enum MAPISTATUS emsmdb_async_waitex ( struct emsmdb_context emsmdb_ctx,
uint32_t  flagsIn,
uint32_t *  flagsOut 
)

Create an asynchronous wait call

This basically "parks" a call on the AsyncEMSMDB interface to allow asynchronous notification to the client of changes on the server. This call (probably) won't return immediately, but will return when the server makes a change, or 300 seconds (5 minutes) elapses. This call will then need to be re-queued if further change notifications are wanted.

Parameters
emsmdb_ctxpointer to the EMSMDB context
flagsIninput flags (currently must be 0x00000000)
flagsOutoutput flags (zero for a call completion with no changes, non-zero if there are changes)
Returns
MAPI_E_SUCCESS on success, otherwise MAPI error

References emsmdb_context::async_handle, emsmdb_context::async_rpc_connection, emsmdb_context::mem_ctx, and OPENCHANGE_RETVAL_IF.

Referenced by RegisterAsyncNotification().


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/