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/ppp/ppp_NN.cpp') diff --git a/noncore/settings/networksettings2/ppp/ppp_NN.cpp b/noncore/settings/networksettings2/ppp/ppp_NN.cpp index 51ba27d..bd13ab9 100644 --- a/noncore/settings/networksettings2/ppp/ppp_NN.cpp +++ b/noncore/settings/networksettings2/ppp/ppp_NN.cpp @@ -4,6 +4,12 @@ #include "ppp_NN.h" #include "ppp_NNI.h" +#ifndef MYPLUGIN + +#include "netnodeinterface.h" + +#endif + QStringList * PPPNetNode::ProperFiles = 0; static const char * PPPNeeds[] = @@ -78,8 +84,17 @@ void PPPNetNode::setSpecificAttribute( QString & , QString & ) { void PPPNetNode::saveSpecificAttribute( QTextStream & ) { } +#ifdef MYPLUGIN + extern "C" { void create_plugin( QList & PNN ) { PNN.append( new PPPNetNode() ); } + +#else + +OPIE_NS2_PLUGIN( NetNodeInterface ) + +#endif + } -- cgit v0.9.0.2