Name
OpenDir -- open a directory (V6.0)
Synopsis
APTR handle = OpenDir(STRPTR name, int mode, struct hwTagList *tags);
Function
This function is called for every directory that Hollywood opens. Your OpenDir() implementation has to check whether your plugin wants to handle this directory or not. If your plugin wants to handle this directory, your OpenDir() implementation needs to open it and return a handle back to Hollywood. Otherwise OpenDir() must return NULL. The handle returned by this function is an opaque data type only your plugin knows about. Hollywood will pass this handle to you whenever it wants to get the next object from this directory.

The mode and tags parameters are currently unused and reserved for future use.

Inputs
name
directory to open
mode
reserved for future use (currently 0)
tags
reserved for future use (currently NULL)
Results
handle
handle to refer to this directory later or NULL if your plugin doesn't want to handle this directory

Show TOC