~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to mapiproxy/libmapiserver/libmapiserver_oxcstor.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        if (response->error_code == ecWrongServer) {
49
49
                size += SIZE_DFLT_ROPLOGON_REDIRECT;
50
50
                size += strlen (response->us.mapi_Logon.ServerName) + 1;
51
 
                return size;
52
 
        }
53
 
 
54
 
        if (request->u.mapi_Logon.LogonFlags & LogonPrivate) {
 
51
        } else if (request->u.mapi_Logon.LogonFlags & LogonPrivate) {
55
52
                size += SIZE_DFLT_ROPLOGON_MAILBOX;
56
53
        } else {
57
54
                size += SIZE_DFLT_ROPLOGON_PUBLICFOLDER;
95
92
        return size;
96
93
}
97
94
 
 
95
/**
 
96
   \details Calculate LongTermIdFromId Rop size
 
97
 
 
98
   \param response pointer to the LongTermIdFromId EcDoRpc_MAPI_REPL structure
 
99
 
 
100
   \return Size of LongTermIdFromId response
 
101
 */
 
102
_PUBLIC_ uint16_t libmapiserver_RopLongTermIdFromId_size(struct EcDoRpc_MAPI_REPL *response)
 
103
{
 
104
        uint16_t        size = SIZE_DFLT_MAPI_RESPONSE;
 
105
 
 
106
        if (!response || response->error_code) {
 
107
                return size;
 
108
        }
 
109
 
 
110
        size += SIZE_DFLT_ROPLONGTERMIDFROMID;
 
111
 
 
112
        return size;
 
113
}
 
114
 
 
115
/**
 
116
   \details Calculate IdFromLongTermId Rop size
 
117
 
 
118
   \param response pointer to the IdFromLongTermId EcDoRpc_MAPI_REPL structure
 
119
 
 
120
   \return Size of IdFromLongTermId response
 
121
 */
 
122
_PUBLIC_ uint16_t libmapiserver_RopIdFromLongTermId_size(struct EcDoRpc_MAPI_REPL *response)
 
123
{
 
124
        uint16_t        size = SIZE_DFLT_MAPI_RESPONSE;
 
125
 
 
126
        if (!response || response->error_code) {
 
127
                return size;
 
128
        }
 
129
 
 
130
        size += SIZE_DFLT_ROPIDFROMLONGTERMID;
 
131
 
 
132
        return size;    
 
133
}
98
134
 
99
135
/**
100
136
   \details Calculate GetPerUserLongTermIds Rop size
167
203
}
168
204
 
169
205
/**
 
206
   \details Calculate GetStoreState Rop size
 
207
 
 
208
   \param response pointer to the GetStoreState EcDoRpc_MAPI_REPL structure
 
209
 
 
210
   \return Size of GetStoreState response
 
211
 */
 
212
_PUBLIC_ uint16_t libmapiserver_RopGetStoreState_size(struct EcDoRpc_MAPI_REPL *response)
 
213
{
 
214
        uint16_t        size = SIZE_DFLT_MAPI_RESPONSE;
 
215
 
 
216
        if (!response || response->error_code) {
 
217
                return size;
 
218
        }
 
219
 
 
220
        size += SIZE_DFLT_ROPGETSTORESTATE;
 
221
 
 
222
        return size;
 
223
}
 
224
 
 
225
/**
170
226
   \details Calculate GetReceiveFolderTable ROP size
171
227
 
172
228
   \param response pointer to the GetReceiveFolderTable EcDoRpc_MAPI_REPL structure
175
231
 */
176
232
_PUBLIC_ uint16_t libmapiserver_RopGetReceiveFolderTable_size(struct EcDoRpc_MAPI_REPL *response)
177
233
{
178
 
        uint32_t        i = 0;
 
234
        int             i = 0;
179
235
        uint16_t        size = SIZE_DFLT_MAPI_RESPONSE;
180
236
 
181
237
        if (!response || response->error_code) {