X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=codegen%2Fmain.cpp;h=105dc24d799dc4acdff79b36196b756a7683fc6f;hp=7df215a71fe597eac290cd1bb5a3205ee3a90c57;hb=ab2a4234912fd8325e966235d592b632290413df;hpb=7799fec761f19ead0aeea59e7db3f4a07eb96627 diff --git a/codegen/main.cpp b/codegen/main.cpp index 7df215a..105dc24 100644 --- a/codegen/main.cpp +++ b/codegen/main.cpp @@ -1,20 +1,24 @@ /* - Copyright (C) 2006-2008 + Copyright (C) 2006-2008 by Intra2net AG intra2net.com - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + The software in this package is distributed under the GNU General + Public License version 2 (with a special exception described below). - 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. + A copy of GNU General Public License (GPL) is included in this distribution, + in the file COPYING.GPL. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + 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. */ #include @@ -26,9 +30,9 @@ #include #include #include -#ifdef HAVE_CONFIG_H + #include "config.h" -#endif + //! map group to class name @@ -492,7 +496,7 @@ void output_client_hpp(std::ostream &o, const std::string &group, const std::lis o << "class " << groupClass(group) << "_client : public libt2n::command_client\n" << "{\n" << "public:\n" - << groupClass(group) << "_client(libt2n::client_connection &_c,\n" + << groupClass(group) << "_client(libt2n::client_connection *_c,\n" << " long long _command_timeout_usec=command_timeout_usec_default,\n" << " long long _hello_timeout_usec=hello_timeout_usec_default)\n" << " : libt2n::command_client(_c,_command_timeout_usec,_hello_timeout_usec)\n"