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 <sys/time.h> 21 22 #include <getopt.h> 23 #include <locale.h> 24 #include <pwd.h> 25 #include <signal.h> 26 #include <unistd.h> 27 28 #include "debug.h" 29 #include "enums.h" 30 #include "commands.h" 31 #include "keybindings.h" 32 #include "medialib.h" 33 #include "player.h" 34 #include "uinterface.h" 35 #include "e_commands.h" 36 37 #include "compat.h" 38 39 /* 40 * These are the various things defined in vitunes.c used elsewhere. 41 */ 42 43 /* record keeping */ 44 extern playlist *viewing_playlist; 45 extern playlist *playing_playlist; 46 extern int visual_mode_start; 47 48 /* signal flags referenced elsewhere */ 49 extern volatile sig_atomic_t VSIG_QUIT; 50 51 /* other */ 52 void load_config(); 53 void process_signals(); 54 55 #endif 56