[PATCH 2.1.1.2] MAMA Library: Add enumerations for Exegy


Michael A. Goettsch
 

This patch adds definitions for Exegy. It uses 8 for Exegy Middleware
and 'X' for Exegy payloads. The reason for this submission is to allow
Exegy to provide an XCAPI to OpenMAMA middleware bridge.

Signed-off-by: Michael A. Goettsch <mgoettsch@...>

---

diff --git a/mama/c_cpp/src/c/mama/middleware.h
b/mama/c_cpp/src/c/mama/middleware.h
index 1ae80b7..c3f581a 100644
--- a/mama/c_cpp/src/c/mama/middleware.h
+++ b/mama/c_cpp/src/c/mama/middleware.h
@@ -37,7 +37,8 @@ typedef enum mamaMiddleware_
MAMA_MIDDLEWARE_LBM = 1,
MAMA_MIDDLEWARE_TIBRV = 2,
MAMA_MIDDLEWARE_AVIS = 3,
- MAMA_MIDDLEWARE_MAX = 4,
+ MAMA_MIDDLEWARE_EXEGY = 8
+ MAMA_MIDDLEWARE_MAX = 9,
MAMA_MIDDLEWARE_UNKNOWN = 99
} mamaMiddleware;

diff --git a/mama/c_cpp/src/c/mama/msg.h b/mama/c_cpp/src/c/mama/msg.h
index 5094ac9..13c30f9 100644
--- a/mama/c_cpp/src/c/mama/msg.h
+++ b/mama/c_cpp/src/c/mama/msg.h
@@ -47,6 +47,7 @@ typedef enum mamaPayloadType_
MAMA_PAYLOAD_FAST = 'F',
MAMA_PAYLOAD_V5 = '5',
MAMA_PAYLOAD_AVIS = 'A',
+ MAMA_PAYLOAD_EXEGY = 'X',
MAMA_PAYLOAD_UNKNOWN = 'U'
} mamaPayloadType;

diff --git a/mama/c_cpp/src/c/middleware.c b/mama/c_cpp/src/c/middleware.c
index 2353309..0407bf2 100644
--- a/mama/c_cpp/src/c/middleware.c
+++ b/mama/c_cpp/src/c/middleware.c
@@ -41,6 +41,9 @@ mamaMiddleware_convertFromString (const char* str)
if (strcasecmp (str, "avis") == 0)
return MAMA_MIDDLEWARE_AVIS;

+ if (strcasecmp (str, "exegy") == 0)
+ return MAMA_MIDDLEWARE_EXEGY;
+

return MAMA_MIDDLEWARE_UNKNOWN;
}
@@ -59,6 +62,8 @@ mamaMiddleware_convertToString (mamaMiddleware
middleware)
return "tibrv";
case MAMA_MIDDLEWARE_AVIS:
return "AVIS";
+ case MAMA_MIDDLEWARE_EXEGY:
+ return "exegy";
default:
return "unknown";
}

diff --git a/mama/c_cpp/src/c/msg.c b/mama/c_cpp/src/c/msg.c
index 1daf82f..7b5b444 100644
--- a/mama/c_cpp/src/c/msg.c
+++ b/mama/c_cpp/src/c/msg.c
@@ -371,6 +371,8 @@ mamaPayload_convertToString (mamaPayloadType
payloadType)
return "V5";
case MAMA_PAYLOAD_AVIS:
return "AVIS";
+ case MAMA_PAYLOAD_EXEGY:
+ return "EXEGY";
default:
return "unknown";
}

This e-mail and any documents accompanying it may contain legally privileged and/or confidential information belonging to Exegy, Inc. Such information may be protected from disclosure by law. The information is intended for use by only the addressee. If you are not the intended recipient, you are hereby notified that any disclosure or use of the information is strictly prohibited. If you have received this e-mail in error, please immediately contact the sender by e-mail or phone regarding instructions for return or destruction and do not use or disclose the content to others.