axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r510385 - in /webservices/axis2/trunk/c/savan: include/ samples/client/subscriber/ samples/server/listener/ samples/server/publisher/ src/client/
Date Thu, 22 Feb 2007 04:17:50 GMT
Author: nandika
Date: Wed Feb 21 20:17:49 2007
New Revision: 510385

URL: http://svn.apache.org/viewvc?view=rev&rev=510385
Log:
savan compile errors fixed for win32

Modified:
    webservices/axis2/trunk/c/savan/include/savan_client.h
    webservices/axis2/trunk/c/savan/include/savan_publishing_client.h
    webservices/axis2/trunk/c/savan/samples/client/subscriber/subscriber.c
    webservices/axis2/trunk/c/savan/samples/server/listener/listener_skeleton.c
    webservices/axis2/trunk/c/savan/samples/server/publisher/publisher.c
    webservices/axis2/trunk/c/savan/samples/server/publisher/publisher_skeleton.c
    webservices/axis2/trunk/c/savan/src/client/savan_client.c
    webservices/axis2/trunk/c/savan/src/client/savan_publishing_client.c

Modified: webservices/axis2/trunk/c/savan/include/savan_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/include/savan_client.h?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/include/savan_client.h (original)
+++ webservices/axis2/trunk/c/savan/include/savan_client.h Wed Feb 21 20:17:49 2007
@@ -50,7 +50,7 @@
      * @param options map containing options for the Subscribe request
      * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 
      */
-    axis2_status_t AXIS2_CALL
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     savan_client_subscribe(
         savan_client_t *client,
         const axis2_env_t *env,
@@ -65,7 +65,7 @@
      * @param options map containing options for the Renew request
      * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 
      */
-    axis2_status_t AXIS2_CALL
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     savan_client_renew(
         savan_client_t *client,
         const axis2_env_t *env,
@@ -79,7 +79,7 @@
      * @param svc_client client for the publisher service
      * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 
      */
-    axis2_status_t AXIS2_CALL
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     savan_client_unsubscribe(
         savan_client_t *client,
         const axis2_env_t *env,
@@ -92,7 +92,7 @@
      * @param svc_client client for the publisher service
      * @return expiry string on success, NULL on failure
      */
-    axis2_char_t * AXIS2_CALL
+    AXIS2_EXTERN axis2_char_t * AXIS2_CALL
     savan_client_get_status(
         savan_client_t *client,
         const axis2_env_t *env,
@@ -104,7 +104,7 @@
      * @param env pointer to environment struct
      * @return id string on success, NULL on failure
      */
-    axis2_char_t * AXIS2_CALL
+    AXIS2_EXTERN axis2_char_t * AXIS2_CALL
     savan_client_get_sub_id(
         savan_client_t *client);
     

Modified: webservices/axis2/trunk/c/savan/include/savan_publishing_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/include/savan_publishing_client.h?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/include/savan_publishing_client.h (original)
+++ webservices/axis2/trunk/c/savan/include/savan_publishing_client.h Wed Feb 21 20:17:49
2007
@@ -47,7 +47,7 @@
      * @param env pointer to environment struct
      * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 
      */
-    axis2_status_t AXIS2_CALL
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     savan_publishing_client_publish(
         savan_publishing_client_t *client,
         const axis2_env_t *env,

Modified: webservices/axis2/trunk/c/savan/samples/client/subscriber/subscriber.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/samples/client/subscriber/subscriber.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/samples/client/subscriber/subscriber.c (original)
+++ webservices/axis2/trunk/c/savan/samples/client/subscriber/subscriber.c Wed Feb 21 20:17:49
2007
@@ -102,7 +102,7 @@
         printf("Subscription ID: %s\n", savan_client_get_sub_id(savan_client));
     }
 
-    sleep(10);
+    AXIS2_SLEEP(10);
 
     printf("\n***************************************\n");
     printf("Renewing subscription...\n");
@@ -114,7 +114,7 @@
     }
 
 
-    sleep(10);
+    AXIS2_SLEEP(10);
 
     printf("\n***************************************\n");
     printf("Getting status of subscription...\n");
@@ -125,7 +125,7 @@
         printf("New expire time: %s\n", expire_time);
     }
 
-    sleep(10);
+    AXIS2_SLEEP(10);
 
     printf("\n***************************************\n");
     printf("Unsubscribing...\n");

Modified: webservices/axis2/trunk/c/savan/samples/server/listener/listener_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/samples/server/listener/listener_skeleton.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/samples/server/listener/listener_skeleton.c (original)
+++ webservices/axis2/trunk/c/savan/samples/server/listener/listener_skeleton.c Wed Feb 21
20:17:49 2007
@@ -61,10 +61,13 @@
 axis2_svc_skeleton_t *
 axis2_listener_create(const axis2_env_t *env)
 {
-    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "listener service create called");
 
     axis2_svc_skeleton_t *svc_skeleton = NULL;
-    /* Allocate memory for the structs */
+
+	
+	AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "listener service create called");
+
+	/* Allocate memory for the structs */
     svc_skeleton = AXIS2_MALLOC(env->allocator, sizeof(axis2_svc_skeleton_t));
 
     svc_skeleton->ops = AXIS2_MALLOC(

Modified: webservices/axis2/trunk/c/savan/samples/server/publisher/publisher.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/samples/server/publisher/publisher.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/samples/server/publisher/publisher.c (original)
+++ webservices/axis2/trunk/c/savan/samples/server/publisher/publisher.c Wed Feb 21 20:17:49
2007
@@ -25,11 +25,13 @@
 axiom_node_t *
 axis2_publisher_start(const axis2_env_t *env, axiom_node_t *node)
 {
+	axiom_node_t *ret_node = NULL;
+
     printf("Publisher service start called.\n");
 
     AXIS2_ENV_CHECK(env, NULL);
 
-    axiom_node_t *ret_node = build_om_programatically(env, "Publisher started");
+    ret_node = build_om_programatically(env, "Publisher started");
 
     return ret_node;
 }

Modified: webservices/axis2/trunk/c/savan/samples/server/publisher/publisher_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/samples/server/publisher/publisher_skeleton.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/samples/server/publisher/publisher_skeleton.c (original)
+++ webservices/axis2/trunk/c/savan/samples/server/publisher/publisher_skeleton.c Wed Feb
21 20:17:49 2007
@@ -77,9 +77,12 @@
 axis2_svc_skeleton_t *
 axis2_publisher_create(const axis2_env_t *env)
 {
+
+	axis2_svc_skeleton_t *svc_skeleton = NULL;
+
     printf("publisher create called.\n");
 
-    axis2_svc_skeleton_t *svc_skeleton = NULL;
+    
     
     /* Allocate memory for the structs */
     svc_skeleton = AXIS2_MALLOC(env->allocator, 
@@ -126,18 +129,22 @@
             axiom_node_t *node,
             axis2_msg_ctx_t *msg_ctx)
 {
+
+	axis2_thread_t *worker_thread = NULL;
+	publisher_data_t *data = NULL;
+
     printf("publisher invoke called.\n");
 
     /* Invoke the business logic.
      * Depending on the function name invoke the correct impl method.
      */
 
-    publisher_data_t *data = AXIS2_MALLOC(env->allocator, sizeof(publisher_data_t));
+    data = AXIS2_MALLOC(env->allocator, sizeof(publisher_data_t));
     data->env = (axis2_env_t*)env;
     data->svc = AXIS2_MSG_CTX_GET_SVC(msg_ctx, env);
     data->conf_ctx = AXIS2_MSG_CTX_GET_CONF_CTX(msg_ctx, env);
     
-    axis2_thread_t *worker_thread = AXIS2_THREAD_POOL_GET_THREAD(env->thread_pool,
+    worker_thread = AXIS2_THREAD_POOL_GET_THREAD(env->thread_pool,
         publisher_worker_func, (void*)data);
     if(NULL == worker_thread)
     {
@@ -235,7 +242,7 @@
     {
         savan_publishing_client_publish(pub_client, env, test_node);
 
-        sleep(10);
+        AXIS2_SLEEP(10);
         
         printf("Returned from sleep\n");
     }
@@ -262,8 +269,10 @@
 axis2_remove_instance(axis2_svc_skeleton_t *inst,
                       const axis2_env_t *env)
 {
+	axis2_status_t status = AXIS2_FAILURE;
+
     printf("remove instance called.\n");
-    axis2_status_t status = AXIS2_FAILURE;
+    
    if (inst)
    {
         status = AXIS2_SVC_SKELETON_FREE(inst, env);

Modified: webservices/axis2/trunk/c/savan/src/client/savan_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/src/client/savan_client.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/src/client/savan_client.c (original)
+++ webservices/axis2/trunk/c/savan/src/client/savan_client.c Wed Feb 21 20:17:49 2007
@@ -67,7 +67,7 @@
 
 /******************************************************************************/
 
-axis2_status_t AXIS2_CALL
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
 savan_client_subscribe(
     savan_client_t *client,
     const axis2_env_t *env,
@@ -176,7 +176,7 @@
 
 /******************************************************************************/
 
-axis2_status_t AXIS2_CALL
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
 savan_client_renew(
     savan_client_t *client,
     const axis2_env_t *env,
@@ -235,7 +235,7 @@
 
 /******************************************************************************/
 
-axis2_status_t AXIS2_CALL
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
 savan_client_unsubscribe(
     savan_client_t *client,
     const axis2_env_t *env,
@@ -282,7 +282,7 @@
 
 /******************************************************************************/
 
-axis2_char_t * AXIS2_CALL
+AXIS2_EXTERN axis2_char_t * AXIS2_CALL
 savan_client_get_status(
     savan_client_t *client,
     const axis2_env_t *env,
@@ -357,7 +357,7 @@
 }
 
 /*****************************************************************************/
-axis2_char_t * AXIS2_CALL
+AXIS2_EXTERN axis2_char_t * AXIS2_CALL
 savan_client_get_sub_id(
     savan_client_t *client)
 {

Modified: webservices/axis2/trunk/c/savan/src/client/savan_publishing_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/savan/src/client/savan_publishing_client.c?view=diff&rev=510385&r1=510384&r2=510385
==============================================================================
--- webservices/axis2/trunk/c/savan/src/client/savan_publishing_client.c (original)
+++ webservices/axis2/trunk/c/savan/src/client/savan_publishing_client.c Wed Feb 21 20:17:49
2007
@@ -60,7 +60,7 @@
 
 /******************************************************************************/
 
-axis2_status_t AXIS2_CALL
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
 savan_publishing_client_publish(
     savan_publishing_client_t *client,
     const axis2_env_t *env,



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