ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
stats.c File Reference

Go to the source code of this file.

Functions

asciichat_error_t stats_runtime_start (const char *mode, unsigned interval_seconds)
void stats_runtime_stop (void)
stats_scope_t * stats_runtime_scope (void)
stats_scope_t * stats_runtime_peer_scope (stats_peer_t *peer)
void stats_runtime_set_provider (stats_provider_fn provider, void *data)
void stats_view_add (stats_view_t *view, const char *format,...)
void stats_runtime_toggle (void)
bool stats_runtime_active (void)
stats_peer_t * stats_runtime_peer_open (const char *transport)
void stats_runtime_peer_close (stats_peer_t *peer)
void stats_runtime_packet (stats_peer_t *peer, unsigned type, size_t bytes, bool sent, bool success)
void stats_runtime_connection_state (const char *state)
void stats_runtime_media (unsigned width, unsigned height, double position, double duration)

Function Documentation

◆ stats_runtime_active()

bool stats_runtime_active ( void )

Definition at line 26 of file lib/wasm/stubs/stats.c.

26 {
27 return false;
28}

◆ stats_runtime_connection_state()

void stats_runtime_connection_state ( const char * state)

Definition at line 43 of file lib/wasm/stubs/stats.c.

43 {
44 (void)state;
45}

◆ stats_runtime_media()

void stats_runtime_media ( unsigned width,
unsigned height,
double position,
double duration )

Definition at line 46 of file lib/wasm/stubs/stats.c.

46 {
47 (void)width;
48 (void)height;
49 (void)position;
50 (void)duration;
51}
unsigned int height
Definition fft.c:24
unsigned int width
Definition fft.c:24

References height, and width.

◆ stats_runtime_packet()

void stats_runtime_packet ( stats_peer_t * peer,
unsigned type,
size_t payload_bytes,
bool sent,
bool success )

Application packet boundary, after decryption on receive. Header bytes are included internally.

Definition at line 36 of file lib/wasm/stubs/stats.c.

36 {
37 (void)peer;
38 (void)type;
39 (void)bytes;
40 (void)sent;
41 (void)success;
42}

◆ stats_runtime_peer_close()

void stats_runtime_peer_close ( stats_peer_t * peer)

Definition at line 33 of file lib/wasm/stubs/stats.c.

33 {
34 (void)peer;
35}

◆ stats_runtime_peer_open()

stats_peer_t * stats_runtime_peer_open ( const char * transport)

Definition at line 29 of file lib/wasm/stubs/stats.c.

29 {
30 (void)transport;
31 return NULL;
32}

◆ stats_runtime_peer_scope()

stats_scope_t * stats_runtime_peer_scope ( stats_peer_t * peer)

Definition at line 13 of file lib/wasm/stubs/stats.c.

13 {
14 (void)peer;
15 return NULL;
16}

◆ stats_runtime_scope()

stats_scope_t * stats_runtime_scope ( void )

Definition at line 10 of file lib/wasm/stubs/stats.c.

10 {
11 return NULL;
12}

◆ stats_runtime_set_provider()

void stats_runtime_set_provider ( stats_provider_fn provider,
void * data )

Definition at line 17 of file lib/wasm/stubs/stats.c.

17 {
18 (void)provider;
19 (void)data;
20}

◆ stats_runtime_start()

asciichat_error_t stats_runtime_start ( const char * mode,
unsigned interval_seconds )

Definition at line 4 of file lib/wasm/stubs/stats.c.

4 {
5 (void)mode;
6 (void)interval_seconds;
7 return SET_ERRNO(ERROR_INVALID_STATE, "Native statistics runtime is unavailable in browsers");
8}
#define SET_ERRNO(code,...)
@ ERROR_INVALID_STATE

References ERROR_INVALID_STATE, and SET_ERRNO.

◆ stats_runtime_stop()

void stats_runtime_stop ( void )

Definition at line 9 of file lib/wasm/stubs/stats.c.

9{}

◆ stats_runtime_toggle()

void stats_runtime_toggle ( void )

Definition at line 25 of file lib/wasm/stubs/stats.c.

25{}

◆ stats_view_add()

void stats_view_add ( stats_view_t * view,
const char * format,
... )

Definition at line 21 of file lib/wasm/stubs/stats.c.

21 {
22 (void)view;
23 (void)format;
24}