Factorize code, can use ${protocol_state} and ${protocol_name} in query formats.
[apps/pfixtools.git] / postlicyd / query.h
index 61f894d..9dabfe0 100644 (file)
@@ -55,6 +55,8 @@ enum smtp_state {
     SMTP_UNKNOWN,
 };
 
+extern const char *smtp_state_names[SMTP_count];
+
 /* \see http://www.postfix.org/SMTPD_POLICY_README.html */
 typedef struct query_t {
     unsigned state : 4;