Add exported butm_prototypes.h header
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Fri, 10 Jul 2009 22:04:25 +0000 (23:04 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Fri, 10 Jul 2009 22:49:24 +0000 (16:49 -0600)
Add exported header for the butm directory so it can be used
elsewhere

Reviewed-on: http://gerrit.openafs.org/45
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

src/butm/Makefile.in
src/butm/NTMakefile
src/butm/butm_prototypes.h [new file with mode: 0644]
src/butm/file_tm.c

index 527d247..c230a06 100644 (file)
@@ -23,11 +23,14 @@ LIBS=${TOP_LIBDIR}/libbubasics.a \
        ${TOP_LIBDIR}/util.a \
        ${XLIBS}
 
-all: ${TOP_LIBDIR}/libbutm.a
+all: ${TOP_LIBDIR}/libbutm.a ${TOP_INCDIR}/afs/butm_prototypes.h
 
 ${TOP_LIBDIR}/libbutm.a: libbutm.a
        ${INSTALL_DATA} $? $@
 
+${TOP_INCDIR}/afs/butm_prototypes.h: butm_prototypes.h
+       ${INSTALL_DATA} $? $@
+
 libbutm.a: file_tm.o AFS_component_version_number.o
        -$(RM) -f $@
        $(AR) crv $@ file_tm.o AFS_component_version_number.o
index d19860d..938a369 100644 (file)
@@ -10,6 +10,11 @@ RELDIR=butm
 !INCLUDE ..\config\NTMakefile.version
 
 ############################################################################
+# install headers
+INCFILES =\
+       $(DESTDIR)\include\afs\butm_prototypes.h
+
+############################################################################
 # Definitions for building a static library
 
 LIBFILE = $(DESTDIR)\lib\afs\afsbutm.lib
@@ -21,11 +26,10 @@ LIBOBJS =\
 $(LIBFILE): $(LIBOBJS) 
        $(LIBARCH) 
 
-
 ############################################################################
 # Install target; primary makefile target
 
-install: $(LIBFILE) $(OUT)\test_ftm.exe
+install: $(INCFILES) $(LIBFILE) $(OUT)\test_ftm.exe
 
 
 ############################################################################
diff --git a/src/butm/butm_prototypes.h b/src/butm/butm_prototypes.h
new file mode 100644 (file)
index 0000000..b25a30f
--- /dev/null
@@ -0,0 +1,19 @@
+/* Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
+
+#ifndef _BUTM_PROTOTYPES_H
+#define _BUTM_PROTOTYPES_H
+
+/* file_tm.c */
+
+extern afs_int32 SeekFile(struct butm_tapeInfo *, int);
+extern afs_int32 butm_file_Instantiate(struct butm_tapeInfo *,
+                                      struct tapeConfig *);
+extern afs_int32 NextFile(struct butm_tapeInfo *);
+
+#endif
index b6bd425..948fd96 100644 (file)
@@ -29,6 +29,7 @@
 #include <afs/butm.h>
 #include <afs/usd.h>
 #include "error_macros.h"
+#include "butm_prototypes.h"
 
 #ifdef O_LARGEFILE
 typedef off64_t osi_lloff_t;