- split up proto.h into headers with public or private prototypes.
Public prototypes can be marked with _PUBLIC_ in the source
+ - get rid of include/structs.h
+- install Samba-specific headers in $INCLUDEDIR/samba-4.0. talloc.h, tdb.h and
+ ldb.h belong in $INCLUDEDIR
- never install -rpath binaries / libraries, always relink before install
- keep files without -rpath in bin/install
- init functions may be called more then once as different libraries
-###########################################################
-### SMB Build System ###
-### - config.mk parsing functions ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Released under the GNU GPL ###
-###########################################################
+# Samba Build System
+# - config.mk parsing functions
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Copyright (C) Jelmer Vernooij 2005
+# Released under the GNU GPL
+#
package smb_build::config_mk;
use smb_build::input;
-#
# Environment class
#
# Samba Build Environment
-###########################################################
-### SMB Build System ###
-### - the input checking functions ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Copyright (C) Jelmer Vernooij 2004 ###
-### Released under the GNU GPL ###
-###########################################################
+# Samba Build System
+# - the input checking functions
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Copyright (C) Jelmer Vernooij 2004
+# Released under the GNU GPL
use strict;
package smb_build::input;
-###########################################################
-### SMB Build System ###
-### - the main program ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Copyright (C) Jelmer Vernooij 2005
-### Released under the GNU GPL ###
-###########################################################
+# Samba Build System
+# - the main program
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Copyright (C) Jelmer Vernooij 2005
+# Released under the GNU GPL
use smb_build::makefile;
use smb_build::smb_build_h;
-###########################################################
-### SMB Build System ###
-### - create output for Makefile ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Copyright (C) Jelmer Vernooij 2005 ###
-### Released under the GNU GPL ###
-###########################################################
+# Samba Build System
+# - create output for Makefile
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Copyright (C) Jelmer Vernooij 2005
+# Released under the GNU GPL
package smb_build::makefile;
use smb_build::env;
-###########################################################
-### SMB Build System ###
-### - the output generating functions ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Copyright (C) Jelmer Vernooij 2004 ###
-### Released under the GNU GPL ###
-###########################################################
+# SMB Build System
+# - the output generating functions
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Copyright (C) Jelmer Vernooij 2004
+# Released under the GNU GPL
package output;
use strict;
-###########################################################
-### SMB Build System ###
-### - create output for smb_build.h ###
-### ###
-### Copyright (C) Stefan (metze) Metzmacher 2004 ###
-### Released under the GNU GPL ###
-###########################################################
+# SMB Build System
+# - create output for smb_build.h
+#
+# Copyright (C) Stefan (metze) Metzmacher 2004
+# Released under the GNU GPL
package smb_build_h;
use strict;
#include "smb_interfaces.h"
#include "ntvfs/ntvfs.h"
#include "cli_context.h"
-#include "lib/com/com.h"
#include "auth/credentials/credentials.h"
/***** automatically generated prototypes *****/
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
-#ifndef UINT16_MAX
-#define UINT16_MAX 65535
-#endif
-
#endif /* _INCLUDES_H */
#define strlower(s) strlower_m(s)
#define strupper(s) strupper_m(s)
-/* the addition of the DEVELOPER checks in safe_strcpy means we must
- * update a lot of code. To make this a little easier here are some
- * functions that provide the lengths with less pain */
-#define pstrcpy_base(dest, src, pstring_base) \
- safe_strcpy(dest, src, sizeof(pstring)-PTR_DIFF(dest,pstring_base)-1)
-
-#define push_pstring_base(dest, src, pstring_base) \
- push_ascii(dest, src, sizeof(pstring)-PTR_DIFF(dest,pstring_base)-1, STR_TERMINATE)
-
#endif
struct smb2_ioctl;
struct smb2_flush;
struct smb2_handle;
+
+struct com_context;
+struct IUnknown;
+struct IUnknown_vtable;
#ifndef _DCOM_H /* _DCOM_H */
#define _DCOM_H
+#include "lib/com/com.h"
+
struct dcom_client_context {
struct cli_credentials *credentials;
struct dcom_object_exporter {
#include "includes.h"
#include "dlinklist.h"
+#include "lib/com/com.h"
/* Specific implementation of one or more interfaces */
struct com_class
uint{8,16,32,64}_t
int{8,16,32,64}_t
+Constants:
+PATH_NAME_MAX
+UINT16_MAX
+
Prerequisites:
memset (for bzero)
syslog (for vsyslog)
#define HOST_NAME_MAX 64
#endif
+#ifndef UINT16_MAX
+#define UINT16_MAX 65535
+#endif
+
#endif
MAJOR_VERSION = 0
MINOR_VERSION = 0
RELEASE_VERSION = 1
-ADD_OBJ_FILES = \
- cldap/cldap.o
+ADD_OBJ_FILES = cldap/cldap.o
+PUBLIC_HEADERS = cldap/cldap.h
NOPROTO=YES
REQUIRED_SUBSYSTEMS = LIBCLI_LDAP