MEDIUM: stream-interface: set the pointer to the applet into the applet context
In preparation for a later move of all the applet context outside of the
stream interface, we'll need to have access to the applet itself from the
context. Let's have a pointer to it inside the context.
diff --git a/include/types/stream_interface.h b/include/types/stream_interface.h
index fc09aa6..588f4c4 100644
--- a/include/types/stream_interface.h
+++ b/include/types/stream_interface.h
@@ -79,6 +79,7 @@
};
struct stream_interface;
+struct si_applet;
/* operations available on a stream-interface */
struct si_ops {
@@ -95,6 +96,7 @@
unsigned int st0; /* CLI state for stats, session state for peers */
unsigned int st1; /* prompt for stats, session error for peers */
unsigned int st2; /* output state for stats, unused by peers */
+ struct si_applet *applet; /* applet this context refers to */
union {
struct {