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 sa...@apache.org on 2005/09/27 06:46:02 UTC
svn commit: r291822 - in /webservices/axis2/trunk/c:
include/axis2c_om_namespace.h modules/xml/om/src/axis2c_om_namespace.c
modules/xml/om/src/om_namespace.c
Author: samisa
Date: Mon Sep 26 21:45:55 2005
New Revision: 291822
URL: http://svn.apache.org/viewcvs?rev=291822&view=rev
Log:
fixed axis2c prefix convention problems
Added:
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_namespace.c
Removed:
webservices/axis2/trunk/c/modules/xml/om/src/om_namespace.c
Modified:
webservices/axis2/trunk/c/include/axis2c_om_namespace.h
Modified: webservices/axis2/trunk/c/include/axis2c_om_namespace.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_namespace.h?rev=291822&r1=291821&r2=291822&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_namespace.h (original)
+++ webservices/axis2/trunk/c/include/axis2c_om_namespace.h Mon Sep 26 21:45:55 2005
@@ -14,21 +14,19 @@
* limitations under the License.
*/
-#ifndef _AXISC_OM_NAMESPACE_H_
-#define _AXISC_OM_NAMESPACE_H_
+#ifndef AXIS2C_OM_NAMESPACE_H
+#define AXIS2C_OM_NAMESPACE_H
-struct om_namespace_s;
-typedef struct om_namespace_s om_namespace_t;
-
-struct om_namespace_s{
- char *uri;
- char *prefix;
-};
-
-
-om_namespace_t *create_om_namespace(const char *uri,const char *prefix);
-void free_om_namespace(om_namespace_t *ns);
-int om_namespace_equals(om_namespace_t *ns1,om_namespace_t *ns2);
-
-#endif // _AXISC_OM_NAMESPACE
+typedef struct axis2c_om_namespace_t {
+ char *uri;
+ char *prefix;
+} axis2c_om_namespace_t;
+
+
+axis2c_om_namespace_t *axis2c_create_om_namespace(const char *uri,
+ const char *prefix);
+void axis2c_free_om_namespace(axis2c_om_namespace_t * ns);
+int axis2c_om_namespace_equals(axis2c_om_namespace_t * ns1,
+ axis2c_om_namespace_t * ns2);
+#endif // AXIS2C_OM_NAMESPACE
Added: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_namespace.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_namespace.c?rev=291822&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_namespace.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_namespace.c Mon Sep 26 21:45:55 2005
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ */
+
+#include <axis2c_om_namespace.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+
+
+axis2c_om_namespace_t *axis2c_create_om_namespace(const char *uri,
+ const char *prefix)
+{
+ axis2c_om_namespace_t *ns =
+ (axis2c_om_namespace_t *) malloc(sizeof(axis2c_om_namespace_t));
+ if (!ns)
+ {
+ //fprintf(stderr,"Couldnot allocate momery");
+ return NULL;
+ }
+ ns->uri = strdup(uri);
+ ns->prefix = strdup(prefix);
+ return ns;
+}
+
+
+
+void axis2c_free_om_namespace(axis2c_om_namespace_t * ns)
+{
+ if (ns)
+ free(ns);
+}
+
+int axis2c_om_namespace_equals(axis2c_om_namespace_t * ns1,
+ axis2c_om_namespace_t * ns2);