# Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Service definition for DDS IDL RPC code generation.
# This file defines RPC services based on DDS IDL message types.
#
# The dds_idl_gen_rpc tool reads this YAML file to generate C++ RPC
# wrappers (service classes, proxy classes, etc.) that use DDS CDR
# serialization via ibmw::dds::GetDdsMessageTypeSupport<>().

# IDL file that contains the request/response struct definitions
idl_file: ExampleRpc.idl

# Module path (matches IDL module hierarchy)
# This is used to construct the C++ namespace and the service name
module: ibmw.protocols.example

# List of services defined in this module
services:
  - name: ExampleService
    methods:
      - name: GetFooData
        request: GetFooDataReq
        response: GetFooDataRsp
      - name: GetBarData
        request: GetBarDataReq
        response: GetBarDataRsp