This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

What is the job of auto generated file plugin.c in plugin/amf folder?

0

I am writing a plugin for amf. The following file is auto generated.

--------8<--------------------------------------------------------------
/*
 * Do not modify this file.
 *
 * It is created automatically by Makefile or Makefile.nmake.
 */

#ifdef HAVE_CONFIG_H

include "config.h"

#endif

#include <gmodule.h>

#include "moduleinfo.h"

#ifndef ENABLE_STATIC G_MODULE_EXPORT const gchar version[] = VERSION;

/* Start the functions we need for the plugin stuff */

G_MODULE_EXPORT void plugin_register (void) { {extern void proto_register_amf (void); proto_register_amf ();} }

G_MODULE_EXPORT void plugin_reg_handoff(void) { {extern void proto_reg_handoff_amf (void); proto_reg_handoff_amf ();} } #endif

——–8<————————————————————–

What is the job of this file?

asked 18 Nov ‘12, 21:48

Akhil's gravatar image

Akhil
53272831
accept rate: 0%

edited 18 Nov ‘12, 23:12

Jaap's gravatar image

Jaap ♦
11.7k16101


One Answer:

0

This autogenerated file forms the interface between the specific dissector code you can write and the Wireshark plugin infrastructure. This is the interface that the Wireshark plugin registration code looks for when loading your plugin.

answered 18 Nov '12, 23:15

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thanks a lot Jaap

(18 Nov '12, 23:16) Akhil