Code Search for Developers
 
 
  

MdForwarder.h from EmStar at Krugle


Show MdForwarder.h syntax highlighted

#ifndef __MD_FORWARDER_H__
#define __MD_FORWARDER_H__

#include <stdint.h>
#include "DiffTypes.h"
#include "Mdiff.h"


result_t MdForwarder_init(Mdiff_state_t * state);
result_t MdForwarder_start(Mdiff_state_t * state);
result_t MdForwarder_stop(Mdiff_state_t * state);
result_t MdForwarder_recvFromFilter( Mdiff_state_t * state, IntDiffMsg_t *p_pMsg);
// ???? Called from Packet Device Server Callback
result_t MdForwarder_sendMsg( Mdiff_state_t * state, uint16_t p_uiLastHop, DiffMsg_t *p_pMsg );
// ??? Called from Packet Device Server Callback
//result_t MdForwarder_sendMsg_helper( Mdiff_state *state, MdCallStruct_t * args);
// ??? Not done. 
result_t MdForwarder_callFilter(Mdiff_state_t * state, IntDiffMsg_t * tMsg );
// ??? Called from Packet Device Server Callback
//result_t MdForwarder_updateFilterPriority( Mdiff_state_t * state, MdCallStruct_t * args);

result_t MdForwarder_callPreGradient(Mdiff_state_t * state, IntDiffMsg_t * tMsg);
result_t MdForwarder_callPostGradient(Mdiff_state_t * state, IntDiffMsg_t * tMsg);

////////////////////////////////// MdFilter
// MdFilter Functions: When a filter object connects as a client, we
// query their attributes and store it.
result_t MdFilter_getMatchAttrs( Mdiff_state_t * state, uint8_t ui,
				 DiffAttr_t ** pAttrs, uint8_t * uiNumAttrs);
result_t MdFilter_recv( Mdiff_state_t * state, uint8_t ui, IntDiffMsg_t * tMsg );

#endif




See more files for this project here

EmStar

EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.

Project homepage: http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other

  old/
    MDForwarder.c
    MDForwarder_i.h
    MDOppGradient.c
    MDOppGradient.h
    MD_i.h
    microdiff.c
    microdiff.h
  DiffTypes.h
  MdForwarder.c
  MdForwarder.h
  MdMatch.c
  MdMatch.h
  MdOppGradient.c
  MdOppGradient.h
  Mdiff.h
  Mdiff.txt
  Mdiff_main.c