/[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.1 by sysadm, Fri May 16 12:22:35 2025 UTC Revision 1.4 by sysadm, Sun May 18 06:56:08 2025 UTC
# Line 20  Line 20 
20  #include "common.h"  #include "common.h"
21  #include <stddef.h>  #include <stddef.h>
22    
23  struct file_mmap_t  extern int file_loader_init(void);
 {  
         size_t size;  
         void *p_data;  
         long line_offsets[MAX_FILE_LINES];  
         long line_total;  
 };  
 typedef struct file_mmap_t FILE_MMAP;  
   
 extern int file_loader_init(int max_file_mmap_count);  
24  extern void file_loader_cleanup(void);  extern void file_loader_cleanup(void);
25    
26  extern int load_file_mmap(const char *filename);  extern int load_file_shm(const char *filename);
27  extern int unload_file_mmap(const char *filename);  extern int unload_file_shm(const char *filename);
28    
29  extern const FILE_MMAP *get_file_mmap(const char *filename);  extern const void *get_file_shm(const char *filename, size_t *p_data_len, long *p_line_total, const void **pp_data, const long **pp_line_offsets);
30    
31  #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