/usr/include/libmapi/mapi_object.h is in libmapi-dev 1:2.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /*
OpenChange MAPI implementation.
Copyright (C) Julien Kerihuel 2007-2009.
Copyright (C) Fabien Le Mentec 2007.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MAPI_OBJECT_H
#define __MAPI_OBJECT_H
#include <gen_ndr/exchange.h>
/* forward declarations
*/
struct mapi_session;
/* generic mapi object definition
*/
typedef uint64_t mapi_id_t;
typedef uint32_t mapi_handle_t;
typedef struct mapi_object {
bool store;
uint64_t id;
mapi_handle_t handle;
uint8_t logon_id;
struct mapi_session *session;
void *private_data;
} mapi_object_t;
/*
* Interface objects
*/
/**
IMsgStore store type
*/
enum MsgStoreType {
PrivateFolderWithoutCachedFids, /*!< Private folder store without the cached folder values filled in */
PrivateFolderWithCachedFids, /*!< Private folder store with the cached folder values filled in */
PublicFolder /*!< Public folder store */
};
/**
* IMsgStore object
*/
typedef struct mapi_obj_store
{
enum MsgStoreType store_type;
/* Mailbox */
uint64_t fid_mailbox_root;
uint64_t fid_deferred_actions;
uint64_t fid_spooler_queue;
uint64_t fid_top_information_store;
uint64_t fid_inbox;
uint64_t fid_outbox;
uint64_t fid_sent_items;
uint64_t fid_deleted_items;
uint64_t fid_common_views;
uint64_t fid_schedule;
uint64_t fid_search;
uint64_t fid_views;
uint64_t fid_shortcuts;
/* Public Folders */
uint64_t fid_pf_public_root;
uint64_t fid_pf_ipm_subtree;
uint64_t fid_pf_non_ipm_subtree;
uint64_t fid_pf_EFormsRegistryRoot;
uint64_t fid_pf_FreeBusyRoot;
uint64_t fid_pf_OfflineAB;
uint64_t fid_pf_EFormsRegistry;
uint64_t fid_pf_LocalSiteFreeBusy;
uint64_t fid_pf_LocalSiteOfflineAB;
uint64_t fid_pf_NNTPArticle;
/* cached data */
uint64_t fid_calendar;
uint64_t fid_contact;
uint64_t fid_journal;
uint64_t fid_note;
uint64_t fid_task;
uint64_t fid_drafts;
/* GUID */
struct GUID guid;
} mapi_object_store_t;
/**
* IMAPITable object
*/
typedef struct mapi_obj_bookmark {
uint32_t index;
struct SBinary_short bin;
struct mapi_obj_bookmark *prev;
struct mapi_obj_bookmark *next;
} mapi_object_bookmark_t;
typedef struct mapi_obj_table {
uint32_t bk_last;
mapi_object_bookmark_t *bookmark;
struct SPropTagArray proptags;
} mapi_object_table_t;
typedef struct mapi_obj_message {
uint32_t cValues;
char *SubjectPrefix;
char *NormalizedSubject;
struct SPropTagArray SPropTagArray;
struct SRowSet SRowSet;
} mapi_object_message_t;
#endif /*!__MAPI_OBJECT_H */
|