ytServiceShm.h 421 B

1234567891011121314151617181920212223
  1. #ifndef YTSERVICESHM_H
  2. #define YTSERVICESHM_H
  3. #include <stdbool.h>
  4. #include <sys/types.h>
  5. #include <sys/shm.h>
  6. #include <sys/ipc.h>
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9. #include <time.h>
  10. #define SHM_PATH "/"
  11. #define SHM_PORT 1801
  12. #define APP_NAME "ytServiceCore"
  13. #define CORE_MAIN 1
  14. #define DB_THREAD 2
  15. typedef struct {
  16. time_t updatetime[16];
  17. }YT_SERVICE_SHM;
  18. #endif // YTSERVICESHM_H