[gnome-builder] libide-threading: cleanup environment availability macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-threading: cleanup environment availability macros
- Date: Tue, 12 Jul 2022 06:39:10 +0000 (UTC)
commit 2e3f0ac61ac37de8a559dfc5b8847d36a58594ee
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 17:53:13 2022 -0700
libide-threading: cleanup environment availability macros
In all honestly, I'd love this object to go away as soon as we can get
rid of it from the API.
src/libide/threading/ide-environment-variable.h | 12 ++++++------
src/libide/threading/ide-environment.c | 6 ------
src/libide/threading/ide-environment.h | 22 +++++++++++-----------
3 files changed, 17 insertions(+), 23 deletions(-)
---
diff --git a/src/libide/threading/ide-environment-variable.h b/src/libide/threading/ide-environment-variable.h
index a58d90ddd..caa838492 100644
--- a/src/libide/threading/ide-environment-variable.h
+++ b/src/libide/threading/ide-environment-variable.h
@@ -30,20 +30,20 @@ G_BEGIN_DECLS
#define IDE_TYPE_ENVIRONMENT_VARIABLE (ide_environment_variable_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeEnvironmentVariable, ide_environment_variable, IDE, ENVIRONMENT_VARIABLE, GObject)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeEnvironmentVariable *ide_environment_variable_new (const gchar *key,
const gchar *value);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_environment_variable_get_key (IdeEnvironmentVariable *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_variable_set_key (IdeEnvironmentVariable *self,
const gchar *key);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_environment_variable_get_value (IdeEnvironmentVariable *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_variable_set_value (IdeEnvironmentVariable *self,
const gchar *value);
diff --git a/src/libide/threading/ide-environment.c b/src/libide/threading/ide-environment.c
index 79cd2eeb7..e750fe5f2 100644
--- a/src/libide/threading/ide-environment.c
+++ b/src/libide/threading/ide-environment.c
@@ -216,8 +216,6 @@ ide_environment_getenv (IdeEnvironment *self,
* in various GLib process functions.
*
* Returns: (transfer full): A newly allocated string array.
- *
- * Since: 3.32
*/
gchar **
ide_environment_get_environ (IdeEnvironment *self)
@@ -331,8 +329,6 @@ ide_environment_append (IdeEnvironment *self,
* Copies the contents of #IdeEnvironment into a newly allocated #IdeEnvironment.
*
* Returns: (transfer full): An #IdeEnvironment.
- *
- * Since: 3.32
*/
IdeEnvironment *
ide_environment_copy (IdeEnvironment *self)
@@ -375,8 +371,6 @@ ide_environment_copy_into (IdeEnvironment *self,
* Parses a KEY=VALUE style key-pair into @key and @value.
*
* Returns: %TRUE if @pair was successfully parsed
- *
- * Since: 3.32
*/
gboolean
ide_environ_parse (const gchar *pair,
diff --git a/src/libide/threading/ide-environment.h b/src/libide/threading/ide-environment.h
index e53c18b54..b85323428 100644
--- a/src/libide/threading/ide-environment.h
+++ b/src/libide/threading/ide-environment.h
@@ -33,37 +33,37 @@ G_BEGIN_DECLS
#define IDE_TYPE_ENVIRONMENT (ide_environment_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeEnvironment, ide_environment, IDE, ENVIRONMENT, GObject)
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_environ_parse (const gchar *pair,
gchar **key,
gchar **value);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeEnvironment *ide_environment_new (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_setenv (IdeEnvironment *self,
const gchar *key,
const gchar *value);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_environment_getenv (IdeEnvironment *self,
const gchar *key);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar **ide_environment_get_environ (IdeEnvironment *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_append (IdeEnvironment *self,
IdeEnvironmentVariable *variable);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_remove (IdeEnvironment *self,
IdeEnvironmentVariable *variable);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeEnvironment *ide_environment_copy (IdeEnvironment *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_environment_copy_into (IdeEnvironment *self,
IdeEnvironment *dest,
gboolean replace);
-IDE_AVAILABLE_IN_3_34
+IDE_AVAILABLE_IN_ALL
void ide_environment_set_environ (IdeEnvironment *self,
const gchar * const *env);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]