From 7af7203a51ddcf85f9f60e39157fcad21f7d9e34 Mon Sep 17 00:00:00 2001 From: wimpie Date: Fri, 07 Jan 2005 01:19:13 +0000 Subject: First implementation of plugins THIS VERSION DOES NOT COMPILE --- (limited to 'noncore/settings/networksettings2/wlan/wlan_NN.cpp') diff --git a/noncore/settings/networksettings2/wlan/wlan_NN.cpp b/noncore/settings/networksettings2/wlan/wlan_NN.cpp index 36a5c33..c56da06 100644 --- a/noncore/settings/networksettings2/wlan/wlan_NN.cpp +++ b/noncore/settings/networksettings2/wlan/wlan_NN.cpp @@ -2,6 +2,12 @@ #include "wlan_NN.h" #include "wlan_NNI.h" +#ifndef MYPLUGIN + +#include "netnodeinterface.h" + +#endif + static const char * WLanNeeds[] = { 0 }; @@ -63,8 +69,17 @@ void WLanNetNode::saveSpecificAttribute( QTextStream & TS ) { << endl; } +#ifdef MYPLUGIN + extern "C" { void create_plugin( QList & PNN ) { PNN.append( new WLanNetNode() ); } + +#else + +OPIE_NS2_PLUGIN( NetNodeInterface ) + +#endif + } -- cgit v0.9.0.2