summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-02 23:08:20 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-02 23:08:20 +0000
commitbc7feb891b981bd3e3849d838e387425a8fbffeb (patch)
tree6b547613c4baba66adbbbf3c1ef81c270634d79d
parent7d36dc2595dc6a162d6a7bc8c29b0a66f84d34b1 (diff)
downloadATCD-bc7feb891b981bd3e3849d838e387425a8fbffeb.tar.gz
Fixed inline inclusion problems.
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/MCast.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Policy.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Transport.cpp44
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/source.cpp4
4 files changed, 39 insertions, 19 deletions
diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
index f3cbfb7e9ce..c881ce103b4 100644
--- a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
@@ -4,6 +4,10 @@
#include "Nil.h"
#include "AVStreams_i.h"
+#if !defined(__ACE_INLINE__)
+#include "MCast.i"
+#endif /* __ACE_INLINE__ */
+
//------------------------------------------------------------
//TAO_AV_UDP_MCast_Flow_Handler
//------------------------------------------------------------
@@ -31,7 +35,7 @@ TAO_AV_UDP_MCast_Flow_Handler::handle_input (ACE_HANDLE /*fd*/)
}
int
-TAO_AV_UDP_MCast_Flow_Handler::handle_timeout (const ACE_Time_Value &tv,
+TAO_AV_UDP_MCast_Flow_Handler::handle_timeout (const ACE_Time_Value &tv,
const void *arg)
{
return TAO_AV_Flow_Handler::handle_timeout (tv,arg);
diff --git a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
index 3b5ecf0e58e..5fca0064965 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
@@ -3,6 +3,10 @@
#include "Policy.h"
#include "FlowSpec_Entry.h"
+#if !defined(__ACE_INLINE__)
+#include "Policy.i"
+#endif /* __ACE_INLINE__ */
+
TAO_AV_Policy::TAO_AV_Policy (CORBA::ULong type)
:type_ (type)
{
diff --git a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
index 8db74f2e440..cee5c17fd78 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
@@ -382,13 +382,16 @@ TAO_AV_Core::init_transport_factories (void)
TAO_AV_TransportFactorySetItor end = this->transport_factories_.end ();
TAO_AV_TransportFactorySetItor factory = this->transport_factories_.begin ();
+ const char* foo = "UDP_Factory";
+ const char * bar = "TCP_Factory";
+
if (factory == end)
{
TAO_AV_Transport_Factory *udp_factory = 0;
TAO_AV_Transport_Item *udp_item = 0;
- udp_factory =
- ACE_Dynamic_Service<TAO_AV_Transport_Factory>::instance ("UDP_Factory");
+ udp_factory =
+ ACE_Dynamic_Service<TAO_AV_Transport_Factory>::instance (foo);
if (udp_factory == 0)
{
if (TAO_debug_level)
@@ -410,8 +413,8 @@ TAO_AV_Core::init_transport_factories (void)
TAO_AV_Transport_Factory *tcp_factory = 0;
TAO_AV_Transport_Item *tcp_item = 0;
- tcp_factory =
- ACE_Dynamic_Service<TAO_AV_Transport_Factory>::instance ("TCP_Factory");
+ tcp_factory =
+ ACE_Dynamic_Service<TAO_AV_Transport_Factory>::instance (bar);
if (tcp_factory == 0)
{
if (TAO_debug_level)
@@ -441,13 +444,18 @@ TAO_AV_Core::init_flow_protocol_factories (void)
TAO_AV_Flow_ProtocolFactorySetItor end = this->flow_protocol_factories_.end ();
TAO_AV_Flow_ProtocolFactorySetItor factory = this->flow_protocol_factories_.begin ();
+ const char *udp_flow = "UDP_Flow_Factory";
+ const char *tcp_flow = "TCP_Flow_Factory";
+ const char *rtp_flow = "RTP_Flow_Factory";
+ const char *rtcp_flow = "RTCP_Flow_Factory";
+ const char *sfp_flow = "SFP_Flow_Factory";
if (factory == end)
{
TAO_AV_Flow_Protocol_Factory *udp_flow_factory = 0;
TAO_AV_Flow_Protocol_Item *udp_item = 0;
- udp_flow_factory =
- ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance ("UDP_Flow_Factory");
+ udp_flow_factory =
+ ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance (udp_flow);
if (udp_flow_factory == 0)
{
if (TAO_debug_level)
@@ -469,8 +477,8 @@ TAO_AV_Core::init_flow_protocol_factories (void)
TAO_AV_Flow_Protocol_Factory *tcp_flow_factory = 0;
TAO_AV_Flow_Protocol_Item *tcp_item = 0;
- tcp_flow_factory =
- ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance ("TCP_Flow_Factory");
+ tcp_flow_factory =
+ ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance (tcp_flow);
if (tcp_flow_factory == 0)
{
if (TAO_debug_level)
@@ -492,8 +500,8 @@ TAO_AV_Core::init_flow_protocol_factories (void)
TAO_AV_Flow_Protocol_Factory *rtp_flow_factory = 0;
TAO_AV_Flow_Protocol_Item *rtp_item = 0;
- rtp_flow_factory =
- ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance ("RTP_Flow_Factory");
+ rtp_flow_factory =
+ ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance (rtp_flow);
if (rtp_flow_factory == 0)
{
if (TAO_debug_level)
@@ -515,8 +523,8 @@ TAO_AV_Core::init_flow_protocol_factories (void)
TAO_AV_Flow_Protocol_Factory *rtcp_flow_factory = 0;
TAO_AV_Flow_Protocol_Item *rtcp_item = 0;
- rtcp_flow_factory =
- ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance ("RTCP_Flow_Factory");
+ rtcp_flow_factory =
+ ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance (rtcp_flow);
if (rtcp_flow_factory == 0)
{
if (TAO_debug_level)
@@ -538,8 +546,8 @@ TAO_AV_Core::init_flow_protocol_factories (void)
TAO_AV_Flow_Protocol_Factory *sfp_flow_factory = 0;
TAO_AV_Flow_Protocol_Item *sfp_item = 0;
- sfp_flow_factory =
- ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance ("SFP_Flow_Factory");
+ sfp_flow_factory =
+ ACE_Dynamic_Service<TAO_AV_Flow_Protocol_Factory>::instance (sfp_flow);
if (sfp_flow_factory == 0)
{
if (TAO_debug_level)
@@ -668,7 +676,7 @@ TAO_AV_Connector_Registry::open (TAO_Base_StreamEndPoint *endpoint,
// Now check if the flow factory has a control flow factory.
const char *control_factory_name
= (*flow_factory)->factory ()->control_flow_factory ();
-
+
if (control_factory_name != 0)
{
TAO_AV_Flow_ProtocolFactorySetItor control_factory_end =
@@ -703,7 +711,7 @@ TAO_AV_Connector_Registry::open (TAO_Base_StreamEndPoint *endpoint,
entry->flow_protocol_str (),
control_addr),
-1);
- // Add the control entry to the flow_spec_set that's passed so that the control entry
+ // Add the control entry to the flow_spec_set that's passed so that the control entry
// will also be called during flow starts and stops. except that if the user specifies
// a flowspec in start then the control entry may not be in that but it has to be started
// if the flowspec has the associated data flow entry. @@ We'll leave this matter for now.
@@ -905,7 +913,7 @@ TAO_AV_Acceptor_Registry::open (TAO_Base_StreamEndPoint *endpoint,
entry->flow_protocol_str (),
control_addr),
-1);
- // Add the control entry to the flow_spec_set that's passed so that the control entry
+ // Add the control entry to the flow_spec_set that's passed so that the control entry
// will also be called during flow starts and stops. except that if the user specifies
// a flowspec in start then the control entry may not be in that but it has to be started
// if the flowspec has the associated data flow entry. @@ We'll leave this matter for now.
@@ -1015,7 +1023,7 @@ TAO_AV_Acceptor_Registry::open_default (TAO_Base_StreamEndPoint *endpoint,
flow_protocol));
continue;
}
-
+
// got it, make an acceptor
diff --git a/TAO/orbsvcs/orbsvcs/AV/source.cpp b/TAO/orbsvcs/orbsvcs/AV/source.cpp
index dfe10864553..21cdb8fd773 100644
--- a/TAO/orbsvcs/orbsvcs/AV/source.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/source.cpp
@@ -36,6 +36,10 @@
#include "RTCP.h"
#include "source.h"
+#if !defined (__ACE_INLINE__)
+#include "source.i"
+#endif /* __ACE_INLINE__ */
+
/* gray out src if no ctrl msgs for this many consecutive update intervals */
#define CTRL_IDLE 8.