ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
lib/platform/wasm/stubs/session_log_buffer.h
Go to the documentation of this file.
1
6#ifndef ASCIICHAT_SESSION_LOG_BUFFER_H
7#define ASCIICHAT_SESSION_LOG_BUFFER_H
8
9#include <stddef.h>
10#include <stdint.h>
11#include <stdbool.h>
12
13/* Minimal stub structure for WASM */
14#define SESSION_LOG_BUFFER_SIZE 8192
15#define SESSION_LOG_LINE_MAX 1024
16
21
23
24/* Forward declarations for stub implementations */
28void session_log_buffer_append(session_log_buffer_t *buf, const char *message);
29size_t session_log_buffer_get_recent(session_log_buffer_t *buf, session_log_entry_t *out_entries, size_t max_count);
30
31#endif
unsigned long long uint64_t
Definition common.h:59
session_log_buffer_t * session_log_buffer_create(void)
void session_log_buffer_clear(session_log_buffer_t *buf)
void session_log_buffer_append(session_log_buffer_t *buf, const char *message)
size_t session_log_buffer_get_recent(session_log_buffer_t *buf, session_log_entry_t *out_entries, size_t max_count)
void session_log_buffer_destroy(session_log_buffer_t *buf)
ClangTool/LibTooling compatibility shim for stdbool.h.
Internal circular buffer structure.
Single log entry with sequence number for ordering.
uint64_t sequence
Sequence number (monotonic, for ordering)