blob: 6476b9736eee782d9da22aecc3c82fa8d6d4ee03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* -*- C++ -*- */
// $Id$
// AVStreams_i.i
ACE_INLINE
int
TAO_AV_QoS::set (AVStreams::streamQoS &stream_qos)
{
this->stream_qos_ = stream_qos;
for (u_int j=0;j<this->stream_qos_.length ();j++)
{
TAO_String_Hash_Key qos_key (CORBA::string_dup (this->stream_qos_[j].QoSType));
int result = this->qos_map_.bind (qos_key,this->stream_qos_[j]);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"qos_map::bind failed\n"),-1);
}
return 0;
}
ACE_INLINE
int
TAO_AV_QoS::get_flow_qos (const char *flowname,AVStreams::QoS &flow_qos)
{
int result = this->qos_map_.find (flowname, flow_qos);
if (result < 0)
ACE_ERROR_RETURN ((LM_DEBUG,"qos_map::find failed\n"),-1);
return 0;
}
|