IBM Books

Image, Audio, and Video Extenders Administration and Programming

DBvInsertShot


Image Audio Video
    X

Inserts a shot into a shot catalog.

Authorization

Insert, Control

Library file
OS/2 and Windows AIX, HP-UX, and Solaris
dmbshot.lib libdmbshot.a (AIX)

libdmbshot.sl (HP-UX)

libdmbshot.so (Solaris)

Include file

dmbshot.h

Syntax

long DBvInsertShot(
      char *catalogName,
      DBvShotType *shot,
      DBvIOType *video,
      char *shotHandle,
      SQLHDBC hdbc
      );

Parameters

catalogName (in)
The name of the catalog.

shot (in)
The pointer to the extended shot to insert into the catalog.

shotHandle (in)
The shot handle.

hdbc (in)
The database handle from SQLConnect.

Error codes

MMDB_SUCCESS
API call processed successfully.

MMDB_RC_ACCESS
Caller does not have proper access authority.

MMDB_RC_NOT_CONNECTED
The application does not have valid connection to a database.

MMDB_RC_INVALID_CATALOG
The catalog is not valid or does not exist.

Examples

Insert a shot into a shot catalog called hotshots:

    rc = DBvInsertShot(
    "hotshots",                    /* shot catalog name */
    shot,                          /* pointer to shot structure */
    video,                         /* pointer to video structure */
    shotHandle,                    /* pointer to shot handle */
    hdbc);                         /* database connection handle */


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