Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6b17842f authored by Matthew Maurer's avatar Matthew Maurer
Browse files

DoH: Refactor FFI

* Factor out constants to level enum conversion
* Document property that doh_init_logger will have no effect on future calls
* Change `doh_set_log_level` to default to `Error` logging on an invalid
  value rather than disabling all logging. This matches the behavior of
  `doh_init_logger`.
* Prefix constants with `DOH_`. `cbindgen`-exported constants are not in
  a namespace; they are raw C constants. Prepending the library name
  will help avoid future collisions.
* `android_logger::init_once` explicitly states in the documentation that
  calling it more than once is safe, and will simply not change the logger
  on future calls.

Bug: 202081046
Change-Id: I91a8a7f40363ee2dcf6211fb595e1c6e7f6084a8
parent 29c917d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment