GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CLI / V0-1-2 > cli / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

CLI_indirect.c File Reference

Implements CLI's ability to indirect to a file. More...

#include <stdio.h>
#include <string.h>
#include <CLI/CLI_msgs.h>
#include <CLI/CLI_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <CLI_prvdefs.h>

Functions

unsigned int CLI_indirect (CLI_Control *ctl, void *user)
 CLI provided callback to deal with file indirection.


Detailed Description

Implements CLI's ability to indirect to a file.

CVS $Id: CLI_indirect.c,v 1.5 2011/03/25 00:51:25 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int CLI_indirect ( CLI_Control ctl,
void *  user 
)

CLI provided callback to deal with file indirection.

Parameters:
ctl (Opaque) pointer to CLI control structure
user User parameter (ignored)
Return values:
CLI_SUCCESS File found and opened
CLI_NOSCHFIL File could not be found
CLI_FILRCURS File indirection has recursed

References CLI_getValue(), _CLI_File::fd, _CLI_Control::file, _CLI_File::frst, _CLI_File::last, _CLI_File::line, _CLI_File::name, _CLI_File::next, _CLI_File::st_dev, _CLI_File::st_ino, and _CLI_File::stat.

Referenced by CLI_createSyntax().


Generated on Tue Nov 29 16:30:28 2011 by  doxygen 1.5.8