From 363a0a519d9997fc1e07f0732b2dd09b162d807d Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Thu, 4 Jan 2007 21:30:39 +0000 Subject: Fixed C++ client sending protocol version 0-0 over the wire. Minor fixes and tidy-up in related code. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@492756 13f79535-47bb-0310-9956-ffa450edef68 --- .../templ.cpp/AMQP_HighestVersion.cpp.tmpl | 31 ---------------- qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 31 deletions(-) delete mode 100644 qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl create mode 100644 qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl (limited to 'qpid/gentools/templ.cpp') diff --git a/qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl b/qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl deleted file mode 100644 index e82a8d697d..0000000000 --- a/qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -&{AMQP_HighestVersion.cpp} -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -/* - * This file is auto-generated by ${GENERATOR} - do not modify. - * Supported AMQP versions: -%{VLIST} * ${major}-${minor} - */ - -#include - -qpid::framing::ProtocolVersion highestProtocolVersion(${hv_latest_major}, ${hv_latest_minor}); diff --git a/qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl b/qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl new file mode 100644 index 0000000000..96ee9416b0 --- /dev/null +++ b/qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl @@ -0,0 +1,42 @@ +&{AMQP_HighestVersion.h} +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +/* + * This file is auto-generated by ${GENERATOR} - do not modify. + * Supported AMQP versions: +%{VLIST} * ${major}-${minor} + */ +#ifndef _AMQP_HighestVersion_ +#define _AMQP_HighestVersion_ + +#include + + +namespace qpid { +namespace framing { + +static ProtocolVersion highestProtocolVersion(${hv_latest_major}, ${hv_latest_minor}); + +} /* namespace framing */ +} /* namespace qpid */ + +#endif -- cgit v1.2.1