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
      libnm: make the the use of GInitable mandatory · 258e74eb
      Dan Winship authored
      Remove _nm_object_ensure_inited(), etc; objects that implement
      GInitable are now mandatory-to-init().
      
      Remove constructor() implementations that sometimes return NULL; do
      all the relevant checking in init() instead.
      
      Make nm_client_new() and nm_remote_settings_new() take a GCancellable
      and a GError**.
      258e74eb
  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 5 commits
  4. 04 Jun, 2014 1 commit
  5. 27 May, 2014 1 commit
  6. 22 Apr, 2014 1 commit
    • Jiří Klimeš's avatar
      nmcli: improve setting connection.secondaries property · 645f0204
      Jiří Klimeš authored
      - check if the values being set are existing connections
      - also allow specifying connections by names, translating them transparently
         to UUIDs.
      - nmcli-specific section for 'describe' command added
      
      (We use a global nm_cli variable in nmc_property_connection_set_secondaries())
      645f0204
  7. 24 Oct, 2013 1 commit
  8. 10 Sep, 2013 2 commits
  9. 30 Jul, 2013 1 commit
  10. 22 Jul, 2013 1 commit
  11. 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
  12. 16 May, 2013 1 commit
  13. 24 Apr, 2013 2 commits
  14. 08 Apr, 2013 4 commits
  15. 13 Nov, 2012 1 commit
  16. 25 Jul, 2012 1 commit
  17. 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
  18. 10 Feb, 2011 1 commit
  19. 07 Aug, 2010 1 commit
    • Daniel Gnoutcheff's avatar
      remove nm-settings-connection-interface · 7f8dc06d
      Daniel Gnoutcheff authored
      NMSettingsConnectionInterface was created to allow the daemon and NM
      clients to have common code that handled both system and user
      connections. It's no longer needed now that user settings services are
      gone.
      
      This concludes the flattening of libnm-glib.
      7f8dc06d
  20. 06 Aug, 2010 3 commits
    • Daniel Gnoutcheff's avatar
      libnm-glib: remove NMSettingsInterface · c2f4b10a
      Daniel Gnoutcheff authored
      NMSettingsInterface was created to allow code to operate on a settings
      service without caring about what kind of settings service it was. Now
      that we have just one settings service, this is no longer needed.
      
      More work needs to be done in order to handle errors and permission
      settings in an appropriate manner.
      c2f4b10a
    • 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
  21. 29 Jul, 2010 1 commit
  22. 26 Apr, 2010 1 commit
  23. 06 Apr, 2010 1 commit
  24. 24 Mar, 2010 1 commit
  25. 22 Mar, 2010 1 commit
  26. 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
  27. 25 Feb, 2010 1 commit