1. 01 Aug, 2014 2 commits
    • Dan Winship's avatar
      libnm: add NetworkManager.h, disallow including individual headers · d0b05b34
      Dan Winship authored
      Add NetworkManager.h, which includes all of the other NM header, and
      require all external users of libnm to use that rather than the
      individual headers.
      
      (An exception is made for nm-dbus-interface.h,
      nm-vpn-dbus-interface.h, and nm-version.h, which can be included
      separately.)
      d0b05b34
    • Dan Winship's avatar
      all: port everything to libnm · a7c4d53d
      Dan Winship authored
      Since the API has not changed at this point, this is mostly just a
      matter of updating Makefiles, and changing references to the library
      name in comments.
      
      NetworkManager cannot link to libnm due to the duplicated type/symbol
      names. So it links to libnm-core.la directly, which means that
      NetworkManager gets a separate copy of that code from libnm.so.
      Everything else links to libnm.
      a7c4d53d
  2. 30 Jul, 2014 1 commit
    • Dan Winship's avatar
      clients: reorganize source tree, put all the installed clients together · 3d25d704
      Dan Winship authored
      Create a new clients/ subdirectory at the top level, and move cli/ and
      tui/ into it, as well as nm-online.c (which was previously in test/,
      which made no sense).
      
      cli/ was split into two subdirectories, src/ and completion/. While
      this does simplify things (given that the completion file and the
      binary both need to be named "nmcli"), it bloats the source tree, and
      we can work around it by just renaming the completion file at install
      time. Then we can combine the two directories into one and just have
      it all under clients/cli/.
      3d25d704
  3. 24 Jun, 2014 3 commits
  4. 17 Dec, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: allow specifying 'group.name' syntax for '--fields' · 94bb83a3
      Jiří Klimeš authored
      and use it for 'nmcli device show'.
      
      This allows filtering output not only for whole groups, but also for individual
      fields in commands that print data in groups (sections).
      
      Example:
      $ nmcli -f general.device,general.driver,ipv4,ipv6.address device show eth0
      GENERAL.DEVICE:                         eth0
      GENERAL.DRIVER:                         e1000e
      IP4.ADDRESS[1]:                         ip = 10.0.5.228/23, gw = 10.0.5.254
      IP4.ADDRESS[2]:                         ip = 5.5.5.5/32, gw = 5.5.5.1
      IP4.DNS[1]:                             192.168.122.1
      IP4.DNS[2]:                             8.8.8.8
      IP4.DOMAIN[1]:                          mycompany.com
      94bb83a3
  5. 22 Nov, 2013 1 commit
  6. 30 Jul, 2013 1 commit
  7. 22 Jul, 2013 1 commit
  8. 31 May, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: enhance printing to align tabular output properly and not to waste space · e6870789
      Jiří Klimeš authored
      Until now we have used a static width defined for each column for tabular
      output. Even if this worked in most cases, it was not optimal, because by
      using too wide columns we wasted space, and in case of a too narrow column the
      alignment broke. So, we need to know the longest string in a column to be able
      to align columns in the tabular output. Thus, the printing has to be postponed
      till we have all data available, and can find the widest column. This value is
      then used for aligning while printing the data.
      
      Arrays of NmcOutputField (rows) are inserted into output_data array. When all
      data have been added, print_data() can be used to print the whole output_data
      array with proper alignment.
      
      A single row can be printed using print_required_fields().
      
      Also, output flags are redone to better match the new output_data array.
      The flags are needed for every row (in tabular output); they are stored in
      the first field (NmcOutputField) for the whole row.
      
      Addapted set_val_str() and set_val_arr() to set value type (char * x char **).
      Added set_val_strc(), set_val_arrc() for const values that should not be freed.
      
      output_data takes ownership of the data added to it and takes care of freeing
      the memory.
      
      See e.g.
      https://bugzilla.gnome.org/show_bug.cgi?id=699503
      e6870789
  9. 08 Apr, 2013 1 commit
  10. 26 Mar, 2013 1 commit
  11. 25 Jul, 2012 1 commit
  12. 10 Jan, 2012 1 commit
    • Jiří Klimeš's avatar
      cli: fix 'nmcli con delete' (rh #771258) · 659c22cc
      Jiří Klimeš authored
      The command didn't delete the connection, because nmcli exited before NM could
      check permissions (actually ConsoleKit didn't see the process).
      Now nmcli waits for "Removed" signal or D-Bus return (error) message on "Delete"
      method call.
      659c22cc
  13. 03 Jan, 2012 1 commit
  14. 16 Feb, 2011 1 commit
    • Jiří Klimeš's avatar
      cli: compare nmcli and NM versions · a9a30eb0
      Jiří Klimeš authored
      nmcli gets NM version and compares it with its own and complains
      when they differ. This is to indicate that the results are not reliable,
      because the API could differ. '--nocheck' switches the checks off.
      a9a30eb0
  15. 10 Feb, 2011 1 commit
  16. 06 Aug, 2010 2 commits
    • Daniel Gnoutcheff's avatar
      libnm-glib: merge nm-remote-settings{,-system} · 4d1681ef
      Daniel Gnoutcheff authored
      Originally, nm-remote-settings was used by the daemon to monitor the
      user settings service, and its subclass nm-remote-settings-system was
      used by NM clients to monitor the system settings service. With user
      settings services gone, this distinction is no longer needed. Simplify
      things a bit and merge the classes.
      4d1681ef
    • Daniel Gnoutcheff's avatar
      nmcli: remove user settings support · c17d0b09
      Daniel Gnoutcheff authored
      Remove all support for user settings services from nmcli. Update its
      manpage to reflect this.
      
      Manpage edits also anticipate changes to be made in regards to how
      secrets are managed.
      c17d0b09
  17. 29 Jul, 2010 1 commit
  18. 06 Apr, 2010 1 commit
  19. 24 Mar, 2010 2 commits
  20. 22 Mar, 2010 1 commit
  21. 18 Mar, 2010 1 commit
    • Jiří Klimeš's avatar
      cli: changing nmcli output to better fit both computer and human needs · 55949277
      Jiří Klimeš authored
      The output is basically tabular with fields (columns) presenting specific pieces of info.
      Each line represents a single object. It's possible to switch to multiline output using
      '--multiline' option. In that mode single object is presented on more lines - each field
      on its line.
      Terse mode now uses ':' as field separator. It also escapes all occurences of ':' and '\'
      inside field values to ease parsing. The escaping behaviour can be controlled through
      '--escape' option. By default, escaping is switched on in tabular mode. When using terse
      mode ('--terse'), '--fields' option is mandatory for specifying required fields. That helps
      for flexibility and backwards compatibility.
      Not all output is converted yet.
      55949277
  22. 25 Feb, 2010 1 commit