Mercurial > audlegacy
comparison src/audacious/plugin.h @ 4070:040243a50bd3
- modified playlist_load_ins_file() and playlist_load_ins_file_tuple(). path builder and ext_hash checker
have been extracted from playlist_load_ins_file_tuple() and are provided as individual functions.
- path builder is available to plugins as aud_construct_uri() and it allows container plugins to construct valid uri.
- replaced __playlist_ins_with_info_tuple() with the superset __playlist_ins_file(). it can accept both tuple and title/length pair.
- changed call dependency among playlist_load_ins_file(), playlist_load_ins_file_tuple() and __playlist_ins_file(). playlist_load_ins_file() no longer calls playlist_load_ins_file_tuple() nor builds any tuple.
- made some cleanups.
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Fri, 07 Dec 2007 01:11:25 +0900 |
| parents | 0b004b3bfb70 |
| children | 9e24c8746d99 |
comparison
equal
deleted
inserted
replaced
| 4069:b26a96a5da69 | 4070:040243a50bd3 |
|---|---|
| 588 gboolean (*dock_is_moving)(GtkWindow * w); | 588 gboolean (*dock_is_moving)(GtkWindow * w); |
| 589 | 589 |
| 590 GList *(*get_output_list)(void); | 590 GList *(*get_output_list)(void); |
| 591 | 591 |
| 592 void (*input_get_volume)(gint * l, gint * r); | 592 void (*input_get_volume)(gint * l, gint * r); |
| 593 | |
| 594 gchar *(*construct_uri)(gchar *string, const gchar *playlist_name); | |
| 593 }; | 595 }; |
| 594 | 596 |
| 595 /* Convenience macros for accessing the public API. */ | 597 /* Convenience macros for accessing the public API. */ |
| 596 /* public name vtable mapping */ | 598 /* public name vtable mapping */ |
| 597 #define aud_vfs_fopen _audvt->vfs_fopen | 599 #define aud_vfs_fopen _audvt->vfs_fopen |
| 929 | 931 |
| 930 #define aud_get_output_list _audvt->get_output_list | 932 #define aud_get_output_list _audvt->get_output_list |
| 931 | 933 |
| 932 #define aud_input_get_volume _audvt->input_get_volume | 934 #define aud_input_get_volume _audvt->input_get_volume |
| 933 | 935 |
| 936 #define aud_construct_uri _audvt->construct_uri | |
| 937 | |
| 938 | |
| 934 #include "audacious/auddrct.h" | 939 #include "audacious/auddrct.h" |
| 935 | 940 |
| 936 /* for multi-file plugins :( */ | 941 /* for multi-file plugins :( */ |
| 937 G_BEGIN_DECLS | 942 G_BEGIN_DECLS |
| 938 extern struct _AudaciousFuncTableV1 *_audvt; | 943 extern struct _AudaciousFuncTableV1 *_audvt; |
