vitunes
 All Data Structures
vitunes.h
1 /*
2  * Copyright (c) 2010, 2011 Ryan Flannery <ryan.flannery@gmail.com>
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef VITUNES_H
18 #define VITUNES_H
19 
20 #include "compat/compat.h"
21 
22 #include <sys/time.h>
23 
24 #include <getopt.h>
25 #include <locale.h>
26 #include <pwd.h>
27 #include <signal.h>
28 #include <unistd.h>
29 #include <stdio.h>
30 #include <string.h>
31 
32 #include "debug.h"
33 #include "enums.h"
34 #include "commands.h"
35 #include "keybindings.h"
36 #include "medialib.h"
37 #include "player/player.h"
38 #include "uinterface.h"
39 #include "ecommands/ecmd.h"
40 
41 /* for unused arguments */
42 #if defined(__GNUC__) || defined(__clang__)
43 # define UNUSED __attribute__((__unused__))
44 #else
45 # define UNUSED
46 #endif
47 
48 /*
49  * These are the various things defined in vitunes.c used elsewhere.
50  */
51 
52 /* configurable paths */
53 extern char *vitunes_dir;
54 extern char *playlist_dir;
55 extern char *db_file;
56 
57 extern char *progname;
58 
59 /* record keeping */
60 extern playlist *viewing_playlist;
61 extern playlist *playing_playlist;
62 extern int visual_mode_start;
63 
64 /* signal flags referenced elsewhere */
65 extern volatile sig_atomic_t VSIG_QUIT;
66 
67 /* other */
68 void load_config();
69 void process_signals();
70 
71 #endif