[PR PATCH] Make several libraries private.
jelmer at samba.org
Mon Jan 4 01:27:38 UTC 2016
On Wed, Dec 30, 2015 at 09:19:31PM +0100, Stefan Metzmacher wrote:
> Hi Jelmer,
> > lib/util/time_basic.h | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> > diff --git a/lib/util/time_basic.h b/lib/util/time_basic.h
> >index d485399..87e6303 100644
> >--- a/lib/util/time_basic.h
> >+++ b/lib/util/time_basic.h
> >@@ -24,8 +24,7 @@
> > #ifndef _SAMBA_TIME_BASIC_H_
> > #define _SAMBA_TIME_BASIC_H_
> >-#include "replace.h"
> >-#include "system/time.h"
> >+#include <system/time.h>
> system/time.h is also from libreplace, if you want to avoid it
> we may just add a forward declaration for "struct timeval;"
> and don't include any header.
> >From 0a0d14e54ec11a2b49eac916221da1440da19ed2 Mon Sep 17 00:00:00 2001
> >From: Jelmer Vernooij <jelmer at jelmer.uk>
> >Date: Mon, 28 Dec 2015 22:21:11 +0000
> >Subject: [PATCH 11/11] Add a new header file for functions in lib/util/util.c.
> >This allows public headers to not include samba_util.h, but rather
> >specific header files under lib/util.
> This commit contains more than adding lib/util/util.h,
> also as there're only dump_data_* functions in there,
> should we name it dump_data.h?
> I guess some of it belongs to "Make libcli-smb-raw private, for now."
> and some is completely unrelated and should be in separate commits.
> Why are you changing bld.SAMBA_LIBRARY('errors') from a private library
> into a public one?
It is actually public, since its headers are installed. Other
libraries use it and expose parts of it in (e.g. the NTSTATUS type).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 473 bytes
Desc: not available
More information about the samba-technical