2017-11-16 23:55:57 +00:00
|
|
|
/* dissectors.h
|
|
|
|
* Definitions for protocol registration
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2017-11-16 23:55:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DISSECTOR_REGISTER_H__
|
|
|
|
#define __DISSECTOR_REGISTER_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
typedef struct _dissector_reg {
|
2017-11-18 21:51:17 +00:00
|
|
|
const char *cb_name;
|
|
|
|
void (*cb_func)(void);
|
2017-11-16 23:55:57 +00:00
|
|
|
} dissector_reg_t;
|
|
|
|
|
2018-10-24 13:53:07 +00:00
|
|
|
extern dissector_reg_t dissector_reg_proto[];
|
|
|
|
extern dissector_reg_t dissector_reg_handoff[];
|
2017-11-16 23:55:57 +00:00
|
|
|
|
2018-10-24 13:53:07 +00:00
|
|
|
extern const gulong dissector_reg_proto_count;
|
|
|
|
extern const gulong dissector_reg_handoff_count;
|
2017-11-16 23:55:57 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __DISSECTOR_REGISTER_H__ */
|
|
|
|
|
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2017-11-16 23:55:57 +00:00
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
2017-11-18 21:51:17 +00:00
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
2017-11-16 23:55:57 +00:00
|
|
|
*/
|