[Cherokee-commits] [2852] cherokee/trunk/cherokee:

SVN at cherokee-project.com SVN at cherokee-project.com
Sun Feb 8 22:05:06 CET 2009


Revision: 2852
          http://svn.cherokee-project.com/changeset/2852
Author:   alo
Date:     2009-02-08 22:05:06 +0100 (Sun, 08 Feb 2009)

Log Message:
-----------


Modified Paths:
--------------
    cherokee/trunk/cherokee/handler_file.c
    cherokee/trunk/cherokee/handler_file.h

Modified: cherokee/trunk/cherokee/handler_file.c
===================================================================
--- cherokee/trunk/cherokee/handler_file.c	2009-02-07 21:45:27 UTC (rev 2851)
+++ cherokee/trunk/cherokee/handler_file.c	2009-02-08 21:05:06 UTC (rev 2852)
@@ -797,3 +797,14 @@
 	return ret_ok;
 }
 
+ret_t
+cherokee_handler_file_seek (cherokee_handler_file_t *hdl, 
+			    off_t                    start)
+{
+	cherokee_connection_t *conn = HANDLER_CONN(hdl);
+	
+	conn->range_start = start;
+	hdl->offset       = start;
+
+	return ret_ok;
+}

Modified: cherokee/trunk/cherokee/handler_file.h
===================================================================
--- cherokee/trunk/cherokee/handler_file.h	2009-02-07 21:45:27 UTC (rev 2851)
+++ cherokee/trunk/cherokee/handler_file.h	2009-02-08 21:05:06 UTC (rev 2852)
@@ -84,5 +84,6 @@
 /* Extre methods
  */
 ret_t cherokee_handler_file_custom_init (cherokee_handler_file_t *hdl, cherokee_buffer_t *local_file);
+ret_t cherokee_handler_file_seek        (cherokee_handler_file_t *hdl, off_t start);
 					
 #endif /* CHEROKEE_HANDLER_FILE_H */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.octality.com/pipermail/cherokee-commits/attachments/20090208/4af7defe/attachment.htm 


More information about the Cherokee-commits mailing list