configure.ac: Move OggVorbis Encoder to Encoder Plugins.
[mpd-mk.git] / src / text_file.h
blobd016f8f7a7aeb547267c3a5ecd8d9f7f0e1cf90c
1 /*
2 * Copyright (C) 2003-2010 The Music Player Daemon Project
3 * http://www.musicpd.org
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef MPD_TEXT_FILE_H
21 #define MPD_TEXT_FILE_H
23 #include <glib.h>
25 #include <stdio.h>
27 /**
28 * Reads a line from the input file, and strips trailing space. There
29 * is a reasonable maximum line length, only to prevent denial of
30 * service.
32 * @param file the source file, opened in text mode
33 * @param buffer an allocator for the buffer
34 * @return a pointer to the line, or NULL on end-of-file or error
36 char *
37 read_text_line(FILE *file, GString *buffer);
39 #endif