qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [2/6] qpid-proton git commit: PROTON-1415: event.h remove duplicate enums
Date Thu, 23 Feb 2017 22:43:15 GMT
PROTON-1415: event.h remove duplicate enums

event.h defines some "alias" enums, move these out of the enum declearation and
make them static const aliases instead. No effect on existing code but simplifies
code generation for Go binding.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/540e74e2
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/540e74e2
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/540e74e2

Branch: refs/heads/master
Commit: 540e74e28266b1f914d1b3498168060264552d62
Parents: 45f7b05
Author: Alan Conway <aconway@redhat.com>
Authored: Thu Feb 23 08:41:06 2017 -0500
Committer: Alan Conway <aconway@redhat.com>
Committed: Thu Feb 23 15:26:09 2017 -0500

----------------------------------------------------------------------
 proton-c/include/proton/event.h | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/540e74e2/proton-c/include/proton/event.h
----------------------------------------------------------------------
diff --git a/proton-c/include/proton/event.h b/proton-c/include/proton/event.h
index b4dbfeb..c1c4fed 100644
--- a/proton-c/include/proton/event.h
+++ b/proton-c/include/proton/event.h
@@ -282,12 +282,6 @@ typedef enum {
   PN_TRANSPORT_HEAD_CLOSED,
 
   /**
-   * The write side of the transport is closed, it will no longer produce bytes
-   * to write to external IO. Synonynm for PN_TRANSPORT_HEAD_CLOSED
-   */
-  PN_TRANSPORT_WRITE_CLOSED = PN_TRANSPORT_HEAD_CLOSED,
-
-  /**
    * Indicates that the tail of the transport has been closed. This
    * means the transport will never be able to process more bytes from
    * the network. Events of this type point to the relevant transport.
@@ -295,12 +289,6 @@ typedef enum {
   PN_TRANSPORT_TAIL_CLOSED,
 
   /**
-   * The read side of the transport is closed, it will no longer read bytes
-   * from external IO. Synonynm for PN_TRANSPORT_TAIL_CLOSED
-   */
-  PN_TRANSPORT_READ_CLOSED = PN_TRANSPORT_TAIL_CLOSED,
-
-  /**
    * Indicates that the both the head and tail of the transport are
    * closed. Events of this type point to the relevant transport.
    */
@@ -361,6 +349,19 @@ typedef enum {
 
 } pn_event_type_t;
 
+
+/**
+ * The write side of the transport is closed, it will no longer produce bytes
+ * to write to external IO. Synonynm for PN_TRANSPORT_HEAD_CLOSED
+ */
+static const pn_event_type_t PN_TRANSPORT_WRITE_CLOSED = PN_TRANSPORT_HEAD_CLOSED;
+
+/**
+ * The read side of the transport is closed, it will no longer read bytes
+ * from external IO. Synonynm for PN_TRANSPORT_TAIL_CLOSED
+ */
+static const pn_event_type_t PN_TRANSPORT_READ_CLOSED = PN_TRANSPORT_TAIL_CLOSED;
+
 /**
  * Get a human readable name for an event type.
  *


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message