~ubuntu-branches/ubuntu/gutsy/aqualung/gutsy

« back to all changes in this revision

Viewing changes to src/transceiver.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2007-03-10 16:07:32 UTC
  • Revision ID: james.westby@ubuntu.com-20070310160732-6hkwtb2d1h9sx6nr
Tags: upstream-0.9~beta7.1
Import upstream version 0.9~beta7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*                                                     -*- linux-c -*-
 
2
    Copyright (C) 2004 Tom Szilagyi
 
3
 
 
4
    This program is free software; you can redistribute it and/or modify
 
5
    it under the terms of the GNU General Public License as published by
 
6
    the Free Software Foundation; either version 2 of the License, or
 
7
    (at your option) any later version.
 
8
 
 
9
    This program is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
    GNU General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU General Public License
 
15
    along with this program; if not, write to the Free Software
 
16
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 
 
18
    $Id: transceiver.h 524 2007-01-06 15:39:18Z pasp $
 
19
*/
 
20
 
 
21
 
 
22
#ifndef _TRANSCEIVER_H
 
23
#define _TRANSCEIVER_H
 
24
 
 
25
 
 
26
/* valid remote command codes */
 
27
#define RCMD_PING     1
 
28
#define RCMD_BACK     2
 
29
#define RCMD_PLAY     3
 
30
#define RCMD_PAUSE    4
 
31
#define RCMD_STOP     5
 
32
#define RCMD_FWD      6
 
33
#define RCMD_LOAD     7
 
34
#define RCMD_ENQUEUE  8
 
35
#define RCMD_QUIT     9
 
36
#define RCMD_VOLADJ  10
 
37
 
 
38
int create_socket(const char * filename);
 
39
char receive_message(int fd, char * cmd_arg);
 
40
void setup_app_socket(void);
 
41
void close_app_socket(void);
 
42
void send_message(const char * filename, char * message, int len);
 
43
void send_message_to_session(int session_id, char * message, int len);
 
44
 
 
45
 
 
46
 
 
47
#endif /* _TRANSCEIVER_H */
 
48
 
 
49
// vim: shiftwidth=8:tabstop=8:softtabstop=8 :  
 
50