63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
|
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
|
||
|
|
||
|
File: plugin.c
|
||
|
|
||
|
$Octasic_Copyright: $
|
||
|
|
||
|
Description:
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU Affero General Public License as published by
|
||
|
the Free Software Foundation; either version 3 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 Affero General Public License
|
||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
$Octasic_Release: $
|
||
|
|
||
|
$Revision: $
|
||
|
|
||
|
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
# include "config.h"
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#include <gmodule.h>
|
||
|
|
||
|
#include "../include/moduleinfo.h"
|
||
|
|
||
|
#ifndef ENABLE_STATIC
|
||
|
|
||
|
#if defined(VERSION_MAJOR) && (VERSION_MAJOR > 1 || (VERSION_MAJOR == 1 && VERSION_MINOR > 8))
|
||
|
#define WS_BUILD_DLL
|
||
|
#include "ws_symbol_export.h"
|
||
|
#define WS_EXPORT WS_DLL_PUBLIC_NOEXTERN
|
||
|
#else
|
||
|
#define WS_EXPORT G_MODULE_EXPORT
|
||
|
#endif
|
||
|
|
||
|
WS_EXPORT const gchar version[] = VERSION;
|
||
|
|
||
|
/* Start the functions we need for the plugin stuff */
|
||
|
WS_EXPORT void
|
||
|
plugin_register (void)
|
||
|
{
|
||
|
{extern void proto_register_octpkt (void); proto_register_octpkt ();}
|
||
|
}
|
||
|
|
||
|
WS_EXPORT void
|
||
|
plugin_reg_handoff(void)
|
||
|
{
|
||
|
{extern void proto_reg_handoff_octpkt (void); proto_reg_handoff_octpkt ();}
|
||
|
}
|
||
|
#endif
|
||
|
|