[gnome-builder] libide-code: cleanup code-index availability
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-code: cleanup code-index availability
- Date: Tue, 12 Jul 2022 06:39:07 +0000 (UTC)
commit a3c80635f3ae84020ae666fadacb58ea1e7d69f8
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:18:57 2022 -0700
libide-code: cleanup code-index availability
src/libide/code/ide-code-index-entries.c | 12 -----------
src/libide/code/ide-code-index-entries.h | 14 ++++++-------
src/libide/code/ide-code-index-entry.c | 8 -------
src/libide/code/ide-code-index-entry.h | 36 ++++++++++++++++----------------
src/libide/code/ide-code-indexer.c | 10 ---------
src/libide/code/ide-code-indexer.h | 10 ++++-----
6 files changed, 30 insertions(+), 60 deletions(-)
---
diff --git a/src/libide/code/ide-code-index-entries.c b/src/libide/code/ide-code-index-entries.c
index 08fa2e728..cd19e4406 100644
--- a/src/libide/code/ide-code-index-entries.c
+++ b/src/libide/code/ide-code-index-entries.c
@@ -95,8 +95,6 @@ ide_code_index_entries_default_init (IdeCodeIndexEntriesInterface *iface)
* When all of the entries have been exhausted, %NULL should be returned.
*
* Returns: (nullable) (transfer full): An #IdeCodeIndexEntry.
- *
- * Since: 3.32
*/
IdeCodeIndexEntry *
ide_code_index_entries_get_next_entry (IdeCodeIndexEntries *self)
@@ -114,8 +112,6 @@ ide_code_index_entries_get_next_entry (IdeCodeIndexEntries *self)
* The file that was indexed.
*
* Returns: (transfer full): a #GFile
- *
- * Since: 3.32
*/
GFile *
ide_code_index_entries_get_file (IdeCodeIndexEntries *self)
@@ -136,8 +132,6 @@ ide_code_index_entries_get_file (IdeCodeIndexEntries *self)
* Requests the next set of results from the code index asynchronously.
* This allows implementations to possibly process data off the main thread
* without blocking the main loop.
- *
- * Since: 3.32
*/
void
ide_code_index_entries_next_entries_async (IdeCodeIndexEntries *self,
@@ -162,8 +156,6 @@ ide_code_index_entries_next_entries_async (IdeCodeIndexEntries *self,
*
* Returns: (transfer full) (element-type IdeCodeIndexEntry): a #GPtrArray
* of #IdeCodeIndexEntry.
- *
- * Since: 3.32
*/
GPtrArray *
ide_code_index_entries_next_entries_finish (IdeCodeIndexEntries *self,
@@ -225,8 +217,6 @@ ide_code_index_entries_collect_cb (GObject *object,
*
* Calls ide_code_index_entries_next_entries_async() repeatedly until all
* entries have been retrieved. After that, the async operation will complete.
- *
- * Since: 3.32
*/
void
ide_code_index_entries_collect_async (IdeCodeIndexEntries *self,
@@ -252,8 +242,6 @@ ide_code_index_entries_collect_async (IdeCodeIndexEntries *self,
*
* Returns: (transfer full) (element-type IdeCodeIndexEntry): an array of #IdeCodeIndexEntry
* or %NULL and @error is set
- *
- * Since: 3.32
*/
GPtrArray *
ide_code_index_entries_collect_finish (IdeCodeIndexEntries *self,
diff --git a/src/libide/code/ide-code-index-entries.h b/src/libide/code/ide-code-index-entries.h
index 296a43aa8..8effbed82 100644
--- a/src/libide/code/ide-code-index-entries.h
+++ b/src/libide/code/ide-code-index-entries.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CODE_INDEX_ENTRIES (ide_code_index_entries_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeCodeIndexEntries, ide_code_index_entries, IDE, CODE_INDEX_ENTRIES, GObject)
struct _IdeCodeIndexEntriesInterface
@@ -51,25 +51,25 @@ struct _IdeCodeIndexEntriesInterface
GError **error);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntry *ide_code_index_entries_get_next_entry (IdeCodeIndexEntries *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GFile *ide_code_index_entries_get_file (IdeCodeIndexEntries *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entries_next_entries_async (IdeCodeIndexEntries *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GPtrArray *ide_code_index_entries_next_entries_finish (IdeCodeIndexEntries *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entries_collect_async (IdeCodeIndexEntries *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GPtrArray *ide_code_index_entries_collect_finish (IdeCodeIndexEntries *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-code-index-entry.c b/src/libide/code/ide-code-index-entry.c
index 70cd5bd95..05490aad3 100644
--- a/src/libide/code/ide-code-index-entry.c
+++ b/src/libide/code/ide-code-index-entry.c
@@ -34,8 +34,6 @@
* indexed in the code index. It is an immutable data object so that it can be
* passed between threads where data is indexed. Plugins should use
* #IdeCodeIndexEntryBuilder to create index entries.
- *
- * Since: 3.32
*/
struct _IdeCodeIndexEntry
@@ -131,8 +129,6 @@ ide_code_index_entry_get_flags (const IdeCodeIndexEntry *self)
* @begin_line_offset: (out): first line offset
* @end_line: (out): last line
* @end_line_offset: (out): last line offset
- *
- * Since: 3.32
*/
void
ide_code_index_entry_get_range (const IdeCodeIndexEntry *self,
@@ -239,8 +235,6 @@ ide_code_index_entry_builder_set_kind (IdeCodeIndexEntryBuilder *builder,
* Creates an immutable #IdeCodeIndexEntry from the builder content.
*
* Returns: (transfer full): an #IdeCodeIndexEntry
- *
- * Since: 3.32
*/
IdeCodeIndexEntry *
ide_code_index_entry_builder_build (IdeCodeIndexEntryBuilder *builder)
@@ -255,8 +249,6 @@ ide_code_index_entry_builder_build (IdeCodeIndexEntryBuilder *builder)
* @builder: a #IdeCodeIndexEntryBuilder
*
* Returns: (transfer full): a deep copy of @builder
- *
- * Since: 3.32
*/
IdeCodeIndexEntryBuilder *
ide_code_index_entry_builder_copy (IdeCodeIndexEntryBuilder *builder)
diff --git a/src/libide/code/ide-code-index-entry.h b/src/libide/code/ide-code-index-entry.h
index be13a4666..3b9de3ee9 100644
--- a/src/libide/code/ide-code-index-entry.h
+++ b/src/libide/code/ide-code-index-entry.h
@@ -37,49 +37,49 @@ G_BEGIN_DECLS
typedef struct _IdeCodeIndexEntry IdeCodeIndexEntry;
typedef struct _IdeCodeIndexEntryBuilder IdeCodeIndexEntryBuilder;
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GType ide_code_index_entry_get_type (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GType ide_code_index_entry_builder_get_type (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntryBuilder *ide_code_index_entry_builder_new (void);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_set_range (IdeCodeIndexEntryBuilder *builder,
guint begin_line,
guint
begin_line_offset,
guint end_line,
guint end_line_offset);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_set_key (IdeCodeIndexEntryBuilder *builder,
const gchar *key);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_set_name (IdeCodeIndexEntryBuilder *builder,
const gchar *name);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_set_kind (IdeCodeIndexEntryBuilder *builder,
IdeSymbolKind kind);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_set_flags (IdeCodeIndexEntryBuilder *builder,
IdeSymbolFlags flags);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntry *ide_code_index_entry_builder_build (IdeCodeIndexEntryBuilder *builder);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntryBuilder *ide_code_index_entry_builder_copy (IdeCodeIndexEntryBuilder *builder);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_builder_free (IdeCodeIndexEntryBuilder *builder);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_free (IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntry *ide_code_index_entry_copy (const IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_code_index_entry_get_key (const IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_code_index_entry_get_name (const IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolKind ide_code_index_entry_get_kind (const IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolFlags ide_code_index_entry_get_flags (const IdeCodeIndexEntry *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_index_entry_get_range (const IdeCodeIndexEntry *self,
guint *begin_line,
guint
*begin_line_offset,
diff --git a/src/libide/code/ide-code-indexer.c b/src/libide/code/ide-code-indexer.c
index 0c1c903ce..e2251003e 100644
--- a/src/libide/code/ide-code-indexer.c
+++ b/src/libide/code/ide-code-indexer.c
@@ -38,8 +38,6 @@
* Python source code, you might use:
*
* X-Code-Indexer-Languages=python,python3
- *
- * Since: 3.32
*/
G_DEFINE_INTERFACE (IdeCodeIndexer, ide_code_indexer, IDE_TYPE_OBJECT)
@@ -125,8 +123,6 @@ ide_code_indexer_default_init (IdeCodeIndexerInterface *iface)
* This function will take index source file and create an array of symbols in
* @file. @callback is called upon completion and must call
* ide_code_indexer_index_file_finish() to complete the operation.
- *
- * Since: 3.32
*/
void
ide_code_indexer_index_file_async (IdeCodeIndexer *self,
@@ -163,8 +159,6 @@ ide_code_indexer_index_file_async (IdeCodeIndexer *self,
*
* Returns: (transfer full): an #IdeCodeIndexEntries if successful; otherwise %NULL
* and @error is set.
- *
- * Since: 3.32
*/
IdeCodeIndexEntries *
ide_code_indexer_index_file_finish (IdeCodeIndexer *self,
@@ -190,8 +184,6 @@ ide_code_indexer_index_file_finish (IdeCodeIndexer *self,
* This function will get key of reference located at #IdeSoureLocation.
*
* In 3.30 this function gained the @build_flags parameter.
- *
- * Since: 3.32
*/
void
ide_code_indexer_generate_key_async (IdeCodeIndexer *self,
@@ -218,8 +210,6 @@ ide_code_indexer_generate_key_async (IdeCodeIndexer *self,
* Returns key for declaration of reference at a location.
*
* Returns: (transfer full) : A string which contains key.
- *
- * Since: 3.32
*/
gchar *
ide_code_indexer_generate_key_finish (IdeCodeIndexer *self,
diff --git a/src/libide/code/ide-code-indexer.h b/src/libide/code/ide-code-indexer.h
index 75c776260..29e49ab0b 100644
--- a/src/libide/code/ide-code-indexer.h
+++ b/src/libide/code/ide-code-indexer.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_CODE_INDEXER (ide_code_indexer_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeCodeIndexer, ide_code_indexer, IDE, CODE_INDEXER, IdeObject)
struct _IdeCodeIndexerInterface
@@ -59,25 +59,25 @@ struct _IdeCodeIndexerInterface
GError **error);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_indexer_index_file_async (IdeCodeIndexer *self,
GFile *file,
const gchar * const *build_flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeCodeIndexEntries *ide_code_indexer_index_file_finish (IdeCodeIndexer *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_code_indexer_generate_key_async (IdeCodeIndexer *self,
IdeLocation *location,
const gchar * const *build_flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gchar *ide_code_indexer_generate_key_finish (IdeCodeIndexer *self,
GAsyncResult *result,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]