diff seobeo/seobeo_internal.h @ 264:04fee26ecce0

add authenticated JRPG conversation platform Add reusable auth/session storage, owned conversation recovery, guest quotas, admin workflows, URL-routed conversation UI, mobile frame support, and parallel browser acceptance. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 07:34:12 -0700
parents 1f9877b637e9
children
line wrap: on
line diff
--- a/seobeo/seobeo_internal.h	Thu Aug 06 11:31:30 2026 -0700
+++ b/seobeo/seobeo_internal.h	Fri Aug 07 07:34:12 2026 -0700
@@ -78,7 +78,7 @@
 // HTTP request map type: maps header names to header values
 typedef Dowa_KV(char*, char*) Seobeo_Request_Entry;
 
-typedef struct {
+typedef struct Seobeo_SSE_Stream {
   Seobeo_Handle *p_handle;
   char *path;
   void *p_pending_frames;
@@ -87,6 +87,11 @@
   boolean started;
   boolean closed;
   boolean managed;
+  /* Optional client-disconnect callback.  Called from
+   * Seobeo_SSE_Server_Detach_Handle AFTER g_sse_mutex is released so that
+   * the callback may safely acquire its own locks. */
+  void (*detach_cb)(struct Seobeo_SSE_Stream *, void *);
+  void  *detach_ctx;
 } Seobeo_SSE_Stream;
 
 typedef struct {