Wireshark 4.5.0
The Wireshark network protocol analyzer
|
Type for defining new classes. More...
#include <wslua.h>
Public Attributes | |
const char * | name |
const luaL_Reg * | class_methods |
const luaL_Reg * | class_meta |
const luaL_Reg * | instance_methods |
const luaL_Reg * | instance_meta |
const wslua_attribute_table * | attrs |
Type for defining new classes.
A new class is defined as a Lua table type. Instances of this class are created through pushXxx which sets the appropriate metatable.
const wslua_attribute_table* _wslua_class::attrs |
Table of getters/setters for attributes on class instances (optional).
const luaL_Reg* _wslua_class::class_meta |
Metatable for the static class (optional)
const luaL_Reg* _wslua_class::class_methods |
Methods for the static class (optional)
const luaL_Reg* _wslua_class::instance_meta |
Metatable for class instances (optional)
const luaL_Reg* _wslua_class::instance_methods |
Methods for class instances. (optional)
const char* _wslua_class::name |
Class name that is exposed to Lua code.