/[LeafOK_CVS]/lbbs/include/file_loader.h
ViewVC logotype

Contents of /lbbs/include/file_loader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations)
Sat Jan 3 10:27:14 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
Content type: text/x-chdr
Update copyright info

1 /* SPDX-License-Identifier: GPL-3.0-or-later */
2 /*
3 * file_loader
4 * - shared memory based file loader
5 *
6 * Copyright (C) 2004-2026 Leaflet <leaflet@leafok.com>
7 */
8
9 #ifndef _FILE_LOADER_H_
10 #define _FILE_LOADER_H_
11
12 #include "common.h"
13 #include <stddef.h>
14
15 extern int load_file(const char *filename);
16 extern int unload_file(const char *filename);
17
18 extern void *get_file_shm_readonly(const char *filename, size_t *p_data_len, long *p_line_total, const void **pp_data, const long **pp_line_offsets);
19 extern int detach_file_shm(void *p_shm);
20
21 #endif //_FILE_LOADER_H_

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1