Wireshark-dev: Re: [Wireshark-dev] Freshly installed WS gives init.lua error message box
LEGO wrote:
Can you check if wslua_datafile_path is added to the generated
WSLUA_DECLARE_FUNCTIONS() ( in declare_wslua.h ) and to
wslua_register_functions() (in register_wslua.c) ?
Yes for .h, no for .c (.c does include datafile_path, so it seems the
prefix is missing), see attached files.
Regards, ULFL
/* This file is automatically genrated by make-reg.pl do not edit */
#include "wslua.h"
void wslua_register_classes(lua_State* L) {
ByteArray_register(L);
Tvb_register(L);
TvbRange_register(L);
Pref_register(L);
Prefs_register(L);
ProtoField_register(L);
Proto_register(L);
Dissector_register(L);
DissectorTable_register(L);
TreeItem_register(L);
Address_register(L);
Column_register(L);
Columns_register(L);
Pinfo_register(L);
Listener_register(L);
TextWindow_register(L);
Dir_register(L);
FieldInfo_register(L);
Field_register(L);
PseudoHeader_register(L);
Dumper_register(L);
}
void wslua_register_functions(lua_State* L) {
WSLUA_REGISTER_FUNCTION(register_postdissector);
WSLUA_REGISTER_FUNCTION(gui_enabled);
WSLUA_REGISTER_FUNCTION(register_menu);
WSLUA_REGISTER_FUNCTION(new_dialog);
WSLUA_REGISTER_FUNCTION(retap_packets);
WSLUA_REGISTER_FUNCTION(copy_to_clipboard);
WSLUA_REGISTER_FUNCTION(open_capture_file);
WSLUA_REGISTER_FUNCTION(set_filter);
WSLUA_REGISTER_FUNCTION(apply_filter);
WSLUA_REGISTER_FUNCTION(reload);
WSLUA_REGISTER_FUNCTION(format_date);
WSLUA_REGISTER_FUNCTION(format_time);
WSLUA_REGISTER_FUNCTION(report_failure);
WSLUA_REGISTER_FUNCTION(critical);
WSLUA_REGISTER_FUNCTION(warn);
WSLUA_REGISTER_FUNCTION(message);
WSLUA_REGISTER_FUNCTION(info);
WSLUA_REGISTER_FUNCTION(debug);
WSLUA_REGISTER_FUNCTION(loadfile);
WSLUA_REGISTER_FUNCTION(dofile);
WSLUA_REGISTER_FUNCTION(persconffile_path);
WSLUA_REGISTER_FUNCTION(datafile_path);
WSLUA_REGISTER_FUNCTION(all_field_infos);
}
/* This file is automatically genrated by make-reg.pl do not edit */
#define WSLUA_DECLARE_CLASSES() \
WSLUA_CLASS_DECLARE(ByteArray);\
WSLUA_CLASS_DECLARE(Tvb);\
WSLUA_CLASS_DECLARE(TvbRange);\
WSLUA_CLASS_DECLARE(Pref);\
WSLUA_CLASS_DECLARE(Prefs);\
WSLUA_CLASS_DECLARE(ProtoField);\
WSLUA_CLASS_DECLARE(Proto);\
WSLUA_CLASS_DECLARE(Dissector);\
WSLUA_CLASS_DECLARE(DissectorTable);\
WSLUA_CLASS_DECLARE(TreeItem);\
WSLUA_CLASS_DECLARE(Address);\
WSLUA_CLASS_DECLARE(Column);\
WSLUA_CLASS_DECLARE(Columns);\
WSLUA_CLASS_DECLARE(Pinfo);\
WSLUA_CLASS_DECLARE(Listener);\
WSLUA_CLASS_DECLARE(TextWindow);\
WSLUA_CLASS_DECLARE(Dir);\
WSLUA_CLASS_DECLARE(FieldInfo);\
WSLUA_CLASS_DECLARE(Field);\
WSLUA_CLASS_DECLARE(PseudoHeader);\
WSLUA_CLASS_DECLARE(Dumper);\
#define WSLUA_DECLARE_FUNCTIONS() \
WSLUA_FUNCTION wslua_register_postdissector(lua_State* L);\
WSLUA_FUNCTION wslua_gui_enabled(lua_State* L);\
WSLUA_FUNCTION wslua_register_menu(lua_State* L);\
WSLUA_FUNCTION wslua_new_dialog(lua_State* L);\
WSLUA_FUNCTION wslua_retap_packets(lua_State* L);\
WSLUA_FUNCTION wslua_copy_to_clipboard(lua_State* L);\
WSLUA_FUNCTION wslua_open_capture_file(lua_State* L);\
WSLUA_FUNCTION wslua_set_filter(lua_State* L);\
WSLUA_FUNCTION wslua_apply_filter(lua_State* L);\
WSLUA_FUNCTION wslua_reload(lua_State* L);\
WSLUA_FUNCTION wslua_format_date(lua_State* L);\
WSLUA_FUNCTION wslua_format_time(lua_State* L);\
WSLUA_FUNCTION wslua_report_failure(lua_State* L);\
WSLUA_FUNCTION wslua_critical(lua_State* L);\
WSLUA_FUNCTION wslua_warn(lua_State* L);\
WSLUA_FUNCTION wslua_message(lua_State* L);\
WSLUA_FUNCTION wslua_info(lua_State* L);\
WSLUA_FUNCTION wslua_debug(lua_State* L);\
WSLUA_FUNCTION wslua_loadfile(lua_State* L);\
WSLUA_FUNCTION wslua_dofile(lua_State* L);\
WSLUA_FUNCTION wslua_persconffile_path(lua_State* L);\
WSLUA_FUNCTION wslua_datafile_path(lua_State* L);\
WSLUA_FUNCTION wslua_all_field_infos(lua_State* L);\
extern void wslua_register_classes(lua_State* L);
extern void wslua_register_functions(lua_State* L);