Tivoli Header

Tivoli Storage Manager Using the Application Program Interface

Build the Sample Application

The files listed in Table 47 comprise the source files and other files that you need to build the sample application included with the X/Open API.

Table 47. Files Available to Build X/Open API Sample Application

File Name
Description
custom.h
Platform custom integer definitions header file
xbsa.h
Header file containing constants, return codes, structure and type definitions, and function prototypes for the Data Movement function group
policy.h
Header file containing structure definitions relating to policy
dsmapitd.h
Header file containing general type definitions
dsmapips.h
Header file containing platform-specific type definitions
xapidata.h
xapint64.h
xapint64.c
xapipref.c
xapipref.h
xapiqry.c
xapiqry.h
xapismp.c
xapiutil.h
xapiutil.c
xapicont.c
xapidef.h
xapidel.c
xapidel.h
xapidisp.c
xapidisp.h
xapilist.c
xapilist.h
xapiour.c
xapiour.h
xapirecv.c
xapirecv.h
xapisend.c
xapisend.h
xapisess.c
xapisess.h
Modules for the command line driven sample application
libXApi.xxx
Platform-specific suffix
makexapi.aix
makexapi.sol
Makexapi.hp

Makefile to build xapismp for AIX
Makefile to build xapismp for Solaris
xapismp
X/Open API sample program

Follow these steps to compile the sample application and test the installation.

Note:
Several steps have slight variations, depending on which UNIX platform you are using. See the README.API file for specific information.
  1. Copy the API library to the /usr/lib directory or create a symbolic link to the file from the /usr/lib directory.
  2. Copy the sample application files to the target directory.
  3. Copy the header files to the target directory.
  4. Copy the makefile to the target directory.
  5. Compile the sample.
  6. Ensure that your environment variables, especially DSMI_DIR, and options files are set up. See Setting Up Options Files and the Installing the Clients book for information.
  7. Log on as root the first time for password registration.
  8. Run xapismp to start the sample application.
  9. Follow the instructions that appear on the screen.

When you run the application, remember the following:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]