NetworkManager/src/devices/bluetooth
Thomas Haller e1c7a2b5d0 all: don't use gchar/gshort/gint/glong but C types
We commonly don't use the glib typedefs for char/short/int/long,
but their C types directly.

    $ git grep '\<g\(char\|short\|int\|long\|float\|double\)\>' | wc -l
    587
    $ git grep '\<\(char\|short\|int\|long\|float\|double\)\>' | wc -l
    21114

One could argue that using the glib typedefs is preferable in
public API (of our glib based libnm library) or where it clearly
is related to glib, like during

  g_object_set (obj, PROPERTY, (gint) value, NULL);

However, that argument does not seem strong, because in practice we don't
follow that argument today, and seldomly use the glib typedefs.
Also, the style guide for this would be hard to formalize, because
"using them where clearly related to a glib" is a very loose suggestion.

Also note that glib typedefs will always just be typedefs of the
underlying C types. There is no danger of glib changing the meaning
of these typedefs (because that would be a major API break of glib).

A simple style guide is instead: don't use these typedefs.

No manual actions, I only ran the bash script:

  FILES=($(git ls-files '*.[hc]'))
  sed -i \
      -e 's/\<g\(char\|short\|int\|long\|float\|double\)\>\( [^ ]\)/\1\2/g' \
      -e 's/\<g\(char\|short\|int\|long\|float\|double\)\>  /\1   /g' \
      -e 's/\<g\(char\|short\|int\|long\|float\|double\)\>/\1/g' \
      "${FILES[@]}"
2018-07-11 12:02:06 +02:00
..
meson.build meson: run the check-export.sh in test phase 2018-06-28 20:38:52 +02:00
nm-bluez-common.h bluetooth: expose known HCI adapters to devices 2017-06-01 11:28:57 +02:00
nm-bluez-device.c all: use the elvis operator wherever possible 2018-05-10 14:36:58 +02:00
nm-bluez-device.h bluetooth: drop unused function declaration 2017-09-18 18:56:50 +02:00
nm-bluez-manager.c all: don't use gchar/gshort/gint/glong but C types 2018-07-11 12:02:06 +02:00
nm-bluez4-adapter.c all: include "nm-utils/nm-hash-utils.h" by default 2017-11-16 11:49:51 +01:00
nm-bluez4-adapter.h src/devices: use macros for property and signal names 2017-09-18 15:40:31 +02:00
nm-bluez4-manager.c src/devices: use macros for property and signal names 2017-09-18 15:40:31 +02:00
nm-bluez4-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bluez5-dun.c core: use nm_close() 2017-10-19 15:49:58 +02:00
nm-bluez5-dun.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-bluez5-manager.c all: don't use gchar/gshort/gint/glong but C types 2018-07-11 12:02:06 +02:00
nm-bluez5-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bt-error.c all: use NM_CACHED_QUARK_FCN() to define cached quarks 2017-02-10 14:33:52 +01:00
nm-bt-error.h bluez: split out errors 2014-10-13 14:27:33 +02:00
nm-device-bt.c wwan: ensure the route parameters are set on IPv6 only configuration 2018-06-13 16:56:51 +02:00
nm-device-bt.h modem: add define for ModemManager D-Bus path 2017-05-12 17:29:33 +02:00