| Top |
| IdeCodeIndexEntry * | ide_code_index_entries_get_next_entry () |
| GFile * | ide_code_index_entries_get_file () |
| void | ide_code_index_entries_next_entries_async () |
| GPtrArray * | ide_code_index_entries_next_entries_finish () |
| void | ide_code_index_entries_collect_async () |
| GPtrArray * | ide_code_index_entries_collect_finish () |
IdeCodeIndexEntry *
ide_code_index_entries_get_next_entry (IdeCodeIndexEntries *self);
This will fetch next entry in index.
When all of the entries have been exhausted, NULL should be returned.
Since: 3.32
GFile *
ide_code_index_entries_get_file (IdeCodeIndexEntries *self);
The file that was indexed.
Since: 3.32
void ide_code_index_entries_next_entries_async (IdeCodeIndexEntries *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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.
self |
||
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
user data for |
Since: 3.32
GPtrArray * ide_code_index_entries_next_entries_finish (IdeCodeIndexEntries *self,GAsyncResult *result,GError **error);
Completes an asynchronous request for the next set of entries from the index.
Since: 3.32
void ide_code_index_entries_collect_async (IdeCodeIndexEntries *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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
GPtrArray * ide_code_index_entries_collect_finish (IdeCodeIndexEntries *self,GAsyncResult *result,GError **error);
an array of IdeCodeIndexEntry
or NULL and error
is set.
[transfer full][element-type IdeCodeIndexEntry]
Since: 3.32
struct IdeCodeIndexEntriesInterface {
GTypeInterface parent_iface;
GFile *(*get_file) (IdeCodeIndexEntries *self);
IdeCodeIndexEntry *(*get_next_entry) (IdeCodeIndexEntries *self);
void (*next_entries_async) (IdeCodeIndexEntries *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GPtrArray *(*next_entries_finish) (IdeCodeIndexEntries *self,
GAsyncResult *result,
GError **error);
};