Explorar o código

Add support to group messaging for another priority level.

(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@183 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=21) %!d(string=hai) anos
pai
achega
e5fe15c3e6
Modificáronse 1 ficheiros con 11 adicións e 3 borrados
  1. 11 3
      exec/gmi.h

+ 11 - 3
exec/gmi.h

@@ -38,9 +38,10 @@
 
 #define MESSAGE_SIZE_MAX	256000
 
-#define GMI_PRIO_HIGH		0
-#define GMI_PRIO_MED		1
-#define GMI_PRIO_LOW		2
+#define GMI_PRIO_RECOVERY	0
+#define GMI_PRIO_HIGH		1
+#define GMI_PRIO_MED		2
+#define GMI_PRIO_LOW		3
 
 typedef int gmi_join_handle;
 
@@ -108,4 +109,11 @@ int gmi_mcast (
 	int iov_len,
 	int priority);
 
+/*
+ * Determine if a message of msg_size could be queued
+ */
+int gmi_send_ok (
+	int priority,
+	int msg_size);
+
 #endif /* GMI_H_DEFINED */