This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathplugin.c
62 lines (52 loc) · 1.65 KB
/
plugin.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* plugin.c
*
* Pyreshark Plugin for Wireshark. (https://github.com/ashdnazg/pyreshark)
*
* Copyright (c) 2013 by Eshed Shaham
*
* 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.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
* Do not Delete this file, it is no longer auto-created.
*/
/* The following two lines prevent redefinition of ssize_t on win64*/
#define _SSIZE_T_DEFINED
#define QT_VERSION
#include "config.h"
#include <gmodule.h>
#include "moduleinfo.h"
#if VERSION_MINOR > 8
#define WS_BUILD_DLL
#include "ws_symbol_export.h"
#ifndef WS_DLL_PUBLIC_DEF
#define WS_DLL_PUBLIC_DEF WS_DLL_PUBLIC_NOEXTERN
#endif
#else
#define WS_DLL_PUBLIC_DEF G_MODULE_EXPORT
#endif
#ifndef ENABLE_STATIC
WS_DLL_PUBLIC_DEF const gchar version[] = VERSION;
/* Start the functions we need for the plugin stuff */
WS_DLL_PUBLIC_DEF void
plugin_register (void)
{
{extern void init_pyreshark (void); init_pyreshark();}
}
WS_DLL_PUBLIC_DEF void
plugin_reg_handoff(void)
{
{extern void handoff_pyreshark (void); handoff_pyreshark();}
}
#endif