-
Notifications
You must be signed in to change notification settings - Fork 0
/
Command.h
89 lines (64 loc) · 1.5 KB
/
Command.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* Command.h
*
* Created on: 2013-03-06
* Author: danny
*/
#ifndef COMMAND_H_
#define COMMAND_H_
#include "Global.h"
struct Command {
int cmd_index;
int num_of_parameters;
int* parameters_size;
char** parameters;
};
struct Command* initCmd(int, int, char**);
void killCmd(struct Command**);
void syncPlay(int, int, int);
void play(int, int, int);
void syncPause(int);
void pause(int);
void syncStop();
void stop();
void syncSetVol(int, int);
void setVolume(int, int);
void seek(int);
void syncNext(int);
void next(int);
void syncPrev(int);
void prev(int);
void syncCreatePlaylist(char*);
void createPlaylist(char*);
void syncCreateExisitedPlaylist(char*, int, int);
void createExisitedPlaylist(char*, int, int);
void syncCreateSong(char*, int);
void createSong(char*, int);
void syncSelectList(int);
void selectList(int);
void syncDBFinish();
void syncAddSongToList(int, int);
void addSongToList(int, int);
void syncAddExisitedSongToList(int, int);
void syncRemoveSongFromList(int, int);
void removeSongFromList(int, int);
void syncUpdatePos(int, int, int);
void syncRepeatList(int);
void repeatList(int);
void modifyListName(int, char*);
void shuffle(int);
void moveSongToIndex(char*, int, char*);
void removeList(int);
//index 20
void playSongFromAllSongs(int, int, int);
//index 21
void openAllSongPanel();
//index 22
void openPlaylistsPanel();
//index 23
void openSongsFromList(int);
//index 24
void playSongFromList(int, int);
void repeatCurrentSong();
void reverse();
#endif /* COMMAND_H_ */