[gnome-builder] libide-vcs: update availability macros



commit 51efb8599559908c6395481d07cd35c2cf8e3970
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 11 18:05:55 2022 -0700

    libide-vcs: update availability macros

 src/libide/vcs/ide-directory-vcs.h   |  2 +-
 src/libide/vcs/ide-vcs-config.h      |  6 +++---
 src/libide/vcs/ide-vcs-file-info.h   | 10 ++++-----
 src/libide/vcs/ide-vcs-initializer.h |  8 ++++----
 src/libide/vcs/ide-vcs-monitor.h     | 16 +++++++--------
 src/libide/vcs/ide-vcs-uri.c         |  2 --
 src/libide/vcs/ide-vcs-uri.h         | 34 +++++++++++++++---------------
 src/libide/vcs/ide-vcs.c             | 28 +++----------------------
 src/libide/vcs/ide-vcs.h             | 40 ++++++++++++++++++------------------
 9 files changed, 61 insertions(+), 85 deletions(-)
---
diff --git a/src/libide/vcs/ide-directory-vcs.h b/src/libide/vcs/ide-directory-vcs.h
index 3f1b9f575..3e55d293c 100644
--- a/src/libide/vcs/ide-directory-vcs.h
+++ b/src/libide/vcs/ide-directory-vcs.h
@@ -28,7 +28,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_DIRECTORY_VCS (ide_directory_vcs_get_type())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_FINAL_TYPE (IdeDirectoryVcs, ide_directory_vcs, IDE, DIRECTORY_VCS, IdeObject)
 
 IdeDirectoryVcs *ide_directory_vcs_new (GFile *workdir);
diff --git a/src/libide/vcs/ide-vcs-config.h b/src/libide/vcs/ide-vcs-config.h
index a8c488275..76339df87 100644
--- a/src/libide/vcs/ide-vcs-config.h
+++ b/src/libide/vcs/ide-vcs-config.h
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_VCS_CONFIG (ide_vcs_config_get_type())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (IdeVcsConfig, ide_vcs_config, IDE, VCS_CONFIG, IdeObject)
 
 typedef enum
@@ -51,11 +51,11 @@ struct _IdeVcsConfigInterface
                       const GValue    *value);
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void ide_vcs_config_get_config (IdeVcsConfig     *self,
                                 IdeVcsConfigType  type,
                                 GValue           *value);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void ide_vcs_config_set_config (IdeVcsConfig     *self,
                                 IdeVcsConfigType  type,
                                 const GValue     *value);
diff --git a/src/libide/vcs/ide-vcs-file-info.h b/src/libide/vcs/ide-vcs-file-info.h
index 0e0600324..95067f1e7 100644
--- a/src/libide/vcs/ide-vcs-file-info.h
+++ b/src/libide/vcs/ide-vcs-file-info.h
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_VCS_FILE_INFO (ide_vcs_file_info_get_type())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_DERIVABLE_TYPE (IdeVcsFileInfo, ide_vcs_file_info, IDE, VCS_FILE_INFO, GObject)
 
 typedef enum
@@ -52,13 +52,13 @@ struct _IdeVcsFileInfoClass
   gpointer _reserved[16];
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsFileInfo   *ide_vcs_file_info_new        (GFile            *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GFile            *ide_vcs_file_info_get_file   (IdeVcsFileInfo   *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsFileStatus  ide_vcs_file_info_get_status (IdeVcsFileInfo   *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void              ide_vcs_file_info_set_status (IdeVcsFileInfo   *self,
                                                 IdeVcsFileStatus  status);
 
diff --git a/src/libide/vcs/ide-vcs-initializer.h b/src/libide/vcs/ide-vcs-initializer.h
index dfd6baeb7..f09662638 100644
--- a/src/libide/vcs/ide-vcs-initializer.h
+++ b/src/libide/vcs/ide-vcs-initializer.h
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_VCS_INITIALIZER (ide_vcs_initializer_get_type ())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (IdeVcsInitializer, ide_vcs_initializer, IDE, VCS_INITIALIZER, IdeObject)
 
 struct _IdeVcsInitializerInterface
@@ -48,15 +48,15 @@ struct _IdeVcsInitializerInterface
                                  GError              **error);
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gchar    *ide_vcs_initializer_get_title         (IdeVcsInitializer    *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void      ide_vcs_initializer_initialize_async  (IdeVcsInitializer    *self,
                                                  GFile                *file,
                                                  GCancellable         *cancellable,
                                                  GAsyncReadyCallback   callback,
                                                  gpointer              user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean  ide_vcs_initializer_initialize_finish (IdeVcsInitializer    *self,
                                                  GAsyncResult         *result,
                                                  GError              **error);
diff --git a/src/libide/vcs/ide-vcs-monitor.h b/src/libide/vcs/ide-vcs-monitor.h
index bb92047d9..e1ae52b04 100644
--- a/src/libide/vcs/ide-vcs-monitor.h
+++ b/src/libide/vcs/ide-vcs-monitor.h
@@ -33,25 +33,25 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_VCS_MONITOR (ide_vcs_monitor_get_type())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_FINAL_TYPE (IdeVcsMonitor, ide_vcs_monitor, IDE, VCS_MONITOR, IdeObject)
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsMonitor  *ide_vcs_monitor_from_context (IdeContext    *context);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsFileInfo *ide_vcs_monitor_ref_info     (IdeVcsMonitor *self,
                                               GFile         *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GFile          *ide_vcs_monitor_ref_root     (IdeVcsMonitor *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void            ide_vcs_monitor_set_root     (IdeVcsMonitor *self,
                                               GFile         *file);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcs         *ide_vcs_monitor_ref_vcs      (IdeVcsMonitor *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void            ide_vcs_monitor_set_vcs      (IdeVcsMonitor *self,
                                               IdeVcs        *vcs);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 guint64         ide_vcs_monitor_get_sequence (IdeVcsMonitor *self);
 
 G_END_DECLS
diff --git a/src/libide/vcs/ide-vcs-uri.c b/src/libide/vcs/ide-vcs-uri.c
index db44f23d0..9b3aef880 100644
--- a/src/libide/vcs/ide-vcs-uri.c
+++ b/src/libide/vcs/ide-vcs-uri.c
@@ -470,8 +470,6 @@ ide_vcs_uri_is_valid (const gchar *uri_string)
  *
  * Returns: (transfer full) (nullable): a string containing the suggested
  *   clone directory name, or %NULL.
- *
- * Since: 3.32
  */
 gchar *
 ide_vcs_uri_get_clone_name (const IdeVcsUri *self)
diff --git a/src/libide/vcs/ide-vcs-uri.h b/src/libide/vcs/ide-vcs-uri.h
index 119275dbc..fcd1fb0cd 100644
--- a/src/libide/vcs/ide-vcs-uri.h
+++ b/src/libide/vcs/ide-vcs-uri.h
@@ -32,44 +32,44 @@ G_BEGIN_DECLS
 
 typedef struct _IdeVcsUri IdeVcsUri;
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GType        ide_vcs_uri_get_type       (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsUri   *ide_vcs_uri_new            (const gchar     *uri);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsUri   *ide_vcs_uri_ref            (IdeVcsUri       *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_unref          (IdeVcsUri       *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 const gchar *ide_vcs_uri_get_scheme     (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 const gchar *ide_vcs_uri_get_user       (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 const gchar *ide_vcs_uri_get_host       (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 guint        ide_vcs_uri_get_port       (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 const gchar *ide_vcs_uri_get_path       (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_set_scheme     (IdeVcsUri       *self,
                                          const gchar     *scheme);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_set_user       (IdeVcsUri       *self,
                                          const gchar     *user);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_set_host       (IdeVcsUri       *self,
                                          const gchar     *host);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_set_port       (IdeVcsUri       *self,
                                          guint            port);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void         ide_vcs_uri_set_path       (IdeVcsUri       *self,
                                          const gchar     *path);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gchar       *ide_vcs_uri_to_string      (const IdeVcsUri *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean     ide_vcs_uri_is_valid       (const gchar     *uri_string);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gchar       *ide_vcs_uri_get_clone_name (const IdeVcsUri *self);
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeVcsUri, ide_vcs_uri_unref)
diff --git a/src/libide/vcs/ide-vcs.c b/src/libide/vcs/ide-vcs.c
index a457416b2..ef00efd99 100644
--- a/src/libide/vcs/ide-vcs.c
+++ b/src/libide/vcs/ide-vcs.c
@@ -22,8 +22,10 @@
 
 #include "config.h"
 
-#include <libide-io.h>
 #include <string.h>
+#include <glib/gi18n.h>
+
+#include <libide-io.h>
 
 #include "ide-directory-vcs.h"
 #include "ide-vcs.h"
@@ -197,8 +199,6 @@ ide_vcs_default_init (IdeVcsInterface *iface)
    * The "changed" signal should be emitted when the VCS has detected a change
    * to the underlying VCS storage. This can be used by consumers to reload
    * their respective data structures.
-   *
-   * Since: 3.32
    */
   signals [CHANGED] =
     g_signal_new ("changed",
@@ -232,8 +232,6 @@ ide_vcs_default_init (IdeVcsInterface *iface)
  * Thread safety: This function is safe to call from a thread as
  *   #IdeVcs implementations are required to ensure this function
  *   is thread-safe.
- *
- * Since: 3.32
  */
 gboolean
 ide_vcs_is_ignored (IdeVcs  *self,
@@ -279,8 +277,6 @@ ide_vcs_is_ignored (IdeVcs  *self,
  * Thread safety: This function is safe to call from a thread as
  *   #IdeVcs implementations are required to ensure this function
  *   is thread-safe.
- *
- * Since: 3.32
  */
 gboolean
 ide_vcs_path_is_ignored (IdeVcs       *self,
@@ -339,8 +335,6 @@ ide_vcs_get_priority (IdeVcs *self)
  *
  * Returns: (transfer none): a #GFile.
  *
- * Since: 3.32
- *
  * Thread safety: this function is safe to call from threads. The working
  *   directory should only be set at creating and therefore safe to call
  *   at any time from any thread that holds a reference to @self. Those
@@ -372,8 +366,6 @@ ide_vcs_emit_changed (IdeVcs *self)
  * support access to configuration, then %NULL is returned.
  *
  * Returns: (transfer full) (nullable): An #IdeVcsConfig or %NULL.
- *
- * Since: 3.32
  */
 IdeVcsConfig *
 ide_vcs_get_config (IdeVcs *self)
@@ -396,8 +388,6 @@ ide_vcs_get_config (IdeVcs *self)
  * Retrieves the name of the branch in the current working directory.
  *
  * Returns: (transfer full): A string containing the branch name.
- *
- * Since: 3.32
  */
 gchar *
 ide_vcs_get_branch_name (IdeVcs *self)
@@ -436,8 +426,6 @@ ide_vcs_get_branch_name (IdeVcs *self)
  *
  * The function specified by @callback should call ide_vcs_list_status_finish()
  * to retrieve the result of this asynchronous operation.
- *
- * Since: 3.32
  */
 void
 ide_vcs_list_status_async (IdeVcs              *self,
@@ -478,8 +466,6 @@ ide_vcs_list_status_async (IdeVcs              *self,
  * Returns: (transfer full) (nullable):
  *   A #GListModel containing an #IdeVcsFileInfo for each of the files scanned
  *   by the #IdeVcs. Upon failure, %NULL is returned and @error is set.
- *
- * Since: 3.32
  */
 GListModel *
 ide_vcs_list_status_finish (IdeVcs        *self,
@@ -499,8 +485,6 @@ ide_vcs_list_status_finish (IdeVcs        *self,
  * Gets the #IdeVcs for the context.
  *
  * Returns: (transfer none): an #IdeVcs
- *
- * Since: 3.32
  */
 IdeVcs *
 ide_vcs_from_context (IdeContext *context)
@@ -524,8 +508,6 @@ ide_vcs_from_context (IdeContext *context)
  * A thread-safe version of ide_vcs_from_context().
  *
  * Returns: (transfer full): an #IdeVcs
- *
- * Since: 3.32
  */
 IdeVcs *
 ide_vcs_ref_from_context (IdeContext *context)
@@ -567,8 +549,6 @@ ide_vcs_list_branches_async (IdeVcs              *self,
  *
  * Returns: (transfer full) (element-type IdeVcsBranch): an array of
  *   #IdeVcsBranch.
- *
- * Since: 3.32
  */
 GPtrArray *
 ide_vcs_list_branches_finish (IdeVcs        *self,
@@ -602,8 +582,6 @@ ide_vcs_list_tags_async (IdeVcs              *self,
  *
  * Returns: (transfer full) (element-type IdeVcsBranch): an array of
  *   #IdeVcsBranch.
- *
- * Since: 3.32
  */
 GPtrArray *
 ide_vcs_list_tags_finish (IdeVcs        *self,
diff --git a/src/libide/vcs/ide-vcs.h b/src/libide/vcs/ide-vcs.h
index 3b5410e72..f84c53c8f 100644
--- a/src/libide/vcs/ide-vcs.h
+++ b/src/libide/vcs/ide-vcs.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
 
 #define IDE_TYPE_VCS (ide_vcs_get_type())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (IdeVcs, ide_vcs, IDE, VCS, IdeObject)
 
 struct _IdeVcsInterface
@@ -90,29 +90,29 @@ struct _IdeVcsInterface
                                                         GError              **error);
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcs       *ide_vcs_from_context         (IdeContext           *context);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcs       *ide_vcs_ref_from_context     (IdeContext           *context);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GFile        *ide_vcs_get_workdir          (IdeVcs               *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean      ide_vcs_is_ignored           (IdeVcs               *self,
                                             GFile                *file,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean      ide_vcs_path_is_ignored      (IdeVcs               *self,
                                             const gchar          *path,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gint          ide_vcs_get_priority         (IdeVcs               *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_emit_changed         (IdeVcs               *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 IdeVcsConfig *ide_vcs_get_config           (IdeVcs               *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gchar        *ide_vcs_get_branch_name      (IdeVcs               *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_list_status_async    (IdeVcs               *self,
                                             GFile                *directory_or_file,
                                             gboolean              include_descendants,
@@ -120,45 +120,45 @@ void          ide_vcs_list_status_async    (IdeVcs               *self,
                                             GCancellable         *cancellable,
                                             GAsyncReadyCallback   callback,
                                             gpointer              user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GListModel   *ide_vcs_list_status_finish   (IdeVcs               *self,
                                             GAsyncResult         *result,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_list_branches_async  (IdeVcs               *self,
                                             GCancellable         *cancellable,
                                             GAsyncReadyCallback   callback,
                                             gpointer              user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GPtrArray    *ide_vcs_list_branches_finish (IdeVcs               *self,
                                             GAsyncResult         *result,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_list_tags_async      (IdeVcs               *self,
                                             GCancellable         *cancellable,
                                             GAsyncReadyCallback   callback,
                                             gpointer              user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 GPtrArray    *ide_vcs_list_tags_finish     (IdeVcs               *self,
                                             GAsyncResult         *result,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_switch_branch_async  (IdeVcs               *self,
                                             IdeVcsBranch         *branch,
                                             GCancellable         *cancellable,
                                             GAsyncReadyCallback   callback,
                                             gpointer              user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean      ide_vcs_switch_branch_finish (IdeVcs               *self,
                                             GAsyncResult         *result,
                                             GError              **error);
-IDE_AVAILABLE_IN_3_34
+IDE_AVAILABLE_IN_ALL
 void          ide_vcs_push_branch_async    (IdeVcs               *self,
                                             IdeVcsBranch         *branch,
                                             GCancellable         *cancellable,
                                             GAsyncReadyCallback   callback,
                                             gpointer              user_data);
-IDE_AVAILABLE_IN_3_34
+IDE_AVAILABLE_IN_ALL
 gboolean      ide_vcs_push_branch_finish   (IdeVcs               *self,
                                             GAsyncResult         *result,
                                             GError              **error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]