history.h 546 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #ifndef NULLSOFT_ML_HISTORY_HISTORY_H
  3. #define NULLSOFT_ML_HISTORY_HISTORY_H
  4. #include <time.h>
  5. typedef struct
  6. {
  7. wchar_t *filename;
  8. wchar_t *title;
  9. wchar_t *ext;
  10. int length;
  11. unsigned int playcnt;
  12. __time64_t lastplayed;
  13. int offset;
  14. } historyRecord;
  15. typedef struct
  16. {
  17. historyRecord *Items;
  18. int Size;
  19. int Alloc;
  20. } historyRecordList;
  21. enum
  22. {
  23. HISTORY_SORT_LASTPLAYED = 0,
  24. HISTORY_SORT_PLAYCOUNT = 1,
  25. HISTORY_SORT_TITLE = 2,
  26. HISTORY_SORT_LENGTH = 3,
  27. HISTORY_SORT_FILENAME = 4,
  28. HISTORY_SORT_OFFSET = 5,
  29. };
  30. #endif