summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorShekhar Amlekar <samlekar@in.ibm.com>2013-09-10 11:58:07 +0530
committerJeremy Allison <jra@samba.org>2013-09-10 11:32:46 -0700
commit69470a2efdf36f306292515c1ed596b576e95120 (patch)
tree506a1eb4da01532ef00a832356afea21c136346e /source3/smbd/proto.h
parent340f7f125db0d08ae47620e1c90a3dcd20201487 (diff)
downloadsamba-69470a2efdf36f306292515c1ed596b576e95120.tar.gz
samba-69470a2efdf36f306292515c1ed596b576e95120.tar.bz2
samba-69470a2efdf36f306292515c1ed596b576e95120.zip
s3:smbd/session: Added a routine find_sessions()
this routine builds a list of sessions from a particular remote machine or user. Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 8b6987ec05..54d6da0b4c 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -1001,6 +1001,8 @@ bool session_init(void);
bool session_claim(struct smbXsrv_session *session);
void session_yield(struct smbXsrv_session *session);
int list_sessions(TALLOC_CTX *mem_ctx, struct sessionid **session_list);
+int find_sessions(TALLOC_CTX *mem_ctx, const char *username,
+ const char *machine, struct sessionid **session_list);
/* The following definitions come from smbd/sesssetup.c */