Bläddra i källkod

Move cs_queue.h from include directory to exec directory

This file is only used by totemsrp.c.  Move out of general include
directory.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake 14 år sedan
förälder
incheckning
9f36a892a8
4 ändrade filer med 5 tillägg och 3 borttagningar
  1. 1 1
      exec/Makefile.am
  2. 2 0
      exec/cs_queue.h
  3. 1 1
      exec/totemsrp.c
  4. 1 1
      include/Makefile.am

+ 1 - 1
exec/Makefile.am

@@ -37,7 +37,7 @@ INCLUDES		= -I$(top_builddir)/include -I$(top_srcdir)/include $(nss_CFLAGS) $(rd
 
 TOTEM_SRC		= totemip.c totemnet.c totemudp.c \
 			  totemudpu.c totemrrp.c totemsrp.c totemmrp.c \
-			  totempg.c crypto.c
+			  totempg.c crypto.c cs_queue.h
 if BUILD_RDMA
 TOTEM_SRC		+= totemiba.c
 endif

+ 2 - 0
include/corosync/cs_queue.h → exec/cs_queue.h

@@ -35,7 +35,9 @@
 #define CS_QUEUE_H_DEFINED
 
 #include <string.h>
+#include <stdlib.h>
 #include <pthread.h>
+#include <errno.h>
 #include "assert.h"
 
 struct cs_queue {

+ 1 - 1
exec/totemsrp.c

@@ -79,7 +79,6 @@
 #include <qb/qbloop.h>
 
 #include <corosync/swab.h>
-#include <corosync/cs_queue.h>
 #include <corosync/sq.h>
 #include <corosync/list.h>
 #include <corosync/hdb.h>
@@ -92,6 +91,7 @@
 #include "totemnet.h"
 
 #include "crypto.h"
+#include "cs_queue.h"
 
 #define LOCALHOST_IP				inet_addr("127.0.0.1")
 #define QUEUE_RTR_ITEMS_SIZE_MAX		16384 /* allow 16384 retransmit items */

+ 1 - 1
include/Makefile.am

@@ -36,7 +36,7 @@ CS_H			= hdb.h cs_config.h cpg.h cfg.h evs.h mar_gen.h swab.h 	\
 			confdb.h list.h corotypes.h quorum.h votequorum.h sam.h
 
 CS_INTERNAL_H		= ipc_cfg.h ipc_confdb.h ipc_cpg.h ipc_evs.h ipc_pload.h ipc_quorum.h 	\
-			jhash.h pload.h cs_queue.h quorum.h sq.h ipc_votequorum.h
+			jhash.h pload.h quorum.h sq.h ipc_votequorum.h
 
 LCR_H			= lcr_ckpt.h lcr_comp.h	lcr_ifact.h