1. 05 Sep, 2018 1 commit
    • spiiroin's avatar
      [usb-moded] Remove redundant include statements · 176b53cf
      spiiroin authored
      Make all local header files self-sufficient.
      
      Normalize order of including header files, so that header corresponding with
      compilation module is included first, followed by local headers, system
      headers, standard headers, and finally headers from auxiliary libraries.
      
      Remove all include statements that are, or are made redundant by the above
      changes.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      176b53cf
  2. 24 Aug, 2018 1 commit
    • spiiroin's avatar
      [usb_moded] Add configfs support. Fixes JB#42083 · 692c2cb3
      spiiroin authored
      Add custom Makefile for faster smoke-test rebuilds without spending time
      in configure, autotools, document generation and/or rolling rpm packages.
      
      Add multiple include protection to all header files.
      
      Move function prototypes away from header files that included in the
      development package.
      
      Mass rename functions to have a prefix giving context for the function.
      For the most part the prefix is derived from the name of the compilation
      module containing the function.
      
      Mass normalize indentation to four spaces in all source files.
      
      Augment author lists on each source file based on git committers.
      
      Remove "inline" attributes from not-really-inlineable functions.
      
      Remove .gitignore.
      
      Remove unused modules-android.c source file.
      
      Define _GNU_SOURCE for whole build rather than in individual files.
      
      Fix resource leaks here and there.
      
      Try to avoid hard-coding android usb paths.
      
      Add configfs backend for usb cadget configuration.
      
      Probe supported backends (configfs, android usb, or kmod) on usb-moded
      startup and make them mutually exclusive with each other.
      
      Allow configfs and android usb control structures some time to show up
      if usb-moded is started during device bootup.
      
      Refactor udev event listener to utilize a state machine. Simplifies
      book keeping and makes pc/charger detection heuristics easier to control.
      
      Refactor mode selection to utilize three interconnected mini state machines.
      Allows separating logically wanted mode from mode programmed to usb and
      mode exposed over D-Bus.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      692c2cb3
  3. 11 Aug, 2017 1 commit
  4. 07 Nov, 2016 2 commits
    • spiiroin's avatar
      [dbus] Add helper function for making async name owner queries. MER#1694 · 14092c64
      spiiroin authored
      Enabler for making various dbus tracking activities asynchronous.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      14092c64
    • spiiroin's avatar
      [dbus] Improve SystemBus connection management. MER#1694 · 3e9e1817
      spiiroin authored
      D-Bus SystemBus connection is made from several places. Explicitly
      from the main() and implicitly from various modules that do ipc
      with other components. This makes it hard to tell when connection
      actually gets made, process wide dbus initialization happens in
      the wrong place and setting up signal matches is delayed by the
      synchronous initialization activity during startup.
      
      Move dbus_threads_init_default() to more appropriate place so that
      it actually is the first libdbus call that gets made.
      
      Handle connecting to SystemBus and installing signal listeners as early
      as possible and claim usb-moded service name separately when usb-moded
      is ready to process requests made over D-Bus.
      
      Add usb_moded_dbus_get_connection() function that other modules can
      use to get reference to the SystemBus connection when/if one has been
      made from the main logic.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      3e9e1817
  5. 04 Apr, 2016 1 commit
  6. 18 Mar, 2014 1 commit
  7. 09 Aug, 2013 1 commit
  8. 22 Mar, 2011 1 commit