diff options
author | Thomas Haller <thaller@redhat.com> | 2017-03-09 13:02:20 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-03-09 14:12:35 +0100 |
commit | 831286df3001e6b76b7baeb10a7723841ab8b35e (patch) | |
tree | b042134ef04427c961379f298512e4200c620901 /docs | |
parent | afd1bde36683fd73516f267dd98160c1b54f4ad7 (diff) |
include: use double-quotes to include our own headers
In practice, this should only matter when there are multiple
header files with the same name. That is something we try
to avoid already, by giving headers a distinct name.
When building NetworkManager itself, we clearly want to use
double-quotes for including our own headers.
But we also want to do that in our public headers. For example:
./a.c
#include <stdio.h>
#include <nm-1.h>
void main() {
printf ("INCLUDED %s/nm-2.h\n", SYMB);
}
./1/nm-1.h
#include <nm-2.h>
./1/nm-2.h
#define SYMB "1"
./2/nm-2.h
#define SYMB "2"
$ cc -I./2 -I./1 ./a.c
$ ./a.out
INCLUDED 2/nm-2.h
Exceptions to this are
- headers in "shared/nm-utils" that include <NetworkManager.h>. These
headers are copied into projects and hence used like headers owned by
those projects.
- examples/C
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libnm-glib/libnm-glib.types | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/docs/libnm-glib/libnm-glib.types b/docs/libnm-glib/libnm-glib.types index 01ab1ce63..1cb7d4062 100644 --- a/docs/libnm-glib/libnm-glib.types +++ b/docs/libnm-glib/libnm-glib.types @@ -1,29 +1,29 @@ -#include <nm-client.h> -#include <nm-object.h> -#include <nm-device.h> -#include <nm-device-ethernet.h> -#include <nm-device-wifi.h> -#include <nm-device-modem.h> -#include <nm-device-bt.h> -#include <nm-device-wimax.h> -#include <nm-device-olpc-mesh.h> -#include <nm-device-adsl.h> -#include <nm-device-infiniband.h> -#include <nm-device-bond.h> -#include <nm-device-bridge.h> -#include <nm-device-team.h> -#include <nm-device-generic.h> -#include <nm-device-vlan.h> -#include <nm-access-point.h> -#include <nm-ip4-config.h> -#include <nm-ip6-config.h> -#include <nm-active-connection.h> -#include <nm-dhcp4-config.h> -#include <nm-dhcp6-config.h> -#include <nm-remote-settings.h> -#include <nm-remote-connection.h> -#include <nm-secret-agent.h> -#include <nm-vpn-connection.h> +#include "nm-client.h" +#include "nm-object.h" +#include "nm-device.h" +#include "nm-device-ethernet.h" +#include "nm-device-wifi.h" +#include "nm-device-modem.h" +#include "nm-device-bt.h" +#include "nm-device-wimax.h" +#include "nm-device-olpc-mesh.h" +#include "nm-device-adsl.h" +#include "nm-device-infiniband.h" +#include "nm-device-bond.h" +#include "nm-device-bridge.h" +#include "nm-device-team.h" +#include "nm-device-generic.h" +#include "nm-device-vlan.h" +#include "nm-access-point.h" +#include "nm-ip4-config.h" +#include "nm-ip6-config.h" +#include "nm-active-connection.h" +#include "nm-dhcp4-config.h" +#include "nm-dhcp6-config.h" +#include "nm-remote-settings.h" +#include "nm-remote-connection.h" +#include "nm-secret-agent.h" +#include "nm-vpn-connection.h" nm_client_get_type nm_object_get_type |