No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

message.h 694B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. /*
  7. * File: message.h
  8. * Author: pehladik
  9. *
  10. * Created on 7 février 2018, 17:20
  11. */
  12. #ifndef MESSAGE_H
  13. #define MESSAGE_H
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <unistd.h>
  17. #include <string.h>
  18. typedef struct {
  19. char header[4];
  20. void *data = NULL;
  21. } MessageToMon;
  22. void set_msgToMon_header(MessageToMon *msg, char *header);
  23. void set_msgToMon_data(MessageToMon *msg, void * data);
  24. void free_msgToMon_data(MessageToMon *msg);
  25. void print_msgToMon(MessageToMon *msg);
  26. #endif /* MESSAGE_H */