smbstatus: add a notifies dictionary
authorJule Anger <janger@samba.org>
Mon, 1 Aug 2022 09:19:37 +0000 (11:19 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Aug 2022 12:56:29 +0000 (12:56 +0000)
commit8154df9d1f3b4b49799fc191a9a3c04d704f3d1a
tree12be9b3804f632e1038fee35ebd21bc412319cab
parentfed1569f03cb2e8d5cea81074c3e076badbe51a0
smbstatus: add a notifies dictionary

Adds an empty json dictionary under the key "notifies" and adds foreach
notify a dictionary with information to the notify dictionary. Uses the
pid as key.

Only print to stdout, if json_output is not set.

Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/status.c
source3/utils/status_json.c
source3/utils/status_json.h
source3/utils/status_json_dummy.c