aboutsummaryrefslogtreecommitdiffstats
path: root/dcc.h
diff options
context:
space:
mode:
authorIndent <please@skip.me>2015-02-19 02:47:20 -0300
committerdequis <dx@dxzone.com.ar>2015-02-20 19:50:54 -0300
commit5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 (patch)
tree9fc0d50cb1f4bc9768d9f00de94eafd876bb55b0 /dcc.h
parentaf359b4316f9d392c6b752495a1b2ed631576ed8 (diff)
Reindent everything to K&R style with tabs
Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
Diffstat (limited to 'dcc.h')
-rw-r--r--dcc.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/dcc.h b/dcc.h
index a0243e27..f5c91e58 100644
--- a/dcc.h
+++ b/dcc.h
@@ -22,7 +22,7 @@
Fifth Floor, Boston, MA 02110-1301 USA
*/
-/*
+/*
* DCC SEND
*
* Historically, DCC means send 1024 Bytes and wait for a 4 byte reply
@@ -38,7 +38,7 @@
* about those DCC ACKs and just send data as you please. This behaviour is
* enabled by default. Note that this also means that packets may be as large
* as the maximum segment size.
- */
+ */
#ifndef _DCC_H
#define _DCC_H
@@ -60,13 +60,13 @@ typedef struct dcc_file_transfer {
* taking place.
*/
int fd;
-
+
/*
* IDs returned by b_input_add for watch_ing over the above socket.
*/
gint watch_in; /* readable */
gint watch_out; /* writable */
-
+
/* the progress watcher cancels any file transfer if nothing happens within DCC_MAX_STALL */
gint progress_timeout;
size_t progress_bytes_last;
@@ -75,31 +75,31 @@ typedef struct dcc_file_transfer {
* The total amount of bytes that have been sent to the irc client.
*/
size_t bytes_sent;
-
+
/*
* Handle the wonderful sadly-not-deprecated ACKs.
*/
guint32 acked;
int acked_len;
-
+
/* imc's handle */
file_transfer_t *ft;
/* if we're receiving, this is the sender's socket address */
struct sockaddr_storage saddr;
- /* set to true if the protocol has finished
+ /* set to true if the protocol has finished
* (i.e. called imcb_file_finished)
*/
int proto_finished;
} dcc_file_transfer_t;
-file_transfer_t *dccs_send_start( struct im_connection *ic, irc_user_t *iu, const char *file_name, size_t file_size );
-void dcc_canceled( file_transfer_t *file, char *reason );
-gboolean dccs_send_write( file_transfer_t *file, char *data, unsigned int data_size );
-file_transfer_t *dcc_request( struct im_connection *ic, char* const* ctcp );
-void dcc_finish( file_transfer_t *file );
-void dcc_close( file_transfer_t *file );
-gboolean dccs_recv_start( file_transfer_t *ft );
+file_transfer_t *dccs_send_start(struct im_connection *ic, irc_user_t *iu, const char *file_name, size_t file_size);
+void dcc_canceled(file_transfer_t *file, char *reason);
+gboolean dccs_send_write(file_transfer_t *file, char *data, unsigned int data_size);
+file_transfer_t *dcc_request(struct im_connection *ic, char* const* ctcp);
+void dcc_finish(file_transfer_t *file);
+void dcc_close(file_transfer_t *file);
+gboolean dccs_recv_start(file_transfer_t *ft);
#endif