Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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_table * | attrs

## 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

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.

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

- /home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/epan/wslua/wslua.h