[Opensrf-commits] r1597 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 14:01:33 EST 2009


Author: scottmk
Date: 2009-01-08 14:01:30 -0500 (Thu, 08 Jan 2009)
New Revision: 1597

Modified:
   trunk/include/opensrf/transport_session.h
Log:
Move nested headers into complation guard;
prepare for #inclusion in C++


Modified: trunk/include/opensrf/transport_session.h
===================================================================
--- trunk/include/opensrf/transport_session.h	2009-01-08 18:48:29 UTC (rev 1596)
+++ trunk/include/opensrf/transport_session.h	2009-01-08 19:01:30 UTC (rev 1597)
@@ -3,6 +3,9 @@
 // a SAX push parser as it arrives.  When key Jabber documetn elements are met, 
 // logic ensues.
 // ---------------------------------------------------------------------------------
+#ifndef TRANSPORT_SESSION_H
+#define TRANSPORT_SESSION_H
+
 #include <opensrf/transport_message.h>
 
 #include <opensrf/utils.h>
@@ -20,8 +23,9 @@
 #include <libxml/debugXML.h>
 #include <libxml/xmlmemory.h>
 
-#ifndef TRANSPORT_SESSION_H
-#define TRANSPORT_SESSION_H
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define CONNECTING_1 1 /* just starting the connection to Jabber */
 #define CONNECTING_2 2 /* First <stream> packet sent and <stream> packet received from server */
@@ -214,4 +218,8 @@
 
 int session_disconnect( transport_session* session );
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif



More information about the opensrf-commits mailing list