aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_history/history.h
blob: 6e1e8486a048a501abdf7deea7f6184948a7adfa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#ifndef NULLSOFT_ML_HISTORY_HISTORY_H
#define NULLSOFT_ML_HISTORY_HISTORY_H

#include <time.h>
typedef struct
{
  wchar_t *filename;
  wchar_t *title;
  wchar_t *ext;
  int length;
  unsigned int playcnt;
  __time64_t lastplayed;
  int offset;
} historyRecord;

typedef struct 
{
  historyRecord *Items;
  int Size;
  int Alloc;
} historyRecordList;

enum
{
	HISTORY_SORT_LASTPLAYED = 0,
	HISTORY_SORT_PLAYCOUNT = 1,
	HISTORY_SORT_TITLE = 2,
	HISTORY_SORT_LENGTH = 3,
	HISTORY_SORT_FILENAME = 4,
	HISTORY_SORT_OFFSET = 5,
};


#endif