Functions for writing dissectors


Prefs

The table of preferences of a Protocol. (Reference)

function

description

prefs:__newindex(name, pref)

Creates a new preference

prefs:__index(name)

Gets the value of a preference setting


prefs:__newindex(name, pref)


prefs:__index(name)


Pref

A preference of a Protocol. (Reference)

function

description

Pref.bool(label, default, descr)

Creates a Boolean preference (i.e., a checkbox) to be added to a Protocol's prefs table

Pref.uint(label, default, descr)

Creates an [unsigned] integer preference (i.e., a numeric textbox) to be added to a Protocol's prefs table

Pref.string(label, default, descr)

Creates a string preference (i.e., a textbox) to be added to a Protocol's prefs table

Pref.enum(label, default, descr, enum, radio)

Creates an enum preference (i.e., radio button or Combobox) to be added to a Protocol's prefs table

Pref.range(label, default, descr, max)

Creates a range preference (i.e., numeric textbox) to be added to a Protocol's prefs table

Pref.range(label, default, descr, range, max)

Creates a range preference (i.e., numeric textbox) to be added to a Protocol's prefs table (DEPRECATED)

Pref.statictext(label, descr)

Creates a static text field (i.e., label) to be added to a Protocol's prefs table


Pref.bool(label, default, descr)


Pref.uint(label, default, descr)


Pref.string(label, default, descr)


Pref.enum(label, default, descr, enum, radio)


Pref.range(label, default, descr, max)

Pref.range(label, default, descr, range, max) (DEPRECATED)


Pref.statictext(label, descr)

LuaAPI/Pref (last edited 2011-06-25 21:10:58 by TonyTrinh)