Author: rhs
Date: Tue Aug 20 16:31:43 2013
New Revision: 1515860
URL: http://svn.apache.org/r1515860
Log:
PROTON-389: added all dispositions to switch statement
Modified:
qpid/proton/trunk/proton-c/include/proton/messenger.h
qpid/proton/trunk/proton-c/src/messenger/store.c
Modified: qpid/proton/trunk/proton-c/include/proton/messenger.h
URL:
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/include/proton/messenger.h?rev=1515860&r1=1515859&r2=1515860&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/include/proton/messenger.h (original)
+++ qpid/proton/trunk/proton-c/include/proton/messenger.h Tue Aug 20 16:31:43
2013
@@ -42,7 +42,8 @@ typedef enum {
PN_STATUS_UNKNOWN = 0,
PN_STATUS_PENDING = 1,
PN_STATUS_ACCEPTED = 2,
- PN_STATUS_REJECTED = 3
+ PN_STATUS_REJECTED = 3,
+ PN_STATUS_MODIFIED = 4
} pn_status_t;
/** Construct a new Messenger with the given name. The name is global.
Modified: qpid/proton/trunk/proton-c/src/messenger/store.c
URL:
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/messenger/store.c?rev=1515860&r1=1515859&r2=1515860&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/messenger/store.c (original)
+++ qpid/proton/trunk/proton-c/src/messenger/store.c Tue Aug 20 16:31:43 2013
@@ -287,10 +287,16 @@ static pn_status_t disp2status(uint64_t
if (!disp) return PN_STATUS_PENDING;
switch (disp) {
+ case PN_RECEIVED:
+ return PN_STATUS_PENDING;
case PN_ACCEPTED:
return PN_STATUS_ACCEPTED;
case PN_REJECTED:
return PN_STATUS_REJECTED;
+ case PN_RELEASED:
+ return PN_STATUS_PENDING;
+ case PN_MODIFIED:
+ return PN_STATUS_MODIFIED;
default:
assert(0);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]