mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:libsmb: remove unused cli_state_seqnum infrastructure
metze Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jun 10 20:37:54 CEST 2011 on sn-devel-104
This commit is contained in:
parent
f0ba1afe5f
commit
fdfb5e95fe
@ -46,13 +46,6 @@ struct print_job_info {
|
||||
time_t t;
|
||||
};
|
||||
|
||||
struct cli_state_seqnum {
|
||||
struct cli_state_seqnum *prev, *next;
|
||||
uint16_t mid;
|
||||
uint32_t seqnum;
|
||||
bool persistent;
|
||||
};
|
||||
|
||||
struct cli_state {
|
||||
/**
|
||||
* A list of subsidiary connections for DFS.
|
||||
@ -103,7 +96,6 @@ struct cli_state {
|
||||
size_t max_xmit;
|
||||
size_t max_mux;
|
||||
char *outbuf;
|
||||
struct cli_state_seqnum *seqnum;
|
||||
char *inbuf;
|
||||
unsigned int bufsize;
|
||||
int initialised;
|
||||
|
@ -68,37 +68,6 @@ bool cli_ucs2(struct cli_state *cli)
|
||||
return ((cli->capabilities & CAP_UNICODE) != 0);
|
||||
}
|
||||
|
||||
bool cli_state_seqnum_persistent(struct cli_state *cli,
|
||||
uint16_t mid)
|
||||
{
|
||||
struct cli_state_seqnum *c;
|
||||
|
||||
for (c = cli->seqnum; c; c = c->next) {
|
||||
if (c->mid == mid) {
|
||||
c->persistent = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool cli_state_seqnum_remove(struct cli_state *cli,
|
||||
uint16_t mid)
|
||||
{
|
||||
struct cli_state_seqnum *c;
|
||||
|
||||
for (c = cli->seqnum; c; c = c->next) {
|
||||
if (c->mid == mid) {
|
||||
DLIST_REMOVE(cli->seqnum, c);
|
||||
TALLOC_FREE(c);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Setup basics in a outgoing packet.
|
||||
****************************************************************************/
|
||||
@ -233,7 +202,6 @@ struct cli_state *cli_initialise_ex(int signing_state)
|
||||
cli->bufsize = CLI_BUFFER_SIZE+4;
|
||||
cli->max_xmit = cli->bufsize;
|
||||
cli->outbuf = (char *)SMB_MALLOC(cli->bufsize+SAFETY_MARGIN);
|
||||
cli->seqnum = 0;
|
||||
cli->inbuf = (char *)SMB_MALLOC(cli->bufsize+SAFETY_MARGIN);
|
||||
cli->oplock_handler = cli_oplock_ack;
|
||||
cli->case_sensitive = false;
|
||||
|
@ -154,10 +154,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
|
||||
int cli_set_message(char *buf,int num_words,int num_bytes,bool zero);
|
||||
unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout);
|
||||
void cli_set_port(struct cli_state *cli, int port);
|
||||
bool cli_state_seqnum_persistent(struct cli_state *cli,
|
||||
uint16_t mid);
|
||||
bool cli_state_seqnum_remove(struct cli_state *cli,
|
||||
uint16_t mid);
|
||||
void cli_setup_packet_buf(struct cli_state *cli, char *buf);
|
||||
NTSTATUS cli_set_domain(struct cli_state *cli, const char *domain);
|
||||
NTSTATUS cli_set_username(struct cli_state *cli, const char *username);
|
||||
|
Loading…
Reference in New Issue
Block a user