FIX: enum QuviInfo values
[libquvi.git] / src / api / query_formats_get.c
blob5c1026d7457d5e54a3d74c60061fb721abd4b6bc
1 /* libquvi
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA.
20 /** @file query_formats_get.c */
22 #include "config.h"
24 #include <glib.h>
26 #include "quvi.h"
27 /* -- */
28 #include "_quvi_s.h"
29 #include "_quvi_query_formats_s.h"
31 /** @return Comma-separated string containing the format strings
32 @note Do not attempt to free the returned string
33 @sa @ref query_formats
34 @ingroup queryformats
36 const char *quvi_query_formats_get(quvi_query_formats_t handle)
38 _quvi_query_formats_t qf = (_quvi_query_formats_t) handle;
40 /* If G_DISABLE_CHECKS is defined then the check is not performed. */
41 g_return_val_if_fail(handle != NULL, NULL);
43 return (qf->formats->str);
46 /* vim: set ts=2 sw=2 tw=72 expandtab: */