Changeset 5ebff60 for protocols/ft.h


Ignore:
Timestamp:
2015-02-20T22:50:54Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0b9daac, 3d45471, 7733b8c
Parents:
af359b4
git-author:
Indent <please@…> (19-02-15 05:47:20)
git-committer:
dequis <dx@…> (20-02-15 22:50:54)
Message:

Reindent everything to K&R style with tabs

Used uncrustify, with the configuration file in ./doc/uncrustify.cfg

Commit author set to "Indent <please@…>" so that it's easier to
skip while doing git blame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/ft.h

    raf359b4 r5ebff60  
    3535
    3636typedef enum {
    37         FT_STATUS_LISTENING     = 1,
    38         FT_STATUS_TRANSFERRING  = 2,
    39         FT_STATUS_FINISHED      = 4,
    40         FT_STATUS_CANCELED      = 8,
    41         FT_STATUS_CONNECTING    = 16
     37        FT_STATUS_LISTENING     = 1,
     38        FT_STATUS_TRANSFERRING  = 2,
     39        FT_STATUS_FINISHED      = 4,
     40        FT_STATUS_CANCELED      = 8,
     41        FT_STATUS_CONNECTING    = 16
    4242} file_status_t;
    4343
     
    7575        /*
    7676         * The current status of this file transfer.
    77          */ 
     77         */
    7878        file_status_t status;
    79        
     79
    8080        /*
    8181         * file size
    8282         */
    8383        size_t file_size;
    84        
     84
    8585        /*
    8686         * Number of bytes that have been successfully transferred.
     
    108108        gpointer data;
    109109        struct im_connection *ic;
    110        
     110
    111111        /*
    112112         * Private data.
    113113         */
    114114        gpointer priv;
    115        
     115
    116116        /*
    117117         * If set, called after succesful connection setup.
    118118         */
    119         void (*accept) ( struct file_transfer *file );
    120        
     119        void (*accept)(struct file_transfer *file);
     120
    121121        /*
    122122         * If set, called when the transfer is canceled or finished.
     
    124124         *
    125125         */
    126         void (*free) ( struct file_transfer *file );
    127        
     126        void (*free)(struct file_transfer *file);
     127
    128128        /*
    129129         * If set, called when the transfer is finished and successful.
    130130         */
    131         void (*finished) ( struct file_transfer *file );
    132        
     131        void (*finished)(struct file_transfer *file);
     132
    133133        /*
    134134         * If set, called when the transfer is canceled.
     
    136136         *  a call to imcb_file_canceled )
    137137         */
    138         void (*canceled) ( struct file_transfer *file, char *reason );
    139        
     138        void (*canceled)(struct file_transfer *file, char *reason);
     139
    140140        /*
    141141         * called by the sending side to indicate that it is writable.
    142          * The callee should check if data is available and call the 
     142         * The callee should check if data is available and call the
    143143         * function(as seen below) if that is the case.
    144144         */
    145         gboolean (*write_request) ( struct file_transfer *file );
     145        gboolean (*write_request)(struct file_transfer *file);
    146146
    147147        /*
     
    151151         * avoids buffering.
    152152         */
    153         gboolean (*write) (struct file_transfer *file, char *buffer, unsigned int len );
     153        gboolean (*write)(struct file_transfer *file, char *buffer, unsigned int len);
    154154
    155155        /* The send buffer associated with this transfer.
     
    163163 * This starts a file transfer from bitlbee to the user.
    164164 */
    165 file_transfer_t *imcb_file_send_start( struct im_connection *ic, char *user_nick, char *file_name, size_t file_size );
     165file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *user_nick, char *file_name, size_t file_size);
    166166
    167167/*
     
    169169 * the canceled() and free() callbacks given in file will be called by this function.
    170170 */
    171 void imcb_file_canceled( struct im_connection *ic, file_transfer_t *file, char *reason );
     171void imcb_file_canceled(struct im_connection *ic, file_transfer_t *file, char *reason);
    172172
    173 gboolean imcb_file_recv_start( struct im_connection *ic, file_transfer_t *ft );
     173gboolean imcb_file_recv_start(struct im_connection *ic, file_transfer_t *ft);
    174174
    175 void imcb_file_finished( struct im_connection *ic, file_transfer_t *file );
     175void imcb_file_finished(struct im_connection *ic, file_transfer_t *file);
    176176#endif
Note: See TracChangeset for help on using the changeset viewer.