6 * @brief <p> GMythUPnP allows that a MythTV frontend discovers a
7 * MythTV backend, using the UPnP architecture.
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
11 * @authon Renato Araujo Oliveira Filho <renato.filho@indt.org.br>
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the
25 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26 * Boston, MA 02111-1307, USA.
32 #include "gmyth_upnp.h"
35 _device_found_cb (GMythUPnP *upnp,
36 GMythBackendInfo *info,
39 g_debug ("BACKEND FOUND: %s", info->hostname);
43 _device_lost_cb (GMythUPnP *upnp,
44 GMythBackendInfo *info,
47 g_debug ("BACKEND LOST: %s", info->hostname);
52 int main (int argc, char** argv)
60 o = gmyth_upnp_get_instance ();
63 G_CALLBACK (_device_found_cb),
67 G_CALLBACK (_device_lost_cb),
71 gmyth_upnp_search (o);
73 loop = g_main_loop_new (NULL, FALSE);
74 g_main_loop_run (loop);