• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gupnp-av/0001-Fix-static-library-linking-with-gupnp.patch
Fabrice FontaineFabrice Fontaine committed d682569f5dc31 Oct 2017
Raw file
Source viewDiff to previous
 
1
From 268ec01e448ed7cedf90b37fbc27f01806637825 Mon Sep 17 00:00:00 2001
2
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3
Date: Mon, 30 Oct 2017 22:10:23 +0100
4
Subject: [PATCH 1/1] Fix static library linking with gupnp
5
​
6
gupnp and gupnp-av defines two internal functions with the same name:
7
xml_util_get_element and xml_util_get_child_element_content, as a result
8
an application such as rygel can't be build statically.
9
To fix this issue, rename both functions as
10
xml_util_get_element2 and xml_util_get_child_element_content2
11
​
12
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
13
---
14
 libgupnp-av/gupnp-cds-last-change-parser.c |  2 +-
15
 libgupnp-av/gupnp-didl-lite-container.c    |  4 ++--
16
 libgupnp-av/gupnp-didl-lite-item.c         |  2 +-
17
 libgupnp-av/gupnp-didl-lite-object.c       | 26 +++++++++++++-------------
18
 libgupnp-av/gupnp-didl-lite-parser.c       |  4 ++--
19
 libgupnp-av/gupnp-didl-lite-writer.c       |  2 +-
20
 libgupnp-av/gupnp-feature-list-parser.c    |  2 +-
21
 libgupnp-av/gupnp-last-change-parser.c     |  2 +-
22
 libgupnp-av/xml-util.c                     | 16 ++++++++--------
23
 libgupnp-av/xml-util.h                     |  4 ++--
24
 10 files changed, 32 insertions(+), 32 deletions(-)
25
​
26
diff --git a/libgupnp-av/gupnp-cds-last-change-parser.c b/libgupnp-av/gupnp-cds-last-change-parser.c
27
index cff5f0b..36f6b0a 100644
28
--- a/libgupnp-av/gupnp-cds-last-change-parser.c
29
+++ b/libgupnp-av/gupnp-cds-last-change-parser.c
30
@@ -119,7 +119,7 @@ gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser,
31
                 goto out;
32
         }
33
 
34
-        state_event = xml_util_get_element ((xmlNode *) doc,
35
+        state_event = xml_util_get_element2 ((xmlNode *) doc,
36
                                             "StateEvent",
37
                                             NULL);
38
         if (state_event == NULL) {
39
diff --git a/libgupnp-av/gupnp-didl-lite-container.c b/libgupnp-av/gupnp-didl-lite-container.c
40
index d7ac578..c0e7395 100644
41
--- a/libgupnp-av/gupnp-didl-lite-container.c
42
+++ b/libgupnp-av/gupnp-didl-lite-container.c
43
@@ -340,7 +340,7 @@ gupnp_didl_lite_container_container_update_id_is_set
44
 
45
         xml_node = gupnp_didl_lite_object_get_xml_node
46
                                         (GUPNP_DIDL_LITE_OBJECT (container));
47
-        content = xml_util_get_child_element_content (xml_node,
48
+        content = xml_util_get_child_element_content2 (xml_node,
49
                                                       "containerUpdateID");
50
         return content != NULL;
51
 }
52
@@ -390,7 +390,7 @@ gupnp_didl_lite_container_total_deleted_child_count_is_set
53
 
54
         xml_node = gupnp_didl_lite_object_get_xml_node
55
                                         (GUPNP_DIDL_LITE_OBJECT (container));
56
-        content = xml_util_get_child_element_content (xml_node,
57
+        content = xml_util_get_child_element_content2 (xml_node,
58
                                                       "totalDeletedChildCount");
59
         return content != NULL;
60
 }
61
diff --git a/libgupnp-av/gupnp-didl-lite-item.c b/libgupnp-av/gupnp-didl-lite-item.c
62
index 3588052..3d6d4d0 100644
63
--- a/libgupnp-av/gupnp-didl-lite-item.c
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.