axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r523898 - /webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c
Date Fri, 30 Mar 2007 00:58:19 GMT
Author: samisa
Date: Thu Mar 29 17:58:18 2007
New Revision: 523898

URL: http://svn.apache.org/viewvc?view=rev&rev=523898
Log:
More stream ops related fixes

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c?view=diff&rev=523898&r1=523897&r2=523898
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c
(original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/libcurl_stream.c
Thu Mar 29 17:58:18 2007
@@ -76,19 +76,10 @@
 	stream_impl->size = size;
 	stream_impl->read_len = 0;
     stream_impl->stream_type = AXIS2_STREAM_MANAGED;
-    stream_impl->stream.ops = (axis2_stream_ops_t *) AXIS2_MALLOC(
-                env->allocator, sizeof(axis2_stream_ops_t));
-    if (! stream_impl->stream.ops)
-    {
-        libcurl_stream_free(&(stream_impl->stream), env);
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        return NULL;
-    }
 
-    stream_impl->stream.ops->free_fn = libcurl_stream_free;
-    stream_impl->stream.ops->read = libcurl_stream_read;
-    stream_impl->stream.ops->write = libcurl_stream_write;
-    stream_impl->stream.ops->skip = libcurl_stream_skip;
+    axis2_stream_set_read(stream_impl, env, libcurl_stream_read);
+    axis2_stream_set_write(stream_impl, env, libcurl_stream_write);
+    axis2_stream_set_skip(stream_impl, env, libcurl_stream_skip);
 
     return &(stream_impl->stream);
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message