| 9120e874 Andy McCall |
1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _SOURCE_VIEW_H_ |
| 6 |
#define _SOURCE_VIEW_H_ |
| 7 |
|
| 8 |
#include <stdbool.h> |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
typedef struct { |
| 16 |
char *name; |
| 17 |
char *text; |
| 18 |
char **lines; |
| 19 |
int count; |
| 20 |
bool found; |
| 21 |
} source_file_t; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
void source_view_add_path(const char *dir); |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
const source_file_t *source_view_get(const char *name); |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
void source_view_invalidate(void); |
| 37 |
|
| 38 |
|
| 39 |
void source_view_free(void); |
| 40 |
|
| 41 |
#ifdef __cplusplus |
| 42 |
} |
| 43 |
#endif |
| 44 |
|
| 45 |
#endif |