commit 2013e50b1c6c1f37a791e72a59ee8e54d23653fb
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sat May 9 17:44:36 2015 +0200

    rename misnamed functions concerning sending imap commands
    
    cmd_submittable() => cmd_sendable()
    cancel_submitted_imap_cmds() => cancel_sent_imap_cmds()
    
    the sequence is exec -> submit -> send.

 src/drv_imap.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index 31fdf28..dcb372d 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -322,7 +322,7 @@ send_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd )
 }
 
 static int
-cmd_submittable( imap_store_t *ctx, struct imap_cmd *cmd )
+cmd_sendable( imap_store_t *ctx, struct imap_cmd *cmd )
 {
        struct imap_cmd *cmdp;
 
@@ -340,7 +340,7 @@ flush_imap_cmds( imap_store_t *ctx )
 {
        struct imap_cmd *cmd;
 
-       if ((cmd = ctx->pending) && cmd_submittable( ctx, cmd )) {
+       if ((cmd = ctx->pending) && cmd_sendable( ctx, cmd )) {
                if (!(ctx->pending = cmd->next))
                        ctx->pending_append = &ctx->pending;
                send_imap_cmd( ctx, cmd );
@@ -360,7 +360,7 @@ cancel_pending_imap_cmds( imap_store_t *ctx )
 }
 
 static void
-cancel_submitted_imap_cmds( imap_store_t *ctx )
+cancel_sent_imap_cmds( imap_store_t *ctx )
 {
        struct imap_cmd *cmd;
 
@@ -379,7 +379,7 @@ submit_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd )
        assert( cmd );
        assert( cmd->param.done );
 
-       if ((ctx->pending && !cmd->param.high_prio) || !cmd_submittable( ctx, 
cmd )) {
+       if ((ctx->pending && !cmd->param.high_prio) || !cmd_sendable( ctx, cmd 
)) {
                if (ctx->pending && cmd->param.high_prio) {
                        cmd->next = ctx->pending;
                        ctx->pending = cmd;
@@ -1425,7 +1425,7 @@ imap_cancel_store( store_t *gctx )
        sasl_dispose( &ctx->sasl );
 #endif
        socket_close( &ctx->conn );
-       cancel_submitted_imap_cmds( ctx );
+       cancel_sent_imap_cmds( ctx );
        cancel_pending_imap_cmds( ctx );
        free_generic_messages( ctx->gen.msgs );
        free_string_list( ctx->gen.boxes );

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to