From aa98e00fbac9462421a1ec733eadf13950eb46fc Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Sun, 1 May 2011 12:08:09 +0200 Subject: [PATCH] parser: added return code aliases for routing-only mode --- include/d/psyc/parser.d | 6 ++++++ include/psyc/parser.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/d/psyc/parser.d b/include/d/psyc/parser.d index 1d03adc..465a641 100644 --- a/include/d/psyc/parser.d +++ b/include/d/psyc/parser.d @@ -58,6 +58,12 @@ enum ParseRC PARSE_BODY = 5, /// Body parsing is incomplete, name contains method, value contains part of the body. PARSE_BODY_INCOMPLETE = 6, +/// Content parsing done, value contains the whole content. +/// Used when PSYC_PARSE_ROUTING_ONLY is set. + PARSE_CONTENT = 5, +/// Content parsing is incomplete, value contains part of content. +/// Used when PSYC_PARSE_ROUTING_ONLY is set. + PARSE_CONTENT_INCOMPLETE = 6, /// Reached end of packet, parsing done. PARSE_COMPLETE = 7, /// Binary value parsing incomplete, used internally. diff --git a/include/psyc/parser.h b/include/psyc/parser.h index 3fdfbd3..f683459 100644 --- a/include/psyc/parser.h +++ b/include/psyc/parser.h @@ -60,9 +60,11 @@ typedef enum PSYC_PARSE_BODY = 5, /// Body parsing is incomplete, name contains method, value contains part of the body. PSYC_PARSE_BODY_INCOMPLETE = 6, -/// Content parsing done, value contains the whole content. Used when PSYC_PARSE_ROUTING_ONLY is set. +/// Content parsing done, value contains the whole content. +/// Used when PSYC_PARSE_ROUTING_ONLY is set. PSYC_PARSE_CONTENT = 5, -/// Content parsing is incomplete, value contains part of content. Used when PSYC_PARSE_ROUTING_ONLY is set. +/// Content parsing is incomplete, value contains part of content. +/// Used when PSYC_PARSE_ROUTING_ONLY is set. PSYC_PARSE_CONTENT_INCOMPLETE = 6, /// Reached end of packet, parsing done. PSYC_PARSE_COMPLETE = 7,