Commit Graph

73 Commits

Author SHA1 Message Date
tt2468
aa0ba78e46 Base: Use more refcounts
Use refcounts more effectively
2021-09-25 17:52:08 -07:00
tt2468
b91ad0f790 Requests: Add GetSceneItemId
I realized that it was not entirely fair to expect users to fetch a
scene's item list, then search the list on the client in order to find
an item ID, so this is a compromise. This will also help developers
move from the 4.x scene item functionality to 5.x's

Operating on scene items by relying on source name can be dangerous
and in some cases exhibit what would be considered undefinied behavior.
Operating on scene items using IDs is best practice.
2021-09-25 17:21:06 -07:00
tt2468
d811c95e10 Requests: Add some more failure checks and improve response codes 2021-09-17 02:43:20 -07:00
tt2468
eebcc25115 Requests: Add unpublished RemoveInput
The functionality depends on obs-studio#5276 to be merged and released,
so we can add it but not enable it for now.
2021-09-17 02:42:58 -07:00
Dominik Nakamura
d20c0d0da7
Reqeusts: Fix wrong validation in ValidateBasic 2021-09-06 10:48:01 +09:00
tt2468
e89c0c2b05 Base: More code cleanup and fixes 2021-09-04 10:47:51 -07:00
tt2468
7e1e1bc33c Base: Large plugin refactor
- Merge WebSocketProtocol into WebSocketServer
  - Having them separated was not doing anything productive
- Request: Move SessionPtr to RequestHandler
  - Less copying to do for batch requests
- Fully modularize EventHandler
  - Make BroadcastEvent a stored callback that WebSocketServer sets
- Return early on high volume events to avoid unnecessary compute
  - These events will only generate a json object when it is actually
needed
2021-09-04 10:04:00 -07:00
tt2468
537595658d Requests: Add GetSceneItemTransform 2021-09-03 15:59:09 -07:00
tt2468
96dcc49adb Requests: More requests and code cleanup
(plus very slight performance improvement)
2021-09-03 12:52:50 -07:00
tt2468
25b3bd44ba RequestHandler/RPC: Improve code efficiency and add optionals 2021-09-03 12:52:15 -07:00
tt2468
333737f400 Requests: Additions and code cleanup 2021-09-02 19:29:13 -07:00
tt2468
d7f96b6dea Revert "Request: Minor code cleanup"
This reverts commit c16669c7b0.
2021-09-02 13:33:20 -07:00
tt2468
c16669c7b0 Request: Minor code cleanup 2021-09-02 13:25:17 -07:00
tt2468
0269209d59 Requests: Use OBS naming for monitorType enum 2021-09-02 11:24:48 -07:00
tt2468
9a8587d6df Requests: Check for last scene in RemoveScene 2021-09-01 10:43:36 -07:00
tt2468
fb0656c31e RequestHandler: Simplify request statuses 2021-09-01 10:30:40 -07:00
tt2468
e18aaff661 RequestStatus: Add new statuses to replace old soon 2021-08-31 06:38:55 -07:00
tt2468
4271730dc2 Requests: Add more requests 2021-08-30 13:55:22 -07:00
tt2468
78f9c93739 Requests: Fix global realm storage on persistent data req's 2021-08-30 01:32:22 -07:00
tt2468
ade9653ed6 Base: Only include required util namespaces 2021-08-27 04:34:06 -07:00
tt2468
0547e1f2da Base: Lots of changes 2021-08-27 04:19:42 -07:00
tt2468
16697fb65e Requests: Add more requests 2021-08-27 02:33:33 -07:00
tt2468
251e3a28c1 Requests: Reorder some requests 2021-08-26 23:29:55 -07:00
tt2468
bd289ae751 Requests: Rename slotData to slotValue to align with other profile parameters 2021-08-26 23:11:24 -07:00
tt2468
7c5c0f42da Requests: Merge global and profile persistent data requests
The code was largely shared, so it made more sense to just merge the
requests and create realms.
2021-08-26 23:06:23 -07:00
tt2468
8185580cff RequestStatus: Add DataRealmNotFound 2021-08-26 23:02:52 -07:00
tt2468
ea713ea808 Requests: Add persistent data requests 2021-08-26 20:32:00 -07:00
tt2468
eb0743f683 Requests: Fix GetProfileParameter on Windows
If either return value was not defined in the profile config,
it would cause OBS to crash on Windows due to assigning a
nullptr to an std::string.
2021-08-26 17:56:13 -07:00
tt2468
fb1580b44e Requests: Add extra logging to GetProfileParameter 2021-07-24 03:04:53 -07:00
tt2468
7081824bbe Utils: Add includeDisabled in GetInputKindList 2021-07-22 17:38:32 -07:00
tt2468
d0e05ae45c Requests: Add more requests
- GetStreamServiceSettings
- SetStreamServiceSettings
- CreateInput
- GetStreamStatus
- StartStream
- StopStream
2021-07-22 16:26:04 -07:00
tt2468
4d271da541 Base: Code cleanup and add some requests 2021-07-22 03:24:53 -07:00
tt2468
33137496a7 RequestHandler: Lots of code cleanup 2021-06-22 15:24:48 -07:00
tt2468
5cf2b50b63 RequestHandler: Add some more requests 2021-06-21 15:31:47 -07:00
tt2468
ae40c61c2b RequestHandler: Some more requests 2021-06-16 08:19:13 -07:00
tt2468
cc77724229 RequestHandler: More simplification (and fix)
obs_queue_task is set to wait, so there is no need to create our
bool on the stack, as it should never go out of scope when the task
is run. Additionally, the old way didn't actually work anyway.
2021-06-16 08:16:23 -07:00
tt2468
9229107bab RequestHandler: Simplify TriggerHotkeyByKeySequence checks 2021-06-16 08:10:43 -07:00
tt2468
4f804baf95 Request: Consider null parameters missing 2021-06-16 06:25:20 -07:00
tt2468
bc1dc807e4 RequestStatus: Add TooManyRequestParameters 2021-06-16 06:25:00 -07:00
tt2468
d6aeeeea0c RequestHandler: Add SetInputSettings 2021-06-16 04:27:08 -07:00
tt2468
ce8f393eb8 Request: Fix memory leak and crash in ValidateInput 2021-06-16 04:18:37 -07:00
tt2468
271db036fe RequestHandler: Add GetInputSettings 2021-06-16 02:41:24 -07:00
tt2468
55755ae066 Request: Minor code cleanup 2021-06-16 02:41:13 -07:00
tt2468
3400bfdc9a Request: Add ValidateInput() 2021-06-16 02:22:13 -07:00
tt2468
1116af128e RequestHandler: Add GetInputDefaultSettings 2021-06-16 02:07:51 -07:00
tt2468
8ad009ba51 RequestHandler: Move GetInputList logic to Utils 2021-06-16 01:39:04 -07:00
tt2468
428e437429 RequestHandler: Add unversionedInputKind to GetInputList 2021-06-16 01:26:00 -07:00
tt2468
aac06b101e RequestHandler: Add GetInputList 2021-06-16 00:49:07 -07:00
tt2468
9af7216891 RequestHandler: Don't error out on null optional parameters 2021-06-16 00:43:46 -07:00
tt2468
efdea72987 RequestHandler: Add RemoveScene 2021-06-15 23:57:48 -07:00