-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api-resolver: Add Swift API resolver
Co-authored-by: Håvard Sørbø <[email protected]>
- Loading branch information
Showing
16 changed files
with
5,195 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
* Copyright (C) 2016-2022 Ole André Vadla Ravnås <[email protected]> | ||
* Copyright (C) 2016-2023 Ole André Vadla Ravnås <[email protected]> | ||
* Copyright (C) 2023 Håvard Sørbø <[email protected]> | ||
* | ||
* Licence: wxWindows Library Licence, Version 3.1 | ||
*/ | ||
|
@@ -73,6 +74,7 @@ | |
#include "gumapiresolver.h" | ||
|
||
#include "gummoduleapiresolver.h" | ||
#include "gumswiftapiresolver.h" | ||
#ifdef HAVE_DARWIN | ||
# include "backend-darwin/gumobjcapiresolver.h" | ||
#endif | ||
|
@@ -114,6 +116,9 @@ gum_api_resolver_make (const gchar * type) | |
if (strcmp (type, "module") == 0) | ||
return gum_module_api_resolver_new (); | ||
|
||
if (strcmp (type, "swift") == 0) | ||
return gum_swift_api_resolver_new (); | ||
|
||
#ifdef HAVE_DARWIN | ||
if (strcmp (type, "objc") == 0) | ||
return gum_objc_api_resolver_new (); | ||
|
Oops, something went wrong.