2 * Copyright (C) 2010 Nokia Corporation.
4 * Authors: Arun Raghavan <arun.raghavan@collabora.co.uk>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef _GUPNP_DLNA_DISCOVERER
23 #define _GUPNP_DLNA_DISCOVERER
25 #include <glib-object.h>
26 #include <gst/pbutils/pbutils.h>
27 #include "gupnp-dlna-information.h"
28 #include "gupnp-dlna-profile.h"
32 #define GUPNP_TYPE_DLNA_DISCOVERER gupnp_dlna_discoverer_get_type()
34 #define GUPNP_DLNA_DISCOVERER(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36 GUPNP_TYPE_DLNA_DISCOVERER, \
39 #define GUPNP_DLNA_DISCOVERER_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST ((klass), \
41 GUPNP_TYPE_DLNA_DISCOVERER, \
42 GUPnPDLNADiscovererClass))
44 #define GUPNP_IS_DLNA_DISCOVERER(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
46 GUPNP_TYPE_DLNA_DISCOVERER))
48 #define GUPNP_IS_DLNA_DISCOVERER_CLASS(klass) \
49 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
50 GUPNP_TYPE_DLNA_DISCOVERER))
52 #define GUPNP_DLNA_DISCOVERER_GET_CLASS(obj) \
53 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
54 GUPNP_TYPE_DLNA_DISCOVERER, \
55 GUPnPDLNADiscovererClass))
58 * GUPnPDLNADiscoverer:
60 * The top-level object used to for metadata extraction.
64 } GUPnPDLNADiscoverer;
67 GstDiscovererClass parent_class;
70 void (*done) (GUPnPDLNADiscoverer *discoverer,
71 GUPnPDLNAInformation *dlna,
75 GList *profiles_list[2][2];
77 } GUPnPDLNADiscovererClass;
79 GType gupnp_dlna_discoverer_get_type (void);
82 gupnp_dlna_discoverer_new (GstClockTime timeout,
83 gboolean relaxed_mode,
84 gboolean extended_mode);
86 /* Asynchronous API */
87 #define gupnp_dlna_discoverer_start(discoverer) \
88 gst_discoverer_start(GST_DISCOVERER((discoverer)))
89 #define gupnp_dlna_discoverer_stop(discoverer) \
90 gst_discoverer_stop(GST_DISCOVERER((discoverer)))
92 gupnp_dlna_discoverer_discover_uri (GUPnPDLNADiscoverer *discoverer,
96 GUPnPDLNAInformation *
97 gupnp_dlna_discoverer_discover_uri_sync (GUPnPDLNADiscoverer *discoverer,
101 /* Get a GUPnPDLNAProfile by name */
103 gupnp_dlna_discoverer_get_profile (GUPnPDLNADiscoverer *self,
106 /* API to list all available profiles */
108 gupnp_dlna_discoverer_list_profiles (GUPnPDLNADiscoverer *self);
110 gupnp_dlna_discoverer_get_relaxed_mode (GUPnPDLNADiscoverer *self);
112 gupnp_dlna_discoverer_get_extended_mode (GUPnPDLNADiscoverer *self);
116 #endif /* _GUPNP_DLNA_DISCOVERER */