[gnome-builder/wip/libide] libide: stub out helper functions



commit 4b781546c00e27515769111af91224abde42969d
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 11 19:15:13 2015 -0800

    libide: stub out helper functions

 libide/ide-file.c    |    7 +++++++
 libide/ide-project.c |    8 ++++++++
 libide/ide-project.h |   10 ++++++----
 3 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/libide/ide-file.c b/libide/ide-file.c
index dd3136d..20172cb 100644
--- a/libide/ide-file.c
+++ b/libide/ide-file.c
@@ -61,6 +61,13 @@ ide_file_equal (IdeFile *self,
   return g_file_equal (priv1->file, priv2->file);
 }
 
+IdeLanguage *
+ide_file_get_language (IdeFile *self)
+{
+  g_warning ("TODO: get language from file");
+  return NULL;
+}
+
 GFile *
 ide_file_get_file (IdeFile *self)
 {
diff --git a/libide/ide-project.c b/libide/ide-project.c
index 8a58329..15acc8c 100644
--- a/libide/ide-project.c
+++ b/libide/ide-project.c
@@ -99,6 +99,14 @@ ide_project_set_root (IdeProject     *project,
     g_object_notify_by_pspec (G_OBJECT (project), gParamSpecs [PROP_ROOT]);
 }
 
+IdeFile *
+ide_project_get_file_for_path (IdeProject  *self,
+                               const gchar *path)
+{
+  g_warning ("todo: get file for path");
+  return NULL;
+}
+
 static void
 ide_project_finalize (GObject *object)
 {
diff --git a/libide/ide-project.h b/libide/ide-project.h
index 4884023..e4256a3 100644
--- a/libide/ide-project.h
+++ b/libide/ide-project.h
@@ -32,10 +32,12 @@ struct _IdeProjectClass
   IdeObjectClass parent;
 };
 
-IdeProjectItem *ide_project_get_root (IdeProject  *project);
-const gchar    *ide_project_get_name (IdeProject  *project);
-void            ide_project_set_name (IdeProject  *project,
-                                      const gchar *name);
+IdeProjectItem *ide_project_get_root          (IdeProject  *project);
+const gchar    *ide_project_get_name          (IdeProject  *project);
+void            ide_project_set_name          (IdeProject  *project,
+                                               const gchar *name);
+IdeFile        *ide_project_get_file_for_path (IdeProject  *project,
+                                               const gchar *path);
 
 G_END_DECLS
 


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