Skip to content

Commit

Permalink
Private headers: Decorate symbols for export needed for tools
Browse files Browse the repository at this point in the history
We decorate just enough of the private symbols so that the appstreamcli tool
will link for clang-cl builds.
  • Loading branch information
fanc999-1 committed Oct 24, 2023
1 parent 6d97607 commit 3905501
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/as-news-convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <glib-object.h>
#include "as-release.h"
#include "as-macros-private.h"

G_BEGIN_DECLS

Expand All @@ -48,26 +49,33 @@ typedef enum {
AS_NEWS_FORMAT_KIND_LAST
} AsNewsFormatKind;

AS_INTERNAL_API
const gchar *as_news_format_kind_to_string (AsNewsFormatKind kind);
AS_INTERNAL_API
AsNewsFormatKind as_news_format_kind_from_string (const gchar *kind_str);

AS_INTERNAL_API
GPtrArray *as_news_to_releases_from_data (const gchar *data,
AsNewsFormatKind kind,
gint entry_limit,
gint translatable_limit,
GError **error);
AS_INTERNAL_API
GPtrArray *as_news_to_releases_from_filename (const gchar *fname,
AsNewsFormatKind kind,
gint entry_limit,
gint translatable_limit,
GError **error);

AS_INTERNAL_API
gchar *as_releases_to_metainfo_xml_chunk (GPtrArray *releases, GError **error);

AS_INTERNAL_API
gboolean as_releases_to_news_data (GPtrArray *releases,
AsNewsFormatKind kind,
gchar **news_data,
GError **error);
AS_INTERNAL_API
gboolean as_releases_to_news_file (GPtrArray *releases,
const gchar *fname,
AsNewsFormatKind kind,
Expand Down
14 changes: 14 additions & 0 deletions src/as-profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,40 @@

#include <glib-object.h>

#include "as-macros-private.h"

G_BEGIN_DECLS

#define AS_TYPE_PROFILE (as_profile_get_type ())

AS_INTERNAL_API
G_DECLARE_FINAL_TYPE (AsProfile, as_profile, AS, PROFILE, GObject)

typedef struct _AsProfileTask AsProfileTask;

AS_INTERNAL_API
AsProfile *as_profile_new (void);
AS_INTERNAL_API
AsProfileTask *as_profile_start_literal (AsProfile *profile,
const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
AS_INTERNAL_API
AsProfileTask *as_profile_start (AsProfile *profile, const gchar *fmt, ...)
G_GNUC_PRINTF (2, 3) G_GNUC_WARN_UNUSED_RESULT;
AS_INTERNAL_API
void as_profile_clear (AsProfile *profile);
AS_INTERNAL_API
void as_profile_prune (AsProfile *profile, guint duration);
AS_INTERNAL_API
void as_profile_dump (AsProfile *profile);
AS_INTERNAL_API
void as_profile_set_autodump (AsProfile *profile, guint delay);
AS_INTERNAL_API
void as_profile_set_autoprune (AsProfile *profile, guint duration);
AS_INTERNAL_API
void as_profile_set_duration_min (AsProfile *profile, guint duration_min);
AS_INTERNAL_API
void as_profile_task_set_threaded (AsProfileTask *ptask, gboolean threaded);
AS_INTERNAL_API
void as_profile_task_free (AsProfileTask *ptask);

G_DEFINE_AUTOPTR_CLEANUP_FUNC (AsProfileTask, as_profile_task_free)
Expand Down

0 comments on commit 3905501

Please sign in to comment.