Skip to content
Snippets Groups Projects
  • George Kiagiadakis's avatar
    7668f4c6
    core: add methods to work with pw_core_info data and pw_core properties · 7668f4c6
    George Kiagiadakis authored
    - pw_core_info has data that represent the remote core
    - pw_core properties are the properties of its pw_client,
    initially inherited from the pw_context, which can be updated either
    when calling pw_context_connect() or later at runtime (the pw_core
    calls pw_client_update_properties() on its pw_client)
    
    wp_core_update_properties() is made in such a way so that we can do:
    ```
    clone = wp_core_clone(core);
    wp_core_update_properties(clone, ...);
    wp_core_connect(clone);
    ```
    and get clone to have different properties than the original core,
    while they still share the same pw_context underneath
    7668f4c6
    History
    core: add methods to work with pw_core_info data and pw_core properties
    George Kiagiadakis authored
    - pw_core_info has data that represent the remote core
    - pw_core properties are the properties of its pw_client,
    initially inherited from the pw_context, which can be updated either
    when calling pw_context_connect() or later at runtime (the pw_core
    calls pw_client_update_properties() on its pw_client)
    
    wp_core_update_properties() is made in such a way so that we can do:
    ```
    clone = wp_core_clone(core);
    wp_core_update_properties(clone, ...);
    wp_core_connect(clone);
    ```
    and get clone to have different properties than the original core,
    while they still share the same pw_context underneath