Commit Graph

14 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit c2bcdcf51a
WIP 2024-05-05 13:20:07 +02:00
Oystein Kristoffer Tveit eb81d7c463
reuse `property_parser` for highlevel api, add more highlevel functions 2024-05-04 23:01:17 +02:00
Oystein Kristoffer Tveit 650507e680
add support for parsing playlists as events + more
This brings several changes with it:

- `Mpv::get_property` now returns `Option`s in case `data` is
  nonexistent. There could be cases where this is different from
  `MpvDataType::Null` and `MpvDataType::MinusOne`.

- `MpvError` now implements `PartialEq`
2024-05-04 18:45:32 +02:00
Oystein Kristoffer Tveit e044246cba
fixup: fmt + clippy 2024-05-04 00:23:02 +02:00
Oystein Kristoffer Tveit 3a04cd14f1
restructure test directory 2024-05-04 00:23:01 +02:00
Oystein Kristoffer Tveit f50b4defc1
add some tests for event property parser 2024-05-04 00:23:01 +02:00
Oystein Kristoffer Tveit 2736d1d7ad
wrap event data in `Option` 2024-05-03 22:29:28 +02:00
Oystein Kristoffer Tveit cb0921144d
rework error messages 2024-05-03 22:29:25 +02:00
Oystein Kristoffer Tveit 7eec34ce00
split property parsing from event parsing:
Build and test / build (pull_request) Successful in 1m55s Details
Build and test / check (pull_request) Successful in 1m52s Details
Build and test / docs (pull_request) Successful in 2m21s Details
Build and test / test (pull_request) Successful in 4m9s Details
Build and test / check (push) Successful in 1m55s Details
Build and test / build (push) Successful in 1m57s Details
Build and test / docs (push) Successful in 2m43s Details
Build and test / test (push) Successful in 5m33s Details
High-level properties are now optional, considering there are about a
thousand of them to parse. The high-level properties are a few chosen
ones that I suspect might be useful for most people, with catch-all enum
variants for the less common ones.
2024-05-02 21:16:23 +02:00
Oystein Kristoffer Tveit f5ca2ebde9
add more tests, fix event/command response race condition
Build and test / check (pull_request) Successful in 1m56s Details
Build and test / build (pull_request) Successful in 1m57s Details
Build and test / docs (pull_request) Successful in 2m30s Details
Build and test / test (pull_request) Successful in 4m0s Details
Build and test / check (push) Successful in 1m55s Details
Build and test / build (push) Successful in 1m56s Details
Build and test / docs (push) Successful in 3m2s Details
Build and test / test (push) Successful in 3m59s Details
2024-05-01 23:45:42 +02:00
Oystein Kristoffer Tveit 3be7b2bda6
cargo fmt + clippy
Build and test / check (push) Successful in 1m55s Details
Build and test / build (push) Successful in 1m59s Details
Build and test / test (push) Successful in 2m30s Details
2024-04-30 02:13:57 +02:00
Oystein Kristoffer Tveit 75645c5880
api: move highlevel functions into extension 2024-04-30 02:07:08 +02:00
Oystein Kristoffer Tveit aacde5df12
Create event stream 2024-04-30 02:07:04 +02:00
Oystein Kristoffer Tveit c039eafa1e
Add some tests 2024-04-19 01:02:24 +02:00