comparison 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
comparison
equal deleted inserted replaced
263:ee04e4e69fed 264:04fee26ecce0
76 76
77 77
78 // HTTP request map type: maps header names to header values 78 // HTTP request map type: maps header names to header values
79 typedef Dowa_KV(char*, char*) Seobeo_Request_Entry; 79 typedef Dowa_KV(char*, char*) Seobeo_Request_Entry;
80 80
81 typedef struct { 81 typedef struct Seobeo_SSE_Stream {
82 Seobeo_Handle *p_handle; 82 Seobeo_Handle *p_handle;
83 char *path; 83 char *path;
84 void *p_pending_frames; 84 void *p_pending_frames;
85 size_t pending_offset; 85 size_t pending_offset;
86 atomic_uint ref_count; 86 atomic_uint ref_count;
87 boolean started; 87 boolean started;
88 boolean closed; 88 boolean closed;
89 boolean managed; 89 boolean managed;
90 /* Optional client-disconnect callback. Called from
91 * Seobeo_SSE_Server_Detach_Handle AFTER g_sse_mutex is released so that
92 * the callback may safely acquire its own locks. */
93 void (*detach_cb)(struct Seobeo_SSE_Stream *, void *);
94 void *detach_ctx;
90 } Seobeo_SSE_Stream; 95 } Seobeo_SSE_Stream;
91 96
92 typedef struct { 97 typedef struct {
93 const char *event; 98 const char *event;
94 const char *id; 99 const char *id;