From: erickson Date: Sat, 30 Apr 2011 22:40:54 +0000 (+0000) Subject: move jabber_state_machine_struct into header to keep 'make check' happy X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d76f3ceb4d9cc37d2284482969da94c41ab35fc2;p=working%2FOpenSRF.git move jabber_state_machine_struct into header to keep 'make check' happy git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2236 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/include/opensrf/transport_session.h b/include/opensrf/transport_session.h index 01d7ed1..2c2baff 100644 --- a/include/opensrf/transport_session.h +++ b/include/opensrf/transport_session.h @@ -35,9 +35,27 @@ extern "C" { /** 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. */ diff --git a/src/libopensrf/transport_session.c b/src/libopensrf/transport_session.c index 1e7c285..67bda87 100644 --- a/src/libopensrf/transport_session.c +++ b/src/libopensrf/transport_session.c @@ -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.