Project

General

Profile

audtool.h

Jim Turner, November 21, 2015 18:54

 
1
/*
2
 * audtool.h
3
 * Copyright 2005-2011 William Pitcock, George Averill, Giacomo Lozito,
4
 *                     Yoshiki Yazawa, Matti Hämäläinen, and John Lindgren
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions are met:
8
 *
9
 * 1. Redistributions of source code must retain the above copyright notice,
10
 *    this list of conditions, and the following disclaimer.
11
 *
12
 * 2. Redistributions in binary form must reproduce the above copyright notice,
13
 *    this list of conditions, and the following disclaimer in the documentation
14
 *    provided with the distribution.
15
 *
16
 * This software is provided "as is" and without any warranty, express or
17
 * implied. In no event shall the authors be liable for any damages arising from
18
 * the use of this software.
19
 */
20

    
21
#ifndef AUDTOOL_H
22
#define AUDTOOL_H
23

    
24
#include "aud-dbus.h"
25

    
26
struct commandhandler
27
{
28
    char * name;
29
    void (* handler) (int argc, char * * argv);
30
    char * desc;
31
    int args;
32
};
33

    
34
extern const struct commandhandler handlers[];
35
extern ObjAudacious * dbus_proxy;
36

    
37
void audtool_report (const char * str, ...);
38
void audtool_whine (const char * str, ...);
39
void audtool_whine_args (const char * name, const char * str, ...);
40
void audtool_whine_tuple_fields (void);
41

    
42
void get_handlers_list (int, char * *);
43
void get_current_song (int, char * *);
44
void get_current_song_filename (int, char * *);
45
void get_current_song_length (int, char * *);
46
void get_current_song_length_seconds (int, char * *);
47
void get_current_song_length_frames (int, char * *);
48
void get_current_song_output_length (int, char * *);
49
void get_current_song_output_length_seconds (int, char * *);
50
void get_current_song_output_length_frames (int, char * *);
51
void get_current_song_bitrate (int, char * *);
52
void get_current_song_bitrate_kbps (int, char * *);
53
void get_current_song_frequency (int, char * *);
54
void get_current_song_frequency_khz (int, char * *);
55
void get_current_song_channels (int, char * *);
56
void get_current_song_tuple_field_data (int, char * * argv);
57
void get_current_song_info (int argc, char * * argv);
58

    
59
void get_volume (int, char * *);
60
void set_volume (int, char * *);
61

    
62
void playlist_position (int, char * *);
63
void playlist_advance (int, char * *);
64
void playlist_auto_advance_status (int, char * *);
65
void playlist_auto_advance_toggle (int, char * *);
66
void playlist_reverse (int, char * *);
67
void playlist_length (int, char * *);
68
void playlist_song (int, char * *);
69
void playlist_song_filename (int, char * *);
70
void playlist_song_length (int, char * *);
71
void playlist_song_length_seconds (int, char * *);
72
void playlist_song_length_frames (int, char * *);
73
void playlist_display (int, char * *);
74
void playlist_position (int, char * *);
75
void playlist_jump (int, char * *);
76
void playlist_add_url_string (int, char * *);
77
void playlist_delete (int, char * *);
78
void playlist_clear (int, char * *);
79
void playlist_repeat_status (int, char * *);
80
void playlist_repeat_toggle (int, char * *);
81
void playlist_shuffle_status (int, char * *);
82
void playlist_shuffle_toggle (int, char * *);
83
void playlist_stop_after_status (int argc, char * * argv);
84
void playlist_stop_after_toggle (int argc, char * * argv);
85
void playlist_tuple_field_data (int, char * * argv);
86
void playlist_enqueue_to_temp (int argc, char * * argv);
87
void playlist_ins_url_string (int argc, char * * argv);
88

    
89
void number_of_playlists (int argc, char * * argv);
90
void current_playlist (int argc, char * * argv);
91
void set_current_playlist (int argc, char * * argv);
92
void playlist_title (int argc, char * * argv);
93
void set_playlist_title (int argc, char * * argv);
94
void new_playlist (int argc, char * * argv);
95
void delete_current_playlist (int argc, char * * argv);
96
void play_current_playlist (int argc, char * * argv);
97

    
98
void playqueue_add (int, char * *);
99
void playqueue_remove (int, char * *);
100
void playqueue_is_queued (int, char * *);
101
void playqueue_get_queue_position (int, char * *);
102
void playqueue_get_list_position (int, char * *);
103
void playqueue_display (int, char * *);
104
void playqueue_length (int, char * *);
105
void playqueue_clear (int, char * *);
106

    
107
void playback_play (int, char * *);
108
void playback_pause (int, char * *);
109
void playback_playpause (int, char * *);
110
void playback_stop (int, char * *);
111
void playback_playing (int, char * *);
112
void playback_paused (int, char * *);
113
void playback_stopped (int, char * *);
114
void playback_status (int, char * *);
115
void playback_seek (int, char * *);
116
void playback_seek_relative (int, char * *);
117
void playback_record (int, char * *);
118

    
119
void mainwin_show (int, char * *);
120
void show_preferences_window (int, char * *);
121
void show_jtf_window (int, char * *);
122
void show_filebrowser (int, char * *);
123
void shutdown_audacious_server (int, char * *);
124
void show_about_window (int, char * *);
125

    
126
void get_version (int argc, char * * argv);
127

    
128
void equalizer_get_eq (int argc, char * * argv);
129
void equalizer_get_eq_preamp (int argc, char * * argv);
130
void equalizer_get_eq_band (int argc, char * * argv);
131
void equalizer_set_eq (int argc, char * * argv);
132
void equalizer_set_eq_preamp (int argc, char * * argv);
133
void equalizer_set_eq_band (int argc, char * * argv);
134
void equalizer_active (int argc, char * * argv);
135

    
136
int check_args_playlist_pos (int argc, char * * argv);
137

    
138
#endif