Commit 2ccb1c06 authored by Jorn Baayen's avatar Jorn Baayen

2007-08-29 Jorn Baayen <jorn@openedhand.com>

	* configure.in:

	Bump version number to 0.4.99.

2007-08-28  Zeeshan Ali  <zeenix@gstreamer.net>
	    Jorn Baayen  <jorn@openedhand.com>

	* libgupnp/gupnp-service.c:
	* libgupnp/gupnp-service.h:
	* doc/gupnp-sections.txt:

	- Add gupnp_service_signals_autoconnect ()
	- Remove whitespace

	* configure.ac:
	* gupnp-1.0.pc.in:
	* gupnp-1.0-uninstalled.pc.in:

	Require gmodule.

	* tests/Makefile.am:
	* tests/test-server.c:

	Modify the test server to utilize
	gupnp_service_signals_autoconnect().



git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gupnp@390 d8cb91d7-bff9-0310-92b9-80b65e4482b2
parent d98dbac4
2007-08-29 Jorn Baayen <jorn@openedhand.com>
* configure.in:
Bump version number to 0.4.99.
2007-08-28 Zeeshan Ali <zeenix@gstreamer.net>
Jorn Baayen <jorn@openedhand.com>
* libgupnp/gupnp-service.c:
* libgupnp/gupnp-service.h:
* doc/gupnp-sections.txt:
- Add gupnp_service_signals_autoconnect ()
- Remove whitespace
* configure.ac:
* gupnp-1.0.pc.in:
* gupnp-1.0-uninstalled.pc.in:
Require gmodule.
* tests/Makefile.am:
* tests/test-server.c:
Modify the test server to utilize
gupnp_service_signals_autoconnect().
2007-08-26 Jorn Baayen <jorn@openedhand.com>
* gupnp-1.0-uninstalled.pc.in:
......
AC_PREREQ(2.53)
AC_INIT(gupnp, 0.4, http://www.gupnp.org/)
AC_INIT(gupnp, 0.4.99, http://www.gupnp.org/)
AM_INIT_AUTOMAKE()
AC_CONFIG_SRCDIR(libgupnp/gupnp.h)
AM_CONFIG_HEADER(config.h)
......@@ -12,6 +12,7 @@ AC_PROG_LIBTOOL
AC_FUNC_MMAP
PKG_CHECK_MODULES(LIBGUPNP, gobject-2.0 >= 2.9.1 \
gmodule-2.0 \
gssdp-1.0 >= 0.3 \
libsoup-2.2 \
libxml-2.0 \
......
......@@ -108,6 +108,7 @@ gupnp_service_notify_valist
gupnp_service_notify_value
gupnp_service_freeze_notify
gupnp_service_thaw_notify
gupnp_service_signals_autoconnect
<SUBSECTION Standard>
GUPNP_SERVICE
GUPNP_IS_SERVICE
......
......@@ -9,4 +9,4 @@ Version: @VERSION@
Libs: ${libdir}/libgupnp-1.0.la
Cflags: -I${includedir}
Requires: gssdp-1.0 libxml-2.0 libsoup-2.2
Requires.Private: uuid
Requires.Private: uuid gmodule-2.0
......@@ -9,4 +9,4 @@ Version: @VERSION@
Libs: -L${libdir} -lgupnp-1.0
Cflags: -I${includedir}/gupnp-1.0
Requires: gssdp-1.0 libxml-2.0 libsoup-2.2
Requires.Private: uuid
Requires.Private: uuid gmodule-2.0
This diff is collapsed.
......@@ -129,23 +129,28 @@ gupnp_service_action_return_error (GUPnPServiceAction *action,
const char *error_description);
void
gupnp_service_notify (GUPnPService *service,
...) G_GNUC_NULL_TERMINATED;
gupnp_service_notify (GUPnPService *service,
...) G_GNUC_NULL_TERMINATED;
void
gupnp_service_notify_valist (GUPnPService *service,
va_list var_args);
void
gupnp_service_notify_valist (GUPnPService *service,
va_list var_args);
gupnp_service_notify_value (GUPnPService *service,
const char *variable,
const GValue *value);
void
gupnp_service_notify_value (GUPnPService *service,
const char *variable,
const GValue *value);
gupnp_service_freeze_notify (GUPnPService *service);
void
gupnp_service_freeze_notify (GUPnPService *service);
gupnp_service_thaw_notify (GUPnPService *service);
void
gupnp_service_thaw_notify (GUPnPService *service);
gupnp_service_signals_autoconnect (GUPnPService *service,
gpointer user_data,
GError **error);
G_END_DECLS
......
......@@ -16,6 +16,7 @@ test_introspection_LDADD = $(top_builddir)/libgupnp/libgupnp-1.0.la
test_server_SOURCES = test-server.c
test_server_LDADD = $(top_builddir)/libgupnp/libgupnp-1.0.la
test_server_LDFLAGS = -export-dynamic
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES)
......
......@@ -34,7 +34,7 @@ interrupt_signal_handler (int signum)
g_main_loop_quit (main_loop);
}
static void
void
browse_cb (GUPnPService *service,
GUPnPServiceAction *action,
gpointer user_data)
......@@ -70,11 +70,11 @@ browse_cb (GUPnPService *service,
gupnp_service_action_return (action);
}
static void
query_cb (GUPnPService *service,
const char *variable_name,
GValue *value,
gpointer user_data)
void
query_system_update_id_cb (GUPnPService *service,
const char *variable_name,
GValue *value,
gpointer user_data)
{
g_value_init (value, G_TYPE_UINT);
g_value_set_uint (value, 31415927);
......@@ -152,15 +152,16 @@ main (int argc, char **argv)
"urn:schemas-upnp-org:service:ContentDirectory:1");
if (content_dir) {
g_signal_connect (content_dir,
"action-invoked::Browse",
G_CALLBACK (browse_cb),
NULL);
g_signal_connect (content_dir,
"query-variable::SystemUpdateID",
G_CALLBACK (query_cb),
NULL);
gupnp_service_signals_autoconnect (GUPNP_SERVICE (content_dir),
NULL,
&error);
if (error) {
g_warning ("Failed to autoconnect signals: %s",
error->message);
g_error_free (error);
error = NULL;
}
g_signal_connect (content_dir,
"notify-failed",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment