You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/07/14 12:00:47 UTC

svn commit: r421850 - in /webservices/axis2/trunk/c/rampart/include: oxs_axiom.h oxs_axis2_utils.h oxs_buffer.h

Author: damitha
Date: Fri Jul 14 03:00:44 2006
New Revision: 421850

URL: http://svn.apache.org/viewvc?rev=421850&view=rev
Log:
Adding header files. Thanks Kaushalye

Added:
    webservices/axis2/trunk/c/rampart/include/oxs_axiom.h
    webservices/axis2/trunk/c/rampart/include/oxs_axis2_utils.h
    webservices/axis2/trunk/c/rampart/include/oxs_buffer.h

Added: webservices/axis2/trunk/c/rampart/include/oxs_axiom.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_axiom.h?rev=421850&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_axiom.h (added)
+++ webservices/axis2/trunk/c/rampart/include/oxs_axiom.h Fri Jul 14 03:00:44 2006
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef OXS_AXIOM_H
+#define OXS_AXIOM_H
+
+
+/**
+  * @file oxs_axiom.h
+  * @brief 
+  */
+
+#include <axis2_defines.h>
+#include <oxs_strings.h>
+#include <axis2_env.h>
+#include <axis2_util.h>
+#include <axiom_node.h>
+#include <axiom_document.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/*** Forward Declarations ****/
+
+typedef struct axiom_document_t oxs_axiom_document, *oxs_axiom_document_ptr;
+typedef struct axiom_node_t oxs_axiom_node, *oxs_axiom_node_ptr;
+
+/**
+* returns 1 sucess 0 otherwise
+*/
+AXIS2_EXTERN int AXIS2_CALL
+oxs_axiom_check_node_name(const axis2_env_t *env, axiom_node_t* node, axis2_char_t* name, axis2_char_t* ns);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* OXS_AXIOM_H */

Added: webservices/axis2/trunk/c/rampart/include/oxs_axis2_utils.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_axis2_utils.h?rev=421850&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_axis2_utils.h (added)
+++ webservices/axis2/trunk/c/rampart/include/oxs_axis2_utils.h Fri Jul 14 03:00:44 2006
@@ -0,0 +1,44 @@
+/*
+ *   Copyright 2003-2004 The Apache Software Foundation.
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ */
+
+#include <axis2_util.h>
+#include <oxs_buffer.h>
+
+/**
+  * @file 
+  * @brief 
+  */
+#ifndef OXS_AXIS_UTILS
+#define OXS_AXIS_UTILS
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @defgroup
+ * @ingroup
+ * @{
+ */
+/*Encoded input buffer will be placed in the out_buf*/
+AXIS2_EXTERN oxs_buffer_ptr AXIS2_CALL  oxs_base64_encode(axis2_env_t *env,
+    oxs_buffer_ptr in_buf);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif    /* OXS_AXIS_UTILS */

Added: webservices/axis2/trunk/c/rampart/include/oxs_buffer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_buffer.h?rev=421850&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_buffer.h (added)
+++ webservices/axis2/trunk/c/rampart/include/oxs_buffer.h Fri Jul 14 03:00:44 2006
@@ -0,0 +1,109 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef OXS_BUFFER_H
+#define OXS_BUFFER_H
+
+
+/**
+  * @file oxs_buffer.h
+  * @brief 
+  */
+
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_util.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** @defgroup  
+ * @ingroup 
+ * @{
+ */
+
+#define OXS_BUFFER_INITIAL_SIZE 1024
+
+
+typedef struct _oxs_buffer                    oxs_buffer,
+                                *oxs_buffer_ptr;
+
+
+/**
+* Allocate mode for the buffer
+* oxs_alloc_mode_exact : Minimizes the allocated memory size
+* oxs_alloc_mode_double : Minimizes number of Malloc calls
+*/
+typedef enum {
+    oxs_alloc_mode_exact = 0,
+    oxs_alloc_mode_double
+} oxs_AllocMode;
+
+/**
+* Buffer to hold data
+* @data : pointer to buffer data
+* @size : size of the buffer data
+* @max_size : allocated size of the buffer
+* @alloc_mode : Mode of the allcoation
+*/
+typedef struct _oxs_buffer{
+    unsigned char* data;
+    unsigned int size;
+    unsigned int max_size;
+    oxs_AllocMode alloc_mode;
+} ; 
+
+AXIS2_EXTERN oxs_buffer_ptr AXIS2_CALL
+oxs_create_buffer(const axis2_env_t *env, unsigned int size);
+
+AXIS2_EXTERN oxs_buffer_ptr AXIS2_CALL
+oxs_buffer_initialize(const axis2_env_t *env ,oxs_buffer_ptr buf,  unsigned int size);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_free_buffer(const axis2_env_t *env, oxs_buffer_ptr buf);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_buffer_remove_head(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned int size);
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+oxs_buffer_remove_tail(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned int size);
+
+AXIS2_EXTERN oxs_buffer_ptr AXIS2_CALL
+oxs_string_to_buffer(const axis2_env_t *env, axis2_char_t* string);
+
+AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+oxs_buffer_to_string(const axis2_env_t *env, oxs_buffer_ptr buf);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_buffer_append(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned char* data, unsigned int size);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_buffer_prepend(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned char* data, unsigned int size);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_buffer_set_size(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned int size);
+
+AXIS2_EXTERN int AXIS2_CALL
+oxs_buffer_set_max_size(const axis2_env_t *env, oxs_buffer_ptr buf, unsigned int size);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* OXS_BUFFER_H */



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