Rev 7 | Rev 9 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*
* Copyright (C) 2015 by Andreas Theofilu <andreas@theosys.at>
*
* All rights reserved. No warranty, explicit or implicit, provided.
*
* NOTICE: All information contained herein is, and remains
* the property of Andreas Theofilu and his suppliers, if any.
* The intellectual and technical concepts contained
* herein are proprietary to Andreas Theofilu and its suppliers and
* may be covered by European and Foreign Patents, patents in process,
* and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Andreas Theofilu.
*/
#ifndef __PLAY_H__
#define __PLAY_H__
#define PLAY_NONE 0 /* Empty or no command */
#define PLAY_PLAY 1 /* Play a file */
#define PLAY_PAUSE 2 /* Pause currently playing file */
#define PLAY_STOP 3 /* Stop playing */
#define PLAY_PLAYPAUSE 4 /* Play or pause current playing file */
#define PLAY_FWD 5 /* Fast forward file */
#define PLAY_REW 6 /* Restart file from start */
#define PLAY_SKIP_FWD 7 /* Stop current file and play next in queue */
#define PLAY_SKIP_REW 8 /* Stop current file and play previous in queue */
#define PLAY_STOP_NOW 9 /* Stops playing in every case immediately */
#define PLAY_STATUS_PLAY 1
#define PLAY_STATUS_PAUSE 2
#define PLAY_STATUS_STOP 3
#define PLAY_STATUS_FWD 4
#define PLAY_STATUS_REW 5
#define PLAY_STATUS_SKIPF 6
#define PLAY_STATUS_SKIPR 7
#define NOWPLAY "/nowplaying.list"
struct ST_PlayPars
{
int s1;
char *type;
char *what;
};
extern int nextCommand;
extern int playStatus;
extern int playerActive;
void *pthr_playfile(void *pV_data);
void appendToQueue(int s1, char *type, char *what);
int playlistToQueue(int uid, int del);
int QueueToPlaylist(int s1, char *user, char *playlist);
#endif