axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r429585 - in /webservices/axis2/trunk/c/guththila: ./ include/ src/
Date Tue, 08 Aug 2006 05:23:28 GMT
Author: pini
Date: Mon Aug  7 22:23:27 2006
New Revision: 429585

URL: http://svn.apache.org/viewvc?rev=429585&view=rev
Log:
Seperate build system to guththila.

Added:
    webservices/axis2/trunk/c/guththila/AUTHORS
    webservices/axis2/trunk/c/guththila/ChangeLog
    webservices/axis2/trunk/c/guththila/INSTALL   (with props)
    webservices/axis2/trunk/c/guththila/LICENSE
    webservices/axis2/trunk/c/guththila/NEWS
    webservices/axis2/trunk/c/guththila/README
    webservices/axis2/trunk/c/guththila/configure.ac
    webservices/axis2/trunk/c/guththila/include/
    webservices/axis2/trunk/c/guththila/include/guththila_attribute.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_buffer.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_defines.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_depth.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_error.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_namespace.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_reader.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_token.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_unicode.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_writer.h
    webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h   (with props)
    webservices/axis2/trunk/c/guththila/include/guththila_xml_writer.h
Modified:
    webservices/axis2/trunk/c/guththila/Makefile.am
    webservices/axis2/trunk/c/guththila/src/Makefile.am

Added: webservices/axis2/trunk/c/guththila/AUTHORS
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/AUTHORS?rev=429585&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/guththila/ChangeLog
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/ChangeLog?rev=429585&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/guththila/INSTALL
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/INSTALL?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/INSTALL (added)
+++ webservices/axis2/trunk/c/guththila/INSTALL Mon Aug  7 22:23:27 2006
@@ -0,0 +1 @@
+link /usr/share/automake-1.9/INSTALL
\ No newline at end of file

Propchange: webservices/axis2/trunk/c/guththila/INSTALL
------------------------------------------------------------------------------
    svn:special = *

Added: webservices/axis2/trunk/c/guththila/LICENSE
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/LICENSE?rev=429585&view=auto
==============================================================================
    (empty)

Modified: webservices/axis2/trunk/c/guththila/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/Makefile.am?rev=429585&r1=429584&r2=429585&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/Makefile.am (original)
+++ webservices/axis2/trunk/c/guththila/Makefile.am Mon Aug  7 22:23:27 2006
@@ -1,2 +1,8 @@
-TESTS =
-SUBDIRS = src
+#datadir=$(prefix)
+SUBDIRS = src 
+#include_HEADERS=$(top_builddir)/include/*.h
+data_DATA= INSTALL README AUTHORS NEWS LICENSE COPYING
+#EXTRA_DIST = build.sh autogen.sh CREDITS LICENSE
+dist-hook:
+	rm -rf `find $(distdir)/ -type d -name .svn`
+	rm -rf `find $(distdir)/ -type d -name .deps`

Added: webservices/axis2/trunk/c/guththila/NEWS
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/NEWS?rev=429585&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/guththila/README
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/README?rev=429585&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/guththila/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/configure.ac?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/configure.ac (added)
+++ webservices/axis2/trunk/c/guththila/configure.ac Mon Aug  7 22:23:27 2006
@@ -0,0 +1,73 @@
+dnl run autogen.sh to generate the configure script.
+
+AC_PREREQ(2.59)
+
+AC_INIT(guththilac-src, 0.91_pre)
+AC_CANONICAL_SYSTEM
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE([tar-ustar])
+AC_PREFIX_DEFAULT(/usr/local/guththila)
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_CPP
+AM_PROG_LIBTOOL
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+dnl Checks for libraries.
+AC_CHECK_LIB(dl, dlopen)
+
+CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
+if test "$GCC" = "yes"; then
+    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration"
+fi
+LDFLAGS="-lpthread"
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+dnl Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+#AC_CHECK_FUNCS([memmove])
+
+AC_MSG_CHECKING(To Use Axis2 C Util. This is a compulsory module to build Axis2 C)
+AC_ARG_WITH(axis2_util,
+[  --with-axis2_util[=PATH]      use axis2_util.],
+[ case "$withval" in
+  no)
+    AC_MSG_RESULT(no)
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    dnl Find axis2_util include dir in the path
+    if test -d $withval; then
+        axis2_utilinc="-I$withval"
+    dnl else find the axis2_util include dir in $(AXIS2C_HOME)/include
+    elif test -d '$(AXIS2C_HOME)/include'; then
+        axis2_utilinc="-I$(AXIS2C_HOME)/include"
+    else
+        AC_MSG_ERROR(could not find axis2_util. stop)
+    fi
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+
+
+UTILINC=$axis2_utilinc
+
+AC_SUBST(UTILINC)
+
+AC_CONFIG_FILES([Makefile \
+    src/Makefile \
+    ])
+    
+AC_OUTPUT

Added: webservices/axis2/trunk/c/guththila/include/guththila_attribute.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_attribute.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_attribute.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_attribute.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,32 @@
+/*
+ *   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 GUTHTHILA_ATTRIBUTE_H
+#define GUTHTHILA_ATTRIBUTE_H
+
+#include "guththila_token.h"
+
+typedef struct guththila_attribute_s
+{
+    guththila_token_t *prefix;
+    guththila_token_t *name;
+    guththila_token_t *value;
+  guththila_token_t *namespace_uri;
+} guththila_attribute_t;
+
+#endif /* GUTHTHILA_ATTRIBUTE_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_attribute.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_buffer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_buffer.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_buffer.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_buffer.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,49 @@
+/*
+ *   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 GUTHTHILA_BUFFER_H
+#define GUTHTHILA_BUFFER_H
+
+#include <stdlib.h>
+/* #include "guththila_environment.h" */
+#include "guththila_defines.h"
+#include <axis2_env.h>
+
+typedef struct guththila_buffer_s
+{
+    int size;
+    int next;
+    int last;
+    int offset;
+    guththila_char_t *buff;
+} guththila_buffer_t;
+
+
+AXIS2_EXTERN guththila_buffer_t *
+guththila_buffer_create (axis2_env_t * environment, int size);
+
+AXIS2_EXTERN void
+guththila_buffer_free (axis2_env_t * environment,
+                       guththila_buffer_t * name);
+
+AXIS2_EXTERN guththila_buffer_t *
+guththila_buffer_grow (axis2_env_t * environment,
+                       guththila_buffer_t * name);
+
+#endif /* GUTHTHILA_BUFFER_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_buffer.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_defines.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_defines.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_defines.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_defines.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,46 @@
+/*
+* 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 GUTHTHILA_DEFINES_H
+#define GUTHTHILA_DEFINES_H
+/**
+ * @file guththila_defines.h
+ * @brief Useful definitions, which may have platform concerns
+ */
+
+#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+    typedef char guththila_char_t;
+    typedef unsigned char guththila_unsigned_char_t;
+    typedef int guththila_bool_t;
+    typedef int guththila_status_t;
+    typedef unsigned int guththila_ssize_t;
+
+#define GUTHTHILA_TRUE 1
+#define GUTHTHILA_FALSE 0
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* GUTHTHILA_DEFINES_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_defines.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_depth.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_depth.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_depth.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_depth.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,32 @@
+/*
+ *   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 GUTHTHILA_DEPTH_H
+#define GUTHTHILA_DEPTH_H
+
+typedef struct guththila_depth_s
+{
+    int total;
+    int count;
+    int first;
+    
+} guththila_depth_t;
+
+
+#endif /*GUTHTHILA_DEPTH_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_depth.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_error.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_error.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_error.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,104 @@
+/*
+ * 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 GUTHTHILA_ERROR_H
+#define GUTHTHILA_ERROR_H
+
+#include <guththila_defines.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+  typedef enum guththila_status_codes
+    {
+      GUTHTHILA_FAILURE = 0,
+      GUTHTHILA_SUCCESS
+    } guththila_status_codes_t;
+
+  typedef enum guththila_error_codes
+    {
+      GUTHTHILA_ERROR_NONE = 0,
+      GUTHTHILA_ERROR_NO_MEMORY,
+      GUTHTHILA_ERROR_INVALID_NULL_PARAMETER,
+      GUTHTHILA_ERROR_INVALID_ITERATOR_STATE,
+      GUTHTHILA_ERROR_INVALID_NODE_TYPE,
+      GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT,
+      GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM,
+      GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_guththila_namespace_t_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_guththila_namespace_t_NOT_DECLARED,
+      GUTHTHILA_STREAM_WRITER_ERROR_guththila_element_t_guththila_stack_t_EMPTY,
+      GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE,
+      GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT,
+      GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA,
+      GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_ENTITY_REF_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_XML_VERSION,
+      GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL,
+      GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_PREFIX,
+      GUTHTHILA_STREAM_WRITER_ERROR_OUT_OF_MEMORY,
+      GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND,
+      GUTHTHILA_STREAM_READER_ERROR_OUT_OF_MEMORY,
+      GUTHTHILA_ERROR_INVALID_ENCODING_DECLARATION,
+      GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF,
+      GUTHTHILA_ERROR_UNEXPECTED_EOF,
+      GUTHTHILA_ERROR_PROCESS_EQUAL,
+      GUTHTHILA_ERROR_INCORRECT_VERSION_INFO,
+      GUTHTHILA_ERROR_INCORRECT_XML_DECLARATION,
+      GUTHTHILA_ERROR_VERSION_INFO_NOT_FOUND,
+      GUTHTHILA_ERROR_ENCODING_DECLARATION_ERROR,
+      GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES,
+      GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO,
+      GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE,
+      GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION,
+      GUTHTHILA_ERROR_INVALID_NAME_STARTING_CHARACTER,
+      GUTHTHILA_ERROR_QUOTES_NOT_FOUND_BEFORE_ATTRIBUTE_VALUE,
+      GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED,
+      GUTHTHILA_ERROR_END_TAG_NOT_CLOSED,
+      GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT,
+      GUTHTHILA_ERROR_TOKENIZE_ERROR,
+      GUTHTHILA_ERROR_INVALID_TOKEN_TYPE,
+      GUTHTHILA_ERROR_NULL_ATTRIBUTE_NAME,
+      GUTHTHILA_ERROR_NULL_ATTRIBUTE_VALUE,
+      GUTHTHILA_ERROR_NULL_ATTRIBUTE_PREFIX,
+      GUTHTHILA_ERROR_REQUESTED_NUMBER_GREATER_THAN_STACK_SIZE,
+      GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS,
+      GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX,
+      GUTHTHILA_WRITER_ERROR_EMPTY_WRITER,
+      GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS,
+      GUTHTHILA_WRITER_ERROR_INVALID_BUFFER,
+      GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME,
+      GUTHTHILA_WRITER_ERROR_XML_STRING_IN_NAME,
+      GUTHTHILA_WRITER_ERROR_EXCESS_HYPENS_IN_COMMENT,
+      GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_ATTRIBUTE,
+      GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI
+    } guththila_error_codes_t;
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif                          /* GUTHTHILA_ERROR_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_error.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_namespace.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_namespace.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_namespace.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_namespace.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,33 @@
+/*
+ *   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 GUTHTHILA_NAMESPACE_H
+#define GUTHTHILA_NAMESPACE_H
+#include "guththila_token.h"
+
+typedef struct guththila_namespace_s
+{
+    guththila_char_t *name;
+    int length;
+    guththila_char_t *uri;
+    int lengthuri;
+    
+} guththila_namespace_t;
+
+#endif /* GUTHTHILA_NAMESPACE_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_namespace.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_reader.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_reader.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_reader.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,62 @@
+/*
+ *   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 GUTHTHILA_READER_H
+#define GUTHTHILA_READER_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "guththila_buffer.h"
+/* #include "guththila_environment.h" */
+#include "guththila_defines.h"
+#include <axis2_env.h>
+#include "guththila_error.h"
+
+typedef enum guththila_reader_types
+  {
+    GUTHTHILA_FILE_READER = 1,
+    GUTHTHILA_IN_MEMORY_READER
+  } guththila_reader_types_t;
+
+typedef struct guththila_reader_s
+{
+    int guththila_reader_type;
+    
+} guththila_reader_t;
+
+
+AXIS2_EXTERN guththila_reader_t *
+guththila_reader_create_for_file (axis2_env_t * environment,
+                                  char* filename);
+
+AXIS2_EXTERN guththila_reader_t *
+guththila_reader_create_for_memory(axis2_env_t *environment,
+                                   int (*input_read_callback)
+                                       (char *buffer,int size,void* ctx),void *ctx);
+                                   
+AXIS2_EXTERN int
+guththila_reader_read (axis2_env_t * environment,
+                       guththila_char_t * buffer, int offset, int length,
+                       guththila_reader_t * r);
+                       
+AXIS2_EXTERN void
+guththila_reader_free (axis2_env_t * environment,
+                       guththila_reader_t * r);
+
+#endif /* GUTHTHILA_READER_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_reader.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_token.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_token.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_token.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_token.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,123 @@
+/*
+ *   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 GUTHTHILA_TOKEN_H
+#define GUTHTHILA_TOKEN_H
+
+/* #include "guththila_environment.h" */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <axis2_env.h>
+#include <guththila_defines.h>
+
+
+typedef struct guththila_token_s
+{
+    int type;
+    guththila_char_t *start;
+    guththila_char_t *end;
+    int last;
+    int size;
+    int ref;
+} guththila_token_t;
+
+
+enum guththila_token_type
+{
+    Unknown = 1,
+    _name,
+    _value,
+    _attribute,
+    _attribute_value,
+    _prefix,
+    _char_data
+};
+
+
+AXIS2_EXTERN guththila_token_t *
+guththila_token_create_token_buffer (axis2_env_t * environment,
+                                     int size);
+                                     
+AXIS2_EXTERN void
+guththila_token_free_token_buffer (axis2_env_t * environment,
+                                   guththila_token_t * tok);
+AXIS2_EXTERN int
+guththila_token_length (axis2_env_t * environment,
+                        guththila_token_t * tok);
+                        
+AXIS2_EXTERN void
+guththila_token_exception ();
+
+AXIS2_EXTERN guththila_token_t *
+guththila_token_append (axis2_env_t * environment,
+                        guththila_token_t * tok);
+                        
+AXIS2_EXTERN guththila_token_t *
+guththila_token_grow (axis2_env_t * environment,
+                      guththila_token_t * tok);
+                      
+AXIS2_EXTERN guththila_token_t *
+guththila_token_last (axis2_env_t * environment,
+                      guththila_token_t * tok);
+                      
+AXIS2_EXTERN int
+guththila_token_count (axis2_env_t * environment,
+                       guththila_token_t * tok);
+                       
+AXIS2_EXTERN guththila_char_t *
+guththila_token_to_string (axis2_env_t * environment,
+                           guththila_token_t * tok,
+                           int unicode);
+                           
+AXIS2_EXTERN void
+guththila_token_relocate (axis2_env_t * environment,
+                          guththila_token_t * tok,
+                          int offset);
+                          
+                          
+AXIS2_EXTERN int
+guththila_token_compare (axis2_env_t * environment,
+                         guththila_token_t * tok,
+                         const guththila_char_t * st,
+                         int n, 
+                         int unicode_state);
+                         
+                         
+AXIS2_EXTERN guththila_char_t *
+guththila_token_convert_utf16_to_utf8 (axis2_env_t * environment,
+                                       guththila_char_t * buffer,
+                                       int length);
+                                       
+AXIS2_EXTERN int
+guththila_token_length_utf16 (axis2_env_t * environment,
+                              unsigned int utf16_ch);
+                              
+                              
+AXIS2_EXTERN guththila_char_t *
+guththila_token_build_utf8 (axis2_env_t * environment,
+                            unsigned int utf16_ch,
+                            int length);
+                            
+AXIS2_EXTERN guththila_char_t *
+guththila_token_char_ref (axis2_env_t * environment,
+                          guththila_char_t * buffer);
+                          
+
+#endif /* GUTHTHILA_TOKEN_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_token.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_unicode.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_unicode.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_unicode.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_unicode.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,44 @@
+/*
+ *   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 GUTHTHILA_UNICODE_H
+#define GUTHTHILA_UNICODE_H
+
+typedef unsigned char guththila_UTF8_char;
+typedef unsigned short guththila_UTF16_char;
+
+/*! These are the values of UTF-16 Document
+ * After , BOM (Byter Oreder Mark) was determined unicodeState
+ * variable will set to one of the following values
+ * None = Normally treated as Utf-8 Document
+ * LE = Little Endian UTF-16 Document
+ * BE = Big Endian UTF-16 Document
+ * For the time being Endianess make no effect to the parsing  */
+ 
+enum guththila_UTF16_endianess
+{ None = 1, LE, BE };
+
+#ifdef __UNICODE__FUNCTIONS__
+
+guththila_UTF8_char guththila_strlen_unicode (guththila_char_t *);
+
+guththila_char_t *guththila_strdup_unicode (guththila_char_t *, int);
+
+#endif /* __UNICODE__FUNCTIONS__ */
+#endif /* GUTHTHILA_UNICODE_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_unicode.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_writer.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_writer.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_writer.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,65 @@
+/*
+ *   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 GUTHTHILA_WRITER_H
+#define GUTHTHILA_WRITER_H
+#include <stdio.h>
+#include <stdlib.h>
+#include "guththila_buffer.h"
+#include <axis2_env.h>
+#include "guththila_defines.h"
+#include "guththila_error.h"
+
+typedef enum guththila_writer_types
+  {
+    GUTHTHILA_WRITER_CREATE_FOR_FILE = 1,
+    GUTHTHILA_WRITER_CREATE_FOR_MEMORY
+  }guththila_writer_types_t;
+
+typedef struct guththila_writer_s
+{
+  int guththila_writer_type;  
+}guththila_writer_t;
+
+typedef struct guththila_writer_impl_t
+{
+  guththila_writer_t writer;
+  FILE *outputstream;
+}guththila_writer_impl_t; 
+
+AXIS2_EXTERN guththila_writer_t *
+guththila_writer_create_for_file 
+(axis2_env_t *env, 
+char *fp);
+
+
+AXIS2_EXTERN int 
+guththila_writer_write 
+(axis2_env_t *env, 
+char *buffer, 
+int offset, 
+int length, 
+guththila_writer_t *wt);
+
+
+AXIS2_EXTERN void 
+guththila_writer_free 
+(axis2_env_t *env, 
+ guththila_writer_t *wt);
+
+#endif	/* GUTHTHILA_WRITE_H */

Added: webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,617 @@
+/*
+ *   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 GUTHTHILA_XML_PULL_PARSER_H
+#define GUTHTHILA_XML_PULL_PARSER_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+#include "guththila_buffer.h"
+#include "guththila_reader.h"
+#include "guththila_xml_writer.h"
+#include "guththila_token.h"
+#include "guththila_namespace.h"
+#include "guththila_depth.h"
+#include "guththila_attribute.h"
+/* #include "guththila_stack.h */
+#include "guththila_unicode.h"
+/* #include "guththila_environment.h" */
+#include "guththila_defines.h"
+
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_stack.h>
+#include <axis2_string.h>
+
+#define p_FILE __FILE__         /* file name */
+#define LINE __LINE__           /* line number */
+
+/*NOTE:
+ *-----
+ *The above defined p_FILE and LINE should provide as parameters when
+ *   throwing Xml_PullParser_Exception
+ */
+
+enum guththila_status
+  {
+    S_0 = 0,
+    S_1,
+    S_2,
+    S_3,
+    S_4
+  };
+
+enum guththila_event_types
+  {
+    GUTHTHILA_START_DOCUMENT = 0,
+    GUTHTHILA_START_ELEMENT,
+    GUTHTHILA_END_ELEMENT,
+    GUTHTHILA_SPACE,
+    GUTHTHILA_EMPTY_ELEMENT,
+    GUTHTHILA_CHARACTER,
+    GUTHTHILA_ENTITY_REFERANCE,
+    GUTHTHILA_COMMENT
+  };
+
+
+
+
+typedef struct guththila_xml_pull_parser_s
+{
+  guththila_buffer_t *buffer;
+  guththila_reader_t *reader;
+  guththila_xml_writer_t *xsw;
+  guththila_token_t *prefix;
+  guththila_token_t *name;
+  guththila_token_t *value;
+  axis2_stack_t *stack;
+  axis2_stack_t *attrib;
+  axis2_stack_t *namesp;
+  axis2_stack_t *dep;
+  int _next;
+  int offset;
+  int last;
+  int unicode_state;
+  enum guththila_status status;
+  enum guththila_event_types guththila_event;
+} guththila_xml_pull_parser_t;
+
+
+int AXIS2_CALL
+guththila_xml_pull_parser_read (axis2_env_t * environment,
+				guththila_xml_pull_parser_t * p);
+                                
+int AXIS2_CALL
+guththila_xml_pull_parser_next_char (axis2_env_t *environment,
+				     guththila_xml_pull_parser_t * p,
+				     int eof);
+
+int AXIS2_CALL
+guththila_xml_pull_parser_tokenize (axis2_env_t *environment,
+				    guththila_xml_pull_parser_t * p);
+                                        
+                                        
+int AXIS2_CALL
+guththila_xml_pull_parser_exception (guththila_char_t * s, int line, int error_code);
+
+int AXIS2_CALL
+guththila_xml_pull_parser_skip_spaces (axis2_env_t *environment,
+				       guththila_xml_pull_parser_t *p,
+				       int c);
+                                           
+int AXIS2_CALL
+guththila_xml_pull_parser_process_xml_decl(axis2_env_t *environment,
+					   guththila_xml_pull_parser_t * p);
+                                            
+int AXIS2_CALL
+guththila_xml_pull_parser_process_version_info(axis2_env_t * environment,
+                                               guththila_xml_pull_parser_t * p);
+                                               
+                                               
+int AXIS2_CALL
+guththila_xml_pull_parser_process_encoding_decl (axis2_env_t * environment,
+                                                 guththila_xml_pull_parser_t * p);
+                                                 
+int AXIS2_CALL
+guththila_xml_pull_parser_process_sd_decl (axis2_env_t *environment,
+                                           guththila_xml_pull_parser_t *p);
+                                           
+void AXIS2_CALL
+guththila_xml_pull_parser_open_token (axis2_env_t *environment,
+                                      guththila_xml_pull_parser_t *p);
+                                      
+void AXIS2_CALL
+guththila_xml_pull_parser_close_token (axis2_env_t *environment,
+                                       guththila_xml_pull_parser_t *p,
+                                       int t,
+                                       int refer);
+                                       
+guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_last_char (axis2_env_t *environment,
+                                     guththila_xml_pull_parser_t *p);
+                                     
+int AXIS2_CALL
+guththila_xml_pull_parser_process_eq (axis2_env_t *environment,
+                                      guththila_xml_pull_parser_t *p,
+                                      int c);
+                                      
+void AXIS2_CALL
+guththila_xml_pull_parser_add_attribute (axis2_env_t *environment,
+                                         guththila_xml_pull_parser_t *p,
+                                         guththila_token_t * name,
+                                         guththila_token_t * value);
+                                         
+void AXIS2_CALL
+guththila_xml_pull_parser_add_attribute_with_prefix (axis2_env_t *environment,
+						     guththila_xml_pull_parser_t *p,
+						     guththila_token_t * prefix,
+						     guththila_token_t * name,
+						     guththila_token_t * value);
+                                         
+int AXIS2_CALL
+guththila_xml_pull_parser_process_char_data (axis2_env_t *environment,
+                                             guththila_xml_pull_parser_t *p);
+                                             
+int AXIS2_CALL
+guththila_xml_pull_parser_process_space_tag_or_empty_element (axis2_env_t * environment,
+							      guththila_xml_pull_parser_t *p);
+                                             
+int AXIS2_CALL
+guththila_xml_pull_parser_process_comment (axis2_env_t *environment,
+                                           guththila_xml_pull_parser_t *p);
+                                           
+int AXIS2_CALL
+guththila_xml_pull_parser_process_pi (axis2_env_t *environment,
+                                      guththila_xml_pull_parser_t *p);
+                                      
+int AXIS2_CALL
+guththila_xml_pull_parser_process_end_tag (axis2_env_t *environment,
+					   guththila_xml_pull_parser_t *p);
+                                             
+void AXIS2_CALL
+guththila_xml_pull_parser_reset (axis2_env_t *environment,
+                                 guththila_xml_pull_parser_t * p);
+                                 
+int AXIS2_CALL
+guththila_xml_pull_parser_process_name (axis2_env_t *environment,
+                                        guththila_xml_pull_parser_t *p);
+                                        
+int AXIS2_CALL
+guththila_xml_pull_parser_process_attribute (axis2_env_t  *environment,
+                                             guththila_xml_pull_parser_t *p,
+                                             int c);
+                                             
+int AXIS2_CALL
+guththila_xml_pull_parser_process_attribute_value (axis2_env_t * environment,
+						   guththila_xml_pull_parser_t * p,
+						   int c);
+                                              
+                                              
+int AXIS2_CALL
+guththila_xml_pull_parser_is_space (axis2_env_t *environment, int c);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_relocate_tokens (axis2_env_t *environment,
+                                           guththila_xml_pull_parser_t *p,
+                                           int offset);
+                                           
+void AXIS2_CALL
+guththila_xml_pull_parser_shift (axis2_env_t *environment,
+                                 guththila_xml_pull_parser_t * p);
+                                 
+void AXIS2_CALL
+guththila_xml_pull_parser_add_namespace (axis2_env_t *environment,
+                                         guththila_xml_pull_parser_t *p,
+                                         guththila_token_t * name,
+                                         guththila_token_t * uri);
+                                         
+void AXIS2_CALL
+guththila_xml_pull_parser_open_element (axis2_env_t *environment,
+                                        guththila_xml_pull_parser_t *p);
+                                        
+void AXIS2_CALL
+guththila_xml_pull_parser_close_element (axis2_env_t *environment,
+                                         guththila_xml_pull_parser_t *p);
+                                         
+int AXIS2_CALL
+guththila_xml_pull_parser_from_utf16 (axis2_env_t *environment,
+                                      guththila_xml_pull_parser_t *p,
+                                      int eof);
+                                      
+int AXIS2_CALL
+guththila_xml_pull_parser_is_valid_starting_char (axis2_env_t * environment,
+						  guththila_xml_pull_parser_t * p,
+						  int c);
+                                         
+
+AXIS2_EXTERN  int AXIS2_CALL
+guththila_xml_pull_parser_next (axis2_env_t * environment,
+				guththila_xml_pull_parser_t * p);
+                                
+AXIS2_EXTERN guththila_xml_pull_parser_t * AXIS2_CALL
+guththila_xml_pull_parser_create (axis2_env_t * environment,
+				  guththila_reader_t * r);
+                                  
+AXIS2_EXTERN void AXIS2_CALL
+guththila_xml_pull_parser_free (axis2_env_t * environment,
+				guththila_xml_pull_parser_t * parser);
+                               
+AXIS2_EXTERN int AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_count (axis2_env_t * environment,
+					       guththila_xml_pull_parser_t *p);
+                                 
+                                 
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_name (axis2_env_t *environment,
+					      guththila_xml_pull_parser_t * p,
+					      guththila_attribute_t * att);
+                                 
+                                 
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_value (axis2_env_t *environment,
+					       guththila_xml_pull_parser_t *p,
+					       guththila_attribute_t * att);
+                                 
+                                 
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_prefix (axis2_env_t *environment,
+						guththila_xml_pull_parser_t *p,
+						guththila_attribute_t * att);
+                                 
+                                 
+AXIS2_EXTERN guththila_attribute_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute (axis2_env_t *environment,
+					 guththila_xml_pull_parser_t * p);
+                                         
+                                         
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_name_by_number (axis2_env_t * environment,
+							guththila_xml_pull_parser_t * p,
+							int i);
+                                         
+                                         
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_value_by_number (axis2_env_t * environment,
+							 guththila_xml_pull_parser_t * p,
+							 int i);
+                                         
+                                         
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_prefix_by_number (axis2_env_t * environment,
+							  guththila_xml_pull_parser_t * p,
+							  int i);
+                                         
+                                         
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_name (axis2_env_t * environment,
+				    guththila_xml_pull_parser_t * p);
+                                    
+                                    
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_prefix (axis2_env_t * environment,
+				      guththila_xml_pull_parser_t * p);
+                                      
+                                      
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_value (axis2_env_t * environment,
+				     guththila_xml_pull_parser_t * p);
+                                     
+                                     
+AXIS2_EXTERN guththila_namespace_t * AXIS2_CALL
+guththila_xml_pull_parser_get_namespace (axis2_env_t *environment,
+					 guththila_xml_pull_parser_t * p);
+                                         
+                                         
+AXIS2_EXTERN int AXIS2_CALL
+guththila_xml_pull_parser_get_namespace_count (axis2_env_t *environment,
+					       guththila_xml_pull_parser_t *p);
+                                         
+                                         
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_namespace_uri (axis2_env_t *environment,
+					     guththila_xml_pull_parser_t * p,
+					     guththila_namespace_t * ns);
+                                             
+                                             
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_namespace_prefix (axis2_env_t *environment,
+						guththila_xml_pull_parser_t *p,
+						guththila_namespace_t * ns);
+                                     
+
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_namespace_prefix_by_number (axis2_env_t * environment,
+							  guththila_xml_pull_parser_t * p,
+							  int i);
+                                     
+                                     
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_namespace_uri_by_number (axis2_env_t *environment,
+						       guththila_xml_pull_parser_t * p,
+						       int i);
+                                       
+                                       
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_attribute_namespace_by_number (axis2_env_t * environment,
+							     guththila_xml_pull_parser_t * p,
+							     int i);
+
+AXIS2_EXTERN guththila_char_t * AXIS2_CALL
+guththila_xml_pull_parser_get_encoding (axis2_env_t *environment,
+					guththila_xml_pull_parser_t *p);
+
+/* --------------writer api --------------------------*/
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_create_xml_stream_writer (axis2_env_t *environment, 
+						    guththila_xml_pull_parser_t *p, 
+						    char *fp);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_write_to_buffer (axis2_env_t *env, 
+					   guththila_xml_pull_parser_t *p,
+					   const char *buff);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_close_start_element (axis2_env_t *environment,
+					       guththila_xml_pull_parser_t *p);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_close_depth_element (axis2_env_t *environment,
+					       guththila_xml_pull_parser_t *p);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_check_name_validity (axis2_env_t *environment,
+					       guththila_xml_pull_parser_t *p,
+					       char *start_element);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_open_depth_element (axis2_env_t *environment,
+					      guththila_xml_pull_parser_t *p);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_do_write_attribute (axis2_env_t *environment, 
+					      guththila_xml_pull_parser_t *p, 
+					      const char *local_name, 
+					      const char *value);
+
+
+int AXIS2_CALL
+guththila_xml_pull_parser_check_default_namespace (axis2_env_t *env, 
+						   guththila_xml_pull_parser_t *p, 
+						   char *ns_uri);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_do_write_default_namespace (axis2_env_t *env, 
+						      guththila_xml_pull_parser_t *p, 
+						      char *ns_uri);
+
+
+int  AXIS2_CALL
+guththila_xml_pull_parser_check_prefix_validity (axis2_env_t *env, 
+						 guththila_xml_pull_parser_t *p, 
+						 char *prefix, 
+						 char *uri);
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_namespace (axis2_env_t *env, 
+					   guththila_xml_pull_parser_t *p, 
+					   char *prefix, 
+					   char *uri);
+
+
+int  AXIS2_CALL
+guththila_xml_pull_parser_check_xml_stream_writer (axis2_env_t *environment, 
+						   guththila_xml_pull_parser_t *p);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_do_write_namespace (axis2_env_t *env, 
+					      guththila_xml_pull_parser_t *p, 
+					      char *prefix, 
+					      char *uri);
+
+void AXIS2_CALL
+guththila_xml_pull_parser_do_write_attribute_with_prefix_and_namespace (axis2_env_t *env, 
+									guththila_xml_pull_parser_t *p,
+									const char *prefix, 
+									const char *namespace_uri,
+									const char *local_name, 
+									const char *value);
+
+
+int AXIS2_CALL
+guththila_xml_pull_parser_is_exsisting_prefix (axis2_env_t *env, 
+					       guththila_xml_pull_parser_t *p, 
+					       const char *prefix);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_start_document (axis2_env_t *environment, 
+						guththila_xml_pull_parser_t *p);
+
+
+void AXIS2_CALL
+guththila_xml_pull_parser_do_write_attribute_with_prefix (axis2_env_t *env, 
+							  guththila_xml_pull_parser_t *p, 
+							  const char *prefix,
+							  const char *local_name, 
+							  const char *value);
+
+
+AXIS2_EXTERN char * AXIS2_CALL
+guththila_xml_pull_parser_get_prefix_for_namespace (axis2_env_t *env, 
+						    guththila_xml_pull_parser_t *p, 
+						    const char *namespace);
+
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_start_element (axis2_env_t *environment, 
+						     guththila_xml_pull_parser_t *p, 
+						     char *start_element);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_end_element (axis2_env_t *environment, 
+					     guththila_xml_pull_parser_t *p);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_flush (axis2_env_t *environment, 
+				 guththila_xml_pull_parser_t *p);
+
+
+void  AXIS2_CALL
+guththila_xml_pull_parser_close (axis2_env_t *environment, 
+				 guththila_xml_pull_parser_t *p);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_characters (axis2_env_t *environment, 
+					    guththila_xml_pull_parser_t *p,
+					    const char  *buff);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_comment (axis2_env_t *environment, 
+					 guththila_xml_pull_parser_t *p, 
+					 const char *buff);
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_escape_character (axis2_env_t *environment, 
+						  guththila_xml_pull_parser_t *p, 
+						  const char *buff);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_empty_element (axis2_env_t *environment, 
+					       guththila_xml_pull_parser_t *p, 
+					       char *empty_element);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_default_namespace (axis2_env_t *environment, 
+						   guththila_xml_pull_parser_t *p, 
+						   char *namespace_uri);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_namespace (axis2_env_t *environment, 
+					   guththila_xml_pull_parser_t *p, 
+					   char *prefix, char *uri);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_writeAttribute (axis2_env_t *environment, 
+					  guththila_xml_pull_parser_t *p, 
+					  const char *localname, 
+					  const char *value);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_attribute_with_prefix_and_namespace (axis2_env_t *environment, 
+								     guththila_xml_pull_parser_t *p,
+								     const char *prefix, 
+								     const char *namespace_uri,
+								     const char *localname, const char *value);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_attribute_with_prefix (axis2_env_t *environment, 
+						       guththila_xml_pull_parser_t *p,
+						       const char *prefix,
+						       const char *localname, const char *value);
+
+
+AXIS2_EXTERN void   AXIS2_CALL
+guththila_xml_pull_parser_write_attribute_with_namespace (axis2_env_t *environment, 
+							  guththila_xml_pull_parser_t *p,
+							  const char *namespace,
+							  const char *localname, const char *value);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_start_element_with_prefix_and_namespace (axis2_env_t *environment, 
+									 guththila_xml_pull_parser_t *p, 
+									 const char* prefix,
+									 const char *namespace_uri, const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_start_element_with_namespace (axis2_env_t *environment, 
+							      guththila_xml_pull_parser_t *p, 
+							      const char *namespace_uri, 
+							      const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_start_element_with_prefix (axis2_env_t *environment, 
+							   guththila_xml_pull_parser_t *p, 
+							   const char *prefix, 
+							   const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_empty_element_with_prefix_and_namespace (axis2_env_t *environment, 
+									 guththila_xml_pull_parser_t *p, 
+									 const char* prefix,
+									 const char *namespace_uri, 
+									 const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_empty_element_with_namespace (axis2_env_t *environment, 
+							      guththila_xml_pull_parser_t *p, 
+							      const char *namespace_uri, 
+							      const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_empty_element_with_prefix (axis2_env_t *environment, 
+							   guththila_xml_pull_parser_t *p, 
+							   const char *prefix, 
+							   const char *local_name);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_end_document (axis2_env_t *environment, 
+					      guththila_xml_pull_parser_t *p);
+
+
+AXIS2_EXTERN void  AXIS2_CALL
+guththila_xml_pull_parser_write_line (axis2_env_t *environment, 
+				      guththila_xml_pull_parser_t *p, 
+				      char *element_name, 
+				      char *characters);
+
+void
+guththila_xml_pull_parser_xml_writer_free (axis2_env_t *environment,
+					   guththila_xml_pull_parser_t *t);
+
+#endif /* GUTHTHILA_XML_PULL_PARSER_H */

Propchange: webservices/axis2/trunk/c/guththila/include/guththila_xml_pull_parser.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/guththila/include/guththila_xml_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_xml_writer.h?rev=429585&view=auto
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_xml_writer.h (added)
+++ webservices/axis2/trunk/c/guththila/include/guththila_xml_writer.h Mon Aug  7 22:23:27 2006
@@ -0,0 +1,43 @@
+/*
+ *   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 XML_STREAMWRITER_H
+#define XML_STREAMWRITER_H
+#include "guththila_writer.h"
+#include "guththila_buffer.h"
+#include <axis2_env.h>
+#include <axis2_stack.h>
+
+typedef struct guththila_xml_writer_s
+{
+  axis2_stack_t *element;
+  axis2_stack_t *attribute;
+  axis2_stack_t *namespace;
+  axis2_stack_t *depth;
+  guththila_writer_t *writer;
+  guththila_buffer_t *writer_buffer;
+  int next;
+  int last;
+  int offset;
+  int start_element_open;
+  int empty_element_open;
+}guththila_xml_writer_t;
+
+
+
+#endif /* XML_STREAMWRITER_H */

Modified: webservices/axis2/trunk/c/guththila/src/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/Makefile.am?rev=429585&r1=429584&r2=429585&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/Makefile.am (original)
+++ webservices/axis2/trunk/c/guththila/src/Makefile.am Mon Aug  7 22:23:27 2006
@@ -0,0 +1,16 @@
+lib_LTLIBRARIES = libaxis2_guththila.la
+noinst_HEADERS=$(top_builddir)/src/*.h
+
+libaxis2_guththila_la_SOURCES = guththila_buffer.c \
+							guththila_token.c \
+							guththila_writer.c \
+							guththila_xml_pull_parser.c \
+							guththila_reader.c \
+							guththila_unicode.c \
+							guththila_xml_writer.c
+
+libaxis2_guththila_la_LIBADD = -laxis2_util
+
+INCLUDES = -I$(top_builddir)/include \
+			@UTILINC@ 
+



---------------------------------------------------------------------
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