From: scipio Date: Thu, 8 Feb 2007 00:23:34 +0000 (+0000) Subject: Remove LinkSrcPacket.nc X-Git-Tag: tinyos/2.0.1~192 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=8fd9a98abba7601189a8ce8871b9f6a8981ea7ef;p=tinyos-2.x.git Remove LinkSrcPacket.nc --- diff --git a/tos/lib/net/le/LinkEstimatorP.nc b/tos/lib/net/le/LinkEstimatorP.nc index 2fee9a1d..58ab66c6 100644 --- a/tos/lib/net/le/LinkEstimatorP.nc +++ b/tos/lib/net/le/LinkEstimatorP.nc @@ -39,7 +39,6 @@ module LinkEstimatorP { interface LinkEstimator; interface Init; interface Packet; - interface LinkSrcPacket; } uses { @@ -559,11 +558,6 @@ implementation { } - // get the link layer source address for the incoming packet - command am_addr_t LinkSrcPacket.getSrc(message_t* msg) { - return call SubAMPacket.source(msg); - } - // user of link estimator calls send here // slap the header and footer before sending the message command error_t Send.send(am_addr_t addr, message_t* msg, uint8_t len) { diff --git a/tos/lib/net/le/LinkSrcPacket.nc b/tos/lib/net/le/LinkSrcPacket.nc deleted file mode 100644 index f19433fc..00000000 --- a/tos/lib/net/le/LinkSrcPacket.nc +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ */ -/* - * "Copyright (c) 2005 The Regents of the University of California. - * All rights reserved. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose, without fee, and without written agreement is - * hereby granted, provided that the above copyright notice, the following - * two paragraphs and the author appear in all copies of this software. - * - * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR - * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT - * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF - * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS - * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO - * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." - * - */ - -/* - * @author Rodrigo Fonseca - * Based on MintRoute, by Philip Buonadonna, Alec Woo, Terence Tong, Crossbow - * @date $Date$ - */ - -// Om: added the keyword "command" - -interface LinkSrcPacket { - /** Returns the am_addr of the link this message came from */ - command am_addr_t getSrc(message_t* msg); -}