--- a/searchengine/cpix/cpix/src/cpix_async.cpp Mon Jul 26 12:27:31 2010 +0530
+++ b/searchengine/cpix/cpix/src/cpix_async.cpp Mon Aug 09 10:51:30 2010 +0530
@@ -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<AsyncJob>
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));
}