1999-12-09 20:43:38 +00:00
|
|
|
/* plugins.h
|
|
|
|
* definitions for plugins structures
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2009-10-23 17:52:18 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
1999-12-09 20:43:38 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
1999-12-09 20:43:38 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
1999-12-09 20:43:38 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1999-12-09 20:43:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PLUGINS_H__
|
|
|
|
#define __PLUGINS_H__
|
|
|
|
|
2010-12-01 18:25:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2000-01-15 00:23:13 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <gmodule.h>
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2013-12-02 08:30:29 +00:00
|
|
|
typedef gboolean (*plugin_callback)(GModule *handle);
|
1999-12-09 20:43:38 +00:00
|
|
|
|
2013-12-02 08:30:29 +00:00
|
|
|
WS_DLL_PUBLIC void scan_plugins(void);
|
|
|
|
WS_DLL_PUBLIC void add_plugin_type(const char *type, plugin_callback callback);
|
|
|
|
typedef void (*plugin_description_callback)(const char *, const char *,
|
|
|
|
const char *, const char *,
|
|
|
|
void *);
|
|
|
|
WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC void plugins_dump_all(void);
|
2004-05-20 13:48:25 +00:00
|
|
|
|
2010-12-01 18:25:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1999-12-09 20:43:38 +00:00
|
|
|
#endif /* __PLUGINS_H__ */
|
2013-11-17 14:03:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|