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

« back to all changes in this revision

Viewing changes to mapiproxy/modules/mpm_cache.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:
3
3
 
4
4
   OpenChange Project
5
5
 
6
 
   Copyright (C) Julien Kerihuel 2008-2011
 
6
   Copyright (C) Julien Kerihuel 2008
7
7
 
8
8
   This program is free software; you can redistribute it and/or modify
9
9
   it under the terms of the GNU General Public License as published by
786
786
        struct mpm_stream       *stream;
787
787
        struct mapi_response    *mapi_response;
788
788
        struct ReadStream_repl  response;
789
 
        struct ReadStream_req   request;
 
789
        /* struct ReadStream_req        request; */
790
790
        char                    *server_id_printable = NULL;
791
791
 
792
792
        mapi_response = EcDoRpc->out.mapi_response;
793
793
        response = mapi_repl.u.mapi_ReadStream;
794
 
        request = mapi_req.u.mapi_ReadStream;
 
794
        /* request = mapi_req.u.mapi_ReadStream; */
795
795
 
796
796
        /* Check if the handle is registered */
797
797
        for (stream = mpm->streams; stream; stream = stream->next) {
1024
1024
                                                mapi_response->mapi_repl[i].handle_idx = mapi_req[i].handle_idx;
1025
1025
                                                mapi_response->mapi_repl[i].error_code = MAPI_E_SUCCESS;
1026
1026
                                                mapi_response->mapi_repl[i].u.mapi_ReadStream.data.length = 0;
1027
 
                                                mapi_response->mapi_repl[i].u.mapi_ReadStream.data.data = (uint8_t *) talloc_size(mem_ctx, request.ByteCount);
 
1027
                                                mapi_response->mapi_repl[i].u.mapi_ReadStream.data.data = talloc_size(mem_ctx, request.ByteCount);
1028
1028
                                                mpm_cache_stream_read(stream, (size_t) request.ByteCount, 
1029
1029
                                                                      &mapi_response->mapi_repl[i].u.mapi_ReadStream.data.length,
1030
1030
                                                                      &mapi_response->mapi_repl[i].u.mapi_ReadStream.data.data);
1154
1154
{
1155
1155
        char                    *database;
1156
1156
        NTSTATUS                status;
 
1157
        struct loadparm_context *lp_ctx;
1157
1158
 
1158
1159
        mpm = talloc_zero(dce_ctx, struct mpm_cache);
1159
1160
        if (!mpm) return NT_STATUS_NO_MEMORY;
1187
1188
                return NT_STATUS_NO_MEMORY;
1188
1189
        }
1189
1190
 
 
1191
        lp_ctx = loadparm_init(dce_ctx);
 
1192
        lpcfg_load_default(lp_ctx);
1190
1193
        dcerpc_init();
1191
1194
 
1192
1195
        talloc_free(database);