| 25 | using DCPS::log_level; |
| 26 | |
| 27 | DDS::ReturnCode_t extensibility(DDS::DynamicType_ptr type, DCPS::Extensibility& ext) |
| 28 | { |
| 29 | DDS::DynamicType_var base_type = get_base_type(type); |
| 30 | if (!base_type) { |
| 31 | return DDS::RETCODE_BAD_PARAMETER; |
| 32 | } |
| 33 | switch (base_type->get_kind()) { |
| 34 | case TK_STRUCTURE: |
| 35 | case TK_UNION: |
| 36 | { |
| 37 | DDS::TypeDescriptor_var td; |
| 38 | const DDS::ReturnCode_t rc = type->get_descriptor(td); |
| 39 | if (rc != DDS::RETCODE_OK) { |
| 40 | return rc; |
| 41 | } |
| 42 | ext = dds_to_opendds_ext(td->extensibility_kind()); |
| 43 | } |
| 44 | break; |
| 45 | default: |
| 46 | ext = DCPS::FINAL; |
| 47 | } |
| 48 | return DDS::RETCODE_OK; |
| 49 | } |
| 50 | |
| 51 | DDS::ReturnCode_t max_extensibility(DDS::DynamicType_ptr type, DCPS::Extensibility& ext) |
| 52 | { |
no test coverage detected