Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This is the header file for msgSender.c and msgLogger.c */
- #ifndef MSG_H
- #define MSG_H
- #include <sys/neutrino.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <errno.h>
- /* Define data types and buffer sizes */
- #define MSG_HEADER int
- #define MSG_TYPE char
- #define MSG_SIZE 256
- /* Define the known message types */
- #define MSG_DATA 1
- #define MSG_END 31
- /* Define reply status values */
- #define MSG_OK 0
- #define MSG_INVALID 101
- /* Can also use MSG_END as a reply */
- typedef struct {
- MSG_HEADER m_hdr;
- MSG_TYPE m_data[MSG_SIZE];
- } MESSAGE;
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement