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

Diff of /lbbs/include/file_loader.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 by sysadm, Tue Nov 4 13:49:50 2025 UTC Revision 1.8 by sysadm, Wed Nov 19 03:12:58 2025 UTC
# Line 3  Line 3 
3   * file_loader   * file_loader
4   *   - shared memory based file loader   *   - shared memory based file loader
5   *   *
6   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9  #ifndef _FILE_LOADER_H_  #ifndef _FILE_LOADER_H_
# Line 12  Line 12 
12  #include "common.h"  #include "common.h"
13  #include <stddef.h>  #include <stddef.h>
14    
 extern int file_loader_init(void);  
 extern void file_loader_cleanup(void);  
   
15  extern int load_file(const char *filename);  extern int load_file(const char *filename);
16  extern int unload_file(const char *filename);  extern int unload_file(const char *filename);
17    
18  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);  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(const void *p_shm);  extern int detach_file_shm(void *p_shm);
20    
21  #endif //_FILE_LOADER_H_  #endif //_FILE_LOADER_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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