summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-02-25 20:32:24 -0500
committerAlexander Taylor <alex@vector35.com>2025-03-10 11:12:09 -0400
commit1fc3cd833f19ffa534f04caf541e88042124fd91 (patch)
tree772b0c73d87d7831dcd94f53bb4b2d4f1e429c98 /binaryninjaapi.h
parent32455f977824cf50ec0049cad16e741f0d050c73 (diff)
Remove platform registration API footgun.
Turns out, you can just pass this thing an architecture that is *completely* different from the one in the platform you are also passing in and it'll just happily do the wrong thing. While that's pretty wild, I'm in favor of not having to make this particular mistake again the next time I copy/paste some code, so we're now deprecating it.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 08e3feb5..4336febb 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -7205,6 +7205,14 @@ namespace BinaryNinja {
\param name Name of the BinaryViewType
\param id ID of the platform
+ \param platform The Platform to register
+ */
+ static void RegisterPlatform(const std::string& name, uint32_t id, Platform* platform);
+
+ /*! Register a Platform for a specific view type (this form is deprecated as of 4.3, please use the form without architecture as an argument instead)
+
+ \param name Name of the BinaryViewType
+ \param id ID of the platform
\param arch Architecture to register this platform with
\param platform The Platform to register
*/