diff --git a/src/as-news-convert.h b/src/as-news-convert.h index 39c444fea..996135975 100644 --- a/src/as-news-convert.h +++ b/src/as-news-convert.h @@ -27,6 +27,7 @@ #include #include "as-release.h" +#include "as-macros-private.h" G_BEGIN_DECLS @@ -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, diff --git a/src/as-profile.h b/src/as-profile.h index 245518040..3faaf620c 100644 --- a/src/as-profile.h +++ b/src/as-profile.h @@ -26,26 +26,40 @@ #include +#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)