Introduce subcontext for subcalls
[src/app-framework-binder.git] / src / afb-context.h
index 3eb4974..40adeb5 100644 (file)
@@ -39,9 +39,11 @@ struct afb_context
                };
        };
        void *api_key;
+       struct afb_context *super;
 };
 
 extern void afb_context_init(struct afb_context *context, struct afb_session *session, const char *token);
+extern void afb_context_subinit(struct afb_context *context, struct afb_context *super);
 extern int afb_context_connect(struct afb_context *context, const char *uuid, const char *token);
 extern void afb_context_disconnect(struct afb_context *context);
 extern const char *afb_context_sent_token(struct afb_context *context);