Skip to content

Commit

Permalink
api-resolver: Add Swift API resolver
Browse files Browse the repository at this point in the history
Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
oleavr and hsorbo committed Sep 22, 2023
1 parent 2e06291 commit 14d0a29
Show file tree
Hide file tree
Showing 16 changed files with 5,195 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gum/gumapiresolver.c
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
*/
Expand Down Expand Up @@ -73,6 +74,7 @@
#include "gumapiresolver.h"

#include "gummoduleapiresolver.h"
#include "gumswiftapiresolver.h"
#ifdef HAVE_DARWIN
# include "backend-darwin/gumobjcapiresolver.h"
#endif
Expand Down Expand Up @@ -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 ();
Expand Down
Loading

0 comments on commit 14d0a29

Please sign in to comment.