Function

GumApiResolvermake

Declaration [src]

GumApiResolver*
gum_api_resolver_make (
  const gchar* type
)

Description [src]

Creates a new resolver of the given type. Available resolvers:

  • module: Resolves exported and imported functions of shared libraries currently loaded. Always available.
  • objc: Resolves Objective-C methods of classes currently loaded. Available on macOS and iOS in processes that have the Objective-C runtime loaded.

The resolver will load the minimum amount of data required on creation, and lazy-load the rest depending on the queries it receives. You should use the same instance for a batch of queries, but recreate it for future batches to avoid looking at stale data.

Parameters

type

Type: const gchar*

The resolver type to make.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: GumApiResolver

The newly created resolver instance.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.