1. 01 Aug, 2014 3 commits
    • Dan Winship's avatar
      libnm: fix up class struct reserved slots · 2fc55941
      Dan Winship authored
      Add reserved slots to those classes that were missing them (or had run
      out), and sync up the number of slots across classes:
        - 8 slots for "important" classes, abstract base classes, and
          classes we expect we might need to add new virtual methods or
          signals to later.
        - 4 for everything else
      Also, rearrange the class elements in a few places into standard order
      (signals first, then methods).
    • Dan Winship's avatar
      libnm, core, cli, tui: fix the capitalization of various types · 3ac0f528
      Dan Winship authored
      GLib/Gtk have mostly settled on the convention that two-letter
      acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
      become initial-caps-only (eg, "Tcp").
      NM was inconsistent, with most long acronyms using initial caps only
      (Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
      PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
      three-or-more-letter-long acronyms (and update nmcli and nmtui for the
      libnm changes).
    • Dan Winship's avatar
      libnm: add libnm/libnm-core (part 1) · d595f784
      Dan Winship authored
      This commit begins creating the new "libnm", which will replace
      libnm-util and libnm-glib.
      The main reason for the libnm-util/libnm-glib split is that the daemon
      needs to link to libnm-util (to get NMSettings, NMConnection, etc),
      but can't link to libnm-glib (because it uses many of the same type
      names as the NetworkManager daemon. eg, NMDevice). So the daemon links
      to only libnm-util, but basically all clients link to both.
      With libnm, there will be only a single client-visible library, and
      NetworkManager will internally link against a private "libnm-core"
      containing the parts that used to be in libnm-util.
      (The "libnm-core" parts still need to be in their own directory so
      that the daemon can see those header files without also seeing the
      ones in libnm/ that conflict with its own headers.)
      [This commit just copies the source code from libnm-util/ to
      libnm-core/, and libnm-glib/ to libnm/:
        mkdir -p libnm-core/tests/
        mkdir -p libnm/tests/
        cp libnm-util/*.[ch] libnm-util/nm-version.h.in libnm-core/
        rm -f libnm-core/nm-version.h libnm-core/nm-setting-template.[ch] libnm-core/nm-utils-enum-types.[ch]
        cp libnm-util/tests/*.[ch] libnm-core/tests/
        cp libnm-glib/*.[ch] libnm/
        rm -f libnm/libnm_glib.[ch] libnm/libnm-glib-test.c libnm/nm-glib-enum-types.[ch]
        cp libnm-glib/tests/*.[ch] libnm/tests/
  2. 15 Jul, 2014 1 commit
    • Dan Winship's avatar
      libnm-util, libnm-glib: standardize copyright/license headers · cb7e1893
      Dan Winship authored
      - Remove list of authors from files that had them; these serve no
        purpose except to quickly get out of date (and were only used in
        libnm-util and not libnm-glib anyway).
      - Just say "Copyright", not "(C) Copyright" or "Copyright (C)"
      - Put copyright statement after the license, not before
      - Remove "NetworkManager - Network link manager" from the few files
        that contained it, and "libnm_glib -- Access network status &
        information from glib applications" from the many files that
        contained it.
      - Remove vim modeline from nm-device-olpc-mesh.[ch], add emacs modeline
        to files that were missing it.
  3. 27 Jul, 2012 1 commit
  4. 12 Mar, 2012 1 commit
    • Dan Winship's avatar
      Fix names of error enum values · 54ef8f32
      Dan Winship authored
      When NM was registering all of its enum types by hand, it was using
      NamesLikeThis rather than the default names-like-this for the "nick"
      values. When we switched to using glib-mkenums, this resulted in
      dbus-glib using different strings for the D-Bus error names, causing
      compatibility problems.
      Fix this by using glib-mkenums annotations to manually fix all the
      enum values back to what they were before. (This can't be done in a
      more automated way, because the old names aren't 100% consistent. Eg,
      "UNKNOWN" frequently becomes "UnknownError" rather than just
  5. 15 Feb, 2012 1 commit
    • Dan Winship's avatar
      Use glib-mkenums to generate enum types · 839eab55
      Dan Winship authored
      Rather than generating enum classes by hand (and complaining in each
      file that "this should really be standard"), use glib-mkenums.
      Unfortunately, we need a very new version of glib-mkenums in order to
      deal with NM's naming conventions and to fix a few other bugs, so just
      import that into the source tree temporarily.
      Also, to simplify the use of glib-mkenums, import Makefile.glib from
      To avoid having to run glib-mkenums for every subdirectory of src/,
      add a new "generated" directory, and put the generated enums files
      Finally, use Makefile.glib for marshallers too, and generate separate
      ones for libnm-glib and NetworkManager.
  6. 05 Jul, 2011 1 commit
  7. 30 Sep, 2009 1 commit
  8. 26 Oct, 2008 1 commit
  9. 27 Jul, 2008 1 commit
  10. 12 Jun, 2008 1 commit
  11. 29 Nov, 2007 1 commit
    • Tambet Ingo's avatar
      2007-11-28 Tambet Ingo <tambet@gmail.com> · db5a10dc
      Tambet Ingo authored
              Merge the beginnings of the new GSM card support.
              * src/ppp-manager/nm-ppp-manager.c (nm_ppp_manager_stop): Remove
              * the
              ppp watch source before killing pppd - If this happens from
              then the ppp manager is already destroyed by the time the watch
      callback runs.
              * src/nm-hal-manager.c: Add a device_type_name string to the
              * device
              creators, so that we can print a nice human readable string when
              device is added.
              * src/nm-umts-device.c (automatic_registration_get_network):
              * Query
              for the activated network, not much is done with the result
              * src/nm-serial-device.c (nm_serial_device_get_reply):
              * Implement.
              (ppp_ip4_config): Change the device state to activated here for
              (real_check_connection): Make sure the connection includes ppp
              * libnm-glib/nm-client.c (get_device): Handle umts devices.
              * libnm-glib/Makefile.am: Add the new files to build.
              * libnm-glib/nm-umts-device.c: 
              * libnm-glib/nm-umts-device.h: Implement.
      2007-11-26  Tambet Ingo  <tambet@gmail.com>
              * src/nm-umts-device.c (automatic_registration_get_network): For
              * now, dial
              immediately, nm_serial_device_get_reply() isn't implemented
      correctly yet.
              * src/nm-serial-device.c (wait_for_reply_info_destroy): Don't
              * try to remove
              the timeout source - this function is only called when the
      timeout source has
              been removed.
              (nm_serial_device_wait_for_reply): Allocate the duplicate
      responses array
              to be big enough to contain the terminating zero element as
              The timeout argument is meant to be in seconds now.
              (real_deactivate_quickly): Implement.
              * src/NetworkManager.conf: Allow root to own 
              "org.freedesktop.NetworkManager.PPP", deny it for everybody
              * libnm-util/nm-setting-umts.c: Network type and band properties
              * are ints,
              (not unsigned ints).
              * libnm-util/nm-setting-serial.c (nm_setting_serial_class_init):
              * Fix a 
              small issue with parity bounds - capital letters have lower
      ascii codes
              than lower case letters.
              * libnm-util/nm-connection.c (register_default_settings):
              * Register serial
              and umts settings.
      2007-11-22  Tambet Ingo  <tambet@gmail.com>
              Remove the "index" property from devices as not all device types
      have this.
              * include/NetworkManager.h (NM_DBUS_PATH_DEVICE): Remove.
              * src/nm-hal-manager.c (nm_get_device_index_from_hal): Remove.
              (wired_device_creator): Get the device interface from hal to
      create the device.
              (wireless_device_creator): Ditto.
              * src/nm-device.c (nm_device_init): Remove the index member.
              (constructor): Remove the checks for index property, make
      interface property
              a require constructor property.
              Use the HAL udi for DBus path for devices.
              (nm_device_get_index): Remove.
              (set_property): Remove index handling.
              (get_property): Ditto.
              (nm_device_get_dbus_path): Remove.
              * src/nm-device-interface.c (nm_device_interface_init): Remove
              * the index
              * src/nm-device-802-3-ethernet.c
              * (nm_device_802_3_ethernet_link_activated):
              Access the device index through it's interface.
              (nm_device_802_3_ethernet_link_deactivated): Ditto.
              (nm_device_802_3_ethernet_new): Remove the useless argument
      test_dev. Remove
              index argument. Add interface argument.
              * src/nm-device-802-11-wireless.c
              * (nm_device_802_11_wireless_new): Remove
              the useless test_dev argument. Remove index argument. Add
      interface arugment.
              * src/NetworkManagerSystem.c
              * (nm_system_device_set_from_ip4_config): Get the
              device index through interface.
              (nm_system_set_mtu): Ditto.
              * introspection/nm-device.xml: Remove the "Index" property.
      2007-11-21  Tambet Ingo  <tambet@gmail.com>
              * src/nm-serial-device.c: 
              * src/nm-serial-device.c: 
              * src/nm-umts-device.c:
              * src/nm-umts-device.h: Implement.
              * src/nm-hal-manager.c (nm_get_device_driver_name):
              * libhal_free_string the string 
              allocated by libhal.
              (modem_device_creator): Implement.
              (register_built_in_creators): Register the modem creator.
              * src/nm-device-802-11-wireless.c
              * (nm_device_802_11_wireless_new): 
              Remove the unused test_dev argument.
              * src/nm-device-802-3-ethernet.c (nm_device_802_3_ethernet_new):
              * Ditto.
              * src/Makefile.am: Add new files to build.
              Link in ppp-manager.
              * libnm-util/nm-setting-umts.c: 
              * libnm-util/nm-setting-umts.h: 
              * libnm-util/nm-setting-serial.c: 
              * libnm-util/nm-setting-serial.h: Implement.
              * libnm-util/Makefile.am: Add new files to build.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3116 4912f4e0-d625-0410-9fb7-b9a5a253dbdc