[Opensrf-commits] r2239 - in branches/rel_2_0: include/opensrf src/libopensrf (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun May 8 11:38:34 EDT 2011
Author: dbs
Date: 2011-05-08 11:38:31 -0400 (Sun, 08 May 2011)
New Revision: 2239
Modified:
branches/rel_2_0/include/opensrf/transport_session.h
branches/rel_2_0/src/libopensrf/transport_session.c
Log:
move jabber_state_machine_struct into header to keep 'make check' happy
Modified: branches/rel_2_0/include/opensrf/transport_session.h
===================================================================
--- branches/rel_2_0/include/opensrf/transport_session.h 2011-05-08 15:37:10 UTC (rev 2238)
+++ branches/rel_2_0/include/opensrf/transport_session.h 2011-05-08 15:38:31 UTC (rev 2239)
@@ -35,9 +35,27 @@
/** Note whether the login information should be sent as plaintext or as a hash digest. */
enum TRANSPORT_AUTH_TYPE { AUTH_PLAIN, AUTH_DIGEST };
-struct jabber_state_machine_struct;
+
+// ---------------------------------------------------------------------------------
+// Jabber state machine. This is how we know where we are in the Jabber
+// conversation.
+// ---------------------------------------------------------------------------------
+struct jabber_state_machine_struct {
+ int connected;
+ int connecting;
+ int in_message;
+ int in_message_body;
+ int in_thread;
+ int in_subject;
+ int in_error;
+ int in_message_error;
+ int in_iq;
+ int in_presence;
+ int in_status;
+};
typedef struct jabber_state_machine_struct jabber_machine;
+
/**
@brief Collection of things for managing a Jabber session.
*/
Modified: branches/rel_2_0/src/libopensrf/transport_session.c
===================================================================
--- branches/rel_2_0/src/libopensrf/transport_session.c 2011-05-08 15:37:10 UTC (rev 2238)
+++ branches/rel_2_0/src/libopensrf/transport_session.c 2011-05-08 15:38:31 UTC (rev 2239)
@@ -19,24 +19,6 @@
#define JABBER_STATUS_BUFSIZE 16 /**< buffer size for status code */
// ---------------------------------------------------------------------------------
-// Jabber state machine. This is how we know where we are in the Jabber
-// conversation.
-// ---------------------------------------------------------------------------------
-struct jabber_state_machine_struct {
- int connected;
- int connecting;
- int in_message;
- int in_message_body;
- int in_thread;
- int in_subject;
- int in_error;
- int in_message_error;
- int in_iq;
- int in_presence;
- int in_status;
-};
-
-// ---------------------------------------------------------------------------------
// Callback for handling the startElement event. Much of the jabber logic occurs
// in this and the characterHandler callbacks.
// Here we check for the various top level jabber elements: body, iq, etc.
More information about the opensrf-commits
mailing list