r3443: the next stage in the include files re-organisation.
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Nov 2004 22:48:25 +0000 (22:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:11 +0000 (13:05 -0500)
commit2e25c71853f8996f73755277e448e7d670810349
tree05135cdde43bd22e92922aa3e50f2b3ec7dc8446
parent8e25117103b0339441bc6328176ed34034005528
r3443: the next stage in the include files re-organisation.

I have created the include/system/ directory, which will contain the
wrappers for the system includes for logical subsystems. So far I have
created include/system/kerberos.h and include/system/network.h, which
contain all the system includes for kerberos code and networking code.
These are the included in subsystems that need kerberos or networking
respectively.

Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C
file, instead each C module includes the include/system/XXX.h file for
the logical system support it needs, and the details are kept isolated
in include/system/

This patch also creates a "struct ipv4_addr" which replaces "struct
in_addr" in our code. That avoids every C file needing to import all
the system networking headers.
46 files changed:
source/auth/auth_domain.c
source/auth/auth_server.c
source/build/m4/rewrite.m4
source/client/mount.cifs.c
source/client/smbmount.c
source/include/ads.h
source/include/includes.h
source/include/interfaces.h
source/include/nameserv.h
source/include/structs.h
source/include/system/README [new file with mode: 0644]
source/include/system/kerberos.h [new file with mode: 0644]
source/include/system/network.h [new file with mode: 0644]
source/ldap_server/ldap_server.c
source/lib/basic.m4
source/lib/basic.mk
source/lib/netif/interface.c [moved from source/lib/interface.c with 86% similarity]
source/lib/netif/netif.c [moved from source/lib/interfaces.c with 97% similarity]
source/lib/netif/netif.h [new file with mode: 0644]
source/lib/replace.c
source/lib/socket/access.c
source/lib/socket/socket_ipv4.c
source/lib/socket/socket_ipv6.c
source/lib/system.c
source/lib/util.c
source/lib/util_sock.c
source/lib/util_strlist.c
source/lib/wins_srv.c
source/libcli/auth/clikrb5.c
source/libcli/auth/gensec_krb5.c
source/libcli/auth/kerberos.c
source/libcli/auth/kerberos_verify.c
source/libcli/cliconnect.c
source/libcli/ldap/ldap.c
source/libcli/namecache.c
source/libcli/namequery.c
source/libcli/namequery_dc.c
source/libcli/nmblib.c
source/libcli/raw/clisocket.c
source/libcli/raw/libcliraw.h
source/libnet/libnet_rpc.c
source/librpc/rpc/dcerpc_util.c
source/rpc_server/dcerpc_sock.c
source/smb_server/smb_server.c
source/torture/rpc/epmapper.c
source/utils/nmblookup.c