From efebc1e1afd1b3b4f1219e098b052c6dcd061cbf Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 27 Mar 2012 18:23:05 +0900 Subject: [PATCH] Made SPDYLAY_PROTO_SPDY2 and SPDYLAY_PROTO_SPDY3 enum --- lib/includes/spdylay/spdylay.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/includes/spdylay/spdylay.h b/lib/includes/spdylay/spdylay.h index c0444be4..29cf85f2 100644 --- a/lib/includes/spdylay/spdylay.h +++ b/lib/includes/spdylay/spdylay.h @@ -46,17 +46,20 @@ struct spdylay_session; typedef struct spdylay_session spdylay_session; /** - * @macro + * @enum * - * SPDY protocol version 2 + * The SPDY protocol version. */ -#define SPDYLAY_PROTO_SPDY2 2 -/** - * @macro - * - * SPDY protocol version 3 - */ -#define SPDYLAY_PROTO_SPDY3 3 +typedef enum { + /** + * SPDY protocol version 2 + */ + SPDYLAY_PROTO_SPDY2 = 2, + /** + * SPDY protocol version 3 + */ + SPDYLAY_PROTO_SPDY3 = 3 +} spdylay_proto_version; /** * @enum