ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
embedded_resources.h
Go to the documentation of this file.
1
44
45#pragma once
46
47#include <stddef.h>
48#include <stdio.h>
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54// =============================================================================
55// Build Type Detection
56// =============================================================================
57
66
67// =============================================================================
68// External Declarations for Embedded Data
69// =============================================================================
70
76extern const char embedded_manpage_template[];
77
83extern const size_t embedded_manpage_template_size;
84
85// =============================================================================
86// Resource Access Functions
87// =============================================================================
88
112int get_manpage_template(FILE **out_file, const char **out_content,
113 size_t *out_len);
114
128int get_manpage_content(FILE **out_file, const char **out_content,
129 size_t *out_len);
130
145void release_manpage_resources(FILE *file);
146
148
149#ifdef __cplusplus
150}
151#endif
int get_manpage_template(FILE **out_file, const char **out_content, size_t *out_len)
Get man page template source (embedded or filesystem).
Definition embedded.c:22
int get_manpage_content(FILE **out_file, const char **out_content, size_t *out_len)
Get man page content source (embedded or filesystem).
Definition embedded.c:75
const size_t embedded_manpage_template_size
Size of embedded_manpage_template (excluding null terminator).
void release_manpage_resources(FILE *file)
Release resources obtained from get_manpage_*.
Definition embedded.c:91
const char embedded_manpage_template[]
Behavior based on build type.