Skip to content

Commit

Permalink
Merge pull request #135 from AcademySoftwareFoundation/memory-suite-d…
Browse files Browse the repository at this point in the history
…oc-126

Add recommendation that hosts return same host & suite for all plugins in a shlib
  • Loading branch information
garyo authored Jan 29, 2024
2 parents 50b87f5 + f720567 commit 9b1a716
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ofxCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ typedef struct OfxHost {
Repeated calls to fetchSuite with the same parameters will return the same pointer.
It is recommended that hosts should return the same host and suite pointers to all plugins
in the same shared lib or bundle.
returns
- NULL if the API is unknown (either the api or the version requested),
- pointer to the relevant API if it was found
Expand Down Expand Up @@ -126,6 +129,9 @@ typedef struct OfxPlugin {
\post
- the pointer suite is valid until the plug-in is unloaded
It is recommended that hosts should return the same host and suite pointers to all plugins
in the same shared lib or bundle.
*/
void (*setHost)(OfxHost *host);

Expand Down

0 comments on commit 9b1a716

Please sign in to comment.