From 3bbb5023871aaba48b6f503dd53d864f9a44c07d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Jan 2013 20:29:24 +0100 Subject: *_print: convert to C++ --- Makefile.am | 8 ++---- src/DatabasePrint.cxx | 4 +-- src/OtherCommands.cxx | 6 ++-- src/PlaylistCommands.cxx | 2 +- src/PlaylistPrint.cxx | 2 +- src/QueuePrint.cxx | 2 +- src/SongPrint.cxx | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ src/SongPrint.hxx | 32 +++++++++++++++++++++ src/StickerCommands.cxx | 2 +- src/TagPrint.cxx | 51 ++++++++++++++++++++++++++++++++ src/TagPrint.hxx | 30 +++++++++++++++++++ src/TimePrint.cxx | 50 ++++++++++++++++++++++++++++++++ src/TimePrint.hxx | 33 +++++++++++++++++++++ src/song_print.c | 72 ---------------------------------------------- src/song_print.h | 33 --------------------- src/tag_print.c | 48 ------------------------------- src/tag_print.h | 30 ------------------- src/time_print.c | 47 ------------------------------ src/time_print.h | 33 --------------------- 19 files changed, 283 insertions(+), 277 deletions(-) create mode 100644 src/SongPrint.cxx create mode 100644 src/SongPrint.hxx create mode 100644 src/TagPrint.cxx create mode 100644 src/TagPrint.hxx create mode 100644 src/TimePrint.cxx create mode 100644 src/TimePrint.hxx delete mode 100644 src/song_print.c delete mode 100644 src/song_print.h delete mode 100644 src/tag_print.c delete mode 100644 src/tag_print.h delete mode 100644 src/time_print.c delete mode 100644 src/time_print.h diff --git a/Makefile.am b/Makefile.am index 0b39fdf96..2b88016e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -162,9 +162,8 @@ mpd_headers = \ src/replay_gain_info.h \ src/replay_gain_ape.h \ src/sig_handlers.h \ - src/time_print.c src/time_print.h \ + src/TimePrint.cxx src/TimePrint.hxx \ src/song.h \ - src/song_print.h \ src/song_sticker.h \ src/song_sort.c src/song_sort.h \ src/socket_util.h \ @@ -178,7 +177,6 @@ mpd_headers = \ src/tag_ape.h \ src/tag_id3.h \ src/tag_rva2.h \ - src/tag_print.h \ src/tokenizer.h \ src/strset.h \ src/uri.h \ @@ -316,7 +314,7 @@ src_mpd_SOURCES = \ src/sig_handlers.c \ src/Song.cxx \ src/song_update.c \ - src/song_print.c \ + src/SongPrint.cxx src/SongPrint.hxx \ src/SongSave.cxx src/SongSave.hxx \ src/resolver.c src/resolver.h \ src/socket_util.c \ @@ -324,7 +322,7 @@ src_mpd_SOURCES = \ src/Stats.cxx \ src/tag.c \ src/tag_pool.c \ - src/tag_print.c \ + src/TagPrint.cxx src/TagPrint.hxx \ src/TagSave.cxx src/TagSave.hxx \ src/tag_handler.c src/tag_handler.h \ src/tag_file.c src/tag_file.h \ diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 980aa0124..87e41be8e 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -22,13 +22,13 @@ #include "DatabaseSelection.hxx" #include "SongFilter.hxx" #include "PlaylistVector.hxx" +#include "SongPrint.hxx" +#include "TimePrint.hxx" extern "C" { #include "database.h" #include "client.h" #include "song.h" -#include "song_print.h" -#include "time_print.h" #include "tag.h" } diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index 8518f437f..c5aeeab2f 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -24,11 +24,13 @@ #include "UpdateGlue.hxx" #include "directory.h" #include "song.h" +#include "SongPrint.hxx" +#include "TagPrint.hxx" +#include "TimePrint.hxx" extern "C" { #include "protocol/argparser.h" #include "protocol/result.h" -#include "time_print.h" #include "ls.h" #include "uri.h" #include "decoder_print.h" @@ -43,10 +45,8 @@ extern "C" { #include "client.h" #include "client_idle.h" #include "client_file.h" -#include "tag_print.h" #include "idle.h" #include "mapper.h" -#include "song_print.h" } #ifdef ENABLE_SQLITE diff --git a/src/PlaylistCommands.cxx b/src/PlaylistCommands.cxx index ed2f47519..890beef79 100644 --- a/src/PlaylistCommands.cxx +++ b/src/PlaylistCommands.cxx @@ -25,12 +25,12 @@ #include "PlaylistSave.hxx" #include "PlaylistFile.hxx" #include "PlaylistQueue.hxx" +#include "TimePrint.hxx" extern "C" { #include "protocol/argparser.h" #include "protocol/result.h" #include "playlist.h" -#include "time_print.h" #include "ls.h" #include "uri.h" #include "client_internal.h" diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx index 93970076f..88c0a0a06 100644 --- a/src/PlaylistPrint.cxx +++ b/src/PlaylistPrint.cxx @@ -23,12 +23,12 @@ #include "PlaylistAny.hxx" #include "PlaylistSong.hxx" #include "QueuePrint.hxx" +#include "SongPrint.hxx" extern "C" { #include "playlist_list.h" #include "playlist_plugin.h" #include "playlist.h" -#include "song_print.h" #include "song.h" #include "database.h" #include "client.h" diff --git a/src/QueuePrint.cxx b/src/QueuePrint.cxx index edac7c7ad..32f131ae8 100644 --- a/src/QueuePrint.cxx +++ b/src/QueuePrint.cxx @@ -20,11 +20,11 @@ #include "config.h" #include "QueuePrint.hxx" #include "SongFilter.hxx" +#include "SongPrint.hxx" extern "C" { #include "queue.h" #include "song.h" -#include "song_print.h" #include "client.h" #include "mapper.h" } diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx new file mode 100644 index 000000000..371952e86 --- /dev/null +++ b/src/SongPrint.cxx @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#include "config.h" +#include "SongPrint.hxx" +#include "song.h" +#include "directory.h" +#include "TimePrint.hxx" +#include "TagPrint.hxx" + +extern "C" { +#include "client.h" +#include "uri.h" +#include "mapper.h" +} + +void +song_print_uri(struct client *client, struct song *song) +{ + if (song_in_database(song) && !directory_is_root(song->parent)) { + client_printf(client, "%s%s/%s\n", SONG_FILE, + directory_get_path(song->parent), song->uri); + } else { + char *allocated; + const char *uri; + + uri = allocated = uri_remove_auth(song->uri); + if (uri == NULL) + uri = song->uri; + + client_printf(client, "%s%s\n", SONG_FILE, + map_to_relative_path(uri)); + + g_free(allocated); + } +} + +void +song_print_info(struct client *client, struct song *song) +{ + song_print_uri(client, song); + + if (song->end_ms > 0) + client_printf(client, "Range: %u.%03u-%u.%03u\n", + song->start_ms / 1000, + song->start_ms % 1000, + song->end_ms / 1000, + song->end_ms % 1000); + else if (song->start_ms > 0) + client_printf(client, "Range: %u.%03u-\n", + song->start_ms / 1000, + song->start_ms % 1000); + + if (song->mtime > 0) + time_print(client, "Last-Modified", song->mtime); + + if (song->tag) + tag_print(client, song->tag); +} diff --git a/src/SongPrint.hxx b/src/SongPrint.hxx new file mode 100644 index 000000000..22a77d4af --- /dev/null +++ b/src/SongPrint.hxx @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#ifndef MPD_SONG_PRINT_HXX +#define MPD_SONG_PRINT_HXX + +struct client; +struct song; + +void +song_print_info(struct client *client, struct song *song); + +void +song_print_uri(struct client *client, struct song *song); + +#endif diff --git a/src/StickerCommands.cxx b/src/StickerCommands.cxx index ccf18fea6..7d23354fc 100644 --- a/src/StickerCommands.cxx +++ b/src/StickerCommands.cxx @@ -19,12 +19,12 @@ #include "config.h" #include "StickerCommands.hxx" +#include "SongPrint.hxx" extern "C" { #include "protocol/result.h" #include "sticker.h" #include "sticker_print.h" -#include "song_print.h" #include "song_sticker.h" #include "database.h" #include "db_lock.h" diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx new file mode 100644 index 000000000..9f25d95c6 --- /dev/null +++ b/src/TagPrint.cxx @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#include "config.h" +#include "TagPrint.hxx" +#include "tag.h" +#include "tag_internal.h" +#include "song.h" + +extern "C" { +#include "client.h" +} + +void tag_print_types(struct client *client) +{ + int i; + + for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { + if (!ignore_tag_items[i]) + client_printf(client, "tagtype: %s\n", + tag_item_names[i]); + } +} + +void tag_print(struct client *client, const struct tag *tag) +{ + if (tag->time >= 0) + client_printf(client, SONG_TIME "%i\n", tag->time); + + for (unsigned i = 0; i < tag->num_items; i++) { + client_printf(client, "%s: %s\n", + tag_item_names[tag->items[i]->type], + tag->items[i]->value); + } +} diff --git a/src/TagPrint.hxx b/src/TagPrint.hxx new file mode 100644 index 000000000..861f84441 --- /dev/null +++ b/src/TagPrint.hxx @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#ifndef MPD_TAG_PRINT_HXX +#define MPD_TAG_PRINT_HXX + +struct tag; +struct client; + +void tag_print_types(struct client *client); + +void tag_print(struct client *client, const struct tag *tag); + +#endif diff --git a/src/TimePrint.cxx b/src/TimePrint.cxx new file mode 100644 index 000000000..f9499980b --- /dev/null +++ b/src/TimePrint.cxx @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#include "config.h" +#include "TimePrint.hxx" + +extern "C" { +#include "client.h" +} + +#include + +void +time_print(struct client *client, const char *name, time_t t) +{ +#ifdef G_OS_WIN32 + const struct tm *tm2 = gmtime(&t); +#else + struct tm tm; + const struct tm *tm2 = gmtime_r(&t, &tm); +#endif + if (tm2 == NULL) + return; + + char buffer[32]; + strftime(buffer, sizeof(buffer), +#ifdef G_OS_WIN32 + "%Y-%m-%dT%H:%M:%SZ", +#else + "%FT%TZ", +#endif + tm2); + client_printf(client, "%s: %s\n", name, buffer); +} diff --git a/src/TimePrint.hxx b/src/TimePrint.hxx new file mode 100644 index 000000000..07e1d301c --- /dev/null +++ b/src/TimePrint.hxx @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2003-2013 The Music Player Daemon Project + * http://www.musicpd.org + * + * 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. + */ + +#ifndef MPD_TIME_PRINT_HXX +#define MPD_TIME_PRINT_HXX + +#include + +struct client; + +/** + * Write a line with a time stamp to the client. + */ +void +time_print(struct client *client, const char *name, time_t t); + +#endif diff --git a/src/song_print.c b/src/song_print.c deleted file mode 100644 index d876b85a8..000000000 --- a/src/song_print.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#include "config.h" -#include "song_print.h" -#include "time_print.h" -#include "song.h" -#include "directory.h" -#include "tag_print.h" -#include "client.h" -#include "uri.h" -#include "mapper.h" - -void -song_print_uri(struct client *client, struct song *song) -{ - if (song_in_database(song) && !directory_is_root(song->parent)) { - client_printf(client, "%s%s/%s\n", SONG_FILE, - directory_get_path(song->parent), song->uri); - } else { - char *allocated; - const char *uri; - - uri = allocated = uri_remove_auth(song->uri); - if (uri == NULL) - uri = song->uri; - - client_printf(client, "%s%s\n", SONG_FILE, - map_to_relative_path(uri)); - - g_free(allocated); - } -} - -void -song_print_info(struct client *client, struct song *song) -{ - song_print_uri(client, song); - - if (song->end_ms > 0) - client_printf(client, "Range: %u.%03u-%u.%03u\n", - song->start_ms / 1000, - song->start_ms % 1000, - song->end_ms / 1000, - song->end_ms % 1000); - else if (song->start_ms > 0) - client_printf(client, "Range: %u.%03u-\n", - song->start_ms / 1000, - song->start_ms % 1000); - - if (song->mtime > 0) - time_print(client, "Last-Modified", song->mtime); - - if (song->tag) - tag_print(client, song->tag); -} diff --git a/src/song_print.h b/src/song_print.h deleted file mode 100644 index 8f1f0cc65..000000000 --- a/src/song_print.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#ifndef MPD_SONG_PRINT_H -#define MPD_SONG_PRINT_H - -struct client; -struct song; -struct songvec; - -void -song_print_info(struct client *client, struct song *song); - -void -song_print_uri(struct client *client, struct song *song); - -#endif diff --git a/src/tag_print.c b/src/tag_print.c deleted file mode 100644 index 9a46b247a..000000000 --- a/src/tag_print.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#include "config.h" -#include "tag_print.h" -#include "tag.h" -#include "tag_internal.h" -#include "client.h" -#include "song.h" - -void tag_print_types(struct client *client) -{ - int i; - - for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { - if (!ignore_tag_items[i]) - client_printf(client, "tagtype: %s\n", - tag_item_names[i]); - } -} - -void tag_print(struct client *client, const struct tag *tag) -{ - if (tag->time >= 0) - client_printf(client, SONG_TIME "%i\n", tag->time); - - for (unsigned i = 0; i < tag->num_items; i++) { - client_printf(client, "%s: %s\n", - tag_item_names[tag->items[i]->type], - tag->items[i]->value); - } -} diff --git a/src/tag_print.h b/src/tag_print.h deleted file mode 100644 index b9eeeaecf..000000000 --- a/src/tag_print.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#ifndef MPD_TAG_PRINT_H -#define MPD_TAG_PRINT_H - -struct tag; -struct client; - -void tag_print_types(struct client *client); - -void tag_print(struct client *client, const struct tag *tag); - -#endif diff --git a/src/time_print.c b/src/time_print.c deleted file mode 100644 index 6fb569d96..000000000 --- a/src/time_print.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#include "config.h" -#include "time_print.h" -#include "client.h" - -#include - -void -time_print(struct client *client, const char *name, time_t t) -{ -#ifdef G_OS_WIN32 - const struct tm *tm2 = gmtime(&t); -#else - struct tm tm; - const struct tm *tm2 = gmtime_r(&t, &tm); -#endif - if (tm2 == NULL) - return; - - char buffer[32]; - strftime(buffer, sizeof(buffer), -#ifdef G_OS_WIN32 - "%Y-%m-%dT%H:%M:%SZ", -#else - "%FT%TZ", -#endif - tm2); - client_printf(client, "%s: %s\n", name, buffer); -} diff --git a/src/time_print.h b/src/time_print.h deleted file mode 100644 index 7eff446b2..000000000 --- a/src/time_print.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * 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. - */ - -#ifndef MPD_TIME_PRINT_H -#define MPD_TIME_PRINT_H - -#include - -struct client; - -/** - * Write a line with a time stamp to the client. - */ -void -time_print(struct client *client, const char *name, time_t t); - -#endif -- cgit v1.2.3