Slight API change to support bump functionality

This commit is contained in:
adamdunkels 2010-03-19 13:17:31 +00:00
parent 7b0606cd58
commit 14453e9fb7
2 changed files with 3 additions and 6 deletions

View file

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: polite-announcement.c,v 1.11 2010/02/23 18:32:44 adamdunkels Exp $
* $Id: polite-announcement.c,v 1.12 2010/03/19 13:17:31 adamdunkels Exp $
*/
/**
@ -158,7 +158,7 @@ send_timer(void *ptr)
}
/*---------------------------------------------------------------------------*/
static void
new_announcement(uint16_t id, uint16_t newval, uint16_t oldval)
new_announcement(uint16_t id, uint16_t newval, uint16_t oldval, uint8_t bump)
{
if(newval != oldval) {
c.interval = c.min_interval;

View file

@ -47,7 +47,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: polite-announcement.h,v 1.1 2009/02/05 19:32:01 adamdunkels Exp $
* $Id: polite-announcement.h,v 1.2 2010/03/19 13:17:31 adamdunkels Exp $
*/
/**
@ -60,9 +60,6 @@
#ifndef __POLITE_ANNOUNCEMENT_H__
#define __POLITE_ANNOUNCEMENT_H__
#include "net/rime/announcement.h"
#include "net/rime/ipolite.h"
void polite_announcement_init(uint16_t channel,
clock_time_t min,
clock_time_t max);