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

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_tableattrs
 

Detailed Description

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.

Member Data Documentation

◆ attrs

const wslua_attribute_table* _wslua_class::attrs

Table of getters/setters for attributes on class instances (optional).

◆ class_meta

const luaL_Reg* _wslua_class::class_meta

Metatable for the static class (optional)

◆ class_methods

const luaL_Reg* _wslua_class::class_methods

Methods for the static class (optional)

◆ instance_meta

const luaL_Reg* _wslua_class::instance_meta

Metatable for class instances (optional)

◆ instance_methods

const luaL_Reg* _wslua_class::instance_methods

Methods for class instances. (optional)

◆ name

const char* _wslua_class::name

Class name that is exposed to Lua code.


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