summaryrefslogtreecommitdiffstats
path: root/fnet/src/vespa/fnet/frt/invokable.h
blob: 15ac8691c7a1586d8d93eea5486ba71872f87938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

class FRT_RPCRequest;

class FRT_Invokable
{
public:
    virtual ~FRT_Invokable() {}
};

typedef void (FRT_Invokable::*FRT_METHOD_PT)(FRT_RPCRequest *);

#define FRT_METHOD(pt) ((FRT_METHOD_PT) &pt)