ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
network.c File Reference

Go to the source code of this file.

Typedefs

typedef struct app_callbacks_t app_callbacks_t
typedef void app_callbacks_reg_t

Functions

int platform_popen (const char *name, const char *command, const char *mode, FILE **out_stream)
int platform_pclose (FILE **stream_ptr)
app_callbacks_t * app_callbacks_get (void)
void app_callbacks_register (app_callbacks_reg_t *callbacks)

Typedef Documentation

◆ app_callbacks_reg_t

typedef void app_callbacks_reg_t

Definition at line 28 of file src/web/platform/stubs/network.c.

◆ app_callbacks_t

typedef struct app_callbacks_t app_callbacks_t

Definition at line 24 of file src/web/platform/stubs/network.c.

Function Documentation

◆ app_callbacks_get()

app_callbacks_t * app_callbacks_get ( void )

Get registered callbacks (returns NULL if not registered)

Definition at line 25 of file src/web/platform/stubs/network.c.

25 {
26 return NULL;
27}

◆ app_callbacks_register()

void app_callbacks_register ( app_callbacks_reg_t * callbacks)

Definition at line 29 of file src/web/platform/stubs/network.c.

29 {
30 (void)callbacks;
31}

Referenced by main().

◆ platform_pclose()

int platform_pclose ( FILE ** stream_ptr)

Definition at line 19 of file src/web/platform/stubs/network.c.

19 {
20 (void)stream_ptr;
21 return SET_ERRNO(ERROR_NOT_SUPPORTED, "not supported in WASM");
22}
#define SET_ERRNO(code,...)
@ ERROR_NOT_SUPPORTED
Definition error_codes.h:73

References ERROR_NOT_SUPPORTED, and SET_ERRNO.

Referenced by check_gpg_key_expiry(), gpg_get_public_key(), gpg_verify_detached_ed25519(), gpg_verify_signature_with_binary(), and parse_gpg_keys_from_response().

◆ platform_popen()

int platform_popen ( const char * name,
const char * command,
const char * mode,
FILE ** out_stream )

Definition at line 11 of file src/web/platform/stubs/network.c.

11 {
12 (void)name;
13 (void)command;
14 (void)mode;
15 (void)out_stream;
16 return SET_ERRNO(ERROR_NOT_SUPPORTED, "not supported in WASM");
17}

References ERROR_NOT_SUPPORTED, and SET_ERRNO.

Referenced by check_gpg_key_expiry(), gpg_get_public_key(), gpg_verify_detached_ed25519(), gpg_verify_signature_with_binary(), and parse_gpg_keys_from_response().