OSSP CVS Repository

ossp - ossp-pkg/rc/rc.h 1.16
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/rc/rc.h 1.16
/*  OSSP rc - Run-command processor
**  Copyright (c) 2002 Ralf S. Engelschall
**  Copyright (c) 2002 Cable & Wireless Deutschland GmbH
**  Copyright (c) 2002 The OSSP Project <http://www.ossp.org/>
**
**  This file is part of OSSP rc, a portable Run-command processor
**  which can be found at http://www.ossp.org/pkg/lib/rc/
**
**  Permission to use, copy, modify, and distribute this software for
**  any purpose with or without fee is hereby granted, provided that
**  the above copyright notice and this permission notice appear in all
**  copies.
**
**  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
**  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
**  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
**  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
**  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
**  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
**  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
**  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
**  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
**  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
**  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
**  SUCH DAMAGE.
**
**  rc.h: Run-command processor ISO C public header file
*/

#ifndef __OSSPRC_H__
#define __OSSPRC_H__

/* compensate for poor standard environments */
#ifndef NULL
#define NULL (void *)0
#endif

#ifndef FALSE
#define FALSE (0)
#endif

#ifndef TRUE
#define TRUE (!FALSE)
#endif

#include "rc_private.h"

/* RC return codes */
typedef enum {
    RC_OK,      /* Success                  */
    RC_ERR_USE, /* Usage error              */
    RC_ERR_MEM, /* Memory error             */
    RC_ERR_SYS, /* System error (see errno) */
    RC_ERR_IO,  /* Input/output error       */
    RC_ERR_INT  /* Internal error           */
} rc_return_t;

/* Option function prototypes */
rc_return_t optionProcess(void);
rc_return_t optionProcess(void);

/* File option function prototypes */
rc_return_t foptParse(void);
rc_return_t foptProcess(void);

/* Environment option function prototypes */
rc_return_t eoptParse(void);
rc_return_t eoptProcess(void);

/* Command line option function prototypes */
rc_return_t coptParse(int, char **);
rc_return_t coptProcess(int);

/* Config function prototypes */
rc_return_t configConstruct(void);
rc_return_t configLoad(int, char **);
rc_return_t configDestruct(void);

/* Config accessor prototypes */
short configGetvers(void);

/* Command line function prototypes */
rc_return_t clioptConstruct(void);
rc_return_t clioptDestruct(void);

/* Command line accessor prototypes */
short clioptGetvers(void);

/* Option accessor prototypes */
short optGetvers(void);

/* Utility (nonbounded) function prototypes */
char *strErr(rc_return_t);

/* Other function prototypes */

/*rc_result_t rc_Err              (void);
rc_result_t rc_Warn             (void);
rc_result_t rc_PathAppend       (int bExists, char **pszPaths);
rc_result_t rc_PathPrepend      (int bExists, char **pszPaths);
rc_result_t rc_EnvDel           (char *szVar, char **pszVals);
rc_result_t rc_QueryVar         (char *szVar, char **pszVal);
rc_result_t rc_ServiceState     (char *szService, char **pszServState);
rc_result_t rc_TmpDirGen        (char *szProgram);
rc_result_t rc_TmpDirFile       (char *szProgram, char *szFilename, *szVar);
rc_result_t rc_TmpDirDel        (char *szProgram);*/

#endif /* __OSSPRC_H__ */

CVSTrac 2.0.1