IBM Books

Image, Audio, and Video Extenders Administration and Programming

DBaAdminGetReferencedFiles


Image Audio Video
  X  

Returns the names of files that are referred to in audio columns of user tables. If a file is inaccessible (for example, its file name cannot be resolved using environment variable specifications), the file name is preceded with an asterisk. This API does not use the FILENAME field of the FILEREF data structure, and therefore sets it to NULL. The application must be connected to a database before calling this API.

It is important that you free up the resources that are allocated by this API after calling it. Specifically, you must free up the filelist data structure.

Authorization

SYSADM, SYSCTRL, SYSMAINT

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

libdmbaudio.sl (HP-UX)

libdmbaudio.so (Solaris)

Include file

dmbaudio.h

Syntax

long DBaAdminGetReferencedFiles(
      char *qualifier,
      long *count,
      FILEREF *(*fileList)
      );

Parameters

qualifier (in)
A valid user ID or a null value. If a user ID is specified, all tables with the specified qualifier are searched. If a null value is specified, all tables in the current database are searched.

count (out)
The number of entries in the output list.

fileList (out)
A list of files that are referred to in the table.

Error codes

MMDB_SUCCESS
API call processed successfully.

MMDB_RC_NOT_CONNECTED
Application does not have valid connection to a database.

MMDB_RC_MALLOC
System cannot allocate memory to return the results.

MMDB_RC_NO_AUTH
User does not have proper authority to call this API.

Examples

List all files that are referred to in audio columns in tables that are owned by ajones:

#include <dmbaudio.h>
long idx;
 
rc = DBaAdminGetReferencedFiles("ajones",
       &count, &fileList);


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