Skip to content

Commit

Permalink
lib/messaging: Move messages_dgm out of source3
Browse files Browse the repository at this point in the history
... so CTDB can also use it.

Signed-off-by: Amitay Isaacs <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
  • Loading branch information
amitay authored and Amitay Isaacs committed May 6, 2020
1 parent 8d22b9e commit 93408f6
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "system/dir.h"
#include "system/select.h"
#include "lib/util/debug.h"
#include "lib/messages_dgm.h"
#include "messages_dgm.h"
#include "lib/util/genrand.h"
#include "lib/util/dlinklist.h"
#include "lib/pthreadpool/pthreadpool_tevent.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions lib/messaging/wscript_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python

bld.SAMBA_LIBRARY('messages_dgm',
source='''
messages_dgm.c
messages_dgm_ref.c
''',
deps='''
talloc
samba-debug
PTHREADPOOL
msghdr
genrand
samba-util
''',
private_library=True)
4 changes: 2 additions & 2 deletions source3/lib/messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
#include "messages.h"
#include "lib/util/tevent_unix.h"
#include "lib/background.h"
#include "lib/messages_dgm.h"
#include "lib/messaging/messages_dgm.h"
#include "lib/util/iov_buf.h"
#include "lib/util/server_id_db.h"
#include "lib/messages_dgm_ref.h"
#include "lib/messaging/messages_dgm_ref.h"
#include "lib/messages_ctdb.h"
#include "lib/messages_ctdb_ref.h"
#include "lib/messages_util.h"
Expand Down
2 changes: 1 addition & 1 deletion source3/lib/serverid.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "lib/param/param.h"
#include "ctdbd_conn.h"
#include "lib/messages_ctdb.h"
#include "lib/messages_dgm.h"
#include "lib/messaging/messages_dgm.h"

static bool serverid_exists_local(const struct server_id *id)
{
Expand Down
2 changes: 1 addition & 1 deletion source3/lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "ctdbd_conn.h"
#include "../lib/util/util_pw.h"
#include "messages.h"
#include "messages_dgm.h"
#include "lib/messaging/messages_dgm.h"
#include "libcli/security/security.h"
#include "serverid.h"
#include "lib/util/sys_rw.h"
Expand Down
2 changes: 1 addition & 1 deletion source3/lib/util_procid.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "util_procid.h"
#include "lib/util/debug.h"
#include "lib/messages_dgm.h"
#include "lib/messaging/messages_dgm.h"

pid_t procid_to_pid(const struct server_id *proc)
{
Expand Down
15 changes: 0 additions & 15 deletions source3/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -360,21 +360,6 @@ bld.SAMBA3_SUBSYSTEM('TDB_LIB',
samba-cluster-support
''')

bld.SAMBA3_LIBRARY('messages_dgm',
source='''
lib/messages_dgm.c
lib/messages_dgm_ref.c
''',
deps='''
talloc
samba-debug
PTHREADPOOL
msghdr
genrand
samba-util
''',
private_library=True)

bld.SAMBA3_LIBRARY('messages_util',
source='''lib/messages_util.c''',
deps='samba-util',
Expand Down
4 changes: 2 additions & 2 deletions source4/lib/messaging/messaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include "lib/param/param.h"
#include "lib/util/server_id_db.h"
#include "lib/util/talloc_report_printf.h"
#include "../source3/lib/messages_dgm.h"
#include "../source3/lib/messages_dgm_ref.h"
#include "lib/messaging/messages_dgm.h"
#include "lib/messaging/messages_dgm_ref.h"
#include "../source3/lib/messages_util.h"
#include <tdb.h>

Expand Down
4 changes: 2 additions & 2 deletions source4/lib/messaging/messaging_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include "includes.h"
#include "messaging/messaging.h"
#include "messaging/irpc.h"
#include "../source3/lib/messages_dgm.h"
#include "../source3/lib/messages_dgm_ref.h"
#include "lib/messaging/messages_dgm.h"
#include "lib/messaging/messages_dgm_ref.h"
#include "../source3/lib/messages_util.h"
#include "messaging/messaging_internal.h"
#include "lib/util/server_id_db.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/smbd/process_standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "ldb_wrap.h"
#include "lib/messaging/messaging.h"
#include "lib/util/debug.h"
#include "source3/lib/messages_dgm.h"
#include "lib/messaging/messages_dgm.h"
#include "lib/util/util_process.h"

static unsigned connections_active = 0;
Expand Down
1 change: 1 addition & 0 deletions wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ bld.RECURSE('lib/ldb')
bld.RECURSE('lib/param')
bld.RECURSE('lib/printer_driver')
bld.RECURSE('lib/audit_logging')
bld.RECURSE('lib/messaging')
bld.RECURSE('dynconfig')
bld.RECURSE('lib/util/charset')
bld.RECURSE('python')
Expand Down

0 comments on commit 93408f6

Please sign in to comment.