X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=4c3b7c58812aef1953dcc96bb8aad797cda97f27;hb=3ab8f642787d972f9ceb8ed4a385c09aeb39848d;hp=77aee858737688dd6bc9229f2120f0cc09691bbe;hpb=cdf448f6d42cbda7d5ced7661f6de22ffb96cc54;p=libftdi diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index 77aee85..4c3b7c5 100644 --- a/ftdipp/ftdi.hpp +++ b/ftdipp/ftdi.hpp @@ -5,20 +5,33 @@ copyright : (C) 2008 by Marek Vavruša email : opensource@intra2net.com and marek@vavrusa.com ***************************************************************************/ +/* +Copyright (C) 2008 by Marek Vavruša -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU Lesser General Public License * - * version 2.1 as published by the Free Software Foundation; * - * * - ***************************************************************************/ +The software in this package is distributed under the GNU General +Public License version 2 (with a special exception described below). + +A copy of GNU General Public License (GPL) is included in this distribution, +in the file COPYING.GPL. +As a special exception, if other files instantiate templates or use macros +or inline functions from this file, or you compile this file and link it +with other works to produce a work based on this file, this file +does not by itself cause the resulting work to be covered +by the GNU General Public License. + +However the source code for this file must still be made available +in accordance with section (3) of the GNU General Public License. + +This exception does not invalidate any other reasons why a work based +on this file might be covered by the GNU General Public License. +*/ #ifndef __libftdi_hpp__ #define __libftdi_hpp__ #include #include +#include #include "ftdi.h" namespace Ftdi @@ -124,11 +137,7 @@ protected: private: class Private; - Private *d; - - /* Disable copy constructor */ - Context(const Context &) {} - Context& operator=(const Context &) {} + boost::shared_ptr d; }; /*! \brief Device EEPROM. @@ -150,10 +159,10 @@ public: private: class Private; - Private *d; + boost::shared_ptr d; }; -typedef std::list ListBase; +typedef std::list ListBase; /*! \brief Device list. */ @@ -167,7 +176,7 @@ public: private: class Private; - Private *d; + boost::shared_ptr d; }; }