🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@gavv
Copy link
Member

@gavv gavv commented May 1, 2025

  • Update to 0.3 api
  • Use bindgen.py
  • Refine logging
  • Overhaul error handling
  • Enable logs when running tests with --info or --debug

@gavv gavv requested a review from ortex May 1, 2025 09:29
gavv added 3 commits May 5, 2025 01:36
- Introduce RocException. Use it for system errors instead
  of Exception or IOException.

- Update "throws" clauses. Explicitly list only checked exceptions.
  Don't list unchecked. But document all exceptions.

- Rework C assertions. Remove assertions for failures caused by
  incorrect calls of C code from Java code. Instead, throw Java
  exceptions. Keep assertions only for internal violations on the
  C side.

- Rework C helpers. All helpers return bool. If they return false,
  they also throw a java exception with failure details. Also make
  helpers more high level to simplify code that use them.

- Remove boilerplate C helpers for enums, instead add a single
  function read_enum_field() an use it for all enums.

- Improvements in logger on C side: cache java log levels, properly
  use global references.

- Enable assertions in release builds too.

- Additional validation in MediaEncoding builder to catch more
  user errors earlier.
@gavv gavv merged commit f5ce03a into roc-streaming:main May 12, 2025
8 checks passed
@gavv gavv deleted the pr/roc_03 branch May 12, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants