Skip to content
Snippets Groups Projects
  1. Sep 13, 2022
  2. Sep 12, 2022
  3. Sep 05, 2022
  4. Aug 31, 2022
    • Alberto Miranda's avatar
      Separate managed_rpc_type lifetime management from type conversion · 70a8dfb7
      Alberto Miranda authored
      This commit separates the functionality of managed_rpc_type<T> into
      dedicated lifetime management types and conversion functions. This
      makes for clearer the code since it is now possible to know when
      a conversion is performed.
      
      Lifetime management for C-types is now done with the managed_ctype<T>
      types, which act only as holders of dynamically allocated C types and do not
      perform any type conversions whatsoever.
      
      Type conversions are now done with the T1 convert(T2 obj) family of functions.
      When converting from CXX to C API types, these functions effectively
      return instances of the appropriate managed_ctype<T>s. If one wishes to
      relinquish ownership of the content of the managed_ctype<T> (e.g. to
      pass it to a pure C function that will release it), this can be done
      with the managed_ctype<T>::release() function.
      70a8dfb7
  5. Aug 30, 2022
  6. Jul 29, 2022
  7. Jul 28, 2022
  8. Jul 07, 2022
  9. Jul 05, 2022
  10. Jul 04, 2022
    • Alberto Miranda's avatar
      Reorganize source code · 4d12b240
      Alberto Miranda authored
      - `scord` daemon now has its own directory in `src/scord`
      - `scord-ctl` daemon now has its own directory in `src/scord-ctl`
      - library code now lives under the  `lib` directory
      - public rpc definitions now live in `src/lib/rpcs/`
      - private rpc definitions for each daemon now live in
        `src/scord/rpcs/` and `src/scord-ctl/rpcs/`, respectively
      - `config`, `logger`, and `network` code now live under the `common` directory
      4d12b240
Loading