diff options
Diffstat (limited to 'libs/rs/rs_hal.h')
| -rw-r--r-- | libs/rs/rs_hal.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/libs/rs/rs_hal.h b/libs/rs/rs_hal.h index 17983ce..6d7a5b1 100644 --- a/libs/rs/rs_hal.h +++ b/libs/rs/rs_hal.h @@ -29,7 +29,7 @@ class Type; class Allocation; class Script; class ScriptC; - +class ProgramStore; typedef void *(*RsHalSymbolLookupFunc)(void *usrptr, char const *symbolName); @@ -50,13 +50,13 @@ typedef struct { struct { - bool (*scriptInit)(const Context *rsc, ScriptC *s, - char const *resName, - char const *cacheDir, - uint8_t const *bitcode, - size_t bitcodeSize, - uint32_t flags, - RsHalSymbolLookupFunc lookupFunc); + bool (*init)(const Context *rsc, ScriptC *s, + char const *resName, + char const *cacheDir, + uint8_t const *bitcode, + size_t bitcodeSize, + uint32_t flags, + RsHalSymbolLookupFunc lookupFunc); void (*invokeFunction)(const Context *rsc, Script *s, uint32_t slot, @@ -87,6 +87,13 @@ typedef struct { } script; + struct { + bool (*init)(const Context *rsc, const ProgramStore *ps); + void (*setActive)(const Context *rsc, const ProgramStore *ps); + void (*destroy)(const Context *rsc, const ProgramStore *ps); + } store; + + } RsdHalFunctions; |
