/[rdiff-backup]/rdiff-backup/rdiff_backup/_librsyncmodule.c
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/_librsyncmodule.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ben, Thu Jun 27 20:21:23 2002 UTC revision 1.2 by bescoto, Thu Jan 2 01:07:32 2003 UTC
# Line 70  static PyObject * Line 70  static PyObject *
70  _librsync_sigmaker_cycle(_librsync_SigMakerObject *self, PyObject *args)  _librsync_sigmaker_cycle(_librsync_SigMakerObject *self, PyObject *args)
71  {  {
72    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];
73    long inbuf_length;    int inbuf_length;
74    rs_buffers_t buf;    rs_buffers_t buf;
75    rs_result result;    rs_result result;
76    
# Line 91  _librsync_sigmaker_cycle(_librsync_SigMa Line 91  _librsync_sigmaker_cycle(_librsync_SigMa
91    }    }
92    
93    return Py_BuildValue("(ils#)", (result == RS_DONE),    return Py_BuildValue("(ils#)", (result == RS_DONE),
94                                             inbuf_length - (long)buf.avail_in,                                             (long)inbuf_length - (long)buf.avail_in,
95                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);
96  }  }
97    
# Line 168  _librsync_new_deltamaker(PyObject* self, Line 168  _librsync_new_deltamaker(PyObject* self,
168  {  {
169    _librsync_DeltaMakerObject* dm;    _librsync_DeltaMakerObject* dm;
170    char *sig_string, outbuf[RS_JOB_BLOCKSIZE];    char *sig_string, outbuf[RS_JOB_BLOCKSIZE];
171    long sig_length;    int sig_length;
172    rs_job_t *sig_loader;    rs_job_t *sig_loader;
173    rs_signature_t *sig_ptr;    rs_signature_t *sig_ptr;
174    rs_buffers_t buf;    rs_buffers_t buf;
# Line 224  static PyObject * Line 224  static PyObject *
224  _librsync_deltamaker_cycle(_librsync_DeltaMakerObject *self, PyObject *args)  _librsync_deltamaker_cycle(_librsync_DeltaMakerObject *self, PyObject *args)
225  {  {
226    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];
227    long inbuf_length;    int inbuf_length;
228    rs_buffers_t buf;    rs_buffers_t buf;
229    rs_result result;    rs_result result;
230    
# Line 244  _librsync_deltamaker_cycle(_librsync_Del Line 244  _librsync_deltamaker_cycle(_librsync_Del
244    }    }
245    
246    return Py_BuildValue("(ils#)", (result == RS_DONE),    return Py_BuildValue("(ils#)", (result == RS_DONE),
247                                             inbuf_length - (long)buf.avail_in,                                             (long)inbuf_length - (long)buf.avail_in,
248                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);
249  }  }
250    
# Line 360  static PyObject * Line 360  static PyObject *
360  _librsync_patchmaker_cycle(_librsync_PatchMakerObject *self, PyObject *args)  _librsync_patchmaker_cycle(_librsync_PatchMakerObject *self, PyObject *args)
361  {  {
362    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];    char *inbuf, outbuf[RS_JOB_BLOCKSIZE];
363    long inbuf_length;    int inbuf_length;
364    rs_buffers_t buf;    rs_buffers_t buf;
365    rs_result result;    rs_result result;
366    
# Line 380  _librsync_patchmaker_cycle(_librsync_Pat Line 380  _librsync_patchmaker_cycle(_librsync_Pat
380    }    }
381    
382    return Py_BuildValue("(ils#)", (result == RS_DONE),    return Py_BuildValue("(ils#)", (result == RS_DONE),
383                                             inbuf_length - (long)buf.avail_in,                                             (long)inbuf_length - (long)buf.avail_in,
384                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);                                             outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out);
385  }  }
386    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26