You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pi...@apache.org on 2006/08/25 07:59:58 UTC
svn commit: r436669 - in /webservices/axis2/trunk/c:
include/axis2_http_response_writer.h
modules/core/transport/http/receiver/http_response_writer.c
Author: pini
Date: Thu Aug 24 22:59:57 2006
New Revision: 436669
URL: http://svn.apache.org/viewvc?rev=436669&view=rev
Log:
Fomatting fixes and parameter changes to const
Modified:
webservices/axis2/trunk/c/include/axis2_http_response_writer.h
webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_response_writer.c
Modified: webservices/axis2/trunk/c/include/axis2_http_response_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_response_writer.h?rev=436669&r1=436668&r2=436669&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_response_writer.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_response_writer.h Thu Aug 24 22:59:57 2006
@@ -48,71 +48,71 @@
* HTTP Response Writer ops struct
* Encapsulator struct for ops of axis2_http_response_writer
*/
- AXIS2_DECLARE_DATA struct axis2_http_response_writer_ops
+ struct axis2_http_response_writer_ops
{
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- */
- axis2_char_t* (AXIS2_CALL *
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ */
+ axis2_char_t *(AXIS2_CALL *
get_encoding)(
- axis2_http_response_writer_t *response_writer,
+ const axis2_http_response_writer_t *response_writer,
const axis2_env_t *env);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
close)(
axis2_http_response_writer_t *response_writer,
const axis2_env_t *env);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- axis2_status_t (AXIS2_CALL *
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ axis2_status_t (AXIS2_CALL *
flush)(
axis2_http_response_writer_t *response_writer,
const axis2_env_t *env);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @param c
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- axis2_status_t (AXIS2_CALL *
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @param c
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ axis2_status_t (AXIS2_CALL *
write_char)(
axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- char c);
+ const axis2_env_t *env,
+ char c);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @param buf pointer to buf
- * @param offset
- * @param len
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @param buf pointer to buf
+ * @param offset
+ * @param len
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
write_buf)(
axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- char *buf,
- int offset,
+ const axis2_env_t *env,
+ char *buf,
+ int offset,
axis2_ssize_t len);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @param str pointer to str
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @param str pointer to str
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
print_str)(
axis2_http_response_writer_t *response_writer,
@@ -120,23 +120,23 @@
const char *str);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @param i
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @param i
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
print_int)(
axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- int i);
+ const axis2_env_t *env,
+ int i);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @param str pointer to str
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @param str pointer to str
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
println_str)(
axis2_http_response_writer_t *response_writer,
@@ -144,20 +144,20 @@
const char *str);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
println)(
axis2_http_response_writer_t *response_writer,
const axis2_env_t *env);
/**
- * @param response_writer pointer to response writer
- * @param env pointer to environment struct
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ * @param response_writer pointer to response writer
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
free)(
axis2_http_response_writer_t *response_writer,
@@ -167,7 +167,7 @@
/**
* axis2 http response writer
*/
- AXIS2_DECLARE_DATA struct axis2_http_response_writer
+ struct axis2_http_response_writer
{
/** operations of axis2 http response writer */
axis2_http_response_writer_ops_t *ops;
@@ -178,21 +178,21 @@
* @param env pointer to environment struct
* @param stream pointer to stream
*/
- AXIS2_EXTERN axis2_http_response_writer_t * AXIS2_CALL
+ AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
axis2_http_response_writer_create (
- const axis2_env_t *env,
- axis2_stream_t *stream);
+ const axis2_env_t *env,
+ axis2_stream_t *stream);
/**
* @param env pointer to environment struct
* @param stream pointer to stream
* @param encoding pointer to encoding
*/
- AXIS2_EXTERN axis2_http_response_writer_t * AXIS2_CALL
+ AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
axis2_http_response_writer_create_with_encoding(
const axis2_env_t *env,
- axis2_stream_t *stream,
- const axis2_char_t *encoding);
+ axis2_stream_t *stream,
+ const axis2_char_t *encoding);
/************************** Start of function macros **************************/
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_response_writer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_response_writer.c?rev=436669&r1=436668&r2=436669&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_response_writer.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_response_writer.c Thu Aug 24 22:59:57 2006
@@ -13,184 +13,197 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#include <axis2_http_response_writer.h>
#include <axis2_array_list.h>
#include <axis2_http_transport.h>
#include <axis2_string.h>
-/**
+/**
* @brief HTTP Response Writer struct impl
* Axis2 HTTP Response Writer impl
*/
-typedef struct axis2_http_response_writer_impl
- axis2_http_response_writer_impl_t;
-
-struct axis2_http_response_writer_impl
+
+typedef struct axis2_http_response_writer_impl
{
- axis2_http_response_writer_t response_writer;
+ axis2_http_response_writer_t response_writer;
axis2_stream_t *stream;
axis2_char_t *encoding;
-};
+}
+axis2_http_response_writer_impl_t;
#define AXIS2_INTF_TO_IMPL(response_writer) \
((axis2_http_response_writer_impl_t *)(response_writer))
/***************************** Function headers *******************************/
-axis2_char_t* AXIS2_CALL
-axis2_http_response_writer_get_encoding
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_close(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_flush(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_write_char
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, char c);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_write_buf
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, char *buf, int offset,
- axis2_ssize_t len);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_print_str
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- const char *str);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_print_int
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, int i);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_println_str
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- const char *str);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_println
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_free(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env);
-
+axis2_char_t *AXIS2_CALL
+axis2_http_response_writer_get_encoding(
+ const axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_close(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_flush(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_write_char(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ char c);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_write_buf(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ char *buf,
+ int offset,
+ axis2_ssize_t len);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_print_str(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ const char *str);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_print_int(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ int i);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_println_str(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ const char *str);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_println(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_free(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env);
+
/***************************** End of function headers ************************/
-axis2_http_response_writer_t* AXIS2_CALL
-axis2_http_response_writer_create (const axis2_env_t *env, axis2_stream_t *stream)
+axis2_http_response_writer_t *AXIS2_CALL
+axis2_http_response_writer_create(
+ const axis2_env_t *env,
+ axis2_stream_t *stream)
{
AXIS2_ENV_CHECK(env, NULL);
- return axis2_http_response_writer_create_with_encoding(env, stream,
- AXIS2_HTTP_DEFAULT_CONTENT_CHARSET);
-
+ return axis2_http_response_writer_create_with_encoding(env, stream,
+ AXIS2_HTTP_DEFAULT_CONTENT_CHARSET);
+
}
-axis2_http_response_writer_t* AXIS2_CALL
-axis2_http_response_writer_create_with_encoding(const axis2_env_t *env,
- axis2_stream_t *stream, const axis2_char_t *encoding)
+axis2_http_response_writer_t *AXIS2_CALL
+axis2_http_response_writer_create_with_encoding(
+ const axis2_env_t *env,
+ axis2_stream_t *stream,
+ const axis2_char_t *encoding)
{
axis2_http_response_writer_impl_t *response_writer_impl = NULL;
AXIS2_ENV_CHECK(env, NULL);
AXIS2_PARAM_CHECK(env->error, encoding, NULL);
-
- response_writer_impl = (axis2_http_response_writer_impl_t *)AXIS2_MALLOC
- (env->allocator, sizeof(
+
+ response_writer_impl = (axis2_http_response_writer_impl_t *)AXIS2_MALLOC
+ (env->allocator, sizeof(
axis2_http_response_writer_impl_t));
-
+
if(NULL == response_writer_impl)
- {
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
response_writer_impl->stream = stream;
response_writer_impl->encoding = (axis2_char_t *)AXIS2_STRDUP(encoding, env);
-
+
response_writer_impl->response_writer.ops = AXIS2_MALLOC(env->allocator,
- sizeof(axis2_http_response_writer_ops_t));
+ sizeof(axis2_http_response_writer_ops_t));
if(NULL == response_writer_impl->response_writer.ops)
- {
- axis2_http_response_writer_free((axis2_http_response_writer_t*)
- response_writer_impl, env);
+ {
+ axis2_http_response_writer_free((axis2_http_response_writer_t *)
+ response_writer_impl, env);
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
-
- response_writer_impl->response_writer.ops->get_encoding =
- axis2_http_response_writer_get_encoding;
+ }
+
+ response_writer_impl->response_writer.ops->get_encoding =
+ axis2_http_response_writer_get_encoding;
response_writer_impl->response_writer.ops->close =
- axis2_http_response_writer_close;
+ axis2_http_response_writer_close;
response_writer_impl->response_writer.ops->flush =
- axis2_http_response_writer_flush;
- response_writer_impl->response_writer.ops->write_char =
- axis2_http_response_writer_write_char;
+ axis2_http_response_writer_flush;
+ response_writer_impl->response_writer.ops->write_char =
+ axis2_http_response_writer_write_char;
response_writer_impl->response_writer.ops->write_buf =
- axis2_http_response_writer_write_buf;
+ axis2_http_response_writer_write_buf;
response_writer_impl->response_writer.ops->print_str =
- axis2_http_response_writer_print_str;
+ axis2_http_response_writer_print_str;
response_writer_impl->response_writer.ops->print_int =
- axis2_http_response_writer_print_int;
+ axis2_http_response_writer_print_int;
response_writer_impl->response_writer.ops->println_str =
- axis2_http_response_writer_println_str;
+ axis2_http_response_writer_println_str;
response_writer_impl->response_writer.ops->println =
- axis2_http_response_writer_println;
+ axis2_http_response_writer_println;
response_writer_impl->response_writer.ops->free =
- axis2_http_response_writer_free;
-
- return &(response_writer_impl->response_writer);
+ axis2_http_response_writer_free;
+
+ return &(response_writer_impl->response_writer);
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_free(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_free(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env)
{
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_FREE(env->allocator,
- AXIS2_INTF_TO_IMPL(response_writer)->encoding);
-
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_FREE(env->allocator,
+ AXIS2_INTF_TO_IMPL(response_writer)->encoding);
+
if(NULL != response_writer->ops)
AXIS2_FREE(env->allocator, response_writer->ops);
-
- AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(response_writer));
-
- return AXIS2_SUCCESS;
+
+ AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(response_writer));
+
+ return AXIS2_SUCCESS;
}
-axis2_char_t* AXIS2_CALL
-axis2_http_response_writer_get_encoding
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env)
+axis2_char_t *AXIS2_CALL
+axis2_http_response_writer_get_encoding(
+ const axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(response_writer)->encoding;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_close(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_close(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
return AXIS2_SUCCESS;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_flush(axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_flush(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
/*
@@ -200,122 +213,126 @@
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_write_char
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, char c)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_write_char(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ char c)
{
- axis2_http_response_writer_impl_t *writer_impl = NULL;
- int write = -1;
+ axis2_http_response_writer_impl_t *writer_impl = NULL;
+ int write = -1;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
- writer_impl = AXIS2_INTF_TO_IMPL(response_writer);
- if(NULL == writer_impl->stream)
- {
- return AXIS2_FAILURE;
- }
+
+ writer_impl = AXIS2_INTF_TO_IMPL(response_writer);
+ if(NULL == writer_impl->stream)
+ {
+ return AXIS2_FAILURE;
+ }
write = AXIS2_STREAM_WRITE(writer_impl->stream, env, &c, 1);
- if(write < 0)
- {
- return AXIS2_FAILURE;
- }
+ if(write < 0)
+ {
+ return AXIS2_FAILURE;
+ }
return AXIS2_SUCCESS;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_write_buf
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, char *buf, int offset,
- axis2_ssize_t len)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_write_buf(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ char *buf,
+ int offset,
+ axis2_ssize_t len)
{
- axis2_http_response_writer_impl_t *writer_impl = NULL;
- int write = -1;
+ axis2_http_response_writer_impl_t *writer_impl = NULL;
+ int write = -1;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, buf, AXIS2_FAILURE);
-
+
writer_impl = AXIS2_INTF_TO_IMPL(response_writer);
- if(NULL == writer_impl->stream)
- {
- return AXIS2_FAILURE;
- }
+ if(NULL == writer_impl->stream)
+ {
+ return AXIS2_FAILURE;
+ }
write = AXIS2_STREAM_WRITE(writer_impl->stream, env, buf, len);
- if(write < 0)
- {
- return AXIS2_FAILURE;
- }
- /*
- TODO handle offset
- */
+ if(write < 0)
+ {
+ return AXIS2_FAILURE;
+ }
+ /*
+ TODO handle offset
+ */
return AXIS2_SUCCESS;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_print_str
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- const char *str)
-{
- axis2_http_response_writer_impl_t *writer_impl = NULL;
- int write = -1;
- int len = -1;
-
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_print_str(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ const char *str)
+{
+ axis2_http_response_writer_impl_t *writer_impl = NULL;
+ int write = -1;
+ int len = -1;
+
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, str, AXIS2_FAILURE);
writer_impl = AXIS2_INTF_TO_IMPL(response_writer);
-
- len = AXIS2_STRLEN(str);
- if(NULL == writer_impl->stream)
- {
- return AXIS2_FAILURE;
- }
+
+ len = AXIS2_STRLEN(str);
+ if(NULL == writer_impl->stream)
+ {
+ return AXIS2_FAILURE;
+ }
write = AXIS2_STREAM_WRITE(writer_impl->stream, env, str, len);
- if(write < 0)
- {
- return AXIS2_FAILURE;
- }
- return AXIS2_SUCCESS;
+ if(write < 0)
+ {
+ return AXIS2_FAILURE;
+ }
+ return AXIS2_SUCCESS;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_print_int
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env, int i)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_print_int(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ int i)
{
- axis2_char_t int_str[10];
+ axis2_char_t int_str[10];
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
sprintf(int_str, "%10d", i);
return axis2_http_response_writer_print_str(response_writer, env, int_str);
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_println_str
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env,
- const char *str)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_println_str(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env,
+ const char *str)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, str, AXIS2_FAILURE);
-
- if (AXIS2_SUCCESS == axis2_http_response_writer_print_str(response_writer,
- env, str))
+
+ if (AXIS2_SUCCESS == axis2_http_response_writer_print_str(response_writer,
+ env, str))
{
- return axis2_http_response_writer_print_str(response_writer, env,
+ return axis2_http_response_writer_print_str(response_writer, env,
AXIS2_HTTP_CRLF);
}
return AXIS2_FAILURE;
}
-axis2_status_t AXIS2_CALL
-axis2_http_response_writer_println
- (axis2_http_response_writer_t *response_writer,
- const axis2_env_t *env)
+axis2_status_t AXIS2_CALL
+axis2_http_response_writer_println(
+ axis2_http_response_writer_t *response_writer,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- return axis2_http_response_writer_print_str(response_writer, env,
- AXIS2_HTTP_CRLF);
+ return axis2_http_response_writer_print_str(response_writer, env,
+ AXIS2_HTTP_CRLF);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org