/*
 * File Name:       proto.h
 * Description:     demo communication protocal
 */

#ifndef __DEMO_PROTOCOL__
#define __DEMO_PROTOCOL__

/* demo message queue struct */
typedef struct demo_mq_struct {
  long mtype;
  _Bool tswitch;
} MQ_STRUCT;

/* demo shared memory struct */
typedef struct zigbee_th_struct {
  unsigned short tempNow;
  unsigned short humiNow;
} SHM_STRUCT;

/* resources child threads need */
typedef struct thread_resource_struct {
  int rw_fd;
  int shm_id;
  int mq_id;
} ARG_STRUCT;

#endif