| 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 |
extern int file_loader_init(void);
|
| 24 |
extern void file_loader_cleanup(void);
|
| 25 |
|
| 26 |
extern int load_file_shm(const char *filename);
|
| 27 |
extern int unload_file_shm(const char *filename);
|
| 28 |
|
| 29 |
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_
|