agboxdeviceshm.h 702 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef AGBOXDEVICESHM_H
  2. #define AGBOXDEVICESHM_H
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <stdbool.h>
  6. #include <sys/types.h>
  7. #include <sys/ipc.h>
  8. #include <sys/shm.h>
  9. #define VIDEO_PORT 8523
  10. #define VIDEO_PATH "/"
  11. typedef struct{
  12. int device_type;
  13. char device_code[50];
  14. char device_id[50];
  15. char company_code[50];
  16. char device_gateway[50];
  17. unsigned int lastTime;
  18. unsigned int Enabled;
  19. }Device;
  20. typedef struct{
  21. int device_type;
  22. char attribute_name[60];
  23. char attribute_code[20];
  24. unsigned int Enabled;
  25. } ProductAttribute;
  26. typedef struct{
  27. Device device[1024];
  28. ProductAttribute procuctattrbute[300];
  29. } BoxDeviceShm;
  30. #endif // AGBOXDEVICESHM_H