head     1.2;
branch   ;
access   ;
symbols  Version_2_1:1.2 Version_2:1.1;
locks    ; strict;
comment  @ * @;


1.2
date     90.08.17.08.54.31;  author cimarron;  state Exp;
branches ;
next     1.1;

1.1
date     90.06.12.21.26.50;  author cimarron;  state Version_2;
branches ;
next     ;


desc
@file moved from H to H/extern for reorginization
@


1.2
log
@added pathnames to #include statements
@
text
@/*
 * pdir.h --
 *	POSTGRES directory path definitions.
 *
 * Identification:
 *	$Header: RCS/pdir.h,v 1.1 90/06/12 21:26:50 cimarron Version_2 Locker: cimarron $
 */

#ifndef	PDirIncluded		/* Include this file only once */
#define PDirIncluded	1

#include "tmp/c.h"

#define PDIR_H	"$Header: RCS/pdir.h,v 1.1 90/06/12 21:26:50 cimarron Version_2 Locker: cimarron $"

/*
 * GetDatabasePath --
 *	Returns path to database.
 *
 * Exceptions:
 *	BadState if called before InitDatabase.
 */
extern
String		/* XXX Path */
GetDatabasePath ARGS((
	void
));

/*
 * GetDatabaseName --
 *	Returns name of database.
 *
 * Exceptions:
 *	BadState if called before InitDatabase.
 */
extern
String		/* XXX Name */
GetDatabaseName ARGS((
	void
));

/*
 * InitDatabase --
 *	Sets current directory appropriately for given path and name.
 *
 * Arguments:
 *	Path and name are invalid if it invalid as a string.
 *	Path is "badly formated" if it is not a string containing a path
 *	to a writable directory.
 *	Name is "badly formated" if it contains more than 16 characters or if
 *	it is a bad file name (e.g., it contains a '/' or an 8-bit character).
 *
 * Side effects:
 *	Initially, DatabasePath and DatabaseName are invalid.  They are
 *	set to valid strings before this function returns.
 *
 * Exceptions:
 *	BadState if called more than once.
 *	BadArg if both path and name are "badly formated" or invalid.
 *	BadArg if path and name are both "inconsistent" and valid.
 */
extern
void
InitDatabase ARGS((
	String	path,	/* XXX Path */
	String	name	/* XXX Name */
));

#endif	/* !defined(PDirIncluded) */
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
 *	$Header: RCS/pdir.h,v 1.2 89/09/05 17:09:38 mao C_Demo_1 $
d12 1
a12 3
#ifndef	C_H
#include "c.h"
#endif
d14 1
a14 1
#define PDIR_H	"$Header: RCS/pdir.h,v 1.2 89/09/05 17:09:38 mao C_Demo_1 $"
@
