{"action":"created","issue":{"url":"https://api.github.com/repos/Celtoys/Remotery/issues/56","labels_url":"https://api.github.com/repos/Celtoys/Remotery/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/Celtoys/Remotery/issues/56/comments","events_url":"https://api.github.com/repos/Celtoys/Remotery/issues/56/events","html_url":"https://github.com/Celtoys/Remotery/issues/56","id":96910631,"number":56,"title":"Remotery interface cannot currently be used in a shared library","user":{"login":"dougbinks","id":872946,"avatar_url":"https://avatars.githubusercontent.com/u/872946?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbinks","html_url":"https://github.com/dougbinks","followers_url":"https://api.github.com/users/dougbinks/followers","following_url":"https://api.github.com/users/dougbinks/following{/other_user}","gists_url":"https://api.github.com/users/dougbinks/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbinks/subscriptions","organizations_url":"https://api.github.com/users/dougbinks/orgs","repos_url":"https://api.github.com/users/dougbinks/repos","events_url":"https://api.github.com/users/dougbinks/events{/privacy}","received_events_url":"https://api.github.com/users/dougbinks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-23T21:36:02Z","updated_at":"2015-07-24T09:14:26Z","closed_at":null,"body":"I'd like to be able to use remotery in a shared library, and am prepared to do the work to add exporting functions but would like to know if this was something which you'd be prepared to accept a pull request for this?\r\n\r\nAdditionally if you have any guidelines let me know, otherwise I'll just try to follow the current code style."},"comment":{"url":"https://api.github.com/repos/Celtoys/Remotery/issues/comments/124451358","html_url":"https://github.com/Celtoys/Remotery/issues/56#issuecomment-124451358","issue_url":"https://api.github.com/repos/Celtoys/Remotery/issues/56","id":124451358,"user":{"login":"dougbinks","id":872946,"avatar_url":"https://avatars.githubusercontent.com/u/872946?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbinks","html_url":"https://github.com/dougbinks","followers_url":"https://api.github.com/users/dougbinks/followers","following_url":"https://api.github.com/users/dougbinks/following{/other_user}","gists_url":"https://api.github.com/users/dougbinks/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbinks/subscriptions","organizations_url":"https://api.github.com/users/dougbinks/orgs","repos_url":"https://api.github.com/users/dougbinks/repos","events_url":"https://api.github.com/users/dougbinks/events{/privacy}","received_events_url":"https://api.github.com/users/dougbinks/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T09:14:25Z","updated_at":"2015-07-24T09:14:25Z","body":"rmt_setGlobalInstance  was the method I'd use if I couldn't use a DLL approach, though I think there is a change needed as the settings are not part of the global remotery instance which could cause problems.\r\n\r\nFor my use the rmt_setGlobalInstance method is slightly awkward as loading code at runtime means I'd end up calling this in the init of every file.\r\n\r\nFor the DLL config, the imgui approach is reasonable - by defining IMGUI_DISABLE_INCLUDE_IMCONFIG_H you can use build configuration and avoid needing to change a file in an external project, though I'd be tempted to add an imconfig_user.h file include when IMGUI_INCLUDE_IMCONFIG_USER_H is defined so that users could have their own file on another path. I'll start an implementation on a branch and get back to you for changes."}}