From: Volker Lendecke Date: Tue, 20 Feb 2024 12:04:28 +0000 (+0100) Subject: lib: Give tallocmsg.c its own header X-Git-Tag: tdb-1.4.11~1301 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b1b5d32c54099e4a1c61d0a81ceaab986b62ce52;p=thirdparty%2Fsamba.git lib: Give tallocmsg.c its own header Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/include/proto.h b/source3/include/proto.h index ed45485e654..389bb2fc935 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -222,11 +222,6 @@ bool getgroups_unix_user(TALLOC_CTX *mem_ctx, const char *user, gid_t primary_gid, gid_t **ret_groups, uint32_t *p_ngroups); -/* The following definitions come from lib/tallocmsg.c */ - -void register_msg_pool_usage(TALLOC_CTX *mem_ctx, - struct messaging_context *msg_ctx); - /* The following definitions come from lib/time.c */ uint32_t convert_time_t_to_uint32_t(time_t t); diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 7d3d46960a9..b856a2889b1 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -62,6 +62,7 @@ #include "cluster_support.h" #include "ctdbd_conn.h" #include "ctdb_srvids.h" +#include "source3/lib/tallocmsg.h" #ifdef CLUSTER_SUPPORT #include "ctdb_protocol.h" diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c index af5a90bb434..da05357a4df 100644 --- a/source3/lib/tallocmsg.c +++ b/source3/lib/tallocmsg.c @@ -16,9 +16,11 @@ along with this program. If not, see . */ -#include "includes.h" -#include "messages.h" +#include "replace.h" +#include "source3/include/messages.h" +#include "source3/lib/tallocmsg.h" #include "lib/util/talloc_report_printf.h" +#include "lib/util/debug.h" static bool pool_usage_filter(struct messaging_rec *rec, void *private_data) { diff --git a/source3/lib/tallocmsg.h b/source3/lib/tallocmsg.h new file mode 100644 index 00000000000..9dd31a7c4b3 --- /dev/null +++ b/source3/lib/tallocmsg.h @@ -0,0 +1,29 @@ +/* + * samba -- Unix SMB/CIFS implementation. + * Copyright (C) 2001, 2002 by Martin Pool + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __SOURCE3_LIB_TALLOCMSG_H__ +#define __SOURCE3_LIB_TALLOCMSG_H__ + +#include "replace.h" +#include +struct messaging_context; + +void register_msg_pool_usage( + TALLOC_CTX *mem_ctx, struct messaging_context *msg_ctx); + +#endif