Przeglądaj źródła

Remove handle state and handle instance information.
Also cleanup saHandleCreate to return unsigned int
handle instead of int handle.

(Logical change 1.43)


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

Steven Dake 21 lat temu
rodzic
commit
4ab8129ccb
1 zmienionych plików z 1 dodań i 13 usunięć
  1. 1 13
      lib/util.h

+ 1 - 13
lib/util.h

@@ -40,18 +40,6 @@
 #include <sys/poll.h>
 #include "../include/ais_msg.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;
-};
-
 struct saHandleDatabase {
 	unsigned int handleCount;
 	struct saHandle *handles;
@@ -127,7 +115,7 @@ SaErrorT
 saHandleCreate (
 	struct saHandleDatabase *handleDatabase,
 	int instanceSize,
-	int *handleOut);
+	unsigned int *handleOut);
 
 SaErrorT
 saHandleDestroy (