diff -r afe194b6b1cd -r cf5c74390b98 searchengine/cpix/cpix/src/cpix_async.cpp --- a/searchengine/cpix/cpix/src/cpix_async.cpp Tue Jul 06 15:30:04 2010 +0300 +++ b/searchengine/cpix/cpix/src/cpix_async.cpp Wed Aug 18 10:53:26 2010 +0300 @@ -1107,7 +1107,8 @@ // cpix_Hits * hits_; int32_t index_; - cpix_Document * target_; + cpix_Document ** target_; + int32_t count_; public: @@ -1116,16 +1117,18 @@ // static cpix_JobId CreateJob(cpix_Hits * hits, int32_t index, - cpix_Document * target, + cpix_Document ** target, void * cookie, - cpix_AsyncCallback * callback) + cpix_AsyncCallback * callback, + int32_t count) { std::auto_ptr job(new AsyncHitsDocJob(hits, index, target, cookie, - callback)); + callback, + count )); cpix_JobId rv = job->id(); @@ -1167,15 +1170,17 @@ // AsyncHitsDocJob(cpix_Hits * hits, int32_t index, - cpix_Document * target, + cpix_Document ** target, void * cookie, - cpix_AsyncCallback * callback) + cpix_AsyncCallback * callback, + int32_t count) : AsyncJob(IdxDbHndl(), // default value for handlers cookie, callback), hits_(NULL), index_(index), - target_(target) + target_(target), + count_(count) { // We must make sure that these native objects live even // if the client calls cancel in the middle of operation @@ -1217,7 +1222,8 @@ cpix_Hits_doc(&hits, index_, - target_); + target_, + count_); return hits.err_; } @@ -1841,9 +1847,10 @@ cpix_JobId cpix_Hits_asyncDoc(cpix_Hits * thisHits, int32_t index, - cpix_Document * target, + cpix_Document ** target, void * cookie, - cpix_AsyncCallback * callback) + cpix_AsyncCallback * callback, + int32_t count) { return XlateExc(thisHits, CallFreeFunc(&AsyncHitsDocJob::CreateJob, @@ -1851,7 +1858,8 @@ index, target, cookie, - callback)); + callback, + count)); }