Browse Source

Cleanup coroipcc.h header file to remove saHandleXXX and friends.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2133 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 years ago
parent
commit
97f49b8557
1 changed files with 0 additions and 52 deletions
  1. 0 52
      include/corosync/coroipcc.h

+ 0 - 52
include/corosync/coroipcc.h

@@ -36,8 +36,6 @@
 #ifndef COROIPCC_H_DEFINED
 #define COROIPCC_H_DEFINED
 
-#include <config.h>
-
 #include <pthread.h>
 #include <sys/poll.h>
 #include <sys/socket.h>
@@ -108,54 +106,4 @@ coroipcc_zcb_msg_send_reply_receive (
 	void *res_msg,
 	size_t res_len);
 
-/*
- * TODO This needs to be removed
- */
-struct saHandleDatabase {
-	unsigned int handleCount;
-	struct saHandle *handles;
-#if defined(HAVE_PTHREAD_SPIN_LOCK)
-	pthread_spinlock_t lock;
-#else
-	pthread_mutex_t lock;
-#endif
-	void (*handleInstanceDestructor) (void *);
-};
-
-extern void saHandleDatabaseLock_init (struct saHandleDatabase *hdb);
-
-#define DECLARE_SAHDB_DATABASE(database_name,destructor)		\
-static struct saHandleDatabase (database_name) = {			\
-	.handleInstanceDestructor	= destructor,			\
-	.handleCount			= 0,				\
-	.handles			= NULL,				\
-};									\
-static void database_name##_init(void)__attribute__((constructor));	\
-static void database_name##_init(void)					\
-{									\
-        saHandleDatabaseLock_init (&(database_name));			\
-}
-
-extern cs_error_t
-saHandleCreate (
-	struct saHandleDatabase *handleDatabase,
-	int instanceSize,
-	uint64_t *handleOut);
-
-extern cs_error_t
-saHandleDestroy (
-	struct saHandleDatabase *handleDatabase,
-	uint64_t handle);
-
-extern cs_error_t
-saHandleInstanceGet (
-	struct saHandleDatabase *handleDatabase,
-	uint64_t handle,
-	void **instance);
-
-extern cs_error_t
-saHandleInstancePut (
-	struct saHandleDatabase *handleDatabase,
-	uint64_t handle);
-
 #endif /* COROIPCC_H_DEFINED */