/usr/include/grilo-0.3/pls/grl-pls.h is in libgrilo-0.3-dev 0.3.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | /*
* Copyright (C) 2013 Collabora Ltd.
*
* Authors: Mateu Batle Sastre <mateu.batle@collabora.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef _GRL_PLS_H_
#define _GRL_PLS_H_
#include <grilo.h>
#include <gio/gio.h>
G_BEGIN_DECLS
/**
* GrlPlsFilterFunc:
* @source: the #GrlSource the browse call came from
* @media: (transfer full): a #GrlMedia to operate on
* @user_data: user data passed to the browse call
*
* Callback type to filter, or modify #GrlMedia created
* when parsing a playlist using one of grl_pls_browse(),
* grl_pls_browse_sync() or grl_pls_browse_by_spec().
*
* The callback is responsible for unreffing @media when returning %NULL or
* another #GrlMedia.
*
* Returns: (transfer full): %NULL to not add this entry to the results,
* or a new #GrlMedia populated with metadata of your choice.
*/
typedef GrlMedia * (*GrlPlsFilterFunc) (GrlSource *source,
GrlMedia *media,
gpointer user_data);
gboolean grl_pls_media_is_playlist (GrlMedia *media);
void grl_pls_browse_by_spec (GrlSource *source,
GrlPlsFilterFunc filter_func,
GrlSourceBrowseSpec *bs);
guint grl_pls_browse (GrlSource *source,
GrlMedia *playlist,
const GList *keys,
GrlOperationOptions *options,
GrlPlsFilterFunc filter_func,
GrlSourceResultCb callback,
gpointer user_data);
GList *grl_pls_browse_sync (GrlSource *source,
GrlMedia *playlist,
const GList *keys,
GrlOperationOptions *options,
GrlPlsFilterFunc filter_func,
GError **error);
GrlMedia * grl_pls_file_to_media (GrlMedia *content,
GFile *file,
GFileInfo *info,
gboolean handle_pls,
GrlOperationOptions *options);
const char * grl_pls_get_file_attributes (void);
G_END_DECLS
#endif /* _GRL_PLS_H_ */
|