From f7205677cfadd4d601e97931ff0f52a15c4833a9 Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Thu, 7 Dec 2023 15:07:25 -0500 Subject: [PATCH] Add recommendation that hosts return same host & suite for all plugins in a shlib Closes #126. Signed-off-by: Gary Oberbrunner --- include/ofxCore.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ofxCore.h b/include/ofxCore.h index b1355417..58d73a89 100644 --- a/include/ofxCore.h +++ b/include/ofxCore.h @@ -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 @@ -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);