summaryrefslogtreecommitdiff
path: root/libgupnp
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-06-13 13:07:54 +0200
committerJens Georg <mail@jensge.org>2022-06-14 08:12:32 +0200
commit3b1fe5d0f36d13b3cd8980a1d5671aa43ede88f9 (patch)
treef8b5b6c49c9e3455635a345ac072c6b760ad4b2c /libgupnp
parentb50c50dd6b27272b4e2207a6cf853defa0337684 (diff)
downloadgupnp-3b1fe5d0f36d13b3cd8980a1d5671aa43ede88f9.tar.gz
Service: Switch to g_uuid_string_random()
Diffstat (limited to 'libgupnp')
-rw-r--r--libgupnp/gupnp-service.c9
-rw-r--r--libgupnp/meson.build2
2 files changed, 4 insertions, 7 deletions
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index d515a87..a24770a 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -26,11 +26,8 @@
#include "xml-util.h"
#include "gvalue-util.h"
-#include "guul.h"
-
#define SUBSCRIPTION_TIMEOUT 300 /* DLNA (7.2.22.1) enforced */
-
struct _GUPnPServicePrivate {
GUPnPRootDevice *root_device;
@@ -548,11 +545,12 @@ subscription_response (GUPnPService *service,
* Generate and return a new UUID.
*
* Returns: (transfer full): A newly generated UUID in string representation.
+ * Deprecated: 1.6. Use [func@GLib.uuid_string_random] instead.
*/
char *
gupnp_get_uuid (void)
{
- return guul_get_uuid ();
+ return g_uuid_string_random();
}
/* Generates a new SID */
@@ -562,8 +560,7 @@ generate_sid (void)
char *ret = NULL;
char *uuid;
-
- uuid = guul_get_uuid ();
+ uuid = g_uuid_string_random ();
ret = g_strconcat ("uuid:", uuid, NULL);
g_free (uuid);
diff --git a/libgupnp/meson.build b/libgupnp/meson.build
index 0582832..0d2f544 100644
--- a/libgupnp/meson.build
+++ b/libgupnp/meson.build
@@ -1,6 +1,6 @@
context_manager_impl = []
context_manager_args = []
-system_deps = [guul.get_variable('guul')]
+system_deps = []
if host_machine.system() == 'windows'
context_manager_impl += 'gupnp-windows-context-manager.c'