Mercurial > audlegacy-plugins
comparison src/scrobbler/plugin.c @ 2050:2ffc6a69fcd1
string API calls -> vtable
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sat, 13 Oct 2007 19:55:04 -0500 |
| parents | 5fa26178eaef |
| children | cf4fa45ffd80 |
comparison
equal
deleted
inserted
replaced
| 2049:9550e809dc12 | 2050:2ffc6a69fcd1 |
|---|---|
| 63 }; | 63 }; |
| 64 | 64 |
| 65 static gboolean ishttp(const char *a) | 65 static gboolean ishttp(const char *a) |
| 66 { | 66 { |
| 67 g_return_val_if_fail(a != NULL, FALSE); | 67 g_return_val_if_fail(a != NULL, FALSE); |
| 68 return str_has_prefix_nocase(a, "http://") || str_has_prefix_nocase(a, "https://"); | 68 return aud_str_has_prefix_nocase(a, "http://") || aud_str_has_prefix_nocase(a, "https://"); |
| 69 } | 69 } |
| 70 | 70 |
| 71 static void hook_playback_begin(gpointer hook_data, gpointer user_data) | 71 static void hook_playback_begin(gpointer hook_data, gpointer user_data) |
| 72 { | 72 { |
| 73 PlaylistEntry *entry = (PlaylistEntry *) hook_data; | 73 PlaylistEntry *entry = (PlaylistEntry *) hook_data; |
