Rev 56 | 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 __MDB__
#define __MDB__
#include <pthread.h>
#define PAGE_NONE 0
#define PAGE_TITLE 1
#define PAGE_ARTIST 2
#define PAGE_ALBUM 3
#define PAGE_GENRE 4
#define PAGE_QUEUE 5
#define PAGE_PLAYLIST 6
#define FILE_TYPE_MP3 1
#define FILE_TYPE_FLAC 2
#define MAX_HANDLES 100
struct SOCKETS
{
int sockfd;
int newfd;
};
extern int currentPage;
extern struct SOCKETS soc;
extern int _s1[];
pthread_attr_t pattr;
int parseCommand(int s1, char *cmd);
void *processCommands(void *pV_data);
void handleInit();
void handleAdd(int fd);
void handleDelete(int fd);
void handleWrite(char *txt);
#endif