[gnome-builder/wip/gtk4-port] libide/core: move ide_get_projects_dir() to libide-core



commit 63c1581e87bc3f06224f99913279c022e2abb76e
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 31 11:35:42 2022 -0700

    libide/core: move ide_get_projects_dir() to libide-core
    
    We can keep the implementation in libide-projects, but things need access
    to it that may not be able to depend on libide-projects (due to cyclic
    dependencies).
    
    But libide-* was never mean't to be treated as a different library, just
    different sub-systems within a single library. So we can just move the
    declaration into libide-core's globals.

 src/libide/core/ide-global.h              | 2 ++
 src/libide/projects/ide-projects-global.h | 4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/core/ide-global.h b/src/libide/core/ide-global.h
index fd064963a..33d28f3ae 100644
--- a/src/libide/core/ide-global.h
+++ b/src/libide/core/ide-global.h
@@ -66,5 +66,7 @@ IDE_AVAILABLE_IN_ALL
 gsize           ide_get_system_page_size (void) G_GNUC_CONST;
 IDE_AVAILABLE_IN_ALL
 gchar          *ide_get_relocatable_path (const gchar *path);
+IDE_AVAILABLE_IN_ALL
+const char     *ide_get_projects_dir     (void);
 
 G_END_DECLS
diff --git a/src/libide/projects/ide-projects-global.h b/src/libide/projects/ide-projects-global.h
index e8cd222af..045b4c76c 100644
--- a/src/libide/projects/ide-projects-global.h
+++ b/src/libide/projects/ide-projects-global.h
@@ -29,8 +29,6 @@
 G_BEGIN_DECLS
 
 IDE_AVAILABLE_IN_ALL
-const gchar *ide_get_projects_dir  (void);
-IDE_AVAILABLE_IN_ALL
-gchar       *ide_create_project_id (const gchar *name);
+char *ide_create_project_id (const char *name);
 
 G_END_DECLS


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