ftp.nice.ch/Attic/openStep/implementation/gnustep/sources/objcX-0.87.tgz#/objcX-0.87/defaults/defaults.h

This is defaults.h in view mode; [Download] [Up]

/* NeXTSTEP compatibility file
 *
 * Copyright (C)  1993  The Board of Trustees of  
 * The Leland Stanford Junior University.  All Rights Reserved.
 *
 * Authors: Scott Francis and  Paul Kunz,
 *
 * This file is part of an Objective-C class library for a window system
 * Originally from:
	Application Kit, Release 2.0
	Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
 *
 * defaults.h,v 1.2 1995/12/13 22:34:03 fedor Exp
 */
 
#ifndef _defaults_h_
#define	_defaults_h_

/*
#define NXArgc argc
#define NXArgv argv

extern int argc;
extern char **argv;
*/

typedef struct _NXDefault {
  char *name;
  char *value;
} NXDefaultsVector[];

extern int NXRegisterDefaults(const char *owner, const NXDefaultsVector vector); 
extern const char *NXGetDefaultValue(const char *owner, const char *name);
extern int NXSetDefault(const char *owner, const char *name, const char *value);
extern int NXWriteDefault(const char *owner, const char *name, const char *value);
extern int NXWriteDefaults(const char *owner, NXDefaultsVector vector);
extern int NXRemoveDefault(const char *owner, const char *name);
extern const char *NXReadDefault(const char *owner, const char *name);
extern void NXUpdateDefaults(void);
extern const char *NXUpdateDefault(const char *owner, const char *name);
extern const char *NXSetDefaultsUser(const char *newUser);

/* Low level routines not intended for general use */

extern int NXFilePathSearch(const char *envVarName, const char *path,
	int leftToRight, const char *filename, int (*funcPtr)(),
	void *funcArg);

 /*
  * Used to look down a directory list for one or more files by a
  * certain name.  The directory list is obtained from the given
  * environment variable name, using the given default if not.  If
  * leftToRight is true, the list will be searched left to right;
  * otherwise, right to left.  In each such directory, if the file by the
  * given name can be accessed, then the given function is called with 
  * its first argument as the pathname of the file, and its second 
  * argument as the given value.  If the function returned zero, 
  * filePathSearch will then return with zero. If the function 
  * returned a negative value, filePathSearch will return
  * with the negative value. If the function returns a positive value,
  * filePathSearch will continue to traverse the driectory list and call
  * the function.  If it successfully reaches the end of the list, it
  * returns 0. 
  */
  

extern char *NXGetTempFilename(char *name, int pos);

#endif _defaults_h

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.