You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2006/07/12 13:34:08 UTC

svn commit: r421242 - in /webservices/sandesha/trunk/c/src/client: Makefile.am report.c

Author: damitha
Date: Wed Jul 12 04:34:08 2006
New Revision: 421242

URL: http://svn.apache.org/viewvc?rev=421242&view=rev
Log:
More work on client

Modified:
    webservices/sandesha/trunk/c/src/client/Makefile.am
    webservices/sandesha/trunk/c/src/client/report.c

Modified: webservices/sandesha/trunk/c/src/client/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/client/Makefile.am?rev=421242&r1=421241&r2=421242&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/client/Makefile.am (original)
+++ webservices/sandesha/trunk/c/src/client/Makefile.am Wed Jul 12 04:34:08 2006
@@ -1,7 +1,8 @@
 noinst_LTLIBRARIES = libsandesha_client.la
 
 libsandesha_client_la_SOURCES = \
-							sequence_report.c
+							sequence_report.c \
+							report.c
 
 INCLUDES = -I$(top_builddir)/include \
 			@UTILINC@

Modified: webservices/sandesha/trunk/c/src/client/report.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/client/report.c?rev=421242&r1=421241&r2=421242&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/client/report.c (original)
+++ webservices/sandesha/trunk/c/src/client/report.c Wed Jul 12 04:34:08 2006
@@ -142,6 +142,26 @@
     }
 
     report_impl->report.ops->free = sandesha2_report_free;
+    report_impl->report.ops->get_completed_msgs_count = 
+        sandesha2_report_get_completed_msgs_count;
+    report_impl->report.ops->get_incoming_seq_list = 
+        sandesha2_report_get_incoming_seq_list;
+    report_impl->report.ops->get_outgoing_seq_list = 
+        sandesha2_report_get_outgoing_seq_list;
+    report_impl->report.ops->get_seq_status_map = 
+        sandesha2_report_get_seq_status_map;
+    report_impl->report.ops->add_to_incoming_seq_list = 
+        sandesha2_report_add_to_incoming_seq_list;
+    report_impl->report.ops->add_to_outgoing_seq_list = 
+        sandesha2_report_add_to_outgoing_seq_list;
+    report_impl->report.ops->add_to_no_of_completed_msgs_map = 
+        sandesha2_report_add_to_no_of_completed_msgs_map;
+    report_impl->report.ops->add_to_seq_status_map = 
+        sandesha2_report_add_to_seq_status_map;
+    report_impl->report.ops->get_internal_seq_id_of_out_seq = 
+        sandesha2_report_get_internal_seq_id_of_out_seq;
+    report_impl->report.ops->add_to_outgoing_internal_seq_map = 
+        sandesha2_report_add_to_outgoing_internal_seq_map;
 
     return &(report_impl->report);
 }
@@ -156,16 +176,34 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     report_impl = SANDESHA2_INTF_TO_IMPL(report);
 
-    if(report_impl->completed_msgs)
+    if(report_impl->incoming_seq_list)
     {
-        AXIS2_ARRAY_LIST_FREE(report_impl->completed_msgs, env);
-        report_impl->completed_msgs = NULL;
+        AXIS2_ARRAY_LIST_FREE(report_impl->incoming_seq_list, env);
+        report_impl->incoming_seq_list = NULL;
     }
 
-    if(report_impl->seq_id)
+    if(report_impl->outgoing_seq_list)
     {
-        AXIS2_FREE(env->allocator, report_impl->seq_id);
-        report_impl->seq_id = NULL;
+        AXIS2_ARRAY_LIST_FREE(report_impl->outgoing_seq_list, env);
+        report_impl->outgoing_seq_list = NULL;
+    }
+
+    if(report_impl->seq_status_map)
+    {
+        axis2_hash_free(report_impl->seq_status_map, env);
+        report_impl->seq_status_map = NULL;
+    }
+
+    if(report_impl->no_of_completed_msgs_map)
+    {
+        axis2_hash_free(report_impl->no_of_completed_msgs_map, env);
+        report_impl->no_of_completed_msgs_map = NULL;
+    }
+
+    if(report_impl->outgoing_internal_seq_id_map)
+    {
+        axis2_hash_free(report_impl->outgoing_internal_seq_id_map, env);
+        report_impl->outgoing_internal_seq_id_map = NULL;
     }
     
     if((&(report_impl->report))->ops)
@@ -209,7 +247,6 @@
         const axis2_env_t *env)
 {
     sandesha2_report_impl_t *report_impl = NULL;
-    long *lng = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     report_impl = SANDESHA2_INTF_TO_IMPL(report);
@@ -222,7 +259,6 @@
         const axis2_env_t *env)
 {
     sandesha2_report_impl_t *report_impl = NULL;
-    long *lng = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     report_impl = SANDESHA2_INTF_TO_IMPL(report);
@@ -320,7 +356,6 @@
         axis2_char_t *out_seq_id)
 {
     sandesha2_report_impl_t *report_impl = NULL;
-    long *lng = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     report_impl = SANDESHA2_INTF_TO_IMPL(report);



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