[gnome-builder/wip/libide: 129/153] libide: stub out IdeSourceRange



commit 51a7371afb66cbba6755bb89eb0419e43e55ff7e
Author: Christian Hergert <christian hergert me>
Date:   Thu Feb 12 11:28:05 2015 -0800

    libide: stub out IdeSourceRange

 libide/ide-source-range.h |   38 ++++++++++++++++++++++++++++++++++++++
 libide/ide.h              |    1 +
 2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-range.h b/libide/ide-source-range.h
new file mode 100644
index 0000000..0b5ce1a
--- /dev/null
+++ b/libide/ide-source-range.h
@@ -0,0 +1,38 @@
+/* ide-source-range.h
+ *
+ * Copyright (C) 2015 Christian Hergert <christian hergert me>
+ *
+ * This file is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef IDE_SOURCE_RANGE_H
+#define IDE_SOURCE_RANGE_H
+
+#include "ide-types.h"
+
+G_BEGIN_DECLS
+
+#define IDE_TYPE_SOURCE_RANGE (ide_source_range_get_type())
+
+GType              ide_source_range_get_type  (void);
+IdeSourceRange    *ide_source_range_ref       (IdeSourceRange *self);
+void               ide_source_range_unref     (IdeSourceRange *self);
+IdeSourceLocation *ide_source_range_get_begin (IdeSourceRange *self);
+IdeSourceLocation *ide_source_range_get_end   (IdeSourceRange *self);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeSourceRange, ide_source_range_unref)
+
+G_END_DECLS
+
+#endif /* IDE_SOURCE_RANGE_H */
diff --git a/libide/ide.h b/libide/ide.h
index c4585d2..48ee256 100644
--- a/libide/ide.h
+++ b/libide/ide.h
@@ -60,6 +60,7 @@ G_BEGIN_DECLS
 #include "ide-search-result.h"
 #include "ide-service.h"
 #include "ide-source-location.h"
+#include "ide-source-range.h"
 #include "ide-symbol-resolver.h"
 #include "ide-symbol.h"
 #include "ide-target.h"


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