summaryrefslogtreecommitdiffstats
path: root/source3/client
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2013-07-05 11:33:55 +0200
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:26 +0100
commitb9b5bc433d07376ae0bd96de3704162c67684734 (patch)
treec634486a08e4fc750ec708839c55c49b6932d878 /source3/client
parenta896f046fecde4d6601d4789ad2a7057a1d0c8da (diff)
downloadsamba-b9b5bc433d07376ae0bd96de3704162c67684734.tar.gz
samba-b9b5bc433d07376ae0bd96de3704162c67684734.tar.xz
samba-b9b5bc433d07376ae0bd96de3704162c67684734.zip
clitar.c: add doc, remove _t suffix in enum name
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c43
1 files changed, 28 insertions, 15 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 04692c6bcb5..78a6e3ed7eb 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -28,7 +28,7 @@
/* XXX: used in client.c, we have to export it for now */
char tar_type = 0;
-enum tar_type_t {
+enum tar_type {
TAR_INCLUDE, /* I flag, default */
TAR_INCLUDE_FILE, /* F flag */
TAR_EXLUDE, /* X flag */
@@ -41,7 +41,7 @@ enum {
struct tar {
/* include, include from file, exclude */
- enum tar_type_t type;
+ enum tar_type type;
/* size in bytes of a block in the tar file */
int blocksize;
@@ -76,10 +76,12 @@ static struct tar tar_ctx = {
};
-/****************************************************************************
-Blocksize command
-***************************************************************************/
-
+/**
+ * cmd_block - interactive command to change tar blocksize
+ *
+ * Read a size from the client command line and update the current
+ * blocksize.
+ */
int cmd_block(void)
{
/* XXX: from client.c */
@@ -105,10 +107,12 @@ int cmd_block(void)
return 0;
}
-/****************************************************************************
-command to set incremental / reset mode
-***************************************************************************/
-
+/**
+ * cmd_tarmode - interactive command to change tar behaviour
+ *
+ * Read one or more modes from the client command line and update the
+ * current tar mode.
+ */
int cmd_tarmode(void)
{
const extern char *cmd_ptr;
@@ -158,6 +162,14 @@ int cmd_tarmode(void)
return 0;
}
+/**
+ * set_remote_attr - set DOS attributes of a remote file
+ * @filename: path to the file name
+ * @new_attr: attribute bit mask to use
+ * @mode: one of ATTR_SET or ATTR_UNSET
+ *
+ * Update the file attributes with the one provided.
+ */
static void set_remote_attr(char *filename, uint16 new_attr, int mode)
{
extern struct cli_state *cli;
@@ -181,11 +193,12 @@ static void set_remote_attr(char *filename, uint16 new_attr, int mode)
}
}
-
-/****************************************************************************
-Feeble attrib command
-***************************************************************************/
-
+/**
+ * cmd_setmode - interactive command to set DOS attributes
+ *
+ * Read a filename and mode from the client command line and update
+ * the file DOS attributes.
+ */
int cmd_setmode(void)
{
const extern char *cmd_ptr;