コード例 #1
0
ファイル: libfli.c プロジェクト: LabAixBidouille/Indi
LIBFLIAPI FLIOpen(flidev_t *dev, char *name, flidomain_t domain)
{
	long r;

#ifdef SHOWFUNCTIONS
	debug(FLIDEBUG_INFO, "Entering %s", __FUNCTION__);
#endif

  r = fli_open(dev, name, domain);

#ifdef SHOWFUNCTIONS
	debug(FLIDEBUG_INFO, "Exiting %s", __FUNCTION__);
#endif

	return r;
}
コード例 #2
0
/**
   Get a handle to an FLI device. This function requires the filename
   and domain of the requested device. Valid device filenames can be
   obtained using the \texttt{FLIList()} function. An application may
   use any number of handles associated with the same physical
   device. When doing so, it is important to lock the appropriate
   device to ensure that multiple accesses to the same device do not
   occur during critical operations.

   @param dev Pointer to where a device handle will be placed.

   @param name Pointer to a string where the device filename to be
   opened is stored.  For parallel port devices that are not probed by
   \texttt{FLIList()} (Windows 95/98/Me), place the address of the
   parallel port in a string in ascii form ie: "0x378".

   @param domain Domain to apply to \texttt{name} for device opening.
   This is a bitwise ORed combination of interface method and device
   type.  Valid interfaces include \texttt{FLIDOMAIN_PARALLEL_PORT},
   \texttt{FLIDOMAIN_USB}, \texttt{FLIDOMAIN_SERIAL}, and
   \texttt{FLIDOMAIN_INET}.  Valid device types include
   \texttt{FLIDEVICE_CAMERA}, \texttt{FLIDOMAIN_FILTERWHEEL}, and
   \texttt{FLIDOMAIN_FOCUSER}.

   @return Zero on success.
   @return Non-zero on failure.

   @see FLIList
   @see FLIClose
   @see flidomain_t
*/
LIBFLIAPI FLIOpen(flidev_t *dev, char *name, flidomain_t domain)
{
  return fli_open(dev, name, domain);
}