Commit Graph

14 Commits

Author SHA1 Message Date
tt2468
ee283c7141 lib: Implement obs-websocket event callback access
This allows plugins to listen directly for obs-websocket events.
2024-04-23 01:50:11 -07:00
Norihiro Kamae
6c67b276a7 lib: Fix compile errors on C and warnings on C++ 2024-01-16 01:39:27 -08:00
tytan652
b5d50c4243 lib,requesthandler,eventhandler: Fix C4244 & C4334 warnings 2022-07-28 11:40:27 -07:00
tt2468
6deadc25ac base: Change column limit to 132
A column limit of 80 is very restrictive and code readability was
suffering. A limit of 132 is more realistic for this plugin.
2022-06-07 21:36:51 -07:00
tt2468
f73e78582b base: Format code 2022-05-13 21:19:29 -07:00
tt2468
dd4971b1cc lib: Fix compilation on 32 bit Windows 2022-05-13 18:48:55 -07:00
tt2468
749ecc976b base, lib: Update plugin API example and tests
Updates the example and tests for the plugin API to include the latest
additions to the plugin API.
2022-05-10 23:04:21 -07:00
tt2468
d85c86e3a0 base, lib: Add ability to call obs-websocket requests via plugin API
**Increments Plugin API Version**

Adds functions:
- `obs_websocket_get_api_version()` - Gets the current obs-websocket
plugin API version
- `obs_websocket_call_request()` - Calls an obs-websocket request via
the plugin API

Adds structs:
- `obs_websocket_request_response`
2022-05-10 23:04:04 -07:00
tt2468
00dd8d7821 lib: Add version define 2021-12-30 01:15:54 -08:00
tt2468
539ee3f28f obs-websocket-api: Various improvements
Make functions static and code nitpicks
2021-12-14 18:22:21 -08:00
tt2468
959347337f lib: Add plugin example + slightly change names 2021-11-21 01:37:21 -08:00
tt2468
c720df5938 lib: Fix build on <c++20
C99 and C++20 are the minimum versions that support dedicated
initializer lists.
2021-11-20 01:58:16 -08:00
tt2468
99cbaaf34c Base: Implement ObsWebSocketApi + cleanup
- Implements a WIP ObsWebSocketApi, for obs-websocket-api.h. Events are
finished, but requests are not.
- Some logging improvements
- A bit of code cleanup around the plugin
2021-11-20 01:26:50 -08:00
tt2468
bc1d5386a5 Base: Add external plugin library
This header file is meant to be included by 3rd party OBS plugins,
which allows them to add custom requests and events to obs-websocket.

*not finished yet*
2021-11-19 18:10:01 -08:00