From 743f90af57bee9b734d3b49ece3cc261ffbd9e12 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Tue, 14 Feb 2023 02:41:38 +0100 Subject: [PATCH] imap-urlauth: imap-urlauth-worker - Move protocol version definitions to imap-urlauth-worker-common.h. --- src/imap-urlauth/imap-urlauth-worker-client.c | 2 ++ src/imap-urlauth/imap-urlauth-worker-common.h | 3 +++ src/imap-urlauth/imap-urlauth-worker.c | 4 +--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/imap-urlauth/imap-urlauth-worker-client.c b/src/imap-urlauth/imap-urlauth-worker-client.c index d90bef2aba..33b937000f 100644 --- a/src/imap-urlauth/imap-urlauth-worker-client.c +++ b/src/imap-urlauth/imap-urlauth-worker-client.c @@ -11,6 +11,8 @@ #include "eacces-error.h" #include "imap-urlauth-common.h" +#include "imap-urlauth-settings.h" +#include "imap-urlauth-client.h" #include "imap-urlauth-worker-client.h" /* max. length of input lines (URLs) */ diff --git a/src/imap-urlauth/imap-urlauth-worker-common.h b/src/imap-urlauth/imap-urlauth-worker-common.h index 82b640b4c0..e00b86cd9b 100644 --- a/src/imap-urlauth/imap-urlauth-worker-common.h +++ b/src/imap-urlauth/imap-urlauth-worker-common.h @@ -3,4 +3,7 @@ #define IMAP_URLAUTH_WORKER_SOCKET "imap-urlauth-worker" +#define IMAP_URLAUTH_WORKER_PROTOCOL_MAJOR_VERSION 2 +#define IMAP_URLAUTH_WORKER_PROTOCOL_MINOR_VERSION 0 + #endif diff --git a/src/imap-urlauth/imap-urlauth-worker.c b/src/imap-urlauth/imap-urlauth-worker.c index f53ea1e5e9..2ac05bca13 100644 --- a/src/imap-urlauth/imap-urlauth-worker.c +++ b/src/imap-urlauth/imap-urlauth-worker.c @@ -26,6 +26,7 @@ #include "imap-msgpart-url.h" #include "imap-urlauth.h" #include "imap-urlauth-fetch.h" +#include "imap-urlauth-worker-common.h" #include "imap-urlauth-worker-settings.h" #include @@ -40,9 +41,6 @@ #define IS_STANDALONE() \ (getenv(MASTER_IS_PARENT_ENV) == NULL) -#define IMAP_URLAUTH_WORKER_PROTOCOL_MAJOR_VERSION 2 -#define IMAP_URLAUTH_WORKER_PROTOCOL_MINOR_VERSION 0 - struct client { struct client *prev, *next; struct event *event; -- 2.47.3