[evolution-data-server] Rename imapx_select() to imapx_maybe_select().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Rename imapx_select() to imapx_maybe_select().
- Date: Thu, 15 Aug 2013 14:05:59 +0000 (UTC)
commit 1d76f651808e34959a9e3f2d1efa928b7bc5a3cb
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Aug 15 10:04:12 2013 -0400
Rename imapx_select() to imapx_maybe_select().
Just for readability, since the function only actually issues a
SELECT command if it deems it necessary given the current state.
camel/camel-imapx-server.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index 6317b55..b28625a 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -525,7 +525,7 @@ enum {
#define SSL_PORT_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3)
#define STARTTLS_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_TLS)
-static void imapx_select (CamelIMAPXServer *is,
+static void imapx_maybe_select (CamelIMAPXServer *is,
CamelIMAPXJob *job,
CamelFolder *folder);
@@ -1177,7 +1177,7 @@ imapx_command_start_next (CamelIMAPXServer *is)
* that triggered it. Then if the SELECT command fails
* we have some destination to propagate the GError to. */
job = camel_imapx_command_get_job (first_ic);
- imapx_select (is, job, first_ic->select);
+ imapx_maybe_select (is, job, first_ic->select);
} else {
GQueue start = G_QUEUE_INIT;
@@ -3588,9 +3588,9 @@ imapx_command_select_done (CamelIMAPXServer *is,
/* Should have a queue lock. TODO Change the way select is written */
static void
-imapx_select (CamelIMAPXServer *is,
- CamelIMAPXJob *job,
- CamelFolder *folder)
+imapx_maybe_select (CamelIMAPXServer *is,
+ CamelIMAPXJob *job,
+ CamelFolder *folder)
{
CamelIMAPXCommand *ic;
CamelFolder *select_folder;
@@ -5690,7 +5690,7 @@ imapx_job_refresh_info_start (CamelIMAPXJob *job,
if (!imapx_stop_idle (is, error))
goto done;
/* This doesn't work -- this is an immediate command, not queued */
- imapx_select (is, folder)
+ imapx_maybe_select (is, folder)
} else {
/* Or maybe just NOOP, unless we're in IDLE in which case do nothing */
if (!imapx_in_idle (is)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]