| Top |
IdeCodeIndexEntries * ide_code_indexer_index_file (IdeCodeIndexer *self,GFile *file,const gchar * const *build_flags,GCancellable *cancellable,GError **error);
This function will take index source file and create an array
of symbols in file
.
self |
An IdeCodeIndexer instance. |
|
file |
Source file to index. |
|
build_flags |
array of build flags to parse |
[nullable][array zero-terminated=1] |
cancellable |
a GCancellable. |
[nullable] |
error |
a GError. |
Since: 3.26
void ide_code_indexer_generate_key_async (IdeCodeIndexer *self,IdeSourceLocation *location,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
This function will get key of reference located at IdeSoureLocation.
self |
An IdeCodeIndexer instance. |
|
location |
Source location of refernece. |
[not nullable] |
cancellable |
a GCancellable. |
[nullable] |
callback |
A callback to execute upon indexing. |
|
user_data |
User data to pass to |
Since: 3.26
gchar * ide_code_indexer_generate_key_finish (IdeCodeIndexer *self,GAsyncResult *result,GError **error);
Returns key for declaration of reference at a location.
Since: 3.26
struct IdeCodeIndexerInterface {
GTypeInterface parent_iface;
IdeCodeIndexEntries *(*index_file) (IdeCodeIndexer *self,
GFile *file,
const gchar * const *build_flags,
GCancellable *cancellable,
GError **error);
void (*generate_key_async) (IdeCodeIndexer *self,
IdeSourceLocation *location,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gchar *(*generate_key_finish) (IdeCodeIndexer *self,
GAsyncResult *result,
GError **error);
};