Add 'status' parameter to spawn() and close stdin
[cmus.git] / cmus / cmus.h
blob34536ba7fbb429e98c52ee52a3603d164391b454
1 /*
2 * Copyright 2005 Timo Hirvonen
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
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., 59 Temple Place - Suite 330, Boston, MA
17 * 02111-1307, USA.
20 #ifndef _CMUS_H
21 #define _CMUS_H
23 #include <track_db.h>
25 extern int cmus_init(void);
26 extern void cmus_exit(void);
27 extern void cmus_next(void);
28 extern void cmus_prev(void);
29 extern void cmus_play_file(const char *filename);
31 extern int cmus_enqueue(const char *name, int prepend);
32 extern int cmus_add(const char *name);
33 extern void cmus_clear_playlist(void);
34 extern int cmus_save_playlist(const char *filename);
35 extern int cmus_load_playlist(const char *name);
36 extern void cmus_update_playlist(void);
38 extern struct track_info *cmus_get_track_info(const char *name);
40 extern int cmus_is_playlist(const char *filename);
41 extern char **cmus_playlist_get_files(const char *filename);
43 #endif