Debian Codegraph @

contrib/xjukebox-0.9/xjukebox.h

raw symbols SCIP
1 #include <stdio.h>
2 #include <string.h>
3 #include <rplay.h>
4 #include <X11/Xlib.h>
5 #include <X11/Xutil.h>
6 #include <X11/Intrinsic.h>
7 #include <X11/StringDefs.h>
8
9 #define XJUKEBOX_VERSION "0.9"
10
11 #define MODE_IDLE 0
12 #define MODE_READING_SOUNDS 1
13 #define MODE_READING_SPOOL 2
14 #define MODE_DISCONNECTED 3
15
16 #define DIALOG_NONE 0
17 #define DIALOG_SET_NEW_HOST 1
18 #define DIALOG_LOAD_SOUND_FILE 2
19 #define DIALOG_SAVE_SOUND_FILE 3
20 #define DIALOG_GET_SOUND_DIR 4
21 #define DIALOG_LOAD_QUEUE_FILE 5
22 #define DIALOG_SAVE_QUEUE_FILE 6
23
24 #define NO_INTERVAL ((XtIntervalId) -1)
25
26 #define SPOOL_UNKNOWN 0
27 #define SPOOL_PLAY 1
28 #define SPOOL_PAUSE 2
29 #define SPOOL_WAIT 3
30
31 typedef struct
32 {
33 int sid; /* Sound id (given by rplayd) */
34 char host[16]; /* Where did the play command come from ? */
35 int state; /* SPOOL_PLAY, SPOOL_PAUSE, SPOOL_WAIT, ... */
36 int vol; /* Volume */
37 int pri; /* Priority */
38 int count; /* Number of sounds */
39 int seconds; /* Duration */
40 int remain; /* Remaining time */
41 char *sound; /* File name */
42 }
43 spool_info;
44
45 typedef struct
46 {
47 char *sound; /* File name */
48 int size; /* Size (given by "find ...") */
49 int idx; /* Used for shuffling the sounds */
50 }
51 queue_info;
52
53 struct _resources_rec /* Most of these are not used yet. :-) */
54 {
55 Boolean jukebox_shown;
56 Boolean update_spool;
57 int refresh_rate;
58 Boolean show_hostname;
59 Boolean show_volume;
60 }
61 resources;