gosub-engine icon indicating copy to clipboard operation
gosub-engine copied to clipboard

Create Engine API to expose

Open Kiyoshika opened this issue 1 year ago • 2 comments

Currently the RenderTree is being exposed directly, but rather we should have a general Engine API that is exposed the user agents can use. This should use the DNS system recently implemented by @jaytaph

Kiyoshika avatar Nov 25 '23 18:11 Kiyoshika

Do we have some research on how other engines expose their API? We don't need to mimic them 1 on 1, but it gives us at least an idea on what kind of communication needs to be done between the engine and a user-agent.

jaytaph avatar Dec 01 '23 06:12 jaytaph

I think the simplest (and maybe best) way to do this, is to just expose the rust functions and structs that are used for communicating to the engine. By that I mean, we expose the internal rust things as they are. Maybe we need a thin wrapper around them for handling things like free and so on.

Sharktheone avatar Dec 01 '23 10:12 Sharktheone