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/usb/usb_NN.cpp') diff --git a/noncore/settings/networksettings2/usb/usb_NN.cpp b/noncore/settings/networksettings2/usb/usb_NN.cpp index bd9ae2b..9c07b82 100644 --- a/noncore/settings/networksettings2/usb/usb_NN.cpp +++ b/noncore/settings/networksettings2/usb/usb_NN.cpp @@ -2,6 +2,12 @@ #include "usb_NN.h" #include "usb_NNI.h" +#ifndef MYPLUGIN + +#include "netnodeinterface.h" + +#endif + static const char * USBNeeds[] = { 0 }; @@ -55,8 +61,17 @@ void USBNetNode::setSpecificAttribute( QString & , QString & ) { void USBNetNode::saveSpecificAttribute( QTextStream & ) { } +#ifdef MYPLUGIN + extern "C" { void create_plugin( QList & PNN ) { PNN.append( new USBNetNode() ); } + +#else + +OPIE_NS2_PLUGIN( NetNodeInterface ) + +#endif + } -- cgit v0.9.0.2