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

Annotation of /lbbs/include/file_loader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations)
Tue Nov 4 13:49:50 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.5: +7 -15 lines
Content type: text/x-chdr
Update file header information comments

1 sysadm 1.6 /* SPDX-License-Identifier: GPL-3.0-or-later */
2     /*
3     * file_loader
4     * - shared memory based file loader
5     *
6     * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7     */
8 sysadm 1.1
9     #ifndef _FILE_LOADER_H_
10     #define _FILE_LOADER_H_
11    
12     #include "common.h"
13     #include <stddef.h>
14    
15 sysadm 1.3 extern int file_loader_init(void);
16 sysadm 1.1 extern void file_loader_cleanup(void);
17    
18 sysadm 1.5 extern int load_file(const char *filename);
19     extern int unload_file(const char *filename);
20 sysadm 1.1
21 sysadm 1.5 extern const 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);
22     extern int detach_file_shm(const void *p_shm);
23 sysadm 1.1
24     #endif //_FILE_LOADER_H_

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