Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Sep 18, 2016
    • Alexandre Bailon's avatar
      controller: Add connection callbacks · 06eab8dd
      Alexandre Bailon authored
      
      Currently, the connection between the host and a module
      can only be created after the module has been detected or
      during the interface create. For some controller, we don't
      have the choice because they only have a stream that need
      to open before any other operation.
      But some controller (e.g. TPC/IP) can use more than one stream.
      Add connection_create() and connection_destroy() callbacks to
      let that kind of controller create more than one connection.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      06eab8dd
    • Alexandre Bailon's avatar
      controller: Add a new callback to stop the event loop. · a41226ba
      Alexandre Bailon authored
      
      The event is mainly used for module detection.
      The controller create a thread to run the loop and generate
      the hotplug and hot unpulg events.
      But an event loop may prevent the application to exit,
      because it use methods that prevent thread to be cancelled.
      Add a new callback that will be called before to cancel the
      thread to put the event loop in a cancellable state.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      a41226ba
  2. Sep 16, 2016