From e01683528980400303d3a984cdb6469e159a6bb1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 9 Dec 2014 15:53:53 +0100 Subject: [PATCH] Bridge: Added compatibility layer with older YunClient --- libraries/Bridge/src/YunClient.h | 27 +++++++++++++++++++++++++++ libraries/Bridge/src/YunServer.h | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 libraries/Bridge/src/YunClient.h create mode 100644 libraries/Bridge/src/YunServer.h diff --git a/libraries/Bridge/src/YunClient.h b/libraries/Bridge/src/YunClient.h new file mode 100644 index 000000000..faff247c9 --- /dev/null +++ b/libraries/Bridge/src/YunClient.h @@ -0,0 +1,27 @@ +/* + Copyright (c) 2014 Arduino LLC. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _YUN_CLIENT_H_ +#define _YUN_CLIENT_H_ + +#include + +#warning "The use of YunClient is deprecated. Use BridgeClient instead!" +typedef BridgeClient YunClient; + +#endif // _YUN_CLIENT_H_ diff --git a/libraries/Bridge/src/YunServer.h b/libraries/Bridge/src/YunServer.h new file mode 100644 index 000000000..95d05cd71 --- /dev/null +++ b/libraries/Bridge/src/YunServer.h @@ -0,0 +1,27 @@ +/* + Copyright (c) 2014 Arduino LLC. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _YUN_SERVER_H_ +#define _YUN_SERVER_H_ + +#include + +#warning "The use of YunServer is deprecated. Use BridgeServer instead!" +typedef BridgeServer YunServer; + +#endif // _YUN_SERVER_H_