plugin
struct plugin *e;
struct plugin *e;
struct plugin *e;
struct plugin *next;
static struct plugin *registered = NULL;
struct plugin *e;
} rss, pm, plugin;
struct visibility_plugin *plugin;
plugin = (struct visibility_plugin *)malloc
plugin->base.wp_hal = hal;
plugin->base.init = visibility_init;
plugin->base.deinit = visibility_deinit;
plugin->base.work = visibility_work;
register_plugin(hal, (struct wtap_plugin *)plugin);
visibility_init(struct wtap_plugin *plugin)
vis_plugin = (struct visibility_plugin *) plugin;
plugin->wp_sdev = make_dev(&vis_cdevsw,0,UID_ROOT,GID_WHEEL,0600,
plugin->wp_sdev->si_drv1 = vis_plugin;
visibility_deinit(struct wtap_plugin *plugin)
vis_plugin = (struct visibility_plugin *) plugin;
destroy_dev(plugin->wp_sdev);
visibility_work(struct wtap_plugin *plugin, struct packet *p)
(struct visibility_plugin *) plugin;
hal->plugin->work(hal->plugin, p);
register_plugin(struct wtap_hal *hal, struct wtap_plugin *plugin)
plugin->init(plugin);
hal->plugin = plugin;
hal->plugin->deinit(hal->plugin);
hal->plugin = NULL; /* catch illegal usages */
struct wtap_plugin *plugin;