ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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
23typedef struct {
24 const char *template_content;
25 size_t template_len;
26 const char *content_sections;
27 size_t content_len;
29 bool allocated;
31
53
65
77
⚙️ Common definitions, error codes, macros, and types shared throughout the application
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
void manpage_resources_destroy(manpage_resources_t *resources)
Cleanup allocated man page resources.
Definition resources.c:147
asciichat_error_t manpage_resources_load(manpage_resources_t *resources)
Load man page resources from embedded or filesystem sources.
Definition resources.c:103
bool manpage_resources_is_valid(const manpage_resources_t *resources)
Check if resources are available.
Definition resources.c:176
Man page resource container.
Definition resources.h:23
bool allocated
True if resources were allocated (need freeing).
Definition resources.h:29
size_t template_len
Length of template_content.
Definition resources.h:25
const char * content_sections
Content sections file (.1.content).
Definition resources.h:26
bool is_embedded
True if resources from embedded binary.
Definition resources.h:28
size_t content_len
Length of content_sections.
Definition resources.h:27
const char * template_content
Template file content (.1.in).
Definition resources.h:24