Skip to content

Commit c842ff0

Browse files
authored
Remove ContextInterface. (proxy-wasm#13)
Signed-off-by: John Plevyak <[email protected]>
1 parent c94264a commit c842ff0

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

include/proxy-wasm/context.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,18 @@ struct PluginBase {
7777
*
7878
* 3) For testing and instrumentation the methods of ContextBase can be replaces or augmented.
7979
*/
80-
class ContextBase : public ContextInterface {
80+
class ContextBase : public RootInterface,
81+
public HttpInterface,
82+
public NetworkInterface,
83+
public StreamInterface,
84+
public HeaderInterface,
85+
public HttpCallInterface,
86+
public GrpcCallInterface,
87+
public GrpcStreamInterface,
88+
public MetricsInterface,
89+
public SharedDataInterface,
90+
public SharedQueueInterface,
91+
public GeneralInterface {
8192
public:
8293
ContextBase(); // Testing.
8394
ContextBase(WasmBase *wasm); // Vm Context.

include/proxy-wasm/context_interface.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,4 @@ struct SharedQueueInterface {
647647
virtual WasmResult enqueueSharedQueue(SharedQueueEnqueueToken token, string_view data) = 0;
648648
};
649649

650-
struct ContextInterface : RootInterface,
651-
HttpInterface,
652-
NetworkInterface,
653-
StreamInterface,
654-
HeaderInterface,
655-
HttpCallInterface,
656-
GrpcCallInterface,
657-
GrpcStreamInterface,
658-
MetricsInterface,
659-
SharedDataInterface,
660-
SharedQueueInterface,
661-
GeneralInterface {};
662-
663650
} // namespace proxy_wasm

0 commit comments

Comments
 (0)