Defines | |
#define | FACILITY_ITF 4 |
#define | MAKE_MAPI_CODE(sev, fac, code) (((SCODE)(sev)<<31)|((SCODE)(fac)<<16)|((SCODE)(code))) |
#define | MAKE_MAPI_E(code) (MAKE_MAPI_CODE(SEVERITY_ERROR, FACILITY_ITF, code)) |
#define | MAKE_MAPI_S(code) (MAKE_MAPI_CODE(SEVERITY_WARN, FACILITY_ITF, code)) |
#define | MAPI_RETVAL_IF(x, e, c) |
#define | MAPI_STATUS_EQUAL(x, y) (MAPI_STATUS_V(x) == MAPI_STATUS_V(y)) |
#define | MAPI_STATUS_IS_ERR(x) ((MAPI_STATUS_V(x) & 0xc0000000) == 0xc0000000) |
#define | MAPI_STATUS_IS_ERR_RETURN(x) |
#define | MAPI_STATUS_IS_OK(x) (MAPI_STATUS_V(x) == 0) |
#define | MAPI_STATUS_IS_OK_RETURN(x) |
#define | MAPI_STATUS_NOT_ERR_RETURN(x) |
#define | MAPI_STATUS_NOT_OK_RETURN(x) |
#define | MAPI_STATUS_V(x) ((SCODE)x) |
#define | OPENCHANGE_CHECK_NOTIFICATION(s, r) |
#define | OPENCHANGE_RETVAL_CALL_IF(x, e, r, c) |
#define | OPENCHANGE_RETVAL_ERR(e, c) |
#define | OPENCHANGE_RETVAL_IF(x, e, c) |
#define | SEVERITY_ERROR 1 |
#define | SEVERITY_WARN 0 |
Typedefs | |
typedef unsigned long | SCODE |
#define FACILITY_ITF 4 |
#define MAKE_MAPI_E | ( | code | ) | (MAKE_MAPI_CODE(SEVERITY_ERROR, FACILITY_ITF, code)) |
#define MAKE_MAPI_S | ( | code | ) | (MAKE_MAPI_CODE(SEVERITY_WARN, FACILITY_ITF, code)) |
#define MAPI_RETVAL_IF | ( | x, | |
e, | |||
c | |||
) |
do { \ if (x) { \ errno = (e); \ if (c) { \ talloc_free(c); \ } \ return -1; \ } \ } while (0);
#define MAPI_STATUS_EQUAL | ( | x, | |
y | |||
) | (MAPI_STATUS_V(x) == MAPI_STATUS_V(y)) |
#define MAPI_STATUS_IS_ERR | ( | x | ) | ((MAPI_STATUS_V(x) & 0xc0000000) == 0xc0000000) |
#define MAPI_STATUS_IS_ERR_RETURN | ( | x | ) |
do { \ if (MAPI_STATUS_IS_ERR(x)) {\ return x;\ }\ } while (0)
#define MAPI_STATUS_IS_OK | ( | x | ) | (MAPI_STATUS_V(x) == 0) |
Referenced by emsmdb_transaction_null(), and nspi_unbind().
#define MAPI_STATUS_IS_OK_RETURN | ( | x | ) |
do { \ if (MAPI_STATUS_IS_OK(x)) {\ return x;\ }\ } while (0)
#define MAPI_STATUS_NOT_ERR_RETURN | ( | x | ) |
do { \ if (!MAPI_STATUS_IS_ERR(x)) {\ return x;\ }\ } while (0)
#define MAPI_STATUS_NOT_OK_RETURN | ( | x | ) |
do { \ if (!MAPI_STATUS_IS_OK(x)) {\ return x;\ }\ } while (0)
#define MAPI_STATUS_V | ( | x | ) | ((SCODE)x) |
#define OPENCHANGE_CHECK_NOTIFICATION | ( | s, | |
r | |||
) |
do { \ if (s->notify_ctx) \ ProcessNotification(s->notify_ctx, r); \ } while (0);
Referenced by GetLocalReplicaIds(), SetLocalReplicaMidsetDeleted(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), ModifyPermissions(), SetSearchCriteria(), GetSearchCriteria(), CreateMessage(), DeleteMessage(), GetMessageStatus(), SetMessageStatus(), MoveCopyMessages(), CreateFolder(), EmptyFolder(), DeleteFolder(), MoveFolder(), CopyFolder(), SetReadFlags(), GetProps(), SetProps(), SaveChangesAttachment(), GetPropList(), GetPropsAll(), DeleteProps(), DeletePropertiesNoReplicate(), GetNamesFromIDs(), GetIDsFromNames(), QueryNamedProperties(), CopyProps(), CopyTo(), OpenPublicFolder(), OpenUserMailbox(), SetColumns(), QueryPosition(), QueryRows(), QueryColumns(), SeekRow(), SeekRowBookmark(), SeekRowApprox(), CreateBookmark(), FreeBookmark(), SortTable(), Reset(), Restrict(), FindRow(), GetStatus(), Abort(), ExpandRow(), CollapseRow(), GetCollapseState(), SetCollapseState(), CreateAttach(), DeleteAttach(), GetAttachmentTable(), GetValidAttach(), OpenAttach(), ModifyRecipients(), ReadRecipients(), RemoveAllRecipients(), SubmitMessage(), AbortSubmit(), SaveChangesMessage(), TransportSend(), SetMessageReadFlag(), OpenEmbeddedMessage(), OpenFolder(), PublicFolderIsGhosted(), OpenPublicFolderByName(), SetReceiveFolder(), GetReceiveFolder(), GetReceiveFolderTable(), GetTransportFolder(), GetOwningServers(), GetStoreState(), OpenMessage(), ReloadCachedInformation(), OpenStream(), ReadStream(), WriteStream(), CommitStream(), GetStreamSize(), SeekStream(), SetStreamSize(), CopyToStream(), Release(), GetLongTermIdFromId(), GetIdFromLongTermId(), AddressTypes(), SetSpooler(), SpoolerLockMessage(), and SetSyncNotificationGuid().
#define OPENCHANGE_RETVAL_CALL_IF | ( | x, | |
e, | |||
r, | |||
c | |||
) |
do { \ if (x) { \ set_errno(e); \ if (r) { \ talloc_free(r); \ } \ if (c) { \ talloc_free(c); \ } \ return (e); \ } \ } while (0);
Referenced by OpenUserMailbox().
#define OPENCHANGE_RETVAL_ERR | ( | e, | |
c | |||
) |
do { \ set_errno(e); \ if (c) { \ talloc_free(c); \ } \ return (e); \ } while (0);
Referenced by Logon(), CreateProfileStore(), GetDefaultProfile(), uncompress_rtf(), mapi_nameid_OOM_lookup(), mapi_nameid_lid_lookup(), mapi_nameid_string_lookup(), GetDefaultPublicFolder(), GetDefaultFolder(), and GetBestBody().
#define OPENCHANGE_RETVAL_IF | ( | x, | |
e, | |||
c | |||
) |
do { \ if (x) { \ set_errno(e); \ if (c) { \ talloc_free(c); \ } \ return (e); \ } \ } while (0);
Referenced by emsmdb_async_waitex(), MapiLogonProvider(), MAPIInitialize(), SetMAPIDumpData(), SetMAPIDebugLevel(), GetLoadparmContext(), emsmdb_disconnect(), emsmdb_async_connect(), GetUserFreeBusyData(), IsFreeBusyConflict(), GetLocalReplicaIds(), FXDestConfigure(), TellVersion(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), FXGetBuffer(), FXPutBuffer(), ICSSyncConfigure(), ICSSyncUploadStateBegin(), ICSSyncUploadStateContinue(), ICSSyncUploadStateEnd(), SetLocalReplicaMidsetDeleted(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), ResolveNames(), GetGALTable(), GetGALTableCount(), GetABRecipientInfo(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), ModifyPermissions(), SetSearchCriteria(), GetSearchCriteria(), CreateMessage(), DeleteMessage(), HardDeleteMessage(), GetMessageStatus(), SetMessageStatus(), MoveCopyMessages(), CreateFolder(), EmptyFolder(), DeleteFolder(), MoveFolder(), CopyFolder(), SetReadFlags(), HardDeleteMessagesAndSubfolders(), GetProps(), SetProps(), SaveChangesAttachment(), GetPropList(), GetPropsAll(), DeleteProps(), SetPropertiesNoReplicate(), DeletePropertiesNoReplicate(), GetNamesFromIDs(), GetIDsFromNames(), QueryNamedProperties(), CopyProps(), CopyTo(), OpenPublicFolder(), OpenMsgStore(), OpenUserMailbox(), Subscribe(), Unsubscribe(), DispatchNotifications(), MonitorNotification(), SetColumns(), QueryPosition(), QueryRows(), QueryColumns(), SeekRow(), SeekRowBookmark(), SeekRowApprox(), CreateBookmark(), FreeBookmark(), SortTable(), Reset(), Restrict(), FindRow(), GetStatus(), Abort(), ExpandRow(), CollapseRow(), GetCollapseState(), SetCollapseState(), CreateAttach(), DeleteAttach(), GetAttachmentTable(), GetValidAttach(), OpenAttach(), SetRecipientType(), ModifyRecipients(), ReadRecipients(), RemoveAllRecipients(), SubmitMessage(), AbortSubmit(), SaveChangesMessage(), TransportSend(), GetRecipientTable(), SetMessageReadFlag(), OpenEmbeddedMessage(), OpenFolder(), PublicFolderIsGhosted(), OpenPublicFolderByName(), SetReceiveFolder(), GetReceiveFolder(), GetReceiveFolderTable(), GetTransportFolder(), GetOwningServers(), GetStoreState(), GetOutboxFolder(), TransportNewMail(), RfrGetFQDNFromLegacyDN(), Logon(), Logoff(), GetNewLogonId(), RegisterNotification(), RegisterAsyncNotification(), mapi_profile_add_string_attr(), mapi_profile_modify_string_attr(), mapi_profile_delete_string_attr(), CreateProfileStore(), OpenProfile(), LoadProfile(), ShutDown(), CreateProfile(), DeleteProfile(), ChangeProfilePassword(), CopyProfile(), DuplicateProfile(), RenameProfile(), SetDefaultProfile(), GetDefaultProfile(), GetProfileTable(), GetProfileAttr(), FindProfileAttr(), ProcessNetworkProfile(), OpenMessage(), ReloadCachedInformation(), OpenStream(), ReadStream(), WriteStream(), CommitStream(), GetStreamSize(), SeekStream(), SetStreamSize(), CopyToStream(), LockRegionStream(), UnlockRegionStream(), CloneStream(), WriteAndCommitStream(), MAPIAllocateBuffer(), MAPIFreeBuffer(), Release(), GetLongTermIdFromId(), GetIdFromLongTermId(), AddressTypes(), SetSpooler(), SpoolerLockMessage(), OptionsData(), WrapCompressedRTFStream(), mapi_id_array_init(), mapi_id_array_release(), mapi_id_array_get(), mapi_id_array_add_obj(), mapi_id_array_add_id(), mapi_id_array_del_id(), mapi_id_array_del_obj(), mapi_nameid_OOM_add(), mapi_nameid_lid_add(), mapi_nameid_string_add(), mapi_nameid_custom_lid_add(), mapi_nameid_custom_string_add(), mapi_nameid_canonical_add(), mapi_nameid_OOM_lookup(), mapi_nameid_lid_lookup(), mapi_nameid_string_lookup(), mapi_nameid_SPropTagArray(), mapi_nameid_map_SPropTagArray(), mapi_nameid_unmap_SPropTagArray(), mapi_nameid_map_SPropValue(), mapi_nameid_unmap_SPropValue(), mapi_nameid_lookup_SPropTagArray(), mapi_nameid_lookup_SPropValue(), mapi_nameid_GetIDsFromNames(), mapi_object_copy(), mapi_object_bookmark_find(), mapi_object_bookmark_get_count(), mapi_object_bookmark_debug(), SyncOpenAdvisor(), SetSyncNotificationGuid(), nspi_unbind(), nspi_UpdateStat(), nspi_QueryRows(), nspi_SeekEntries(), nspi_GetMatches(), nspi_ResortRestriction(), nspi_DNToMId(), nspi_GetPropList(), nspi_GetProps(), nspi_CompareMIds(), nspi_ModProps(), nspi_GetSpecialTable(), nspi_GetTemplateInfo(), nspi_ModLinkAtt(), nspi_QueryColumns(), nspi_GetNamesFromIDs(), nspi_GetIDsFromNames(), nspi_ResolveNames(), nspi_ResolveNamesW(), SPropTagArray_add(), SRow_addprop(), GetDefaultPublicFolder(), GetDefaultFolder(), GetFolderItemsCount(), AddUserPermission(), ModifyUserPermission(), RemoveUserPermission(), GetBestBody(), and GetFIDFromEntryID().
#define SEVERITY_ERROR 1 |
#define SEVERITY_WARN 0 |
typedef unsigned long SCODE |
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |