provides interface Init;
- uses interface DisseminationUpdate<dip_data_t> as DIPDisseminationUpdate;
- uses interface DIPHelp;
+ uses interface DisseminationUpdate<dip_data_t> as DipDisseminationUpdate;
+ uses interface DipHelp;
uses interface Leds;
}
}
command error_t Init.init() {
- call DIPHelp.registerKey(key);
+ call DipHelp.registerKey(key);
return SUCCESS;
}
command void AppDisseminationUpdate.change( t* newVal ) {
memcpy( &valueCache, newVal, sizeof(t) );
/* Increment the counter and append the local node ID later. */
- /* DIPLogicC doesn't care what the data actually is,
+ /* DipLogicC doesn't care what the data actually is,
it just wants the key, so we cast it recklessly */
- call DIPDisseminationUpdate.change((dip_data_t*)newVal);
+ call DipDisseminationUpdate.change((dip_data_t*)newVal);
}
command const dip_data_t* DataDisseminationValue.get() {