[evolution-data-server] CamelIMAPXServer: Give IDLE state enum a proper type definition.



commit 889f1356fd540dd5c517f424ab177d7a3cf6583a
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jan 14 12:00:09 2014 -0500

    CamelIMAPXServer: Give IDLE state enum a proper type definition.

 camel/providers/imapx/camel-imapx-server.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 1e60781..c175b69 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -284,7 +284,7 @@ static const CamelIMAPXUntaggedRespHandlerDesc _untagged_descr[] = {
        {CAMEL_IMAPX_UNTAGGED_VANISHED, imapx_untagged_vanished, NULL, TRUE},
 };
 
-enum _idle_state {
+typedef enum {
        IMAPX_IDLE_OFF,
        IMAPX_IDLE_PENDING,     /* Queue is idle; waiting to send IDLE command
                                   soon if nothing more interesting happens */
@@ -292,7 +292,7 @@ enum _idle_state {
        IMAPX_IDLE_STARTED,     /* IDLE continuation received; IDLE active */
        IMAPX_IDLE_CANCEL,      /* Cancelled from ISSUED state; need to send
                                   DONE as soon as we receive continuation */
-};
+} CamelIMAPXIdleState;
 
 #define IMAPX_IDLE_DWELL_TIME  2 /* Number of seconds to remain in PENDING
                                     state waiting for other commands to be
@@ -360,7 +360,7 @@ struct _CamelIMAPXServerPrivate {
        GMainLoop *idle_main_loop;
        GMainContext *idle_main_context;
        GSource *idle_pending;
-       enum _idle_state idle_state;
+       CamelIMAPXIdleState idle_state;
 };
 
 enum {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]