From 2090911363a131b2a38d39d3b8458eae02889e57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 9 Apr 2013 00:22:35 +0200 Subject: cue_parser: convert to C++ --- src/cue/cue_parser.h | 58 ---------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/cue/cue_parser.h (limited to 'src/cue/cue_parser.h') diff --git a/src/cue/cue_parser.h b/src/cue/cue_parser.h deleted file mode 100644 index d8d695739..000000000 --- a/src/cue/cue_parser.h +++ /dev/null @@ -1,58 +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_CUE_PARSER_H -#define MPD_CUE_PARSER_H - -#include "check.h" - -#include - -struct cue_parser * -cue_parser_new(void); - -void -cue_parser_free(struct cue_parser *parser); - -/** - * Feed a text line from the CUE file into the parser. Call - * cue_parser_get() after this to see if a song has been finished. - */ -void -cue_parser_feed(struct cue_parser *parser, const char *line); - -/** - * Tell the parser that the end of the file has been reached. Call - * cue_parser_get() after this to see if a song has been finished. - * This procedure must be done twice! - */ -void -cue_parser_finish(struct cue_parser *parser); - -/** - * Check if a song was finished by the last cue_parser_feed() or - * cue_parser_finish() call. - * - * @return a song object that must be freed by the caller, or NULL if - * no song was finished at this time - */ -struct song * -cue_parser_get(struct cue_parser *parser); - -#endif -- cgit v1.2.3