mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-11 09:18:38 +02:00
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
|
||
|---|---|---|
| .. | ||
| tests | ||
| libnm-glib-test.c | ||
| libnm-glib-vpn.pc.in | ||
| libnm-glib-vpn.ver | ||
| libnm-glib.pc.in | ||
| libnm-glib.ver | ||
| libnm_glib.c | ||
| libnm_glib.h | ||
| nm-access-point.c | ||
| nm-access-point.h | ||
| nm-active-connection.c | ||
| nm-active-connection.h | ||
| nm-client.c | ||
| nm-client.h | ||
| nm-dbus-helpers-private.h | ||
| nm-dbus-helpers.c | ||
| nm-device-adsl.c | ||
| nm-device-adsl.h | ||
| nm-device-bond.c | ||
| nm-device-bond.h | ||
| nm-device-bridge.c | ||
| nm-device-bridge.h | ||
| nm-device-bt.c | ||
| nm-device-bt.h | ||
| nm-device-ethernet.c | ||
| nm-device-ethernet.h | ||
| nm-device-generic.c | ||
| nm-device-generic.h | ||
| nm-device-infiniband.c | ||
| nm-device-infiniband.h | ||
| nm-device-modem.c | ||
| nm-device-modem.h | ||
| nm-device-olpc-mesh.c | ||
| nm-device-olpc-mesh.h | ||
| nm-device-private.h | ||
| nm-device-team.c | ||
| nm-device-team.h | ||
| nm-device-vlan.c | ||
| nm-device-vlan.h | ||
| nm-device-wifi.c | ||
| nm-device-wifi.h | ||
| nm-device-wimax.c | ||
| nm-device-wimax.h | ||
| nm-device.c | ||
| nm-device.h | ||
| nm-dhcp4-config.c | ||
| nm-dhcp4-config.h | ||
| nm-dhcp6-config.c | ||
| nm-dhcp6-config.h | ||
| nm-ip4-config.c | ||
| nm-ip4-config.h | ||
| nm-ip6-config.c | ||
| nm-ip6-config.h | ||
| nm-object-cache.c | ||
| nm-object-cache.h | ||
| nm-object-private.h | ||
| nm-object.c | ||
| nm-object.h | ||
| nm-remote-connection-private.h | ||
| nm-remote-connection.c | ||
| nm-remote-connection.h | ||
| nm-remote-settings.c | ||
| nm-remote-settings.h | ||
| nm-secret-agent.c | ||
| nm-secret-agent.h | ||
| nm-types-private.h | ||
| nm-types.c | ||
| nm-types.h | ||
| nm-vpn-connection.c | ||
| nm-vpn-connection.h | ||
| nm-vpn-plugin-ui-interface.c | ||
| nm-vpn-plugin-ui-interface.h | ||
| nm-vpn-plugin-utils.c | ||
| nm-vpn-plugin-utils.h | ||
| nm-vpn-plugin.c | ||
| nm-vpn-plugin.h | ||
| nm-wimax-nsp.c | ||
| nm-wimax-nsp.h | ||