-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capi: Export inspection functions #686
Conversation
Codecov Report
@@ Coverage Diff @@
## master #686 +/- ##
=======================================
Coverage 99.30% 99.31%
=======================================
Files 72 72
Lines 10420 10470 +50
=======================================
+ Hits 10348 10398 +50
Misses 72 72
Flags with carried forward coverage won't be shown. Click here to find out more.
|
0d84006
to
2db892b
Compare
} FizzyExternalKind; | ||
|
||
/// Export description. | ||
typedef struct FizzyExportDescription |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as with FizzyImportDescription: #683 (comment). Please add a remark about the lifetime of name
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
include/fizzy/fizzy.h
Outdated
@@ -133,6 +133,27 @@ typedef struct FizzyExternalGlobal | |||
FizzyGlobalType type; | |||
} FizzyExternalGlobal; | |||
|
|||
/// External kind. | |||
typedef enum FizzyExternalKind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is in conflict with #683, so need to merge one first then rebase.
include/fizzy/fizzy.h
Outdated
/// @return Number of exports in the module. | ||
uint32_t fizzy_get_export_count(const FizzyModule* module); | ||
|
||
/// Get the import description defined in the module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good too, just some of those documentation questions.
2db892b
to
072229e
Compare
include/fizzy/fizzy.h
Outdated
/// Export kind. | ||
FizzyExternalKind kind; | ||
/// Index of exported function or table or memory or global. | ||
/// #kind determines what is this index of. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// #kind determines what is this index of. | |
/// #kind determines what is this the index of. |
072229e
to
a83cf57
Compare
No description provided.