aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/example/common/proto.h
blob: 904dbad713650d1eac59c6825224934cc0de0101 (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();
    };

}