Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef ACTIONS_H_
  2. #define ACTIONS_H_
  3.  
  4. #include "interface.h"
  5.  
  6. typedef enum {
  7.     upload,
  8.     reset,
  9.     start,
  10.     dump,
  11.     send
  12. } action_t;
  13.  
  14. typedef struct {
  15.     int node_id;
  16.     action_t action;
  17.     char* parameter;
  18. } actions_t;
  19.  
  20. int do_upload(actions_t* action);
  21. int do_reset(actions_t* action);
  22. int do_start(actions_t* action);
  23. int do_dump(actions_t* action);
  24. int do_send(actions_t* action);
  25.  
  26. #endif /*ACTIONS_H_*/
  27.