Skip to content

Commit

Permalink
xml-utils: Don't expose symbols that don't need to be visble
Browse files Browse the repository at this point in the history
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed May 3, 2024
1 parent 6e81bc6 commit 363fffc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions common/flatpak-xml-utils-private.h
Expand Up @@ -33,17 +33,13 @@ struct FlatpakXml
FlatpakXml *next_sibling;
};

FlatpakXml *flatpak_xml_new (const gchar *element_name);
FlatpakXml *flatpak_xml_new_text (const gchar *text);
void flatpak_xml_add (FlatpakXml *parent,
FlatpakXml *node);
void flatpak_xml_free (FlatpakXml *node);
FlatpakXml *flatpak_xml_parse (GInputStream * in,
gboolean compressed,
GCancellable *cancellable,
GError **error);
void flatpak_xml_to_string (FlatpakXml *node,
GString *res);
FlatpakXml *flatpak_xml_unlink (FlatpakXml *node,
FlatpakXml *prev_sibling);
FlatpakXml *flatpak_xml_find (FlatpakXml *node,
Expand Down
6 changes: 3 additions & 3 deletions common/flatpak-xml-utils.c
Expand Up @@ -30,7 +30,7 @@ typedef struct
FlatpakXml *current;
} XmlData;

FlatpakXml *
static FlatpakXml *
flatpak_xml_new (const gchar *element_name)
{
FlatpakXml *node = g_new0 (FlatpakXml, 1);
Expand All @@ -39,7 +39,7 @@ flatpak_xml_new (const gchar *element_name)
return node;
}

FlatpakXml *
static FlatpakXml *
flatpak_xml_new_text (const gchar *text)
{
FlatpakXml *node = g_new0 (FlatpakXml, 1);
Expand Down Expand Up @@ -146,7 +146,7 @@ flatpak_xml_free (FlatpakXml *node)
}


void
static void
flatpak_xml_to_string (FlatpakXml *node, GString *res)
{
int i;
Expand Down

0 comments on commit 363fffc

Please sign in to comment.