comparison seobeo/seobeo.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
381 extern boolean Seobeo_SSE_Retain(Seobeo_SSE_Stream *p_stream); 381 extern boolean Seobeo_SSE_Retain(Seobeo_SSE_Stream *p_stream);
382 /* Release a previously retained stream. */ 382 /* Release a previously retained stream. */
383 extern void Seobeo_SSE_Release(Seobeo_SSE_Stream *p_stream); 383 extern void Seobeo_SSE_Release(Seobeo_SSE_Stream *p_stream);
384 /* Stop accepting records. The router retains ownership of the handle. */ 384 /* Stop accepting records. The router retains ownership of the handle. */
385 extern void Seobeo_SSE_Close(Seobeo_SSE_Stream *p_stream); 385 extern void Seobeo_SSE_Close(Seobeo_SSE_Stream *p_stream);
386 /*
387 * Register a callback invoked when the client disconnects (handle detached).
388 * The callback is called AFTER g_sse_mutex is released and may safely acquire
389 * other locks. The stream pointer remains valid for the callback's duration
390 * (the caller's retained reference keeps it alive).
391 * cb may be NULL to clear a previously registered callback.
392 */
393 extern void Seobeo_SSE_Set_Detach_Callback(
394 Seobeo_SSE_Stream *p_stream,
395 void (*cb)(Seobeo_SSE_Stream *, void *),
396 void *ctx);
386 397
387 // --- Helper functions --- // 398 // --- Helper functions --- //
388 /* Destroy handle. It will handle all NULL poointers. */ 399 /* Destroy handle. It will handle all NULL poointers. */
389 extern void Seobeo_Handle_Destroy(Seobeo_Handle *p_handle); 400 extern void Seobeo_Handle_Destroy(Seobeo_Handle *p_handle);
390 /* Write to socket from write_buffer in the handle. */ 401 /* Write to socket from write_buffer in the handle. */