/[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.5 - (hide annotations)
Sun May 25 06:48:31 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.4: +4 -3 lines
Content type: text/x-chdr
Refact file_loader
Store shmid in dict as value, instead of p_shm

1 sysadm 1.1 /***************************************************************************
2     file_loader.h - description
3     -------------------
4     Copyright : (C) 2004-2025 by Leaflet
5     Email : leaflet@leafok.com
6     ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * This program is free software; you can redistribute it and/or modify *
11     * it under the terms of the GNU General Public License as published by *
12     * the Free Software Foundation; either version 3 of the License, or *
13     * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17     #ifndef _FILE_LOADER_H_
18     #define _FILE_LOADER_H_
19    
20     #include "common.h"
21     #include <stddef.h>
22    
23 sysadm 1.3 extern int file_loader_init(void);
24 sysadm 1.1 extern void file_loader_cleanup(void);
25    
26 sysadm 1.5 extern int load_file(const char *filename);
27     extern int unload_file(const char *filename);
28 sysadm 1.1
29 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);
30     extern int detach_file_shm(const void *p_shm);
31 sysadm 1.1
32     #endif //_FILE_LOADER_H_

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