File src/lua/vifm_handlers.c changed (mode: 100644) (index 511d80481..0a85d18e4) |
30 |
30 |
#include "../utils/string_array.h" |
#include "../utils/string_array.h" |
31 |
31 |
#include "../plugins.h" |
#include "../plugins.h" |
32 |
32 |
#include "../vifm.h" |
#include "../vifm.h" |
33 |
|
#include "common.h" |
|
34 |
33 |
#include "lua/lauxlib.h" |
#include "lua/lauxlib.h" |
35 |
34 |
#include "lua/lua.h" |
#include "lua/lua.h" |
|
35 |
|
#include "common.h" |
36 |
36 |
#include "vifmentry.h" |
#include "vifmentry.h" |
37 |
37 |
#include "vifmview.h" |
#include "vifmview.h" |
38 |
38 |
#include "vlua_state.h" |
#include "vlua_state.h" |
|
... |
... |
vifm_handlers_view(vlua_t *vlua, const char viewer[], const char path[], |
155 |
155 |
} |
} |
156 |
156 |
|
|
157 |
157 |
void |
void |
158 |
|
vifm_handlers_open(vlua_t *vlua, const char prog[], |
|
159 |
|
const struct dir_entry_t *entry) |
|
|
158 |
|
vifm_handlers_open(vlua_t *vlua, const char prog[], const dir_entry_t *entry) |
160 |
159 |
{ |
{ |
161 |
160 |
char *name = extract_handler_name(prog); |
char *name = extract_handler_name(prog); |
162 |
161 |
|
|
|
... |
... |
vifm_handlers_open(vlua_t *vlua, const char prog[], |
197 |
196 |
} |
} |
198 |
197 |
|
|
199 |
198 |
char * |
char * |
200 |
|
vifm_handlers_make_status_line(vlua_t *vlua, const char format[], |
|
201 |
|
struct view_t *view, int width) |
|
|
199 |
|
vifm_handlers_make_status_line(vlua_t *vlua, const char format[], view_t *view, |
|
200 |
|
int width) |
202 |
201 |
{ |
{ |
203 |
202 |
char *name = extract_handler_name(format); |
char *name = extract_handler_name(format); |
204 |
203 |
|
|
File src/lua/vifm_handlers.h changed (mode: 100644) (index 781caf461..d6c628bf1) |
... |
... |
int vifm_handlers_present(struct vlua_t *vlua, const char cmd[]); |
44 |
44 |
struct strlist_t vifm_handlers_view(struct vlua_t *vlua, const char viewer[], |
struct strlist_t vifm_handlers_view(struct vlua_t *vlua, const char viewer[], |
45 |
45 |
const char path[], const struct preview_area_t *parea); |
const char path[], const struct preview_area_t *parea); |
46 |
46 |
|
|
47 |
|
/* Invokes a fiel handler. */ |
|
|
47 |
|
/* Invokes a file handler. */ |
48 |
48 |
void vifm_handlers_open(struct vlua_t *vlua, const char prog[], |
void vifm_handlers_open(struct vlua_t *vlua, const char prog[], |
49 |
49 |
const struct dir_entry_t *entry); |
const struct dir_entry_t *entry); |
50 |
50 |
|
|