[PATCH] Expose ORBit_proto_use() to applications

Jules Colding <[email protected]>
Newsgroups gmane.comp.gnome.orbit.general
Message-ID <[email protected]>
Hi,

This patch makes ORBit_proto_use() accessible for client applications if
ORBIT2_EXTENSIONS is defined. This is needed to deduce ORBit2 protocol
support if you are not the fortunate first thread to invoke
CORBA_ORB_init().

"make check" is happy. I'll commit shortly if there are no objections.

Best regards,
  jules



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/ORBit2/ChangeLog,v
retrieving revision 1.728
diff -u -p -r1.728 ChangeLog
--- ChangeLog	8 Sep 2005 09:03:58 -0000	1.728
+++ ChangeLog	16 Sep 2005 11:47:51 -0000
@@ -1,3 +1,10 @@
+2005-09-16  Jules Colding  <[email protected]>
+
+	* include/orbit/orb-core/corba-orb.h: Added ORBit_proto_use() to 
+	ORBIT2_EXTENSIONS section. This is needed to deduce protocol
+	capabilities if you are not the fortunate first thread to invoke 
+	CORBA_ORB_init().
+
 2005-09-07  Jules Colding  <[email protected]>
 
 	* configure.in (LT_VERSION): Version 2.13.2. This is needed as the change 
Index: include/orbit/orb-core/corba-orb.h
===================================================================
RCS file: /cvs/gnome/ORBit2/include/orbit/orb-core/corba-orb.h,v
retrieving revision 1.12
diff -u -p -r1.12 corba-orb.h
--- include/orbit/orb-core/corba-orb.h	24 Feb 2002 07:52:08 -0000	1.12
+++ include/orbit/orb-core/corba-orb.h	16 Sep 2005 11:47:51 -0000
@@ -12,6 +12,23 @@ CORBA_ORB CORBA_ORB_init (int           
 			  CORBA_ORBid         orb_identifier,
 			  CORBA_Environment  *ev);
 
+#ifdef ORBIT2_EXTENSIONS
+
+/* Will return TRUE if the named protocol is supported by 
+ * the ORB. Currently supported values of "name" are:
+ *
+ *    "IPv4"
+ *    "IPv6"
+ *    "UNIX"
+ *    "IrDA"
+ *    "SSL"
+ * 
+ * Unknown or unsupported values of "name" will make this 
+ * method return FALSE.*/
+gboolean  ORBit_proto_use (const char *name);
+
+#endif /* ORBIT2_EXTENSIONS */
+
 #ifdef ORBIT2_INTERNAL_API
 
 void      ORBit_ORB_forw_bind (CORBA_ORB                   orb,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.