ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
resources.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include "../../common.h"
14#include <stddef.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27typedef struct {
28 const char *template_content;
29 size_t template_len;
30 const char *content_sections;
31 size_t content_len;
33 bool allocated;
35
57
69
81
83
84#ifdef __cplusplus
85}
86#endif
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
⚙️ Common definitions, error codes, macros, and types shared throughout the application
void manpage_resources_destroy(manpage_resources_t *resources)
Cleanup allocated man page resources.
Definition resources.c:143
asciichat_error_t manpage_resources_load(manpage_resources_t *resources)
Load man page resources from embedded or filesystem sources.
Definition resources.c:100
bool manpage_resources_is_valid(const manpage_resources_t *resources)
Check if resources are available.
Definition resources.c:172
Man page resource container.
Definition resources.h:27
bool allocated
True if resources were allocated (need freeing).
Definition resources.h:33
size_t template_len
Length of template_content.
Definition resources.h:29
const char * content_sections
Content sections file (.1.content).
Definition resources.h:30
bool is_embedded
True if resources from embedded binary.
Definition resources.h:32
size_t content_len
Length of content_sections.
Definition resources.h:31
const char * template_content
Template file content (.1.in).
Definition resources.h:28