Virtual Method
IdeCodeIndexerindex_file_async
Declaration
void
index_file_async (
IdeCodeIndexer* self,
GFile* file,
const gchar* const* build_flags,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
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.
Parameters
file
-
Type:
GFile
Source file to index.
The data is owned by the caller of the function. build_flags
-
Type: An array of
gchar*
Array of build flags to parse
file
.The argument can be NULL
.The array must be NULL
-terminated.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. cancellable
-
Type:
GCancellable
A
GCancellable
.The argument can be NULL
.The data is owned by the caller of the function. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the function.