NetworkManager/examples
Thomas Haller 831286df30 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
2017-03-09 14:12:35 +01:00
..
C include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
dispatcher build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
lua/lgi build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
nm-conf.d example: add example configuration snippet '30-anon.conf' 2017-01-09 14:50:33 +01:00
python examples: add DNS example with python and GObject introspection 2016-12-12 22:06:24 +01:00
ruby build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00
shell build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00