Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
_wslua_attribute_table Struct Reference

Defines a single attribute entry in a Lua class attribute dispatch table, binding a field name to its getter and setter. More...

#include <wslua.h>

Public Attributes

const char * fieldname
 
lua_CFunction getfunc
 
lua_CFunction setfunc
 

Detailed Description

Defines a single attribute entry in a Lua class attribute dispatch table, binding a field name to its getter and setter.

Member Data Documentation

◆ fieldname

const char* _wslua_attribute_table::fieldname

The name of the attribute as accessed from Lua (e.g. "len", "offset").

◆ getfunc

lua_CFunction _wslua_attribute_table::getfunc

C function invoked when the attribute is read from Lua; NULL if the attribute is write-only.

◆ setfunc

lua_CFunction _wslua_attribute_table::setfunc

C function invoked when the attribute is assigned from Lua; NULL if the attribute is read-only.


The documentation for this struct was generated from the following file: