profile/ivi/GSSDP.git
11 years agoPrepare 0.12.2
Jens Georg [Sun, 19 Aug 2012 15:38:12 +0000 (17:38 +0200)]
Prepare 0.12.2

11 years agoCreate vapi file from introspection
Jens Georg [Thu, 23 Feb 2012 12:02:44 +0000 (14:02 +0200)]
Create vapi file from introspection

The skipping of the error-domain in .metadata and the -custom.vala file
are necessary due to https://bugzilla.gnome.org/show_bug.cgi?id=670673.

They can be removed once that is fixed

https://bugzilla.gnome.org/show_bug.cgi?id=675355

11 years agoUpdate pkg-config files to include gio
Jens Georg [Sat, 18 Aug 2012 11:50:55 +0000 (13:50 +0200)]
Update pkg-config files to include gio

11 years agoCorrectly remove expired Resources
Mark Ryan [Fri, 17 Aug 2012 11:51:29 +0000 (13:51 +0200)]
Correctly remove expired Resources

Fixes a crash in GUPnP.  In the current code, Resource objects are not
always correctly removed from the resource_browser->priv->resources
hash table when they expire.  This can lead to a crash in GUPnP when
the application tries to destroy its context manager.

https://bugzilla.gnome.org/show_bug.cgi?id=682099

11 years agoAdd regression test for bgo#682099
Jens Georg [Sat, 18 Aug 2012 09:41:12 +0000 (11:41 +0200)]
Add regression test for bgo#682099

11 years agoFix for libsoup deprecations
Stef Walter [Thu, 12 Jul 2012 05:33:29 +0000 (07:33 +0200)]
Fix for libsoup deprecations

 * soup_message_headers_get() has been deprecated

https://bugzilla.gnome.org/show_bug.cgi?id=679781

11 years agoCorrect arguments to g_regex_match_simple() call
Riko Yamada [Sun, 24 Jun 2012 07:13:46 +0000 (16:13 +0900)]
Correct arguments to g_regex_match_simple() call

We were passing RegexMatchFlags as GRegexCompileFlags.

https://bugzilla.gnome.org/show_bug.cgi?id=678744

12 years agoDon't leak MatchInfo
Jens Georg [Fri, 4 May 2012 08:19:31 +0000 (10:19 +0200)]
Don't leak MatchInfo

12 years agoUpdate introspection annotations
Jens Georg [Thu, 23 Feb 2012 08:42:10 +0000 (10:42 +0200)]
Update introspection annotations

12 years agoFix gtk-doc for stricter g-i scanner
Jens Georg [Thu, 3 May 2012 09:30:17 +0000 (11:30 +0200)]
Fix gtk-doc for stricter g-i scanner

12 years agoMake internal resource cache version-independant
Jens Georg [Mon, 2 Apr 2012 16:02:26 +0000 (18:02 +0200)]
Make internal resource cache version-independant

https://bugzilla.gnome.org/show_bug.cgi?id=673150

12 years agoIgnore announcements from services with a lower version
Jens Georg [Mon, 2 Apr 2012 10:09:48 +0000 (12:09 +0200)]
Ignore announcements from services with a lower version

https://bugzilla.gnome.org/show_bug.cgi?id=673150

12 years agotests: Add some functional tests
Jens Georg [Mon, 2 Apr 2012 16:08:20 +0000 (18:08 +0200)]
tests: Add some functional tests

https://bugzilla.gnome.org/show_bug.cgi?id=673150

12 years agotests: Add regression test for bgo#673150
Jens Georg [Fri, 30 Mar 2012 11:12:45 +0000 (13:12 +0200)]
tests: Add regression test for bgo#673150

12 years agoPrepare 0.12.1
Jens Georg [Fri, 9 Dec 2011 13:52:40 +0000 (14:52 +0100)]
Prepare 0.12.1

12 years agoFix typo in GSSDPResourceBroser docs
Jens Georg [Fri, 9 Dec 2011 13:49:51 +0000 (14:49 +0100)]
Fix typo in GSSDPResourceBroser docs

12 years agoUpdate documentation copyright
Jens Georg [Fri, 9 Dec 2011 13:49:30 +0000 (14:49 +0100)]
Update documentation copyright

12 years agoMark documentation as stable
Jens Georg [Fri, 9 Dec 2011 13:49:16 +0000 (14:49 +0100)]
Mark documentation as stable

12 years agoCreate proper regex if target is an UUID
Jens Georg [Wed, 16 Nov 2011 13:04:06 +0000 (14:04 +0100)]
Create proper regex if target is an UUID

This patch only appends the version regex if:
 - the target doesn't start with "uuid:"
 - the target starts with "uuid:", but has another colon later on
 - the string after the colon consists of numbers

The matching was changed to match numbers starting after the colon, not
just somewhere after the column.

https://bugzilla.gnome.org/show_bug.cgi?id=664177

12 years agogssdp-client: increase BUF_SIZE to 65536
Steffen Sledz [Mon, 31 Oct 2011 13:24:35 +0000 (14:24 +0100)]
gssdp-client: increase BUF_SIZE to 65536

A size of 1024 is a really hard limitation. The UDP length field
size sets a theoretical limit of 65,535 bytes (8 byte header +
65,527 bytes of data) for a UDP datagram.

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
12 years agoPrepare 0.12.0
Jens Georg [Mon, 29 Aug 2011 15:05:10 +0000 (17:05 +0200)]
Prepare 0.12.0

12 years agoFix build with -Werror
Jens Georg [Mon, 29 Aug 2011 12:45:32 +0000 (14:45 +0200)]
Fix build with -Werror

12 years agoAlways send complete announcement sets
Jens Georg [Wed, 3 Aug 2011 12:00:32 +0000 (14:00 +0200)]
Always send complete announcement sets

With cf13481a256d63421d1ffa88a4f4d418696eb94c GSSDP is sending each
announcement three times. This is ok with UPnP but DLNA likes to see
a complete announcement set (3 alives for the device, 2 for each
embedded device and one for each service) before repeating the whole
set.

Fixes DLNA requirement 7.2.4.3, 7.2.4.5

https://bugzilla.gnome.org/show_bug.cgi?id=655900

12 years agoBe less annoying with deprecation warnings
Jens Georg [Fri, 29 Jul 2011 08:56:55 +0000 (10:56 +0200)]
Be less annoying with deprecation warnings

12 years agoPrepare 0.11.2
Jens Georg [Wed, 20 Jul 2011 18:54:55 +0000 (20:54 +0200)]
Prepare 0.11.2

12 years agoBump version for deprecation
Jens Georg [Wed, 20 Jul 2011 18:45:58 +0000 (20:45 +0200)]
Bump version for deprecation

12 years agoFix minor coding style issue
Jens Georg [Wed, 20 Jul 2011 18:45:19 +0000 (20:45 +0200)]
Fix minor coding style issue

12 years agoDeprecate main_context property.
Jens Georg [Sun, 26 Jun 2011 07:15:31 +0000 (09:15 +0200)]
Deprecate main_context property.

Use g_main_context_get_thread_default() instead

12 years agoOnly use /** **/ for gtk-doc.
Jens Georg [Thu, 7 Jul 2011 17:04:14 +0000 (19:04 +0200)]
Only use /** **/ for gtk-doc.

Silence some warnings in make doc.

12 years agoFix gtk-doc warnings regarding GI annotations
Jens Georg [Thu, 7 Jul 2011 16:57:27 +0000 (18:57 +0200)]
Fix gtk-doc warnings regarding GI annotations

12 years agoAdd online location of documentation
Jens Georg [Thu, 7 Jul 2011 16:37:39 +0000 (18:37 +0200)]
Add online location of documentation

Used with e.g. gtkdoc-rebase --online.

12 years agoGenerate xz tarballs by default
Jens Georg [Thu, 7 Jul 2011 16:49:57 +0000 (18:49 +0200)]
Generate xz tarballs by default

12 years agoRemove auto-generated INSTALL
Jens Georg [Thu, 7 Jul 2011 16:49:28 +0000 (18:49 +0200)]
Remove auto-generated INSTALL

12 years agoUpdate autotools
Jens Georg [Thu, 7 Jul 2011 16:48:47 +0000 (18:48 +0200)]
Update autotools

12 years agoIndentation and code style fixes
Jens Georg [Sun, 26 Jun 2011 07:06:51 +0000 (09:06 +0200)]
Indentation and code style fixes

12 years agoDon't leak path on header parsing.
Jens Georg [Thu, 14 Jul 2011 09:58:17 +0000 (11:58 +0200)]
Don't leak path on header parsing.

12 years agoFix a typo in gssdp_resource_group_get_client docs
Jens Georg [Thu, 7 Jul 2011 17:05:22 +0000 (19:05 +0200)]
Fix a typo in gssdp_resource_group_get_client docs

12 years agoRelease 0.11.1
Jens Georg [Thu, 7 Jul 2011 07:26:12 +0000 (09:26 +0200)]
Release 0.11.1

12 years agoFix functionality on OpenBSD
Jens Georg [Thu, 30 Jun 2011 19:51:11 +0000 (21:51 +0200)]
Fix functionality on OpenBSD

12 years agoFix discovery regressions introduced with 177f2772.
Jens Georg [Sat, 2 Jul 2011 13:28:30 +0000 (15:28 +0200)]
Fix discovery regressions introduced with 177f2772.

 - Only M-SEARCH should be send from port different to 1900
 - GSSDP needs to listen on that socket as well since clients
   need to reply to the port M-SEARCH was sent from.

12 years agoDrop "All rights reserved" from Nokia copyright.
Jens Georg [Fri, 1 Jul 2011 18:18:55 +0000 (20:18 +0200)]
Drop "All rights reserved" from Nokia copyright.

12 years agoAlso check HTTP version and request path
Jens Georg [Fri, 1 Jul 2011 18:15:50 +0000 (20:15 +0200)]
Also check HTTP version and request path

HTTP version has to be 1.1 and request path "*"

12 years agoAdd missing goto on error while setting TTL
Jens Georg [Thu, 30 Jun 2011 13:43:53 +0000 (15:43 +0200)]
Add missing goto on error while setting TTL

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=653733

12 years agoMX header must be a positive integer
Jens Georg [Wed, 29 Jun 2011 16:52:50 +0000 (18:52 +0200)]
MX header must be a positive integer

12 years agoCheck presence of MAN header
Jens Georg [Wed, 29 Jun 2011 16:52:38 +0000 (18:52 +0200)]
Check presence of MAN header

12 years agoDo not send M-SEARCH/NOTIFY from port 1900
Jens Georg [Mon, 27 Jun 2011 15:13:34 +0000 (17:13 +0200)]
Do not send M-SEARCH/NOTIFY from port 1900

This fixes bgo#653380 and DLNA requirement 7.2.3.4.

13 years agoRelease 0.11.0
Jens Georg [Thu, 16 Jun 2011 09:03:10 +0000 (11:03 +0200)]
Release 0.11.0

13 years agoAdjust documentation for the message-delay property.
Sven Neumann [Tue, 14 Jun 2011 20:42:19 +0000 (22:42 +0200)]
Adjust documentation for the message-delay property.

The default value was changed recently, but the documentation still
referred to the old default value.

13 years agoSend alive/byebye announcements three times
Jens Georg [Tue, 14 Jun 2011 06:57:54 +0000 (08:57 +0200)]
Send alive/byebye announcements three times

UPnP recommends to send the whole batch of announcements more than
once "due to the unreliable nature of UDP".

13 years agoBump default delay to 120ms
Jens Georg [Tue, 14 Jun 2011 06:57:53 +0000 (08:57 +0200)]
Bump default delay to 120ms

UPnP recommends a message delay of a "few hundred milliseconds".

13 years agoMore concise description
Zeeshan Ali (Khattak) [Tue, 7 Jun 2011 13:23:25 +0000 (16:23 +0300)]
More concise description

13 years agoAdd DOAP file
Zeeshan Ali (Khattak) [Tue, 7 Jun 2011 13:16:10 +0000 (16:16 +0300)]
Add DOAP file

13 years agoRevert "Send notify for all lower versions as well"
Jens Georg [Fri, 20 May 2011 11:44:54 +0000 (13:44 +0200)]
Revert "Send notify for all lower versions as well"

This reverts commit c39bba86c215785afefd16a9eeab1def2556a4e2.

This is wrong according to UPnP spec. Announcements must only be sent
for the largest supported version.

The issue that was fixed with this is also fixed with
ad16c1ab2e14c8736bbef0397667ad782dc8d218.

13 years agoReply for M-SEARCH on versions <= our version
Jens Georg [Fri, 20 May 2011 09:34:01 +0000 (11:34 +0200)]
Reply for M-SEARCH on versions <= our version

13 years agoKeep resource version of target around
Jens Georg [Fri, 20 May 2011 09:27:37 +0000 (11:27 +0200)]
Keep resource version of target around

13 years agoMake USN and ST match on M-SEARCH
Jens Georg [Wed, 11 May 2011 12:12:18 +0000 (14:12 +0200)]
Make USN and ST match on M-SEARCH

This is required by UPnP.

13 years agoFix all warnings from g-ir-scanner
Jens Georg [Sat, 30 Apr 2011 17:57:13 +0000 (20:57 +0300)]
Fix all warnings from g-ir-scanner

13 years agoUpdate gobject-introspection automake integration
Jens Georg [Sat, 30 Apr 2011 17:51:41 +0000 (20:51 +0300)]
Update gobject-introspection automake integration

13 years agoBump minor and LT versions
Zeeshan Ali (Khattak) [Fri, 3 Jun 2011 22:47:04 +0000 (01:47 +0300)]
Bump minor and LT versions

Bump minor version and LTVERSION now that we're breaking API/ABI.

13 years agoDon't use anonymous structs
Jens Georg [Wed, 2 Feb 2011 19:39:09 +0000 (20:39 +0100)]
Don't use anonymous structs

Needed for gtkmm-like bindings

13 years agoMake gssdp-client implement GInitable
Jens Georg [Wed, 19 Jan 2011 08:11:03 +0000 (09:11 +0100)]
Make gssdp-client implement GInitable

GObject way to pass a GError on construction.

13 years agoOnly reply if a valid MX header is present
Zeeshan Ali (Khattak) [Fri, 3 Jun 2011 21:57:46 +0000 (00:57 +0300)]
Only reply if a valid MX header is present

Fixes UPnP CTT test UDA-1.2.9.

Modified version of a patch from Jens Georg <mail@jensge.org>.

13 years agoDon't send interleaved byebye/alive on startup
Jens Georg [Tue, 24 May 2011 10:11:29 +0000 (12:11 +0200)]
Don't send interleaved byebye/alive on startup

According to UPnP CTT, there should not be any byebye message after
the device sent an alive message. So we need to group the initial
byebye messages (also requested by the tool, UDA-1.1.3) to come
before the initial alive messages.

Partially fixes UDA-1.1.1 - UDA-1.1.3

13 years agoImplement add_resource_simple using add_resource
Jens Georg [Fri, 27 May 2011 08:17:10 +0000 (10:17 +0200)]
Implement add_resource_simple using add_resource

Remove duplicate code

13 years agoFix crash on target without a colon
Sven Neumann [Wed, 4 May 2011 12:54:46 +0000 (14:54 +0200)]
Fix crash on target without a colon

Don't crash if a target without a colon is passed to
gssdp_resource_browser_set_target().

13 years agoRemove a redundant variable
Zeeshan Ali (Khattak) [Tue, 26 Apr 2011 17:47:36 +0000 (20:47 +0300)]
Remove a redundant variable

13 years agoBetter usage of g_set_error*
Alberto Mardegan [Sun, 17 Apr 2011 08:18:10 +0000 (11:18 +0300)]
Better usage of g_set_error*

Use g_set_error instead of g_error_new; do not check if the error
pointer is non-NULL, because g_set_error() does that internally.
Also, use g_set_error_literal() whenever possible.

13 years agoMemory leak: always call g_propagate_error
Alberto Mardegan [Sun, 17 Apr 2011 08:18:09 +0000 (11:18 +0300)]
Memory leak: always call g_propagate_error

Even if the "dest" error is NULL, we must call g_propagate_error()
because it free's the "src" error that would otherwise be leaked.

13 years agoReport failure even if no GError is given
Alberto Mardegan [Sun, 17 Apr 2011 08:18:08 +0000 (11:18 +0300)]
Report failure even if no GError is given

If no GError was passed to the GInitable, in some error cases
gssdp_socket_source_do_init() would still return TRUE. This change fixes
that and simplifies error handling a bit.

13 years agoAvoid accessing members of a destroyed GError
Alberto Mardegan [Sun, 17 Apr 2011 08:18:07 +0000 (11:18 +0300)]
Avoid accessing members of a destroyed GError

After g_propagate_error() has been called, the original error has either
been destroyed or moved; this code was accessing the contents of the
GError after it had been free'd.

13 years agoRelease 0.10.0
Jens Georg [Thu, 24 Mar 2011 21:17:08 +0000 (23:17 +0200)]
Release 0.10.0

13 years agoFix network calculation for IPv6
Jens Georg [Thu, 24 Mar 2011 21:07:39 +0000 (23:07 +0200)]
Fix network calculation for IPv6

13 years agoSend notify for all lower versions as well
Zeeshan Ali (Khattak) [Tue, 8 Mar 2011 15:20:55 +0000 (17:20 +0200)]
Send notify for all lower versions as well

13 years agoRefactor a function
Zeeshan Ali (Khattak) [Tue, 8 Mar 2011 14:12:46 +0000 (16:12 +0200)]
Refactor a function

Refactor create_target_regex().

13 years agoSend alive message at least 3 times before expiry
Zeeshan Ali (Khattak) [Thu, 3 Feb 2011 17:53:48 +0000 (19:53 +0200)]
Send alive message at least 3 times before expiry

We want to re-announce at least 3 times before the resource group expires
to cope with the unrelialble nature of UDP.

Read the paragraphs about 'CACHE-CONTROL' on pages 21-22 of UPnP Device
Architecture Document v1.1 for further details on this.

13 years agoClear the ChangeLog file
Luis de Bethencourt [Wed, 2 Feb 2011 11:54:14 +0000 (12:54 +0100)]
Clear the ChangeLog file

The ChangeLog was obsolete and since it's use has been replaced
by git log, an empty ChangeLog file is kept to satisfy autools.

13 years agoRelease 0.9.2
Zeeshan Ali (Khattak) [Fri, 28 Jan 2011 13:54:29 +0000 (15:54 +0200)]
Release 0.9.2

13 years agoPort network lookup code to Windows
Jens Georg [Wed, 26 Jan 2011 22:00:46 +0000 (23:00 +0100)]
Port network lookup code to Windows

13 years agoAdd 'network' property to GSSDPClient
Zeeshan Ali (Khattak) [Tue, 25 Jan 2011 15:08:12 +0000 (17:08 +0200)]
Add 'network' property to GSSDPClient

13 years agoStreamline resource cleaning in socket_source_cb
Jens Georg [Mon, 17 Jan 2011 19:54:27 +0000 (20:54 +0100)]
Streamline resource cleaning in socket_source_cb

Fixes Bug #2144.

13 years agoRequire libsoup >= 2.26.1
Zeeshan Ali (Khattak) [Wed, 22 Dec 2010 10:03:58 +0000 (12:03 +0200)]
Require libsoup >= 2.26.1

13 years agoFix issue introduced with commit 20dce239
Sven Neumann [Thu, 16 Dec 2010 13:41:21 +0000 (14:41 +0100)]
Fix issue introduced with commit 20dce239

The Reource struct is not any longer valid at the point we emit the
signal, so better not access it there.

13 years agoRelease 0.9.1
Zeeshan Ali (Khattak) [Wed, 1 Dec 2010 15:10:05 +0000 (17:10 +0200)]
Release 0.9.1

13 years agoFix potential crash in resource-unavailable()
Sven Neumann [Thu, 18 Nov 2010 21:33:49 +0000 (22:33 +0100)]
Fix potential crash in resource-unavailable()

Similar fix as for resource_expire(), emit the "resource-unavailable"
signal after having removed the resource from the list of available
resources.

13 years agoFix potential crash in resource_expire()
Sven Neumann [Mon, 15 Nov 2010 08:58:40 +0000 (09:58 +0100)]
Fix potential crash in resource_expire()

GSSDPResourceBrowser emits "resource-unavailable" before it has removed
the resource from its cache. Now if the application changes the cache
in response to this signal emission the code will crash.

Fix this potential crash by emitting the signal after the resource
has been removed from the cache.

13 years agoRelease 0.9.0
Zeeshan Ali (Khattak) [Fri, 12 Nov 2010 11:33:54 +0000 (13:33 +0200)]
Release 0.9.0

13 years agoDon't include private header in a public header
Zeeshan Ali (Khattak) [Fri, 12 Nov 2010 10:02:31 +0000 (12:02 +0200)]
Don't include private header in a public header

13 years agoDon't print the whole packet on failure to send it
Jens Georg [Sun, 10 Oct 2010 19:39:29 +0000 (21:39 +0200)]
Don't print the whole packet on failure to send it

Only print destination and the error message.

13 years agoWork-around some issues with gio on windows
Jens Georg [Sun, 2 May 2010 15:37:06 +0000 (17:37 +0200)]
Work-around some issues with gio on windows

glib uses a rather strange mechanism to init the winsock library (through
usage of g_inet_addres_*), so we better do it ourselves.

glib - rightly - doesn't set SO_REUSEADDR on g_socket_bind on windows
since it has different semantics. Nevertheless we need it on windows for
multicast sockets, so we add a helper function to set this socket option.

13 years agoPort host IP address detection code to windows
Jens Georg [Sun, 2 May 2010 14:13:50 +0000 (16:13 +0200)]
Port host IP address detection code to windows

13 years agoMake it compile on mingw
Jens Georg [Fri, 26 Jun 2009 15:04:28 +0000 (17:04 +0200)]
Make it compile on mingw

Add headers and casts necessary to silence mingw. Additionaly
"interface" is a macro on Windows which leads to weird compiler errors;
renaming the variables was unavoidable

To make libtool generate DLLs on windows the linker flag -no-undefined
needs to be passed; otherwise libtool will only create static libraries.

13 years agoMake GSSDPSocketSource a GObject
Jens Georg [Tue, 7 Sep 2010 21:14:15 +0000 (23:14 +0200)]
Make GSSDPSocketSource a GObject

13 years agoMicro coding-style fix
Zeeshan Ali (Khattak) [Fri, 8 Oct 2010 22:36:09 +0000 (01:36 +0300)]
Micro coding-style fix

13 years agoPort GSSDP to GIO/GSocket
Jens Georg [Sun, 2 May 2010 14:41:14 +0000 (16:41 +0200)]
Port GSSDP to GIO/GSocket

13 years agoPass all libs when building the tests, to please gold (#2196)
Ross Burton [Mon, 20 Sep 2010 10:47:18 +0000 (11:47 +0100)]
Pass all libs when building the tests, to please gold (#2196)

13 years agoRelease 0.8.0
Zeeshan Ali (Khattak) [Thu, 16 Sep 2010 12:09:35 +0000 (15:09 +0300)]
Release 0.8.0

13 years agoProperly catch errors in recvfrom
Jens Georg [Tue, 7 Sep 2010 20:20:42 +0000 (22:20 +0200)]
Properly catch errors in recvfrom

Errors previously were caught by sheer luck due to the fact that bytes
was declared size_t (unsigned), thus -1 mapping to typeof(size_t)_MAX
which most likely fullfilled the case of bytes > BUF_SIZE

13 years agoFix typo in socket-source
Jens Georg [Wed, 8 Sep 2010 20:14:33 +0000 (22:14 +0200)]
Fix typo in socket-source

13 years agoDon't use deprecated libsoup API
Zeeshan Ali (Khattak) [Tue, 24 Aug 2010 12:17:47 +0000 (15:17 +0300)]
Don't use deprecated libsoup API

13 years agoFlag string arg of GSSDPClient signal as static
Sven Neumann [Tue, 6 Jul 2010 13:34:06 +0000 (15:34 +0200)]
Flag string arg of GSSDPClient signal as static

Set the G_SIGNAL_TYPE_STATIC_SCOPE flag on the "from_ip" string
argument of the GSSDPClient::message-received signal.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>