[gnome-builder] libide: import document id sequence helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: import document id sequence helper
- Date: Tue, 24 Mar 2015 00:38:26 +0000 (UTC)
commit cfdc10e5a725f9e157090b7feae3610b0c56d5a1
Author: Christian Hergert <christian hergert me>
Date: Mon Mar 23 02:45:14 2015 -0700
libide: import document id sequence helper
libide/Makefile.am | 2 ++
src/util/gb-doc-seq.c => libide/util/ide-doc-seq.c | 8 ++++----
src/util/gb-doc-seq.h => libide/util/ide-doc-seq.h | 12 ++++++------
src/gnome-builder.mk | 2 --
4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/libide/Makefile.am b/libide/Makefile.am
index 20894d2..8c6faf3 100644
--- a/libide/Makefile.am
+++ b/libide/Makefile.am
@@ -261,6 +261,8 @@ libide_1_0_la_SOURCES = \
libide/theatrics/ide-frame-source.h \
libide/util/ide-cairo.c \
libide/util/ide-cairo.h \
+ libide/util/ide-doc-seq.c \
+ libide/util/ide-doc-seq.h \
libide/util/ide-pango.c \
libide/util/ide-pango.h \
libide/util/ide-rgba.c \
diff --git a/src/util/gb-doc-seq.c b/libide/util/ide-doc-seq.c
similarity index 92%
rename from src/util/gb-doc-seq.c
rename to libide/util/ide-doc-seq.c
index e92582f..8b16d92 100644
--- a/src/util/gb-doc-seq.c
+++ b/libide/util/ide-doc-seq.c
@@ -1,4 +1,4 @@
-/* gb-doc-seq.c
+/* ide-doc-seq.c
*
* Copyright (C) 2014 Christian Hergert <christian hergert me>
*
@@ -16,12 +16,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gb-doc-seq.h"
+#include "ide-doc-seq.h"
static GHashTable *seq;
guint
-gb_doc_seq_acquire (void)
+ide_doc_seq_acquire (void)
{
guint seq_id;
@@ -45,7 +45,7 @@ gb_doc_seq_acquire (void)
}
void
-gb_doc_seq_release (guint seq_id)
+ide_doc_seq_release (guint seq_id)
{
g_hash_table_remove (seq, GINT_TO_POINTER (seq_id));
}
diff --git a/src/util/gb-doc-seq.h b/libide/util/ide-doc-seq.h
similarity index 82%
rename from src/util/gb-doc-seq.h
rename to libide/util/ide-doc-seq.h
index 23ca57e..6366c71 100644
--- a/src/util/gb-doc-seq.h
+++ b/libide/util/ide-doc-seq.h
@@ -1,4 +1,4 @@
-/* gb-doc-seq.h
+/* ide-doc-seq.h
*
* Copyright (C) 2014 Christian Hergert <christian hergert me>
*
@@ -16,16 +16,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GB_DOC_SEQ_H
-#define GB_DOC_SEQ_H
+#ifndef IDE_DOC_SEQ_H
+#define IDE_DOC_SEQ_H
#include <glib.h>
G_BEGIN_DECLS
-guint gb_doc_seq_acquire (void);
-void gb_doc_seq_release (guint seq_id);
+guint ide_doc_seq_acquire (void);
+void ide_doc_seq_release (guint seq_id);
G_END_DECLS
-#endif /* GB_DOC_SEQ_H */
+#endif /* IDE_DOC_SEQ_H */
diff --git a/src/gnome-builder.mk b/src/gnome-builder.mk
index 8db1d58..fc0bf9e 100644
--- a/src/gnome-builder.mk
+++ b/src/gnome-builder.mk
@@ -108,8 +108,6 @@ libgnome_builder_la_SOURCES = \
src/util/gb-cairo.h \
src/util/gb-dnd.c \
src/util/gb-dnd.h \
- src/util/gb-doc-seq.c \
- src/util/gb-doc-seq.h \
src/util/gb-glib.h \
src/util/gb-gtk.c \
src/util/gb-gtk.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]