libmapi/mapicode.h File Reference

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 Documentation

#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,
 ) 
Value:
do {                            \
        if (x) {                        \
                errno = (e);            \
                if (c) {                \
                        talloc_free(c); \
                }                       \
                return -1;              \
        }                               \
} while (0);
Examples:
fetchappointment.c, and fetchmail.c.
#define MAPI_STATUS_EQUAL ( x,
 )     (MAPI_STATUS_V(x) == MAPI_STATUS_V(y))
#define MAPI_STATUS_IS_ERR (  )     ((MAPI_STATUS_V(x) & 0xc0000000) == 0xc0000000)
#define MAPI_STATUS_IS_ERR_RETURN (  ) 
Value:
do { \
                if (MAPI_STATUS_IS_ERR(x)) {\
                        return x;\
                }\
} while (0)
#define MAPI_STATUS_IS_OK (  )     (MAPI_STATUS_V(x) == 0)
#define MAPI_STATUS_IS_OK_RETURN (  ) 
Value:
do { \
                if (MAPI_STATUS_IS_OK(x)) {\
                        return x;\
                }\
} while (0)
#define MAPI_STATUS_NOT_ERR_RETURN (  ) 
Value:
do { \
                if (!MAPI_STATUS_IS_ERR(x)) {\
                        return x;\
                }\
} while (0)
#define MAPI_STATUS_NOT_OK_RETURN (  ) 
Value:
do { \
                if (!MAPI_STATUS_IS_OK(x)) {\
                        return x;\
                }\
} while (0)
#define MAPI_STATUS_V (  )     ((SCODE)x)
#define OPENCHANGE_CHECK_NOTIFICATION ( s,
 ) 
Value:
do {                                            \
        if (s->notify_ctx)                              \
                ProcessNotification(s->notify_ctx, r);  \
} while (0);

Referenced by Abort(), AbortSubmit(), AddressTypes(), CollapseRow(), CommitStream(), CopyFolder(), CopyProps(), CopyTo(), CopyToStream(), CreateAttach(), CreateBookmark(), CreateFolder(), CreateMessage(), DeleteAttach(), DeleteFolder(), DeleteMessage(), DeletePropertiesNoReplicate(), DeleteProps(), EmptyFolder(), ExpandRow(), FindRow(), FreeBookmark(), GetAttachmentTable(), GetCollapseState(), GetContentsTable(), GetHierarchyTable(), GetIdFromLongTermId(), GetIDsFromNames(), GetLocalReplicaIds(), GetLongTermIdFromId(), GetMessageStatus(), GetNamesFromIDs(), GetOwningServers(), GetPropList(), GetProps(), GetPropsAll(), GetReceiveFolder(), GetReceiveFolderTable(), GetRulesTable(), GetSearchCriteria(), GetStatus(), GetStoreState(), GetStreamSize(), GetTable(), GetTransportFolder(), GetValidAttach(), ModifyRecipients(), ModifyTable(), MoveCopyMessages(), MoveFolder(), OpenAttach(), OpenEmbeddedMessage(), OpenFolder(), OpenMessage(), OpenPublicFolder(), OpenPublicFolderByName(), OpenStream(), OpenUserMailbox(), PublicFolderIsGhosted(), QueryColumns(), QueryNamedProperties(), QueryPosition(), QueryRows(), ReadRecipients(), ReadStream(), Release(), ReloadCachedInformation(), RemoveAllRecipients(), Reset(), Restrict(), SaveChangesAttachment(), SaveChangesMessage(), SeekRow(), SeekRowApprox(), SeekRowBookmark(), SeekStream(), SetCollapseState(), SetColumns(), SetMessageReadFlag(), SetMessageStatus(), SetProps(), SetReadFlags(), SetReceiveFolder(), SetSearchCriteria(), SetSpooler(), SetStreamSize(), SortTable(), SpoolerLockMessage(), SubmitMessage(), TransportSend(), and WriteStream().

#define OPENCHANGE_RETVAL_CALL_IF ( x,
e,
r,
 ) 
Value:
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,
 ) 
#define OPENCHANGE_RETVAL_IF ( x,
e,
 ) 
Value:
do {                            \
        if (x) {                        \
                set_errno(e);           \
                if (c) {                \
                        talloc_free(c); \
                }                       \
                return (e);             \
        }                               \
} while (0);

Referenced by Abort(), AbortSubmit(), AddressTypes(), AddUserPermission(), ChangeProfilePassword(), CloneStream(), CollapseRow(), CommitStream(), CopyFolder(), CopyProps(), CopyTo(), CopyToStream(), CreateAttach(), CreateBookmark(), CreateFolder(), CreateMessage(), CreateProfile(), CreateProfileStore(), DeleteAttach(), DeleteFolder(), DeleteMessage(), DeleteProfile(), DeletePropertiesNoReplicate(), DeleteProps(), DispatchNotifications(), EmptyFolder(), emsmdb_disconnect(), ExpandRow(), FindProfileAttr(), FindRow(), FreeBookmark(), GetABRecipientInfo(), GetAttachmentTable(), GetBestBody(), GetCollapseState(), GetContentsTable(), GetDefaultFolder(), GetDefaultProfile(), GetDefaultPublicFolder(), GetFIDFromEntryID(), GetFolderItemsCount(), GetGALTable(), GetHierarchyTable(), GetIdFromLongTermId(), GetIDsFromNames(), GetLoadparmContext(), GetLocalReplicaIds(), GetLongTermIdFromId(), GetMessageStatus(), GetNamesFromIDs(), GetNewLogonId(), GetOutboxFolder(), GetOwningServers(), GetProfileAttr(), GetProfileTable(), GetPropList(), GetProps(), GetPropsAll(), GetReceiveFolder(), GetReceiveFolderTable(), GetRecipientTable(), GetRulesTable(), GetSearchCriteria(), GetStatus(), GetStoreState(), GetStreamSize(), GetTable(), GetTransportFolder(), GetUserFreeBusyData(), GetValidAttach(), HardDeleteMessage(), HardDeleteMessagesAndSubfolders(), IsFreeBusyConflict(), LoadProfile(), LockRegionStream(), Logoff(), Logon(), mapi_id_array_add_id(), mapi_id_array_add_obj(), mapi_id_array_del_id(), mapi_id_array_del_obj(), mapi_id_array_get(), mapi_id_array_init(), mapi_id_array_release(), mapi_nameid_canonical_add(), mapi_nameid_custom_lid_add(), mapi_nameid_custom_string_add(), mapi_nameid_GetIDsFromNames(), mapi_nameid_lid_add(), mapi_nameid_lid_lookup(), mapi_nameid_lookup_SPropTagArray(), mapi_nameid_lookup_SPropValue(), mapi_nameid_map_SPropTagArray(), mapi_nameid_map_SPropValue(), mapi_nameid_OOM_add(), mapi_nameid_OOM_lookup(), mapi_nameid_SPropTagArray(), mapi_nameid_string_add(), mapi_nameid_string_lookup(), mapi_nameid_unmap_SPropTagArray(), mapi_nameid_unmap_SPropValue(), mapi_object_bookmark_debug(), mapi_object_bookmark_find(), mapi_object_bookmark_get_count(), mapi_object_copy(), mapi_object_init(), mapi_profile_add_string_attr(), mapi_profile_delete_string_attr(), mapi_profile_modify_string_attr(), MAPIAllocateBuffer(), MAPIFreeBuffer(), MAPIInitialize(), MapiLogonProvider(), ModifyRecipients(), ModifyTable(), ModifyUserPermission(), MonitorNotification(), MoveCopyMessages(), MoveFolder(), nspi_CompareMIds(), nspi_DNToMId(), nspi_GetIDsFromNames(), nspi_GetMatches(), nspi_GetNamesFromIDs(), nspi_GetPropList(), nspi_GetProps(), nspi_GetSpecialTable(), nspi_GetTemplateInfo(), nspi_ModLinkAtt(), nspi_ModProps(), nspi_QueryColumns(), nspi_QueryRows(), nspi_ResolveNames(), nspi_ResolveNamesW(), nspi_ResortRestriction(), nspi_SeekEntries(), nspi_unbind(), nspi_UpdateStat(), OpenAttach(), OpenEmbeddedMessage(), OpenFolder(), OpenMessage(), OpenMsgStore(), OpenProfile(), OpenPublicFolder(), OpenPublicFolderByName(), OpenStream(), OpenUserMailbox(), ProcessNetworkProfile(), PublicFolderIsGhosted(), QueryColumns(), QueryNamedProperties(), QueryPosition(), QueryRows(), ReadRecipients(), ReadStream(), RegisterNotification(), Release(), ReloadCachedInformation(), RemoveAllRecipients(), RemoveUserPermission(), RenameProfile(), Reset(), ResolveNames(), Restrict(), RfrGetFQDNFromLegacyDN(), SaveChangesAttachment(), SaveChangesMessage(), SeekRow(), SeekRowApprox(), SeekRowBookmark(), SeekStream(), SetCollapseState(), SetColumns(), SetDefaultProfile(), SetMAPIDebugLevel(), SetMAPIDumpData(), SetMessageReadFlag(), SetMessageStatus(), SetPropertiesNoReplicate(), SetProps(), SetReadFlags(), SetReceiveFolder(), SetRecipientType(), SetSearchCriteria(), SetSpooler(), SetStreamSize(), ShutDown(), SortTable(), SpoolerLockMessage(), SPropTagArray_add(), SRow_addprop(), SubmitMessage(), Subscribe(), TransportNewMail(), TransportSend(), UnlockRegionStream(), Unsubscribe(), WrapCompressedRTFStream(), WriteAndCommitStream(), and WriteStream().

#define SEVERITY_ERROR   1
#define SEVERITY_WARN   0

Typedef Documentation

typedef unsigned long SCODE

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/