trick/trick_source/trick_utils/comm/include/hs_msg.h

32 lines
724 B
C
Raw Normal View History

#ifndef HS_MSG_H
#define HS_MSG_H
2015-02-26 15:02:31 +00:00
#define MAX_MSG_SIZE 4096
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
char sim_name[48]; /* -- Sim/Task-group name msg is
coming from */
char hostname[48]; /* -- Machine name msg is coming from */
double ret; /* -- Run elapsed time */
int parent_child_num; /* -- Parent or child process number */
int msgsize; /* -- Size in bytes of following msg */
char datebuff[32]; /* -- Date and time string */
/* NOTE: msg[MAX_MSG_SIZE] MUST be the LAST
* element of this structure
*/
char msg[MAX_MSG_SIZE]; /* -- the message */
} HS_MSG;
#ifdef __cplusplus
}
#endif
#endif