# HG changeset patch # User nenolod # Date 1165267525 28800 # Node ID 4ecd967bfd8f3aa72ff6a62f43d4712dc21cb6a5 # Parent 5e7744e13f194b07e476cb991fb12041eadd84e7 [svn] - add gtkdoc settings - document util.c diff -r 5e7744e13f19 -r 4ecd967bfd8f ChangeLog --- a/ChangeLog Mon Dec 04 02:18:02 2006 -0800 +++ b/ChangeLog Mon Dec 04 13:25:25 2006 -0800 @@ -1,3 +1,11 @@ +2006-12-04 10:18:02 +0000 William Pitcock + revision [3107] + - what the hell is this, and why do we need it? + + trunk/libaudacious/configdb_xmlfile.c | 203 ---------------------------------- + 1 file changed, 203 deletions(-) + + 2006-12-04 10:07:12 +0000 William Pitcock revision [3105] - add some missing docs diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-decl-list.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/libaudacious/libaudacious-decl-list.txt Mon Dec 04 13:25:25 2006 -0800 @@ -0,0 +1,175 @@ +
+vfs +VFSFile +VFSConstructor +vfs_init +vfs_fopen +vfs_fclose +vfs_fread +vfs_fwrite +vfs_getc +vfs_ungetc +vfs_fgets +vfs_fseek +vfs_rewind +vfs_ftell +vfs_feof +vfs_file_test +vfs_is_writeable +vfs_truncate +vfs_fprintf +vfs_register_transport +
+ +
+beepctrl +xmms_connect_to_session +xmms_remote_playlist +xmms_remote_get_version +xmms_remote_playlist_add +xmms_remote_playlist_delete +xmms_remote_play +xmms_remote_pause +xmms_remote_stop +xmms_remote_is_playing +xmms_remote_is_paused +xmms_remote_get_playlist_pos +xmms_remote_set_playlist_pos +xmms_remote_get_playlist_length +xmms_remote_playlist_clear +xmms_remote_get_output_time +xmms_remote_jump_to_time +xmms_remote_get_volume +xmms_remote_get_main_volume +xmms_remote_get_balance +xmms_remote_set_volume +xmms_remote_set_main_volume +xmms_remote_set_balance +xmms_remote_get_skin +xmms_remote_set_skin +xmms_remote_get_playlist_file +xmms_remote_get_playlist_title +xmms_remote_get_playlist_time +xmms_remote_get_info +xmms_remote_main_win_toggle +xmms_remote_pl_win_toggle +xmms_remote_eq_win_toggle +xmms_remote_is_main_win +xmms_remote_is_pl_win +xmms_remote_is_eq_win +xmms_remote_show_prefs_box +xmms_remote_toggle_aot +xmms_remote_eject +xmms_remote_playlist_prev +xmms_remote_playlist_next +xmms_remote_playlist_add_url_string +xmms_remote_is_running +xmms_remote_toggle_repeat +xmms_remote_toggle_shuffle +xmms_remote_is_repeat +xmms_remote_is_shuffle +xmms_remote_get_eq +xmms_remote_get_eq_preamp +xmms_remote_get_eq_band +xmms_remote_set_eq +xmms_remote_set_eq_preamp +xmms_remote_set_eq_band +xmms_remote_quit +xmms_remote_play_pause +xmms_remote_playlist_ins_url_string +xmms_remote_playqueue_add +xmms_remote_playqueue_remove +xmms_remote_get_playqueue_length +xmms_remote_toggle_advance +xmms_remote_is_advance +xmms_remote_activate +xmms_remote_show_jtf_box +xmms_remote_playqueue_clear +xmms_remote_playqueue_is_queued +xmms_remote_get_playqueue_position +xmms_remote_get_playqueue_queue_position +audacious_set_session_uri +audacious_get_session_uri +audacious_set_session_type +xmms_remote_play_files +xmms_remote_add_files +
+ +
+titlestring +TitleInput +BmpTitleInput +XMMS_TITLEINPUT_SIZE +XMMS_TITLEINPUT_VERSION +XMMS_NEW_TITLEINPUT +bmp_title_input_new +bmp_title_input_free +xmms_get_titlestring +xmms_titlestring_descriptions +
+ +
+formatter +Formatter +xmms_formatter_new +xmms_formatter_destroy +xmms_formatter_associate +xmms_formatter_dissociate +xmms_formatter_format +
+ +
+rcfile +RcLine +RcSection +RcFile +bmp_rcfile_new +bmp_rcfile_free +bmp_rcfile_open +bmp_rcfile_write +bmp_rcfile_read_string +bmp_rcfile_read_int +bmp_rcfile_read_bool +bmp_rcfile_read_float +bmp_rcfile_read_double +bmp_rcfile_write_string +bmp_rcfile_write_int +bmp_rcfile_write_boolean +bmp_rcfile_write_float +bmp_rcfile_write_double +bmp_rcfile_remove_key +
+ +
+xconvert +convert_free_buffer +xmms_convert_buffers +
+ +
+configdb +ConfigDb +bmp_cfg_db_open +bmp_cfg_db_close +bmp_cfg_db_get_string +bmp_cfg_db_get_int +bmp_cfg_db_get_bool +bmp_cfg_db_get_float +bmp_cfg_db_get_double +bmp_cfg_db_set_string +bmp_cfg_db_set_int +bmp_cfg_db_set_bool +bmp_cfg_db_set_float +bmp_cfg_db_set_double +bmp_cfg_db_unset_key +
+ +
+util +
+ +
+dirbrowser +xmms_create_dir_browser +
+ diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-decl.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/libaudacious/libaudacious-decl.txt Mon Dec 04 13:25:25 2006 -0800 @@ -0,0 +1,739 @@ + +VFSFile + + +VFSConstructor + + +VFSFile +struct _VFSFile { + gchar *uri; + gpointer handle; + VFSConstructor *base; +}; + + +VFSConstructor +struct _VFSConstructor { + gchar *uri_id; + VFSFile *(*vfs_fopen_impl)(const gchar *path, + const gchar *mode); + gint (*vfs_fclose_impl)(VFSFile * file); + size_t (*vfs_fread_impl)(gpointer ptr, size_t size, + size_t nmemb, VFSFile *file); + size_t (*vfs_fwrite_impl)(gconstpointer ptr, size_t size, + size_t nmemb, VFSFile *file); + gint (*vfs_getc_impl)(VFSFile *stream); + gint (*vfs_ungetc_impl)(gint c, VFSFile *stream); + gint (*vfs_fseek_impl)(VFSFile *file, glong offset, gint whence); + void (*vfs_rewind_impl)(VFSFile *file); + glong (*vfs_ftell_impl)(VFSFile *file); + gboolean (*vfs_feof_impl)(VFSFile *file); + gboolean (*vfs_truncate_impl)(VFSFile *file, glong length); +}; + + +vfs_init +gboolean +void + + +vfs_fopen +VFSFile * +const gchar * path,const gchar * mode + + +vfs_fclose +gint +VFSFile * file + + +vfs_fread +size_t +gpointer ptr,size_t size,size_t nmemb,VFSFile * file + + +vfs_fwrite +size_t +gconstpointer ptr,size_t size,size_t nmemb,VFSFile *file + + +vfs_getc +gint +VFSFile *stream + + +vfs_ungetc +gint +gint c,VFSFile *stream + + +vfs_fgets +gchar * +gchar *s,gint n,VFSFile *stream + + +vfs_fseek +gint +VFSFile * file,glong offset,gint whence + + +vfs_rewind +void +VFSFile * file + + +vfs_ftell +glong +VFSFile * file + + +vfs_feof +gboolean +VFSFile * file + + +vfs_file_test +gboolean +const gchar * path,GFileTest test + + +vfs_is_writeable +gboolean +const gchar * path + + +vfs_truncate +gboolean +VFSFile * file, glong length + + +vfs_fprintf +int +VFSFile *stream, gchar const *format, ... + + +vfs_register_transport +gboolean +VFSConstructor *vtable + + +xmms_connect_to_session +gint +gint session + + +xmms_remote_playlist +void +gint session, gchar ** list, gint num,gboolean enqueue + + +xmms_remote_get_version +gint +gint session + + +xmms_remote_playlist_add +void +gint session, GList * list + + +xmms_remote_playlist_delete +void +gint session, gint pos + + +xmms_remote_play +void +gint session + + +xmms_remote_pause +void +gint session + + +xmms_remote_stop +void +gint session + + +xmms_remote_is_playing +gboolean +gint session + + +xmms_remote_is_paused +gboolean +gint session + + +xmms_remote_get_playlist_pos +gint +gint session + + +xmms_remote_set_playlist_pos +void +gint session, gint pos + + +xmms_remote_get_playlist_length +gint +gint session + + +xmms_remote_playlist_clear +void +gint session + + +xmms_remote_get_output_time +gint +gint session + + +xmms_remote_jump_to_time +void +gint session, gint pos + + +xmms_remote_get_volume +void +gint session, gint * vl, gint * vr + + +xmms_remote_get_main_volume +gint +gint session + + +xmms_remote_get_balance +gint +gint session + + +xmms_remote_set_volume +void +gint session, gint vl, gint vr + + +xmms_remote_set_main_volume +void +gint session, gint v + + +xmms_remote_set_balance +void +gint session, gint b + + +xmms_remote_get_skin +gchar * +gint session + + +xmms_remote_set_skin +void +gint session, gchar * skinfile + + +xmms_remote_get_playlist_file +gchar * +gint session, gint pos + + +xmms_remote_get_playlist_title +gchar * +gint session, gint pos + + +xmms_remote_get_playlist_time +gint +gint session, gint pos + + +xmms_remote_get_info +void +gint session, gint * rate, gint * freq,gint * nch + + +xmms_remote_main_win_toggle +void +gint session, gboolean show + + +xmms_remote_pl_win_toggle +void +gint session, gboolean show + + +xmms_remote_eq_win_toggle +void +gint session, gboolean show + + +xmms_remote_is_main_win +gboolean +gint session + + +xmms_remote_is_pl_win +gboolean +gint session + + +xmms_remote_is_eq_win +gboolean +gint session + + +xmms_remote_show_prefs_box +void +gint session + + +xmms_remote_toggle_aot +void +gint session, gboolean ontop + + +xmms_remote_eject +void +gint session + + +xmms_remote_playlist_prev +void +gint session + + +xmms_remote_playlist_next +void +gint session + + +xmms_remote_playlist_add_url_string +void +gint session, gchar * string + + +xmms_remote_is_running +gboolean +gint session + + +xmms_remote_toggle_repeat +void +gint session + + +xmms_remote_toggle_shuffle +void +gint session + + +xmms_remote_is_repeat +gboolean +gint session + + +xmms_remote_is_shuffle +gboolean +gint session + + +xmms_remote_get_eq +void +gint session, gfloat * preamp,gfloat ** bands + + +xmms_remote_get_eq_preamp +gfloat +gint session + + +xmms_remote_get_eq_band +gfloat +gint session, gint band + + +xmms_remote_set_eq +void +gint session, gfloat preamp, gfloat * bands + + +xmms_remote_set_eq_preamp +void +gint session, gfloat preamp + + +xmms_remote_set_eq_band +void +gint session, gint band, gfloat value + + +xmms_remote_quit +void +gint session + + +xmms_remote_play_pause +void +gint session + + +xmms_remote_playlist_ins_url_string +void +gint session, gchar * string,gint pos + + +xmms_remote_playqueue_add +void +gint session, gint pos + + +xmms_remote_playqueue_remove +void +gint session, gint pos + + +xmms_remote_get_playqueue_length +gint +gint session + + +xmms_remote_toggle_advance +void +gint session + + +xmms_remote_is_advance +gboolean +gint session + + +xmms_remote_activate +void +gint session + + +xmms_remote_show_jtf_box +void +gint session + + +xmms_remote_playqueue_clear +void +gint session + + +xmms_remote_playqueue_is_queued +gboolean +gint session, gint pos + + +xmms_remote_get_playqueue_position +gint +gint session, gint pos + + +xmms_remote_get_playqueue_queue_position +gint +gint session, gint pos + + +audacious_set_session_uri +void +gchar *uri + + +audacious_get_session_uri +gchar * +gint session + + +audacious_set_session_type +void +gint type + + +xmms_remote_play_files +void +gint session, GList * list + + +xmms_remote_add_files +#define xmms_remote_add_files(session,list) \ + xmms_remote_playlist_add(session,list) + + +TitleInput +typedef struct { + gint __size; /* Set by bmp_title_input_new() */ + gint __version; /* Ditto */ + + gchar *performer; /* %p */ + gchar *album_name; /* %a */ + gchar *track_name; /* %t */ + gint track_number; /* %n */ + gint year; /* %y */ + gchar *date; /* %d */ + gchar *genre; /* %g */ + gchar *comment; /* %c */ + gchar *file_name; /* %f */ + const gchar *file_ext; /* %e *//* is not always strdup'ed, see xmms_input_get_song_info and plugins! */ + gchar *file_path; /* %F */ + gint length; /* not displayable */ + gchar *formatter; /* not displayable */ + time_t mtime; +} TitleInput; + + +BmpTitleInput +typedef TitleInput BmpTitleInput; + + +XMMS_TITLEINPUT_SIZE +#define XMMS_TITLEINPUT_SIZE sizeof(TitleInput) + + +XMMS_TITLEINPUT_VERSION +#define XMMS_TITLEINPUT_VERSION (1) + + +XMMS_NEW_TITLEINPUT +#define XMMS_NEW_TITLEINPUT(input) G_STMT_START { \ + input = g_new0(TitleInput, 1); \ + input->__size = XMMS_TITLEINPUT_SIZE; \ + input->__version = XMMS_TITLEINPUT_VERSION; \ +} G_STMT_END + + +bmp_title_input_new +TitleInput * +void + + +bmp_title_input_free +void +BmpTitleInput * input + + +xmms_get_titlestring +gchar * +const gchar * fmt, TitleInput * input + + +xmms_titlestring_descriptions +GtkWidget * +gchar * tags, gint rows + + +Formatter +typedef struct { + gchar *values[256]; +} Formatter; + + +xmms_formatter_new +Formatter * +void + + +xmms_formatter_destroy +void +Formatter * formatter + + +xmms_formatter_associate +void +Formatter * formatter, guchar id,gchar * value + + +xmms_formatter_dissociate +void +Formatter * formatter, guchar id + + +xmms_formatter_format +gchar * +Formatter * formatter, gchar * format + + +RcLine +typedef struct { + gchar *key; + gchar *value; +} RcLine; + + +RcSection +typedef struct { + gchar *name; + GList *lines; +} RcSection; + + +RcFile +typedef struct { + GList *sections; +} RcFile; + + +bmp_rcfile_new +RcFile * +void + + +bmp_rcfile_free +void +RcFile * file + + +bmp_rcfile_open +RcFile * +const gchar * filename + + +bmp_rcfile_write +gboolean +RcFile * file, const gchar * filename + + +bmp_rcfile_read_string +gboolean +RcFile * file, const gchar * section,const gchar * key, gchar ** value + + +bmp_rcfile_read_int +gboolean +RcFile * file, const gchar * section,const gchar * key, gint * value + + +bmp_rcfile_read_bool +gboolean +RcFile * file, const gchar * section,const gchar * key, gboolean * value + + +bmp_rcfile_read_float +gboolean +RcFile * file, const gchar * section,const gchar * key, gfloat * value + + +bmp_rcfile_read_double +gboolean +RcFile * file, const gchar * section,const gchar * key, gdouble * value + + +bmp_rcfile_write_string +void +RcFile * file, const gchar * section,const gchar * key, const gchar * value + + +bmp_rcfile_write_int +void +RcFile * file, const gchar * section,const gchar * key, gint value + + +bmp_rcfile_write_boolean +void +RcFile * file, const gchar * section,const gchar * key, gboolean value + + +bmp_rcfile_write_float +void +RcFile * file, const gchar * section,const gchar * key, gfloat value + + +bmp_rcfile_write_double +void +RcFile * file, const gchar * section,const gchar * key, gdouble value + + +bmp_rcfile_remove_key +void +RcFile * file, const gchar * section,const gchar * key + + +convert_free_buffer +void +void + + +xmms_convert_buffers +struct xmms_convert_buffers; + + +ConfigDb + + +bmp_cfg_db_open +ConfigDb * + + + +bmp_cfg_db_close +void +ConfigDb *db + + +bmp_cfg_db_get_string +gboolean +ConfigDb *db,const gchar *section,const gchar *key,gchar **value + + +bmp_cfg_db_get_int +gboolean +ConfigDb *db,const gchar *section,const gchar *key,gint *value + + +bmp_cfg_db_get_bool +gboolean +ConfigDb *db,const gchar *section,const gchar *key,gboolean *value + + +bmp_cfg_db_get_float +gboolean +ConfigDb *db,const gchar *section,const gchar *key,gfloat *value + + +bmp_cfg_db_get_double +gboolean +ConfigDb *db,const gchar *section,const gchar *key,gdouble *value + + +bmp_cfg_db_set_string +void +ConfigDb *db,const gchar *section,const gchar *key,gchar *value + + +bmp_cfg_db_set_int +void +ConfigDb *db,const gchar *section,const gchar *key,gint value + + +bmp_cfg_db_set_bool +void +ConfigDb *db,const gchar *section,const gchar *key,gboolean value + + +bmp_cfg_db_set_float +void +ConfigDb *db,const gchar *section,const gchar *key,gfloat value + + +bmp_cfg_db_set_double +void +ConfigDb *db,const gchar *section,const gchar *key,gdouble value + + +bmp_cfg_db_unset_key +void +ConfigDb *db,const gchar *section,const gchar *key + + +xmms_create_dir_browser +GtkWidget * +gchar * title, gchar * current_path,GtkSelectionMode mode,void (*handler) (gchar *) + diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-overrides.txt diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-sections.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/libaudacious/libaudacious-sections.txt Mon Dec 04 13:25:25 2006 -0800 @@ -0,0 +1,175 @@ +
+vfs +VFSFile +VFSConstructor +vfs_init +vfs_fopen +vfs_fclose +vfs_fread +vfs_fwrite +vfs_getc +vfs_ungetc +vfs_fgets +vfs_fseek +vfs_rewind +vfs_ftell +vfs_feof +vfs_file_test +vfs_is_writeable +vfs_truncate +vfs_fprintf +vfs_register_transport +
+ +
+beepctrl +xmms_connect_to_session +xmms_remote_playlist +xmms_remote_get_version +xmms_remote_playlist_add +xmms_remote_playlist_delete +xmms_remote_play +xmms_remote_pause +xmms_remote_stop +xmms_remote_is_playing +xmms_remote_is_paused +xmms_remote_get_playlist_pos +xmms_remote_set_playlist_pos +xmms_remote_get_playlist_length +xmms_remote_playlist_clear +xmms_remote_get_output_time +xmms_remote_jump_to_time +xmms_remote_get_volume +xmms_remote_get_main_volume +xmms_remote_get_balance +xmms_remote_set_volume +xmms_remote_set_main_volume +xmms_remote_set_balance +xmms_remote_get_skin +xmms_remote_set_skin +xmms_remote_get_playlist_file +xmms_remote_get_playlist_title +xmms_remote_get_playlist_time +xmms_remote_get_info +xmms_remote_main_win_toggle +xmms_remote_pl_win_toggle +xmms_remote_eq_win_toggle +xmms_remote_is_main_win +xmms_remote_is_pl_win +xmms_remote_is_eq_win +xmms_remote_show_prefs_box +xmms_remote_toggle_aot +xmms_remote_eject +xmms_remote_playlist_prev +xmms_remote_playlist_next +xmms_remote_playlist_add_url_string +xmms_remote_is_running +xmms_remote_toggle_repeat +xmms_remote_toggle_shuffle +xmms_remote_is_repeat +xmms_remote_is_shuffle +xmms_remote_get_eq +xmms_remote_get_eq_preamp +xmms_remote_get_eq_band +xmms_remote_set_eq +xmms_remote_set_eq_preamp +xmms_remote_set_eq_band +xmms_remote_quit +xmms_remote_play_pause +xmms_remote_playlist_ins_url_string +xmms_remote_playqueue_add +xmms_remote_playqueue_remove +xmms_remote_get_playqueue_length +xmms_remote_toggle_advance +xmms_remote_is_advance +xmms_remote_activate +xmms_remote_show_jtf_box +xmms_remote_playqueue_clear +xmms_remote_playqueue_is_queued +xmms_remote_get_playqueue_position +xmms_remote_get_playqueue_queue_position +audacious_set_session_uri +audacious_get_session_uri +audacious_set_session_type +xmms_remote_play_files +xmms_remote_add_files +
+ +
+titlestring +TitleInput +BmpTitleInput +XMMS_TITLEINPUT_SIZE +XMMS_TITLEINPUT_VERSION +XMMS_NEW_TITLEINPUT +bmp_title_input_new +bmp_title_input_free +xmms_get_titlestring +xmms_titlestring_descriptions +
+ +
+formatter +Formatter +xmms_formatter_new +xmms_formatter_destroy +xmms_formatter_associate +xmms_formatter_dissociate +xmms_formatter_format +
+ +
+rcfile +RcLine +RcSection +RcFile +bmp_rcfile_new +bmp_rcfile_free +bmp_rcfile_open +bmp_rcfile_write +bmp_rcfile_read_string +bmp_rcfile_read_int +bmp_rcfile_read_bool +bmp_rcfile_read_float +bmp_rcfile_read_double +bmp_rcfile_write_string +bmp_rcfile_write_int +bmp_rcfile_write_boolean +bmp_rcfile_write_float +bmp_rcfile_write_double +bmp_rcfile_remove_key +
+ +
+xconvert +convert_free_buffer +xmms_convert_buffers +
+ +
+configdb +ConfigDb +bmp_cfg_db_open +bmp_cfg_db_close +bmp_cfg_db_get_string +bmp_cfg_db_get_int +bmp_cfg_db_get_bool +bmp_cfg_db_get_float +bmp_cfg_db_get_double +bmp_cfg_db_set_string +bmp_cfg_db_set_int +bmp_cfg_db_set_bool +bmp_cfg_db_set_float +bmp_cfg_db_set_double +bmp_cfg_db_unset_key +
+ +
+util +
+ +
+dirbrowser +xmms_create_dir_browser +
+ diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-undocumented.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/libaudacious/libaudacious-undocumented.txt Mon Dec 04 13:25:25 2006 -0800 @@ -0,0 +1,62 @@ +70% symbol docs coverage. +110 symbols documented. +7 symbols incomplete. +47 not documented. + + +BmpTitleInput +ConfigDb +Formatter +RcFile +RcLine +RcSection +TitleInput +VFSConstructor +VFSFile +XMMS_NEW_TITLEINPUT +XMMS_TITLEINPUT_SIZE +XMMS_TITLEINPUT_VERSION +bmp_rcfile_free +bmp_rcfile_new +bmp_rcfile_open +bmp_rcfile_read_bool +bmp_rcfile_read_double +bmp_rcfile_read_float +bmp_rcfile_read_int +bmp_rcfile_read_string +bmp_rcfile_remove_key +bmp_rcfile_write +bmp_rcfile_write_boolean +bmp_rcfile_write_double +bmp_rcfile_write_float +bmp_rcfile_write_int +bmp_rcfile_write_string +convert_free_buffer +vfs_fgets +vfs_fprintf +vfs_fseek (offset, whence) +vfs_ftell +vfs_init +vfs_is_writeable +vfs_truncate (length) +vfs_ungetc (c) +xmms_convert_buffers +xmms_create_dir_browser +xmms_formatter_new (Returns) +xmms_remote_add_files +xmms_remote_playqueue_add (pos) +xmms_remote_playqueue_remove (pos) +xmms_titlestring_descriptions (rows) + + +beepctrl:Long_Description +configdb:Long_Description +dirbrowser:Short_Description +formatter:Long_Description +rcfile:Long_Description +rcfile:Short_Description +titlestring:Long_Description +util:Long_Description +util:Short_Description +xconvert:Long_Description +xconvert:Short_Description diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/libaudacious-unused.txt diff -r 5e7744e13f19 -r 4ecd967bfd8f doc/libaudacious/tmpl/util.sgml --- a/doc/libaudacious/tmpl/util.sgml Mon Dec 04 02:18:02 2006 -0800 +++ b/doc/libaudacious/tmpl/util.sgml Mon Dec 04 13:25:25 2006 -0800 @@ -1,8 +1,8 @@ -util +Miscillaneous Utility Functions - +MessageBoxes, sleeping. diff -r 5e7744e13f19 -r 4ecd967bfd8f libaudacious/util.c --- a/libaudacious/util.c Mon Dec 04 02:18:02 2006 -0800 +++ b/libaudacious/util.c Mon Dec 04 13:25:25 2006 -0800 @@ -1,3 +1,26 @@ +/* Audacious + * Copyright (C) 2005-2007 Audacious team + * + * XMMS - Cross-platform multimedia player + * Copyright (C) 1998-2003 Peter Alm, Mikael Alm, Olle Hallnas, + * Thomas Nilsson and 4Front Technologies + * Copyright (C) 1999-2003 Haavard Kvaalen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -5,7 +28,19 @@ #include #include - +/** + * xmms_show_message: + * @title: The title of the message to show. + * @text: The text of the message to show. + * @button_text: The text of the button which will close the messagebox. + * @modal: Whether or not the messagebox should be modal. + * @button_action: Code to execute on when the messagebox is closed, or %NULL. + * @action_data: Optional opaque data to pass to @button_action. + * + * Displays a message box. + * + * Return value: A GTK widget handle for the message box. + **/ GtkWidget * xmms_show_message(const gchar * title, const gchar * text, const gchar * button_text, gboolean modal, @@ -58,12 +93,25 @@ return dialog; } +/** + * xmms_check_realtime_priority: + * + * Legacy function included for compatibility with XMMS. + * + * Return value: FALSE + **/ gboolean xmms_check_realtime_priority(void) { return FALSE; } +/** + * xmms_usleep: + * @usec: The amount of microseconds to sleep. + * + * Legacy function included for compatibility with XMMS. + **/ void xmms_usleep(gint usec) {