* tests/test-browser.c (main):
* tests/test-publish.c (main):
* tools/gssdp-device-sniffer.c (init_upnp):
Use g_printerr() and EXIT_{SUCCESS,FAILURE}.
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gssdp@1387
d8cb91d7-bff9-0310-92b9-
80b65e4482b2
2008-12-03 Jorn Baayen <jorn.baayen@collabora.co.uk>
+ * tests/test-browser.c (main):
+ * tests/test-publish.c (main):
+ * tools/gssdp-device-sniffer.c (init_upnp):
+
+ Use g_printerr() and EXIT_{SUCCESS,FAILURE}.
+
+2008-12-03 Jorn Baayen <jorn.baayen@collabora.co.uk>
+
* libgssdp/gssdp-resource-group.c (message_received_cb):
"All SSDP services MUST respond to SEARCH requests over the SSDP
*/
#include <libgssdp/gssdp.h>
+#include <stdlib.h>
static void
resource_available_cb (GSSDPResourceBrowser *resource_browser,
error = NULL;
client = gssdp_client_new (NULL, &error);
if (error) {
- g_critical (error->message);
+ g_printerr ("Error creating the GSSDP client: %s\n",
+ error->message);
g_error_free (error);
- return 1;
+ return EXIT_FAILURE;
}
resource_browser = gssdp_resource_browser_new (client,
g_object_unref (resource_browser);
g_object_unref (client);
- return 0;
+ return EXIT_SUCCESS;
}
*/
#include <libgssdp/gssdp.h>
+#include <stdlib.h>
int
main (int argc,
error = NULL;
client = gssdp_client_new (NULL, &error);
if (error) {
- g_critical (error->message);
+ g_printerr ("Error creating the GSSDP client: %s\n",
+ error->message);
g_error_free (error);
- return 1;
+ return EXIT_FAILURE;
}
resource_group = gssdp_resource_group_new (client);
g_object_unref (resource_group);
g_object_unref (client);
- return 0;
+ return EXIT_SUCCESS;
}
error = NULL;
client = gssdp_client_new (NULL, &error);
if (error) {
- g_critical (error->message);
+ g_printerr ("Error creating the GSSDP client: %s\n",
+ error->message);
+
g_error_free (error);
- return 1;
+
+ return FALSE;
}
resource_browser = gssdp_resource_browser_new (client,