ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
platform/wasm/stubs/manpage.c
Go to the documentation of this file.
1
7#include <stdio.h>
8#include <stddef.h>
9
10// Empty embedded resources for WASM
11static const char empty_manpage[] = "";
12static const size_t empty_manpage_len = 0;
13
14// Stub implementation for get_manpage_template - matches embedded_resources.h signature
15int get_manpage_template(FILE **out_file, const char **out_content, size_t *out_len) {
16 if (!out_file || !out_content || !out_len) {
17 return -1;
18 }
19
20 // Return embedded empty string (WASM doesn't support man pages)
21 *out_file = NULL;
22 *out_content = empty_manpage;
23 *out_len = empty_manpage_len;
24 return 0;
25}
26
27// Stub implementation for get_manpage_content - matches embedded_resources.h signature
28int get_manpage_content(FILE **out_file, const char **out_content, size_t *out_len) {
29 if (!out_file || !out_content || !out_len) {
30 return -1;
31 }
32
33 // Return embedded empty string (WASM doesn't support man pages)
34 *out_file = NULL;
35 *out_content = empty_manpage;
36 *out_len = empty_manpage_len;
37 return 0;
38}
39
40void release_manpage_resources(FILE *file) {
41 if (file) {
42 fclose(file);
43 }
44}
int get_manpage_template(FILE **out_file, const char **out_content, size_t *out_len)
int get_manpage_content(FILE **out_file, const char **out_content, size_t *out_len)
void release_manpage_resources(FILE *file)