aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/example/common/proto.h
blob: a151aac46893fd5beb19ffcef7bf11ce0d60d9b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <library/cpp/messagebus/test/example/common/messages.pb.h>

#include <library/cpp/messagebus/ybus.h>
#include <library/cpp/messagebus/protobuf/ybusbuf.h>

namespace NCalculator {
    typedef ::NBus::TBusBufferMessage<TRequestSumRecord, 1> TRequestSum;
    typedef ::NBus::TBusBufferMessage<TRequestMulRecord, 2> TRequestMul;
    typedef ::NBus::TBusBufferMessage<TResponseRecord, 3> TResponse;

    struct TCalculatorProtocol: public ::NBus::TBusBufferProtocol {
        TCalculatorProtocol();
    };

}