diff options
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 726129983..b5d023400 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -1118,7 +1118,8 @@ BINARYEN_API void BinaryenAddEventImport(BinaryenModuleRef module, const char* externalModuleName, const char* externalBaseName, uint32_t attribute, - BinaryenFunctionTypeRef eventType); + BinaryenType params, + BinaryenType results); // Exports @@ -1164,7 +1165,8 @@ typedef void* BinaryenEventRef; BINARYEN_API BinaryenEventRef BinaryenAddEvent(BinaryenModuleRef module, const char* name, uint32_t attribute, - BinaryenFunctionTypeRef type); + BinaryenType params, + BinaryenType results); BINARYEN_API BinaryenEventRef BinaryenGetEvent(BinaryenModuleRef module, const char* name); BINARYEN_API void BinaryenRemoveEvent(BinaryenModuleRef module, @@ -1437,14 +1439,10 @@ BinaryenGlobalGetInitExpr(BinaryenGlobalRef global); BINARYEN_API const char* BinaryenEventGetName(BinaryenEventRef event); // Gets the attribute of the specified `Event`. BINARYEN_API int BinaryenEventGetAttribute(BinaryenEventRef event); -// Gets the name of the `FunctionType` associated with the specified `Event`. -BINARYEN_API const char* BinaryenEventGetType(BinaryenEventRef event); -// Gets the number of parameters of the specified `Event`. -BINARYEN_API BinaryenIndex BinaryenEventGetNumParams(BinaryenEventRef event); -// Gets the type of the parameter at the specified index of the specified -// `Event`. -BINARYEN_API BinaryenType BinaryenEventGetParam(BinaryenEventRef event, - BinaryenIndex index); +// Gets the parameters type of the specified `Event`. +BINARYEN_API BinaryenType BinaryenEventGetParams(BinaryenEventRef event); +// Gets the results type of the specified `Event`. +BINARYEN_API BinaryenType BinaryenEventGetResults(BinaryenEventRef event); // // ========== Import Operations ========== |