Просмотр исходного кода

Hide handle state and handle instance information
in this file instead of in global header file.

(Logical change 1.43)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@123 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 21 лет назад
Родитель
Сommit
2cdf0b28d6
1 измененных файлов с 13 добавлено и 1 удалено
  1. 13 1
      lib/util.c

+ 13 - 1
lib/util.c

@@ -52,6 +52,18 @@
 #include "../include/ais_msg.h"
 #include "util.h"
 
+enum SA_HANDLE_STATE {
+	SA_HANDLE_STATE_EMPTY,
+	SA_HANDLE_STATE_PENDINGREMOVAL,
+	SA_HANDLE_STATE_ACTIVE
+};
+
+struct saHandle {
+	int state;
+	void *instance;
+	int refCount;
+};
+
 SaErrorT
 saServiceConnect (
 	int *fdOut,
@@ -332,7 +344,7 @@ SaErrorT
 saHandleCreate (
 	struct saHandleDatabase *handleDatabase,
 	int instanceSize,
-	int *handleOut)
+	unsigned int *handleOut)
 {
 	int handle;
 	void *newHandles;