summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-30 23:29:37 +0100
committerVolker Lendecke <vl@samba.org>2009-01-31 11:09:39 +0100
commitb99859b948f31dbe474b6ce0c6cab601e7e7bc56 (patch)
tree9588d6aa6931719e08418a8b6f6691369d614e7c /source3
parentea157f495fec9906736ed3c79a84d9b71ae6ded3 (diff)
downloadsamba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.tar.gz
samba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.tar.bz2
samba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.zip
Make is_andx_req non-static
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/libsmb/async_smb.c26
-rw-r--r--source3/libsmb/clientgen.c25
3 files changed, 26 insertions, 26 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index d30eb09f6a..c10db31d2a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2472,6 +2472,7 @@ struct async_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
NTSTATUS cli_echo_recv(struct async_req *req);
NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data);
bool cli_ucs2(struct cli_state *cli);
+bool is_andx_req(uint8_t cmd);
/* The following definitions come from libsmb/clierror.c */
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index a4bbe6d79d..18e5a71ee2 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -152,32 +152,6 @@ bool cli_in_chain(struct cli_state *cli)
}
/**
- * Is the SMB command able to hold an AND_X successor
- * @param[in] cmd The SMB command in question
- * @retval Can we add a chained request after "cmd"?
- */
-
-static bool is_andx_req(uint8_t cmd)
-{
- switch (cmd) {
- case SMBtconX:
- case SMBlockingX:
- case SMBopenX:
- case SMBreadX:
- case SMBwriteX:
- case SMBsesssetupX:
- case SMBulogoffX:
- case SMBntcreateX:
- return true;
- break;
- default:
- break;
- }
-
- return false;
-}
-
-/**
* @brief Find the smb_cmd offset of the last command pushed
* @param[in] buf The buffer we're building up
* @retval Where can we put our next andx cmd?
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index d841bcff8d..a41aa11f7a 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -775,3 +775,28 @@ NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data)
TALLOC_FREE(frame);
return status;
}
+
+/**
+ * Is the SMB command able to hold an AND_X successor
+ * @param[in] cmd The SMB command in question
+ * @retval Can we add a chained request after "cmd"?
+ */
+bool is_andx_req(uint8_t cmd)
+{
+ switch (cmd) {
+ case SMBtconX:
+ case SMBlockingX:
+ case SMBopenX:
+ case SMBreadX:
+ case SMBwriteX:
+ case SMBsesssetupX:
+ case SMBulogoffX:
+ case SMBntcreateX:
+ return true;
+ break;
+ default:
+ break;
+ }
+
+ return false;
+}