The great includes migration of 2019 (autotools)

Ok - so one of the steps in building CDE is an early phase called the
includes phase (make includes).  At this point, all of the public
header files are exported to exports/include/Dt, DtI, ...

Then, the software is built using that include dir.

This of course does not work in autotools.  Much of the software does
things like #include <Dt/something.h>, so in order for the build to
succeed, this behavior must be represented/replicated in some way.

It seems the usual way of dealing with this is to place all public
headers (and in some projects, ALL headers) into a toplevel include
directory.

We now do this for all public headers - they have been moved from
wherever they were and placed in the appropriate spot in includes/

This will break the Imake 'make includes' phase unless the Imakefiles
are fixed (remove the HEADERS = stuff, and the incdir defines).  This
has not been done at this point since in reality, once autotools works
properly, there will be no need for the Imake stuff anymore, and I
intend to get rid of it.

This is just a warning for now - Imake builds in this tree will now
fail at the 'includes' stage.

This commit is only the migration.  In upcoming commits, libtt will be
fixed so that the hack being used before to get around this problem is
removed as there will no longer be any need.

And then the autotools work continues...
This commit is contained in:
Jon Trulson
2019-10-25 17:01:34 -06:00
parent 7c2983185d
commit 369308b737
180 changed files with 1 additions and 30 deletions

View File

@@ -1,133 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/* -*-C-*-
**************************************************************************
*
* File: Chkpnt.h
* Description: CDE Private header file. Private API for sending checkpoint
* messages between compliant clients and the checkpoint service
* provider. This API is designed for use by performance
* measurement programs.
*
* Created: Mon Sep 6 09:00 1993
* Language: C
*
* $XConsortium: ChkpntP.h /main/4 1995/10/26 15:18:33 rswiston $
*
* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
*
**************************************************************************
*/
#ifndef _Dt_Perf_Checkpoint_P_h
#define _Dt_Perf_Checkpoint_P_h
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Intrinsic.h>
/*************************************************************************/
/************* Data types ************************************************/
/*************************************************************************/
/* The following definition is ONLY meant for union that follows */
typedef struct {
char *pname; /* Client program name */
char *window; /* Window Id for client */
char *type; /* Type of message */
char *count; /* Running count of messages */
char *seconds; /* Time in seconds from gettimeofday() */
char *message; /* Actual message */
} _DtChkpntMsgFormat;
#define DT_PERF_CHKPNT_MSG_SIZE (sizeof(_DtChkpntMsgFormat) / sizeof(char *))
/* Use the following union for actual message declaration */
typedef union {
_DtChkpntMsgFormat record;
char *array[DT_PERF_CHKPNT_MSG_SIZE];
} DtChkpntMsg;
#define DT_PERF_CHKPNT_MSG_INIT "Init"
#define DT_PERF_CHKPNT_MSG_CHKPNT "Chkpnt"
#define DT_PERF_CHKPNT_MSG_END "End"
/*************************************************************************/
/************* Atom Names ************************************************/
/*************************************************************************/
/* Selection for ICCCM style interaction of client and listener*/
/* This selection is owned by the listener */
#define DT_PERF_CHKPNT_SEL "_DT_PERF_CHKPNT_SEL"
/* Properties attached to the client: Used for message transmission */
#define DT_PERF_CLIENT_CHKPNT_PROP "_DT_PERF_CHKPNT_PROP"
/*************************************************************************/
/************* Client Functions ******************************************/
/*************************************************************************/
/* Note: It is expected that users will invoke the following functions within
#ifdef DT_PERFORMANCE directives. The DT_PERFORMANCE flag should be set,
in the build environment, for the performance-test-enabled builds.
*/
/* Initialize the checkpointing mechanism */
extern int _DtPerfChkpntInit(
Display *display, /* Display pointer */
Window parentwin, /* Parent window id */
char *prog_name, /* Name of the client program (argv[0]) */
Boolean bChkpnt /* Boolean: True or False */
);
/* Send a checkpoint message to the listener */
extern void _DtPerfChkpntMsgSend(
char *message /* Acual message for transmission */
);
/* End the checkpointing message delivery */
extern int _DtPerfChkpntEnd(
);
/*************************************************************************/
/************* Listener Service Functions ********************************/
/*************************************************************************/
/* Initialize the listener */
extern int _DtPerfChkpntListenInit(
Display *display, /* Current display */
Window parentwin /* Parent of window associated with listener */
);
/* Fetch a message from message queue */
extern Bool _DtPerfChkpntMsgReceive(
DtChkpntMsg *dtcp_msg, /* Above message available as a structure */
Bool bBlock /* Block until a message is received ? */
);
#endif /*_Dt_Perf_Checkpoint_h*/
/* Do not add anything after this endif. */

View File

@@ -1,51 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: Collate.h /main/3 1995/10/26 15:18:49 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
#ifndef DtCOLLATE_INCLUDED
#define DtCOLLATE_INCLUDED
#define MASK077 077
#define ENDTABLE 0377 /* end mark of 2 to 1 character */
struct col_21tab {
unsigned char ch1; /* first char of 2 to 1 */
unsigned char ch2; /* second char of 2 to 1 */
unsigned char seqnum; /* sequence number */
unsigned char priority; /* priority */
};
struct col_12tab {
unsigned char seqnum; /* seqnum of second char of 1 to 2 */
unsigned char priority; /* priority of 1 to 2 char */
};
#endif /* DtCOLLATE_INCLUDED */

View File

@@ -1,58 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: CommandM.h $XConsortium: CommandM.h /main/3 1995/10/26 15:18:58 rswiston $
* Language: C
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_CommandM_h
#define _Dt_CommandM_h
/*
* Command Invoker execution window types. Note that a success or
* failure notification will be sent for each request. For
* failures, the only data returned is an error message.
*/
#define DtNO_STDIO "NO_STDIO"
#define DtTERMINAL "TERMINAL"
#define DtPERM_TERMINAL "PERM_TERMINAL"
#define DtOUTPUT_ONLY "OUTPUT_ONLY"
#define DtSHARED_OUTPUT "SHARED_OUTPUT"
/*
* When the session manager starts, it needs a window type (NO-STDIO),
* but if a failure occurs, it does NOT want an error message, but
* instead wants to receive the execution host and the execution
* string. The following define is for this type of request.
*/
#define DtSTART_SESSION "START-SESSION"
#endif /* _Dt_CommandM_h */
/* Do not add anything after this endif. */

View File

@@ -1,179 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Connect.h $XConsortium: Connect.h /main/3 1995/10/26 15:19:09 rswiston $
* Language: C
*
* (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_connect_h
#define _Dt_connect_h
#include <Dt/DtP.h>
#include <bms/connect.h>
#include <codelibs/pathutils.h>
#define DtGetShortHostname Xegetshorthostname
#define DtGetHostname Xegethostname
/*
DESCRIPTION:
These functions are similiar to gethostname(2), however
DtGetHostname always returns a full domain-qualified name
and DtGetShortHostname returns a simple name.
SYNOPSIS:
status = DtGet[Short]Hostname (hostname, size)
int status; Returns 0 on success, -1 on failure.
[Actually it returns what gethostname(2)
returns, which is ambiguous in the
HP-UX manual.]
char *hostname; The hostname is returned here.
int size; The name is truncated to "size - 1" and
is null-terminated.
*/
#define DtGetcwd Xegetcwd
/*
DESCRIPTION:
This function is similar to getcwd except it first checks $PWD.
It only calls getcwd if $PWD is not set.
SYNOPSIS:
cwd = DtGetcwd (buf, size)
char *cwd; Pointer to the returned value. (Typically
the same value as 'buf' that is passed in.)
char *buf; Pointer to memory allocated by the caller.
Buf must be large enough to hold the string.
int size; Size of buf in bytes.
*/
#define DtIsLocalHostP XeIsLocalHostP
/*
DESCRIPTION:
Tests whether a passed-in hostname identifies the host on which
the function is being executed. This handles all combinations of
simple and domain-qualified names for either the hostname passed
in or the one defined on the local host.
WARNING: Returns BOOLEAN, not INT. DONT TREAT IT AS AN INT!
SYNOPSIS:
status = XeIsLocalHostP (hostname);
Boolean status; Returns TRUE if "hostname" identifies the
local host, FALSE otherwise.
char *hostname; The hostname (either simple or domain-
qualified) to test.
*/
#define DtIsSameHostP XeIsSameHostP
/*
DESCRIPTION:
Compares two hostnames to see if they specify the same host.
This handles combinations of simple and domain-qualified names.
This function canonicalizes both names and then compares them.
WARNING: Returns BOOLEAN, not INT. DONT TREAT IT AS AN INT!
SYNOPSIS:
status = DtIsSameHostP (host1, host2);
Boolean status; Returns TRUE if host1 and host2 identify
the same host, FALSE otherwise.
char *host1, *host2; The two hostnames (either simple or
domain-qualified) to compare.
*/
#define DtCreateContextString XeCreateContextString
/*
DESCRIPTION:
DtCreateContextString takes the three parts of a context and
puts them into a single string, in the form "host:/dir/file".
A NEW STRING, OWNED BY THE CALLER, is returned.
SYNOPSIS:
context_string = DtCreateContextString (host, dir, file);
DtString context_string; The returned context. The memory is owned
by the caller. "NULL" is returned if the
context cannot be created.
DtString host; The name of the host.
DtString dir; The directory.
DtString file; The name of the file.
*/
#define DtEliminateDots XeEliminateDots
/*
DESCRIPTION:
This routine removes /./'s and /../'s from a path. It will
OVERWRITE the path IT WAS PASSED. If there are too many /../'s
in the path this function will return NULL, so you better keep
a pointer to the path if you hope to reclaim it.
This function does not handle "host:/directory/file", shell
variables, or other exotic animals.
SYNOPSIS:
fixed_path = DtEliminateDots (path);
DtString fixed_path; A pointer to the same path that was passed in
(though now it is fixed up) or NULL if problems
were encountered.
DtString path; The path that needs fixing up.
*/
#define DtParseFileString XeParseFileString
#endif /* _Dt_connect_h */
/* Do not add anything after this endif. */

View File

@@ -1,58 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: DataTypes.h /main/3 1995/10/26 15:19:20 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/* -*-C-*-
*******************************************************************************
*
* File: DataTypes.h
* Description: This file defines data types that are used throughout the
* DT code.
*
* Common Desktop Environment (CDE)
*
* (c) Copyright 1993 Hewlett-Packard Company
* (c) Copyright 1993 International Business Machines Corp.
* (c) Copyright 1993 Sun Microsystems, Inc.
*
*
* Disclaimer: This file could change between the 10/93 snapshot and the
* final release of CDE 1.0
*
*******************************************************************************
*/
#ifndef _Dt_DataTypes_h
#define _Dt_DataTypes_h
#include <X11/Intrinsic.h>
typedef XtPointer Pointer;
#endif /* _Dt_DataTypes_h */
/* Do not add anything after this endif. */

View File

@@ -1,69 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $TOG: DtGetMessageP.h /main/5 1998/07/30 12:14:37 mgreess $
*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1995 Hewlett-Packard Company.
* (c) Copyright 1995 International Business Machines Corp.
* (c) Copyright 1995 Sun Microsystems, Inc.
* (c) Copyright 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*
* DtGetMessage.h - Interfaces for the DtSvc library's private message
* catalog APIs
*/
#ifndef _DtGetMessage_h
#define _DtGetMessage_h
#ifdef __cplusplus
extern "C" {
#endif
/*
* External declarations
*/
extern char *Dt11GetMessage (
char *filename,
int set,
int number,
char *string);
/*
* Dt11GETMESSAGE macro
*/
#ifndef NO_MESSAGE_CATALOG
# define _MESSAGE_CAT_NAME "dt"
# define Dt11GETMESSAGE(set, number, string)\
Dt11GetMessage(_MESSAGE_CAT_NAME, set, number, string)
#else
# define Dt11GETMESSAGE(set, number, string)\
string
#endif
#ifdef __cplusplus
}
#endif
#endif /* _DtGetMessage_h */

View File

@@ -1,127 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: DtNlUtils.h /main/4 1996/06/21 17:22:30 ageorge $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/**************************************************************************/
/* */
/* Public include file for Dt localization functions. */
/* */
/**************************************************************************/
#ifdef NLS16
#include <stdlib.h>
#include <locale.h>
#include <string.h>
#include <limits.h>
#include <nl_types.h>
#include <langinfo.h>
#endif
#include <X11/Intrinsic.h>
#ifdef NLS16
#define is_multibyte _DtNl_is_multibyte
extern Boolean _DtNl_is_multibyte;
extern void Dt_nlInit( void ) ;
extern char * Dt_strtok(
char *s1,
char *s2) ;
extern char * Dt_strtok_r(
char *s1,
char *s2,
char **ptr) ;
extern int Dt_strspn(
char *s1,
char *s2) ;
extern int Dt_strcspn(
char *s1,
char *s2) ;
extern char * Dt_strchr(
char *s,
char c) ;
extern char * Dt_strrchr(
char *s,
char c) ;
extern void Dt_lastChar(
char *s,
char **cptr,
int *lenptr) ;
extern int Dt_charCount(
char *s) ;
extern char * _Dt_NextChar(char *s);
extern char * _Dt_PrevChar(const char *start,char *s);
extern int _Dt_isspace(char *s);
extern int _Dt_isdigit(char *s);
#define DtNlInitialize() (Dt_nlInit())
#define DtStrtok(s1, s2) (Dt_strtok(s1, s2))
#define DtStrtok_r(s1, s2, ptr) (Dt_strtok_r(s1, s2, ptr))
#define DtStrspn(s1, s2) (Dt_strspn(s1, s2))
#define DtStrcspn(s1, s2) (Dt_strcspn(s1, s2))
#define DtStrchr(s1, c) (Dt_strchr(s1, c))
#define DtStrrchr(s1, c) (Dt_strrchr(s1, c))
#define DtLastChar(s1, cp, lp) (Dt_lastChar(s1, cp, lp))
#define DtCharCount(s1) (Dt_charCount(s1))
#define DtNextChar(s) (is_multibyte?_Dt_NextChar(s):((s)+1))
#define DtPrevChar(st,s) (is_multibyte?_Dt_PrevChar(st,s):((s)-1))
#define DtIsspace(s) (is_multibyte?_Dt_isspace(s):isspace(*(s)))
#define DtIsdigit(s) (is_multibyte?_Dt_isdigit(s):isdigit(*(s)))
#else /* NLS16 */
#define DtNlInitialize()
#define DtStrtok(s1, s2) (strtok(s1, s2))
#define DtStrtok_r(s1, s2, ptr) (strtok_r(s1, s2, ptr))
#define DtStrspn(s1, s2) (strspn(s1, s2))
#define DtStrcspn(s1, s2) (strcspn(s1, s2))
#define DtStrchr(s1, c) (strchr(s1, c))
#define DtStrrchr(s1, c) (strrchr(s1, c))
#define DtLastChar(s1, cp, lp) {(*cp = s1 + strlen(s1) - 1); *lp = 1;}
#define DtCharCount(s1) (strlen(s1))
#define DtNextChar(s) ((s)+1)
#define DtPrevChar(st,s) ((s)-1)
#define DtIsspace(s) (isspace(*s))
#define DtIsdigit(s) (isdigit(*s))
#endif /* NLS16 */
extern char * _DtGetNthChar(
char *s,
int n) ;
extern char * _dt_strpbrk(
char *cs,
char *ct);
extern int _is_previous_single(
char *s1,
char *s2);

View File

@@ -1,145 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: DtP.h $TOG: DtP.h /main/7 1998/07/30 12:12:49 mgreess $
* Language: C
*/
#ifndef _DtP_h
#define _DtP_h
#include <X11/Xmd.h> /* for protocol typedefs */
#include <X11/Intrinsic.h>
#include <Dt/DtPStrings.h>
#include <Dt/DtGetMessageP.h>
#include <bms/sbport.h>
#include <bms/bms.h>
#ifdef __cplusplus
extern "C" {
#endif
/*********************************
*
* Miscellaneous Data Types
*
*********************************/
#define DtChar XeChar
#define DtString XeString
/*********************************
*
* Initalization
*
*********************************/
#define DtToolClass XeToolClass
/*********************************
*
* Global variables (defined in DtUtil.c)
*
*********************************/
extern Display * _DtDisplay;
extern char * _DtApplicationName;
extern char * _DtApplicationClass;
extern char * _DtToolClass;
extern XtAppContext _DtAppContext;
extern XrmDatabase _DtResourceDatabase;
extern Widget _DtInitTtContextWidget;
extern XtAppContext * _DtInitAppContextp;
extern void _DtAddToResource( Display *, const char * );
extern void _DtAddResString( Display *, const char *, unsigned int);
extern char * _DtGetResString( Display *dpy, unsigned int);
#define _DT_ATR_RESMGR (1 << 0)
#define _DT_ATR_PREFS (1 << 1)
/*
DESCRIPTION:
Add strings to XA_RESOURCE_MANAGER property on the default root
window. Correctly merges resource specifications with the same
name and different values. The new value overwrites the old.
_DtAddToResource() may be used where you would have used xrdb to
add a resource.
SYNOPSIS:
void _DtAddToResource(dpy,data)
Display *dpy; The application's display structure.
char *data; The string to be added to the
XA_RESOURCE_MANAGER property.
*/
extern char *_DtCreateDtDirs( Display * );
/*
DESCRIPTION:
Creates the directories needed for dt to operate in. When an
application saves its state inside a file, it should call this
routine to set up the directories before saving any files. The
routine constructs the path to which all save files should be saved
to when responding the the WM_SAVE_YOURSELF message issued by the
session manager. The routine returns the path to save to. It also
allocates the memory for the path so when you are done with it you
should free() it.
WARNING: If it can't create the directory it returns NULL
SYNOPSIS:
dirName = _DtCreateDtDirs (display);
char *dirName; The path to save to.
Display *display; The application's display structure.
*/
/*
* The following string globals are available for use by any DT
* component. They represent the button labels in most dialogs,
* and will be automatically localized by DtInitialize().
*/
extern const char * _DtOkString;
extern const char * _DtCancelString;
extern const char * _DtHelpString;
extern const char * _DtApplyString;
extern const char * _DtCloseString;
#ifdef __cplusplus
}
#endif
/* Do not add anything after this endif. */
#endif /* _DtP_h */

View File

@@ -1,87 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: DtPStrings.h $XConsortium: DtPStrings.h /main/5 1995/12/14 11:02:36 barstow $
* Language: C
*/
#ifndef _DtPStrings_h
#define _DtPStrings_h
/*
* DT applications should use this name to look up DT-global
* resources instead of argv[0].
*/
#define DtDT_PROG_NAME "dt"
/*
* DT applications should use this class name to look up DT-global
* resources.
*/
#define DtDT_PROG_CLASS "Dt"
/*
* The following string constants define the standard DT configuration
* directories.
*/
#define DtPERSONAL_CONFIG_DIRECTORY ".dt"
#define DtSM_SESSION_DIRECTORY "sessions"
#define DtSM_SESSION_DISPLAY_DIRECTORY "display"
#define DtCURRENT_DT_VERSION "3.0"
/*
* If you change the following two #defines, you must also change the
* related one below (DtDB_DIRS_DEFAULT).
*/
#define DtPERSONAL_DB_DIRECTORY ".dt/types"
#define DtPERSONAL_TMP_DIRECTORY ".dt/tmp"
/*
* Names for the message log files
*/
#define DtERRORLOG_FILE "errorlog"
#define DtOLD_ERRORLOG_FILE "errorlog.old"
#define DtOLDER_ERRORLOG_FILE "errorlog.older"
/*
* Strings for default types and icons
*/
#define DtDEFAULT_DATA_FT_NAME "DATA"
/*
* The following string constants define the resource name,
* resource class and default values for the action bitmaps.
*/
#define DtACTION_ICON_RESOURCE_NAME "actionIcon"
#define DtACTION_ICON_RESOURCE_CLASS "ActionIcon"
#define DtACTION_ICON_DEFAULT "Dtactn"
/*
* The following string constants define the resource name,
* resource class and default values for the Dt tmp directory path.
*/
#define DtACTION_DTTMPDIR_RESOURCE_NAME "dtTmpDir"
#define DtACTION_DTTMPDIR_RESOURCE_CLASS "DtTmpDir"
#define DtACTION_DTTMPDIR_DEFAULT ".dt/tmp"
/* Do not add anything after this endif. */
#endif /* _DtPStrings_h */

View File

@@ -1,248 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $TOG: DtosP.h /main/4 1998/01/21 16:37:29 mgreess $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifdef REV_INFO
#ifndef lint
static char SCCSID[] = "OSF/Motif: @(#)_DtosP.h 4.16 91/09/12";
#endif /* lint */
#endif /* REV_INFO */
/******************************************************************************
*******************************************************************************
*
* (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
* (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
* ALL RIGHTS RESERVED
*
* THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
* AND COPIED ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND
* WITH THE INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR
* ANY OTHER COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE
* AVAILABLE TO ANY OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE
* SOFTWARE IS HEREBY TRANSFERRED.
*
* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT
* NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE
* FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS
*
* OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
* ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
* SOFTWARE . OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE.
*
* Notice: Notwithstanding any other lease or license that may pertain to,
* or accompany the delivery of, this computer software, the rights of the
* Government regarding its use, reproduction and disclosure are as set
* forth in Section 52.227-19 of the FARS Computer Software-Restricted
* Rights clause.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc. Unpublished - all
* rights reserved under the Copyright laws of the United States.
*
* RESTRICTED RIGHTS NOTICE: Use, duplication, or disclosure by the
* Government is subject to the restrictions as set forth in subparagraph
* (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
* at DFARS 52.227-7013.
*
* Open Software Foundation, Inc.
* 11 Cambridge Center
* Cambridge, MA 02142
* (617)621-8700
*
* RESTRICTED RIGHTS LEGEND: This computer software is submitted with
* "restricted rights." Use, duplication or disclosure is subject to the
* restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
* "Commercial Computer Software- Restricted Rights (April 1985)." Open
* Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA 02142. If
* the contract contains the Clause at 18-52.227-74 "Rights in Data General"
* then the "Alternate III" clause applies.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
* ALL RIGHTS RESERVED
*
*
* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
* OSF is a trademark of Open Software Foundation, Inc.
* OSF/Motif is a trademark of Open Software Foundation, Inc.
* Motif is a trademark of Open Software Foundation, Inc.
* DEC is a registered trademark of Digital Equipment Corporation
* DIGITAL is a registered trademark of Digital Equipment Corporation
* X Window System is a trademark of the Massachusetts Institute of Technology
*
*******************************************************************************
******************************************************************************/
#ifndef __DtosP_h
#define __DtosP_h
#ifndef NO_MEMMOVE
# ifndef X_NOT_STDC_ENV
# include <stdlib.h> /* Needed for MB_CUR_MAX, mbtowc, mbstowcs and mblen */
# endif
#else
# define memmove( p1, p2, p3 ) bcopy( p2, p1, p3 )
#endif
#ifdef BOGUS_MB_MAX /* some systems don't properly set MB_[CUR|LEN]_MAX */
# undef MB_LEN_MAX
# define MB_LEN_MAX 1 /* temp fix */
# undef MB_CUR_MAX
# define MB_CUR_MAX 1 /* temp fix */
#endif /* BOGUS_MB_MAX */
/**********************************************************************/
/* here we duplicate Xtos.h, since we can't include this private file */
#ifdef INCLUDE_ALLOCA_H
# include <alloca.h>
#endif
#ifdef CRAY
# define WORD64
#endif
/* stolen from server/include/os.h */
#ifndef NO_ALLOCA
/*
* os-dependent definition of local allocation and deallocation
* If you want something other than XtMalloc/XtFree for ALLOCATE/DEALLOCATE
* LOCAL then you add that in here.
*/
# if defined(__HIGHC__)
# if HCVERSION < 21003
# define ALLOCATE_LOCAL(size) alloca((int)(size))
#pragma on(alloca);
# else /* HCVERSION >= 21003 */
# define ALLOCATE_LOCAL(size) _Alloca((int)(size))
# endif /* HCVERSION < 21003 */
# define DEALLOCATE_LOCAL(ptr) /* as nothing */
# endif /* defined(__HIGHC__) */
# ifdef __GNUC__
# ifdef alloca
# undef alloca
# endif
# define alloca __builtin_alloca
# define ALLOCATE_LOCAL(size) alloca((int)(size))
# define DEALLOCATE_LOCAL(ptr) /* as nothing */
# else /* ! __GNUC__ */
/*
* warning: mips alloca is unsuitable, do not use.
*/
# if defined(vax) || defined(sun) || defined(stellar)
/*
* Some System V boxes extract alloca.o from /lib/libPW.a; if you
* decide that you don't want to use alloca, you might want to fix it here.
*/
char *alloca();
# define ALLOCATE_LOCAL(size) alloca((int)(size))
# define DEALLOCATE_LOCAL(ptr) /* as nothing */
# endif /* who does alloca */
# endif /* __GNUC__ */
#endif /* NO_ALLOCA */
#ifndef ALLOCATE_LOCAL
# define ALLOCATE_LOCAL(size) XtMalloc((unsigned long)(size))
# define DEALLOCATE_LOCAL(ptr) XtFree((XtPointer)(ptr))
#endif /* ALLOCATE_LOCAL */
/* End of Xtos.h */
/*****************/
/*
* Default Icon Search Paths
*
* The following are default starter values for XMICONSEARCHPATH and
* XMICONBMSEARCHPATH, respectively. Code elsewhere must ensure that paths
* into the user's home directory occur in front of these paths in the
* environment variables. Note the apparently redundant use of ANSI C string
* constant concatenation; this is necessary in order to avoid the sequence of
* characters % B %, which form an SCCS id keyword.
*/
#define DTPMSYSDEFAULT \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:" \
\
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:" \
\
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B:" \
\
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B"
#define DTBMSYSDEFAULT \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:" \
\
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:" \
\
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/%L/%B:" \
\
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
CDE_INSTALLATION_TOP "/appconfig/icons/C/%B"
#ifdef __cplusplus
extern "C" {
#endif
/******** Private Function Declarations ********/
/******** End Private Function Declarations ********/
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration which encloses file. */
#endif
#endif /* __DtosP_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,61 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: DtpadM.h /main/3 1995/10/26 15:20:56 rswiston $ */
/************************************<+>*************************************
****************************************************************************
**
** File: DtpadM.h
**
** Project: HP-DT "dtpad" text editor
**
** Description: Defines for the tool class and messages for the
** dtpad text editor
**
**
** (c) Copyright 1993, 1994 Hewlett-Packard Company
** (c) Copyright 1993, 1994 International Business Machines Corp.
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
** (c) Copyright 1993, 1994 Novell, Inc.
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _DtpadM_h
#define _DtpadM_h
#define DTPAD_TOOL_CLASS "DTPAD"
/*
* Request Messages which the editor understands
*/
#define DTPAD_RUN_SESSION_MSG "RUN_SESSION"
#define DTPAD_OPEN_FILE_MSG "OPEN_FILE"
/*
* Notification Messages which the Editor sends
*/
#define DTPAD_DONE "DONE"
#endif /*_DtpadM_h*/

View File

@@ -1,124 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/****************************<+>*************************************
**
** File: EnvControlI.h
**
** RCS: $TOG: EnvControlI.h /main/6 1998/07/30 12:14:02 mgreess $
**
** Project: DT Runtime Library -- Private header
**
** Description: Defines structures, and parameters used
** for communication with the environment
**
** (c) Copyright 1992-94 by Hewlett-Packard Company
**
****************************<+>*************************************/
/*******************************************************************
The environment variables
*******************************************************************/
#define BIN_PATH_ENVIRON "PATH"
#define NLS_PATH_ENVIRON "NLSPATH"
#define SYSTEM_APPL_PATH_ENVIRON "XFILESEARCHPATH"
#define PM_PATH_ENVIRON "XMICONSEARCHPATH"
#define BM_PATH_ENVIRON "XMICONBMSEARCHPATH"
/*******************************************************************
The default DT path strings, architecture-dependent
*******************************************************************/
#define BIN_PATH_STRING CDE_INSTALLATION_TOP "/bin"
#define NLS_PATH_STRING CDE_INSTALLATION_TOP "/lib/nls/msg/%L/%N.cat:" \
CDE_INSTALLATION_TOP "/lib/nls/msg/C/%N.cat"
#if defined(sun)
#define X_BIN_PATH_STRING "/usr/openwin/bin"
#else
#define X_BIN_PATH_STRING "/usr/bin/X11"
#endif
/*
* Some notes on the behavior and use of the XFILESEARCHPATH component, as
* defined through the SYSTEM_APPL_PATH_STRING definition below:
*
* Its precedence in the lookup of X resources is fairly low--it can
* be overridden by XRM resources, by resources specified in
* the user's $HOME/.Xdefaults-<hostname> file, and by resources
* found using the $XUSERFILESEARCHPATH setting.
*
* The order of pathnames in the XFILESEARCHPATH is such that the first
* match satisfies the lookup, and the lookup stops there.
*
* We place the pathname components in our XFILESEARCHPATH such that
* the lookup goes, from first match attempt to last match attempt, as
* follows:
*
* - Custom resources: /etc/../$LANG
* - Custom resources: /etc/../C
* - Factory defaults: /opt/../$LANG --shipped with every localized system
* - Factory defaults: /opt/../C --shipped with every system
*
* These resources are used ONLY for the DT components themselves
* (not, for example, for MIT client resources).
*
* The CDE vendors retain the right to alter, remove, append to, and
* ignore any settings in the factory defaults locations. The vendors
* will not modify the settings in the "custom resources" locations.
*
*/
#define SYSTEM_APPL_PATH_STRING CDE_CONFIGURATION_TOP "/app-defaults/%L/%N:" \
CDE_CONFIGURATION_TOP "/app-defaults/C/%N:" \
CDE_INSTALLATION_TOP "/app-defaults/%L/%N:" \
CDE_INSTALLATION_TOP "/app-defaults/C/%N"
/**********************************************************************
* Data representation of the user's DT environment
**********************************************************************/
typedef struct environStruct {
char * pmPath;
char * binPath;
char * nlsPath;
char * sysApplPath;
char * bmPath;
} _environStruct;
/**********************************************************************
* Miscellaneous
**********************************************************************/
#define BV_BINPATH (1<<0)
#define BV_SYSAPPLPATH (1<<1)
#define BV_NLSPATH (1<<2)
#define BV_PMPATH (1<<3)
#define BV_BMPATH (1<<4)
#define MAX_ENV_STRING (2*BUFSIZ)
/**************************** eof **********************/

View File

@@ -1,87 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/****************************<+>*************************************
**
** File: EnvControlP.h
**
** RCS: $TOG: EnvControlP.h /main/6 1998/07/30 12:13:45 mgreess $
** Project: DT Runtime Library
**
** Description: Defines structures, and parameters used
** for communication with the environment
**
** (c) Copyright 1990 by Hewlett-Packard Company
**
****************************<+>*************************************/
/******** Public Function Declarations ********/
#ifdef __cplusplus
extern "C" {
#endif
extern int _DtEnvControl(
int mode) ;
extern int _DtWsmSetBackdropSearchPath(
Screen *screen,
char *backdropDir,
Boolean useMultiColorIcons) ;
/******** End Public Function Declarations ********/
/**********************************************************************
* Command parameters to the function, which double as result codes.
* If the invocation is successful, the same is returned;
* else DT_ENV_NO_OP is returned.
DT_ENV_SET
Sets the DT environment.
DT_ENV_RESTORE_PRE_DT
Restores the pre-DT application environment
DT_ENV_RESTORE_POST_DT
Reinstalls the DT environment after a restoring pre-DT
environment
DT_ENV_NO_OP
Does nothing
DT_ENV_SET_BIN
Sets the DT environment PLUS sets the PATH= variable to
where the DT files live.
**********************************************************************/
#define DT_ENV_SET 0
#define DT_ENV_RESTORE_PRE_DT 1
#define DT_ENV_RESTORE_POST_DT 2
#define DT_ENV_NO_OP 3
#define DT_ENV_SET_BIN 4
#ifdef __cplusplus
}
#endif
/**************************** eof **********************/

View File

@@ -1,63 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: FileM.h /main/3 1995/10/26 15:21:35 rswiston $ */
/************************************<+>*************************************
****************************************************************************
**
** File: FileM.h
**
** Project: DT
**
** Description: Defines for the tool class and messages for the
** File Manager.
**
**
** (c) Copyright 1993, 1994 Hewlett-Packard Company
** (c) Copyright 1993, 1994 International Business Machines Corp.
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
** (c) Copyright 1993, 1994 Novell, Inc.
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _FileM_h
#define _FileM_h
#define FILE_MANAGER_TOOL_CLASS "FILEMGR"
#define FILE_MANAGER_CLASS_NAME "Dtfile"
#define FILE_MANAGER_RUN_SESSION_MSG "RUN_SESSION"
#define FILE_MANAGER_SHOW_HOME_MSG "SHOW_HOME_FOLDER"
#define FILE_MANAGER_SHOW_DIRECTORY_MSG "SHOW_FOLDER"
#define FILE_MANAGER_SHOW_TOOLS_MSG "SHOW_TOOLS"
#define SHOW_TRASH_MSG "SHOW_TRASH"
#define REMOVE_TRASH_MSG "REMOVE_TRASH"
#define EMPTY_TRASH_MSG "EMPTY_TRASH"
#endif /*_FileM_h*/
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,169 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: FileUtil.h $XConsortium: FileUtil.h /main/4 1995/10/26 15:21:50 rswiston $
* Language: C
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _FileUtil_h
#define _FileUtil_h
extern int _DtCreateDirs( char *path,
int mode) ;
/******************
*
* Function Name: _DtCreateDirs
*
* Description:
*
* This function is passed a directory path to create and the mode
* for the directory. It will create any of the parent directories
* on the path that do not already exist.
*
* This function may fail if any of the directories on the path already
* exist and are not writable. If some component of the path already
* exists and is not a directory, a failure will be returned.
*
* If some component of the path exists as a directory but does not have
* the specified mode, this will NOT cause a failure to be returned.
* This implies that if this function is called to create a writeable
* directory, it is possible for the function to return successfully
* but the directory may not actually be writable.
*
* Synopsis:
*
* status = _DtCreateDirs (path, mode);
*
* int status; Returns 0 on success and -1 on failure.
* char *path; The directory path to create.
* int mode; The file mode for setting any directories
* that are created.
*
******************/
extern int _DtIsOpenableDir( char *path) ;
/******************
*
* Function Name: _DtIsOpenableDir
*
* Description:
*
* This function takes a path as an argument and determines whether
* the path is a directory that can be opened. This function returns
* "1" if the path is an openable directory and "0" if it is not.
*
* The path can be in the Softbench "context" form of "host:/path/dir".
*
* Synopsis:
*
* status = _DtIsOpenableDir (cpath)
*
* int status; Returns 1 for openable directories,
* 0 otherwise.
* char *cpath; The directory name to test.
*
******************/
extern int
_DtIsOpenableDirContext(
char *path,
char **ret_path ) ;
/******************
*
* Function Name: _DtIsOpenableDirContext
*
* Description:
*
* This function takes a path as an argument and determines whether
* the path is a directory that can be opened. This function returns
* "1" if the path is an openable directory and "0" if it is not.
* In addition, if the calling function passes in another pointer,
* we will return the internal representation for the path.
*
* The path can be in the Softbench "context" form of "host:/path/dir".
*
* Synopsis:
*
* status = _DtIsOpenableDirContext (cpath, ret_ptr)
*
* int status; Returns 1 for openable directories,
* 0 otherwise.
* char *cpath; The directory name to test.
* char ** ret_ptr; Where to place internal format.
*
******************/
extern char * _DtReaddirLstat(
char *dir_name,
DIR *dirp,
struct stat *st_buf) ;
/******************
*
* Function Name: _DtReaddirLstat
*
* Description:
*
* This function reads the next entry out of a directory that has
* been opened with opendir and returns lstat information on it.
* For more information on reading a directory, see directory(3C).
* For more information on lstat information, see stat(2).
*
* This function returns a pointer to the full pathname of the directory
* entry. This memory is owned by this function and must not be
* freed. If the caller wants to keep the filename, it must make its
* own copy. When the end of the directory is encountered, NULL is
* returned.
*
* Synopsis:
*
* dir_entry = _DtReaddirLstat (dir_name, dirp, st_buf);
*
* char *dir_entry; The name of the current entry within the
* directory.
*
* char *dir_name; The full path name of the directory.
*
* DIR *dirp; A pointer to the directory [obtained from
* opendir(3C)].
*
* struct stat *st_buf; The lstat(2) information.
*
******************/
#endif /* _FileUtil_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,69 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/****************************<+>*************************************
**
** File: EnvControl.h
**
** RCS: $XConsortium: GetDispRes.h /main/4 1995/10/26 15:22:11 rswiston $
** Project: HP DT Runtime Library
**
** Description: Defines structures, and parameters used
** for communication with the environment
**
** (c) Copyright 1992 by Hewlett-Packard Company
**
****************************<+>*************************************/
/******** Function Declarations ********/
int _DtGetDisplayResolution(
Display *disp,
int screen) ;
/******** End Function Declarations ********/
/**********************************************************************
* Resolution threshold values (width of screen in pixels)
**********************************************************************/
#define _DT_HIGH_RES_MIN 1176
#define _DT_MED_RES_MIN 851
#define _DT_LOW_RES_MIN 512
/**********************************************************************
* Resolution types of a given screen
**********************************************************************/
#define NO_RES_DISPLAY 0
#define LOW_RES_DISPLAY 1
#define VGA_RES_DISPLAY 2
#define MED_RES_DISPLAY 3
#define HIGH_RES_DISPLAY 4
#define ALL_RES_DISPLAY 5
/**************************** eof **********************/

View File

@@ -1,181 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: HashP.h /main/4 1995/10/26 15:22:50 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifdef REV_INFO
#ifndef lint
static char SCCSID[] = "OSF/Motif: @(#)_HashP.h 4.16 91/09/12";
#endif /* lint */
#endif /* REV_INFO */
/******************************************************************************
*******************************************************************************
*
* (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
* (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
* ALL RIGHTS RESERVED
*
* THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
* AND COPIED ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND
* WITH THE INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR
* ANY OTHER COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE
* AVAILABLE TO ANY OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE
* SOFTWARE IS HEREBY TRANSFERRED.
*
* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT
* NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE
* FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS
*
* OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
* ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
* SOFTWARE . OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE.
*
* Notice: Notwithstanding any other lease or license that may pertain to,
* or accompany the delivery of, this computer software, the rights of the
* Government regarding its use, reproduction and disclosure are as set
* forth in Section 52.227-19 of the FARS Computer Software-Restricted
* Rights clause.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc. Unpublished - all
* rights reserved under the Copyright laws of the United States.
*
* RESTRICTED RIGHTS NOTICE: Use, duplication, or disclosure by the
* Government is subject to the restrictions as set forth in subparagraph
* (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
* at DFARS 52.227-7013.
*
* Open Software Foundation, Inc.
* 11 Cambridge Center
* Cambridge, MA 02142
* (617)621-8700
*
* RESTRICTED RIGHTS LEGEND: This computer software is submitted with
* "restricted rights." Use, duplication or disclosure is subject to the
* restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
* "Commercial Computer Software- Restricted Rights (April 1985)." Open
* Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA 02142. If
* the contract contains the Clause at 18-52.227-74 "Rights in Data General"
* then the "Alternate III" clause applies.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
* ALL RIGHTS RESERVED
*
*
* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
* OSF is a trademark of Open Software Foundation, Inc.
* OSF/Motif is a trademark of Open Software Foundation, Inc.
* Motif is a trademark of Open Software Foundation, Inc.
* DEC is a registered trademark of Digital Equipment Corporation
* DIGITAL is a registered trademark of Digital Equipment Corporation
* X Window System is a trademark of the Massachusetts Institute of Technology
*
*******************************************************************************
******************************************************************************/
#ifndef __HashP_h
#define __HashP_h
#include <X11/Intrinsic.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* the structure is used as a common header part for different
* users of the hash functions in order to locate the key
*/
typedef XtPointer DtHashKey;
typedef DtHashKey (*DtGetHashKeyFunc)();
typedef Boolean (*DtHashEnumerateFunc)();
typedef void (*DtReleaseKeyProc)();
typedef struct _DtHashEntryPartRec {
unsigned int type:16;
unsigned int flags:16;
}DtHashEntryPartRec, *DtHashEntryPart;
typedef struct _DtHashEntryRec {
DtHashEntryPartRec hash;
}DtHashEntryRec, *DtHashEntry;
typedef struct _DtHashEntryTypePartRec {
unsigned int entrySize;
DtGetHashKeyFunc getKeyFunc;
XtPointer getKeyClientData;
DtReleaseKeyProc releaseKeyProc;
}DtHashEntryTypePartRec, *DtHashEntryTypePart;
typedef struct _DtHashEntryTypeRec {
DtHashEntryTypePartRec hash;
}DtHashEntryTypeRec, *DtHashEntryType;
typedef struct _DtHashTableRec *DtHashTable;
/******** Private Function Declarations for Hash.c ********/
extern void _DtRegisterHashEntry(
DtHashTable tab,
DtHashKey key,
DtHashEntry entry) ;
extern void _DtUnregisterHashEntry(
DtHashTable tab,
DtHashEntry entry) ;
extern DtHashEntry _DtEnumerateHashTable(
DtHashTable tab,
DtHashEnumerateFunc enumFunc,
XtPointer clientData) ;
extern DtHashEntry _DtKeyToHashEntry(
DtHashTable tab,
DtHashKey key) ;
extern DtHashTable _DtAllocHashTable(
DtHashEntryType *hashEntryTypes,
Cardinal numHashEntryTypes,
#if NeedWidePrototypes
int keyIsString) ;
#else
Boolean keyIsString) ;
#endif /* NeedWidePrototypes */
extern void _DtFreeHashTable(
DtHashTable hashTable) ;
/******** End Private Function Declarations ********/
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration which encloses file. */
#endif
#endif /* HashP_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,94 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: HourGlass.h /main/4 1995/10/26 15:23:08 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/************************************<+>*************************************
****************************************************************************
**
** File: HourGlass.h
**
** Project: DT
**
** Description: Public include file for HourGlass Library.
**
**
** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _hourglass_h
#define _hourglass_h
/* _DtGetHourGlassCursor -
*
* Builds and returns the appropriate HourGlass cursor.
*/
extern Cursor _DtGetHourGlassCursor(
Display *dpy) ;
/* _DtTurnOnHourGlass -
*
* Gets and displays an hourglass cursor in the window of the widget
* which is passed in to the funciton.
*/
extern void _DtTurnOnHourGlass(
Widget w) ;
/* Widget widget;
*
* widget is the toplevel shell of the window you want
* the hourglass cursor to appear in.
*/
/* _DtTurnOffHourGlass -
*
* Removes the hourglass cursor from the window of the widget
* which is passed in to the funciton.
*/
extern void _DtTurnOffHourGlass(
Widget w) ;
/* Widget widget;
*
* widget is the toplevel shell of the window you want
* to remove hourglass cursor from.
*/
#endif /* _hourglass_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,140 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: IconFile.h /main/4 1995/10/26 15:23:17 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifdef REV_INFO
#ifndef lint
static char SCCSID[] = "OSF/Motif: @(#)_IconFile.h 4.16 91/09/12";
#endif /* lint */
#endif /* REV_INFO */
/******************************************************************************
*******************************************************************************
*
* (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
* (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
* ALL RIGHTS RESERVED
*
* THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
* AND COPIED ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND
* WITH THE INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR
* ANY OTHER COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE
* AVAILABLE TO ANY OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE
* SOFTWARE IS HEREBY TRANSFERRED.
*
* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT
* NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE
* FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS
*
* OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
* ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
* SOFTWARE . OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE.
*
* Notice: Notwithstanding any other lease or license that may pertain to,
* or accompany the delivery of, this computer software, the rights of the
* Government regarding its use, reproduction and disclosure are as set
* forth in Section 52.227-19 of the FARS Computer Software-Restricted
* Rights clause.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc. Unpublished - all
* rights reserved under the Copyright laws of the United States.
*
* RESTRICTED RIGHTS NOTICE: Use, duplication, or disclosure by the
* Government is subject to the restrictions as set forth in subparagraph
* (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
* at DFARS 52.227-7013.
*
* Open Software Foundation, Inc.
* 11 Cambridge Center
* Cambridge, MA 02142
* (617)621-8700
*
* RESTRICTED RIGHTS LEGEND: This computer software is submitted with
* "restricted rights." Use, duplication or disclosure is subject to the
* restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
* "Commercial Computer Software- Restricted Rights (April 1985)." Open
* Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA 02142. If
* the contract contains the Clause at 18-52.227-74 "Rights in Data General"
* then the "Alternate III" clause applies.
*
* (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
* ALL RIGHTS RESERVED
*
*
* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
* OSF is a trademark of Open Software Foundation, Inc.
* OSF/Motif is a trademark of Open Software Foundation, Inc.
* Motif is a trademark of Open Software Foundation, Inc.
* DEC is a registered trademark of Digital Equipment Corporation
* DIGITAL is a registered trademark of Digital Equipment Corporation
* X Window System is a trademark of the Massachusetts Institute of Technology
*
*******************************************************************************
******************************************************************************/
#ifndef __DtIconFile_h
#define __DtIconFile_h
#include <Xm/Xm.h>
#include <Xm/IconFile.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* values for icon magnitude
*/
#define DtUNSPECIFIED 0
#define DtLARGE 1
#define DtMEDIUM 2
#define DtSMALL 3
#define DtTINY 4
/******** Public Function Declarations for XmWrap.c ********/
extern String _DtGetIconFileName(
Screen *screen,
String imageInstanceName,
String imageClassName,
String hostPrefix,
unsigned int size) ;
/******** End Public Function Declarations ********/
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration which encloses file. */
#endif
#endif /* __DtIconFile_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,64 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: Indicator.h /main/4 1995/10/26 15:23:41 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/*
********************************************************************************
*
* File: Indicator.h
* Description: Public header for Activity Indicator
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
********************************************************************************
*/
#ifndef _Indicator_h
#define _Indicator_h
extern void _DtSendActivityNotification( int ) ;
/* int duration; Maximum activation time for the indicator */
/*
* _DtSendActivityNotification() provides the application with the means for
* notifying the world that an activity has been started, and may take upto
* 'duration' seconds. For now, the workspace manager will enable the
* activity indicator for upto the indicated duration of time; the time is
* in units of seconds.
*/
extern void _DtSendActivityDoneNotification( void ) ;
/*
* _DtSendActivityDoneNotification() provides the application with the means for
* notifying the world that an activity which had earlier been started, is
* now complete.
*/
#endif /* _Indicator_h */
/* DON'T ADD STUFF AFTER THIS #endif */

View File

@@ -1,59 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/*****************************<+>*************************************
*********************************************************************
**
** File: IndicatorM.h
**
** RCS: $XConsortium: IndicatorM.h /main/3 1995/10/26 15:23:53 rswiston $
** Project: DT
**
** Description: Defines indicator messages
**
** (c) Copyright 1990 by Hewlett-Packard Company
**
*********************************************************************
*****************************<+>*************************************/
#ifndef _IndicatorM_h
#define _IndicatorM_h
/*
* BMS Messaging definitions
*/
/* _DtMessage for turning on the activity indicator */
#define DtACTIVITY_NOTIFICATION "ACTIVITY_NOTIFICATION"
/* _DtMessage for turning off the activity indicator */
#define DtACTIVITY_DONE_NOTIFICATION "ACTIVITY_DONE_NOTIFICATION"
#endif /* _IndicatorM_h */
/* Do not add anything after this endif. */

View File

@@ -1,59 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: Info.h /main/2 1996/03/26 15:05:44 barstow $
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*
*/
#ifndef _dt_info_h_
#define _dt_info_h_
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
DtINFO_SHOW_OK,
DtINFO_SHOW_BAD_LOCATOR, /* the locator argument is NULL */
DtINFO_SHOW_TT_OPEN_FAIL, /* tt_open() failed */
DtINFO_SHOW_MSG_CREATE_FAIL, /* tt_message_create() failed */
DtINFO_SHOW_MSG_SEND_FAIL /* tt_message_send() failed */
} DtInfoShowStatus;
extern DtInfoShowStatus DtInfoShowTopic (
const char * info_lib, /* The InfoLib to browse */
const char * locator); /* The locator in Generalized Locator
Format */
#ifdef __cplusplus
}
#endif
#endif /* _dt_info_h_ */

View File

@@ -1,112 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
/************************************<+>*************************************
****************************************************************************
**
** File: LocaleXlate.h
**
** Project: DtLcx
**
** Description: locale translation services
**
** (c) Copyright 1993, 1994 Hewlett-Packard Company
** (c) Copyright 1993, 1994 International Business Machines Corp.
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
** (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _DtLCX_XLATE_LOCALE_I
#define _DtLCX_XLATE_LOCALE_I
#include "XlationSvc.h" /* FIX: move to <> */
#ifdef __cplusplus
extern "C" {
#endif
#if DOC
/*========================================================*/
$CONSTBEG$: _DtLCX_OPER_xxx
$1LINER$: Constants for specifying operations
$SUMMARY$:
The _DtLCX_OPER_xxx are constants that produce strings
used in the translation specifications when specifying
the operation of a translation.
The operation string name must be identical both in the
source code and in the translation table.
These constants should be used whenever referencing
operations as part of a translation.
/*================================================$SKIP$==*/
#endif
/* $DEF$, Operation constants */
#define DtLCX_OPER_STD "standard"
#define DtLCX_OPER_ICONV1 "iconv1"
#define DtLCX_OPER_ICONV3 "iconv3"
#define DtLCX_OPER_NLLANGINFO_CODESET "nl_langinfo(CODESET)"
#define DtLCX_OPER_SETLOCALE "setlocale"
#define DtLCX_OPER_MULTIBYTE "multibyte"
#define DtLCX_OPER_CCDF "ccdf"
#define DtLCX_OPER_XLFD "xlfd"
#define DtLCX_OPER_MIME "mime"
#define DtLCX_OPER_INTERCHANGE_CODESET "interchangeCodeset"
/*$END$*/
/* Functions */
#define _DtLcxCloseDb(io_db) _DtXlateCloseDb(io_db)
int _DtLcxOpenAllDbs(
_DtXlateDb * ret_db);
int _DtLcxXlateOpToStd(
const _DtXlateDb xlationDb,
const char * platform,
const int version,
const char * operation,
const char * opValue,
char * * ret_stdLocale,
char * * ret_stdLangTerr,
char * * ret_stdCodeset,
char * * ret_stdModifier);
int _DtLcxXlateStdToOp(
const _DtXlateDb xlationDb,
const char * platform,
const int version,
const char * operation,
const char * stdLocale,
const char * stdLangTerr,
const char * stdCodeset,
const char * stdModifier,
char * * ret_opValue);
#ifdef __cplusplus
}
#endif
#endif /*_DtLCX_XLATE_LOCALE_I*/
/********* do not put anything below this line ********/

View File

@@ -1,145 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Lock.h $XConsortium: Lock.h /main/4 1995/10/26 15:24:02 rswiston $
* Language: C
*
* (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_lock_h
#define _Dt_lock_h
/*
GENERAL DESCRIPTION:
The DT lock facility provides simple exclusive locking. It
(as of 6/19/90) is based on the X11 selection-ownership
mechanism, though users of Dt locking do not need to be aware of
this.
X11 server grabs are judiciously used to guarantee atomicity of
operations. If a process which holds a lock dies (or closes its
X11 server connection for some other reason), the lock will be
automatically released.
Locks are identified by a string. There is no mechanism to
allocate unique lock strings to clients; users must take care to
choose a string that will not be easily duplicated by some other
client.
SAMPLE CODE:
#define MY_LOCK "MYAPP_MY_LOCK"
...
if (_DtGetLock (display, MY_LOCK)) {
<do whatever it is I want to do>
_DtReleaseLock (display, MY_LOCK);
}
else {
<do the alternative>
}
*/
extern int _DtGetLock (
Display *display,
char *lock_name);
/*
DESCRIPTION:
_DtGetLock attempts to get the specified lock. If nobody holds
the lock, _DtGetLock will obtain the lock and return 1. If
somebody else already holds the lock, the lock will not be
disturbed and _DtGetLock will return 0.
If the process which owns a lock dies (or closes its X11 server
connection), the lock will be automatically released. To
explicitly release a lock, use _DtReleaseLock.
SYNOPSIS:
success = _DtGetLock (display, lock);
int success; Returns 1 if the lock is obtained,
0 if not.
Display *display; The X11 server connection which will
hold the lock.
char *lock; The string which names the lock.
*/
extern void _DtReleaseLock (
Display *display,
char *lock_name);
/*
DESCRIPTION:
_DtReleaseLock releases a lock obtained by _DtGetLock.
WARNING!! It is perfectly legal for one process to release
a lock held by another process. By convention you should only
release locks previously obtained by your process from _DtGetLock
unless you are playing God and know what you are doing.
SYNOPSIS:
(void) _DtReleaseLock (display, lock);
Display *display; The X11 server connection which holds
the lock.
char *lock; The string which names the lock.
*/
extern int _DtTestLock (
Display *display,
char *lock_name);
/*
DESCRIPTION:
_DtTestLock returns a status indicating whether anybody holds the
specified lock.
SYNOPSIS:
status = _DtTestLock (display, lock);
int success; Returns 1 if anybody holds the lock,
0 otherwise.
Display *display; The X11 server connection.
char *lock; The string which names the lock.
*/
#endif /* _Dt_lock_h */
/* Do not add anything after this endif. */

View File

@@ -1,114 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Message.h $XConsortium: Message.h /main/5 1996/03/01 16:36:42 drk $
* Language: C
*
* (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_message_h
#define _Dt_message_h
#include <Dt/DataTypes.h>
#include <Dt/DtP.h>
#include <Dt/Service.h>
/* This header file is a modifed version of <Xv/Message.h> that
* provides compatibility between the BMS messaging and the new
* ICCCM messaging used in DT.
*
* The following symbols that were defined in <Xv/Message.h> are
* no longer available. Any code that depended on them will have
* to be rewritten:
*
* DtServerDeathFn
* DtCloseMsgServerConnect
* DtAddFailNotificationCallback
* DtStatusResponse
* DtUniqueRequestId
* DtSendFailNotification
* DtSendMsg
*/
/**********************************
*
* Message Format
*
**********************************/
/*
* DT messages have the following format:
*
* Request message: <request> [args ...]
* Reply message: <SUCCESS | FAILURE> [args ...]
* Notify message: <notification> [args ...]
*
* The following fields in BMS messages are no longer supported:
*
* DT_MSG_SENDER
* DT_MSG_REQUEST_ID
* DT_MSG_TOOL
* DT_MSG_HOST
* DT_MSG_DIR
* DT_MSG_FILE
*/
#define DT_MSG_TYPE 0
#define DT_MSG_COMMAND 0
#define DT_MSG_DATA_1 1
#define DT_MSG_DATA_2 2
#define DT_MSG_DATA_3 3
#define DT_MSG_DATA_4 4
#define DT_MSG_DATA_5 5
#define DT_MSG_DATA_6 6
#define DT_MSG_DATA_7 7
#define DT_MSG_DATA_8 8
#define DT_MSG_DATA_9 9
#define DT_MSG_DATA_10 10
#define DT_MSG_DATA_11 11
#define DT_MSG_DATA_12 12
#define DT_MSG_DATA_13 13
#define DT_MSG_DATA_14 14
#define DT_MSG_DATA_15 15
#define DT_MSG_DATA_16 16
#define DT_MSG_DATA_17 17
#define DT_MSG_DATA_18 18
#define DT_MSG_DATA_19 19
#define DT_MSG_DATA_20 20
#define DtDONT_CARE_FIELD "*"
/*
If a particular message does not require a value in one of the
fields, use DtDONT_CARE_FIELD for the value of the field.
*/
#endif /*_Dt_message_h*/
/* Do not add anything after this endif. */

View File

@@ -1,55 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* Msg.h -- Header file for DT messaging library
*
* $XConsortium: Msg.h /main/5 1996/03/01 16:36:15 drk $
*
* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
*/
#ifndef _DT_MSG_H
#define _DT_MSG_H
#include <X11/Intrinsic.h>
#include <Dt/DataTypes.h>
/*
* _DtMessage handle definitions
*/
typedef struct _DtMsgHandle *DtMsgHandle;
/*
* Return values
*/
#define dtmsg_NO_LISTENERS (102)
#define dtmsg_SUCCESS (1)
#define dtmsg_FAIL (-1)
#define dtmsg_NO_SERVICE (-102)
#define dtmsg_WRONG_FORMAT (-103)
#define dtmsg_ANOTHER_PROVIDER (-104)
#define dtmsg_LOST_SERVICE (-105)
#define DtMsgContext Pointer
#endif /* not defined _DT_MSG_H */
/***** END OF FILE ****/

View File

@@ -1,53 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1995 Hewlett-Packard Company.
* (c) Copyright 1995 International Business Machines Corp.
* (c) Copyright 1995 Sun Microsystems, Inc.
* (c) Copyright 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*
* MsgCat.h - Public interfaces for the Cached Message Catalog Service
*
* $TOG: MsgCatP.h /main/1 1998/04/22 14:19:24 mgreess $
*
*/
#ifndef _Dt_MsgCat_h
#define _Dt_MsgCat_h
#include <nl_types.h>
#ifdef __cplusplus
extern "C" {
#endif
extern char *_DtCatgetsCached(nl_catd catd, int set, int num, char *dflt);
#ifdef __cplusplus
}
#endif
#endif /* _Dt_MsgCat_h */

View File

@@ -1,86 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1995 Hewlett-Packard Company.
* (c) Copyright 1995 International Business Machines Corp.
* (c) Copyright 1995 Sun Microsystems, Inc.
* (c) Copyright 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*
* MsgLog.h - Public header file for the Message Logging Service
*
* $XConsortium: MsgLog.h /main/5 1995/07/14 13:22:57 drk $
*
*/
#ifndef _Dt_MsgLog_h
#define _Dt_MsgLog_h
#include <stdio.h> /* needed for FILE */
#ifdef __cplusplus
extern "C" {
#endif
# include <stdarg.h>
/*
* Type declarations
*/
typedef enum {
DtMsgLogInformation,
DtMsgLogStderr,
DtMsgLogDebug,
DtMsgLogWarning,
DtMsgLogError
} DtMsgLogType;
typedef void (*DtMsgLogHandler) (
const char * program_name,
DtMsgLogType msg_type,
const char * format,
va_list args );
/*
* Function declarations
*/
extern void DtMsgLogMessage (
const char * program_name,
DtMsgLogType msg_type,
const char * format,
... );
extern DtMsgLogHandler DtMsgLogSetHandler (
DtMsgLogHandler handler );
extern FILE * DtMsgLogOpenFile (
const char * type,
char ** filename_return); /* MODIFIED */
#ifdef __cplusplus
}
#endif
#endif /* _Dt_MsgLog_h */

View File

@@ -1,65 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1995 Hewlett-Packard Company.
* (c) Copyright 1995 International Business Machines Corp.
* (c) Copyright 1995 Sun Microsystems, Inc.
* (c) Copyright 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*
* MsgLogI.h - Private header file for the Message Logging Service
*
* $XConsortium: MsgLogI.h /main/4 1995/07/14 13:23:02 drk $
*
*/
#ifndef _Dt_MsgLogI_h
#define _Dt_MsgLogI_h
# include <stdarg.h>
# define Va_start(a,b) va_start(a,b)
/*
* Account for the various macros on different systems which indicate that
* stdarg.h has been included. Code in this file only checks for
* _STDARG_INCLUDED. If a given system defines another macro that means the
* same thing -- then define _STDARG_INCLUDED here.
*
* System Macro Indicating stdarg.h has been included
* -------- ---------------------------------------------
* HPUX _STDARG_INCLUDED
* AIX _H_STDARG
* SOLARIS _STDARG_H
*/
#ifdef _H_STDARG
#define _STDARG_INCLUDED
#endif
#ifdef _STDARG_H
#define _STDARG_INCLUDED
#endif
#endif /* _Dt_MsgLogI_h */

View File

@@ -1,182 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
#ifndef _DT_MSG_P_H
#define _DT_MSG_P_H
/*
* MsgP.h -- Private header file for DT messaging library
*
* $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
* $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
*
* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
*/
#include <Dt/Msg.h>
/*
* Definitions
*/
/* max property size (bytes) */
#define DT_MSG_MAX_PROP_SIZE (32768)
/* atom names */
#define DT_MSG_XA_REQUEST "_DT_REQUEST"
#define DT_MSG_XA_NOTIFY "_DT_NOTIFY"
#define DT_MSG_XA_BROADCAST_REGISTRY "_DT_BROADCAST_REGISTRY"
/*
* _DtMessage handle
*/
typedef struct _DtMsgHandle {
char * pchName; /* handle "name" */
Atom atom; /* Selection/Broadcast atom */
Widget widget; /* Widget registering this handle */
char * pchPropName; /* property name */
Atom property; /* atomized property name */
/* other data */
struct _DtMsgServiceContext *
service_data; /* service data assoc w/ handle */
struct _DtMsgBroadcastData *
broadcast_data; /* broadcast data assoc w/ handle */
} DtMsgHandle;
/*
* _DtMessage handle accessor "functions"
*/
#define DtMsgH_Name(h) ((h)->pchName)
#define DtMsgH_Widget(h) ((h)->widget)
#define DtMsgH_Atom(h) ((h)->atom)
#define DtMsgH_SvcData(h) ((h)->service_data)
#define DtMsgH_BcData(h) ((h)->broadcast_data)
#define DtMsgH_PropertyName(h) ((h)->pchPropName)
#define DtMsgH_PropertyAtom(h) ((h)->property)
#define DtMsgH_Shandle(h) ((h)->service_data->handle)
#define DtMsgH_RequestProc(h) ((h)->service_data->request_proc)
#define DtMsgH_ReceiveCD(h) ((h)->service_data->receive_client_data)
#define DtMsgH_LoseProc(h) ((h)->service_data->lose_proc)
#define DtMsgH_LoseCD(h) ((h)->service_data->lose_client_data)
#define DtMsgH_RegistryAtom(h) ((h)->broadcast_data->aRegistry)
#define DtMsgH_SharedWindow(h) ((h)->broadcast_data->winShared)
#define DtMsgH_SharedWidget(h) ((h)->broadcast_data->wShared)
#define DtMsgH_Listener(h) ((h)->broadcast_data->wListener)
#define DtMsgH_BreceiveProc(h) ((h)->broadcast_data->Breceive_proc)
#define DtMsgH_BclientData(h) ((h)->broadcast_data->Bclient_data)
#define DtMsgH_Bprops(h) ((h)->broadcast_data->props)
#define DtMsgH_BnumProps(h) ((h)->broadcast_data->numProps)
#define DtMsgH_BsizeProps(h) ((h)->broadcast_data->sizeProps)
#define DtMsgH_Breceivers(h) ((h)->broadcast_data->pReceivers)
#define DtMsgH_BnumReceivers(h) ((h)->broadcast_data->numReceivers)
#define DtMsgH_BsizeReceivers(h) ((h)->broadcast_data->sizeReceivers)
#define DtMsgH_BSenderInit(h) ((h)->broadcast_data->bSenderInitialized)
/*
* Service context data
* (for client that offers a service)
*/
typedef struct _DtMsgServiceContext {
DtMsgHandle handle;
DtMsgReceiveProc request_proc;
DtMsgStatusProc lose_proc;
Pointer receive_client_data;
Pointer lose_client_data;
} DtMsgServiceContext;
/*
* Request context data
* (for client that makes a service request)
*/
typedef struct _DtMsgRequestContext {
DtMsgHandle handle;
DtMsgReceiveProc reply_proc;
Pointer client_data;
} DtMsgRequestContext;
/*
* Reply message context data
* (for client replying to a request)
*/
typedef struct _DtMsgReplyMessageContext {
DtMsgHandle handle;
Window window;
Atom target;
Atom property;
} DtMsgReplyMessageContext;
/*
* Broadcast sender data
*/
/* number of props to allocate per memory request */
#define DT_MSG_PROP_INC_AMT 10
typedef struct _DtMsgBroadcastPerReceiverData {
Widget widget; /* widget of receiver */
Atom * propsUnread; /* list of props */
int numPropsUnread; /* number of props */
int sizePropsUnread; /* amt of space allocated */
} DtMsgBroadcastPerReceiverData;
typedef struct _DtMsgBroadcastData {
Atom aRegistry; /* registry atom name */
Window winShared; /* shared window */
Widget wShared; /* shared widget */
Widget wListener; /* child of shared window */
DtMsgReceiveProc Breceive_proc; /* broadcast receive proc */
Pointer Bclient_data; /* broadcast client data */
Boolean bSenderInitialized; /* true if ready for send */
Atom * props; /* props to use for messages */
int numProps; /* number of message props */
int sizeProps; /* number of props allocated */
DtMsgBroadcastPerReceiverData * pReceivers; /* rcvr data */
int numReceivers; /* number of receivers */
int sizeReceivers; /* amt of rcvr space allocated */
} DtMsgBroadcastData;
/*
* Broadcast _DtMessage Registry definitions
*/
/* registry entry size, in words */
#define DT_MSG_REGISTRY_ENTRY_SIZE 2
/* offsets within each registry entry */
#define DT_MSG_REGISTRY_NAME_OFFSET 0
#define DT_MSG_REGISTRY_WINDOW_OFFSET 1
/* Macros to compute offset */
#define MSG_GROUP_NAME(R, i) \
(R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_NAME_OFFSET])
#define MSG_GROUP_WINDOW(R, i) \
(R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_WINDOW_OFFSET])
#endif /* not defined _DT_MSG_P_H */
/***** END OF FILE ****/

View File

@@ -1,152 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Service.h $XConsortium: Service.h /main/3 1995/10/26 15:27:03 rswiston $
* Language: C
*
* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_Service_h
#define _Dt_Service_h
/************* DATA TYPES *****************************************/
/* Many of the data types are standard DT types. */
#include <Dt/DataTypes.h>
/* Built on ICCC-based messaging library */
#include <Dt/Msg.h>
/* Specific messaging data types */
typedef struct _DtSvcHandle * DtSvcHandle;
typedef DtMsgContext DtSvcMsgContext;
/************* MESSAGE DEFINITIONS *********************************/
#define DT_SVC_MSG_SUCCESS "SUCCESS"
#define DT_SVC_MSG_FAIL "FAIL"
#define DT_SVC_MSG_REQUEST "REQUEST"
#define DT_SVC_MSG_NOTIFY "NOTIFY"
/************* CALLBACK PROTOTYPES ******************************
*/
typedef void (*DtSvcReceiveProc) ();
/*
DtSvcHandle service,
DtSvcMsgContext reply_context,
Pointer client_data,
String * message_fields,
int num_fields);
*/
/*
* service A handle for the service.
*
* reply_context Opaque context information for the request that
* was received. This data is needed when
* generating a reply to a request.
*
* client_data A pointer to the data that was specified when
* the callback was registered.
*
* message_fields A pointer to an array of strings that is the
* contents of the request. (See note 2.)
*
* num_fields The number of fields in the message_fields
* array.
*/
typedef void (*DtSvcMessageProc) ();
/*
DtSvcHandle service,
Pointer client_data,
String * message_fields,
int num_fields);
*/
/*
* service A handle for the service.
*
* client_data A pointer to the data that was specified when
* the callback was registered.
*
* message_fields A pointer to an array of strings that is the
* contents of the message. (See note 2.)
*
* num_fields The number of fields in the message_fields
* array.
*/
typedef void (*DtSvcStatusProc) ();
/*
DtSvcHandle service,
int status,
Pointer client_data);
*/
/*
* service Handle to the service whose status is being
* reported.
*
* status The status of the service being started.
*
* client_data Pointer to the data that was registered when
* the callback was registered.
*/
/************* CONSTANTS ******************************************
*/
/* The following are types of reply messages.
*/
#define DT_SVC_SUCCESS 1 /* The request succeeded. */
#define DT_SVC_FAIL -1 /* The service failed to carry
* out the request.
*/
#define DT_SVC_DELIVERY_FAIL -2 /* The request could not be
* delivered to the service for
* some reason. For example,
* the service may not be running
* and cannot be invoked.
*/
/* The following are types of status.
*/
#define DT_SVC_START 1 /* The service was started. */
#define DT_SVC_NO_START -1 /* The service failed to start.
*/
#define DT_SVC_LOST -2 /* The service was lost. Another
provider took over ownership
for this service. */
#endif /*_Dt_Service_h*/
/* Do not add anything after this endif. */

View File

@@ -1,363 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: Setlocale.h /main/3 1995/10/26 15:27:34 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
#ifndef DtSETLOCALE_INCLUDED /* allow multiple inclusions */
#define DtSETLOCALE_INCLUDED
#ifdef _NAMESPACE_CLEAN
#define _1kanji __1kanji
#define _2kanji __2kanji
#define _downshift __downshift
#define _upshift __upshift
#endif /* _NAMESPACE_CLEAN */
#include <locale.h>
#include <limits.h>
#include <nl_types.h>
#include <langinfo.h>
#include <Dt/Collate.h>
#ifndef _NL_ORDER
#define _NL_ORDER
typedef int nl_order;
#endif
#ifndef _NL_MODE
#define _NL_MODE
typedef int nl_mode;
#endif
#ifndef _NL_OUTDGT
#define _NL_OUTDGT
typedef int nl_outdgt;
#endif
#ifndef MAXLNAMELEN
#define MAXLNAMELEN 14
#endif
#endif
struct _era_data { /* defines an Emperor/Era time period */
short start_year; /* starting date of era */
unsigned short start_month;
unsigned short start_day;
short end_year; /* ending date of era */
unsigned short end_month;
unsigned short end_day;
short origin_year; /* time axis origin for era (one of start_year or end_year) */
short offset; /* offset from 0 for 1st year of era */
short signflag; /* adjusts sign of (year - origin_year) value */
unsigned short reserved;
unsigned char *name; /* name of era */
unsigned char *format; /* instead of nl_langinfo(ERA_FMT) */
};
extern int __nl_langid[]; /* langid of currently loaded language */
extern unsigned char *__ctype; /* pointer to ctype table */
extern unsigned char *_1kanji; /* pointer to 1st of 2 kanji table */
extern unsigned char *_2kanji; /* pointer to 2nd of 2 kanji table */
extern unsigned char *_upshift; /* pointer to up shift table */
extern unsigned char *_downshift; /* pointer to down shift table */
#ifdef EUC
extern unsigned char *__e_cset; /* pointer to expanded char set table */
extern unsigned char *__ein_csize; /* pointer to expanded in_csize table */
extern unsigned char *__eout_csize; /* pointer to expanded out_csize table*/
#endif /* EUC */
extern struct _era_data *_nl_era[]; /* array of era info str pointer */
extern int _nl_radix; /* radix character */
extern int _sh_low; /* lowest char in shift table domain */
extern int _sh_high; /* highest char in shift table domain */
extern int __nl_char_size; /* size of characters */
#ifdef EUC
extern int __nl_code_scheme;/* flag for char code scheme */
extern int __cs_SBYTE; /* flag for 1 byte char code scheme */
extern int __cs_HP15; /* flag for HP15 char code scheme */
extern int __cs_EUC; /* flag for EUC char code scheme */
extern unsigned char __in_csize[]; /* input char size */
extern unsigned char __out_csize[]; /* output char size */
extern unsigned int __euc_template[]; /* euc process code template */
#endif /* EUC */
extern nl_direct _nl_direct; /* direction flag */
extern int _nl_context; /* directionality context flag */
extern nl_order _nl_order; /* order flag */
extern nl_mode _nl_mode; /* mode flag; Latin or non-Latin */
extern nl_outdgt _nl_outdigit; /* digit output : ascii or alt digit */
extern int _nl_space_alt; /* value of alternative space */
extern unsigned char *_nl_dgt_alt; /* buffer for alt digit string */
extern unsigned char *_nl_punct_alt; /* buffer for alt punctuation string */
extern unsigned char *_nl_pascii; /* buffer for ascii punctuation string */
extern unsigned char *_nl_dascii; /* buffer for ascii digits string */
extern int _nl_map21; /* non-zero if 2-to-1 mappings */
extern int _nl_onlyseq; /* true if only 1-to-1 char w no pri */
extern int _nl_collate_on; /* true if collation table loaded */
extern int _nl_mb_collate; /* true if collation is multibyte */
extern unsigned char *_seqtab; /* dictionary sequence number table */
extern unsigned char *_pritab; /* 1to2/2to1 flag + priority table */
extern struct col_21tab *_tab21; /* 2-to-1 mapping table */
extern struct col_12tab *_tab12; /* 1-to-2 mapping table */
extern unsigned char *__errptr; /* pointer to an area _errlocale() can use as a buffer */
extern struct lconv *_lconv;
extern unsigned char *__category_name[];
extern unsigned char **__nl_info; /* pointers to locale langinfo strings */
extern unsigned char *__C_langinfo[];/* default langinfo strings for the C locale */
#define _NL_MAX_MSG ERA_FMT /* last nl_langinfo item */
/***************************************************************************
The remainder of this file includes structures for the language files.
The files are built by buildlang(1M).
The structure of the files is as follows :
----------------------------------
| Table Header (A) |
----------------------------------
| Category/Modifier Structures(B)|
==================================
| LC_ALL Table Header (C) |
- - - - - - - - -
| LC_ALL Data |
----------------------------------
| LC_COLLATE Table Header (D) |
- - - - - - - - -
| LC_COLLATE Data |
----------------------------------
| LC_CTYPE Table Header (E) |
- - - - - - - - -
| LC_CTYPE Data |
----------------------------------
| LC_MONETARY Table Header (F)
- - - - - - - - -
| LC_MONETARY Data |
----------------------------------
| LC_NUMERIC Table Header (G) |
- - - - - - - - -
| LC_NUMERIC Data |
----------------------------------
| LC_TIME Table Header (H) |
- - - - - - - - -
| LC_TIME Data |
----------------------------------
*****************************************************************************/
/* Category Id's */
/* Table Header (A) */
struct table_header {
unsigned int size; /* size of table header and category
structure. (A) + (B) */
unsigned short nl_langid; /* _nl_langid */
unsigned char lang[3*MAXLNAMELEN+2+1]; /* language name */
unsigned short cat_no; /* number of categories defined */
unsigned short mod_no; /* number of modifiers defined */
unsigned short rev_flag; /* true if HP defined */
unsigned char rev_str[36]; /* Revision String */
unsigned short codeset; /* 0 if 1 byte, 1 if 2 byte */
unsigned int reserved1;
unsigned int reserved2;
unsigned int reserved3;
};
/* Category/Modifier Structure (B)
Catinfotype structure describes a category/modifier table
There is one structure for each category and modifier defined.
These entries follow the table header */
struct catinfotype
{
int size; /* size of category table */
int address; /* address of category table -
offset from the beginning of
the category tables () */
short catid; /* category id */
unsigned char mod_name[MAXLNAMELEN+1]; /* name of modifier */
short mod_addr; /* address of category table
for modifier - offset from
beginning of file */
};
/* Below are the category headers for each of the defined categories
All addresses are offset from the beginning of the category information */
/* LC_ALL Table (C) */
struct all_header {
unsigned short yes_addr; /* msg_index[YESSTR] */
unsigned short no_addr; /* msg_index[NOSTR] */
unsigned short direct_addr; /* msg_index[DIRECTION] */
/* _nl_direct */
unsigned short context_addr; /* _nl_context */
};
/* LC_COLLATE Tables (D) */
struct col_header {
unsigned int seqtab_addr; /* _seqtab */
unsigned int pritab_addr; /* _pritab */
unsigned short nl_map21; /* not an address */
unsigned short nl_onlyseq; /* not an address */
unsigned int tab21_addr;
unsigned int tab12_addr;
};
/* LC_CTYPE Tables (E) */
struct ctype_header {
unsigned int _sh_high; /* _sh_high */
int _sh_low; /* _sh_low */
unsigned int _ctype_addr; /* __ctype */
unsigned int kanji1_addr; /* _1kanji */
unsigned int kanji2_addr; /* _2kanji */
unsigned int upshift_addr; /* _upshift */
unsigned int downshift_addr; /* _downshift */
unsigned short byte_char_addr; /* msg_index[BYTES_CHAR] */
unsigned short alt_punct_addr; /* msg_index[ALT_PUNCT] */
/* _nl_punct_alt[] */
/* _nl_space_alt */
#ifdef EUC
unsigned int io_csize_addr; /* __io_csize[] */
unsigned int e_cset_addr; /* __e_cset */
unsigned int ein_csize_addr; /* __ein_csize */
unsigned int eout_csize_addr; /* __eout_csize */
#endif /* EUC */
};
/* LC_MONETARY Tables (F) */
struct monetary_header {
unsigned short int_frac_digits; /* _lconv->short_frac_digits */
unsigned short frac_digits; /* _lconv->frac_digits */
unsigned short p_cs_precedes; /* _lconv->p_cs_precedes */
unsigned short p_sep_by_space; /* _lconv->p_sep_by_space */
unsigned short n_cs_precedes; /* _lconv->n_cs_precedes */
unsigned short n_sep_by_space; /* _lconv->n_sep_by_space */
unsigned short p_sign_posn; /* _lconv->p_sign_posn */
unsigned short n_sign_posn; /* _lconv->n_sign_posn */
unsigned short curr_symbol_lconv; /* _lconv->currency_symbol */
unsigned short curr_symbol_li; /* msg_index[CRNCYSTR] */
unsigned short mon_decimal_point; /* _lconv->mon_decimal_point */
unsigned short int_curr_symbol; /* _lconv->short_curr_symbol */
unsigned short mon_thousands_sep; /* _lconv->mon_thousands_sep */
unsigned short mon_grouping; /* _lconv->mon_grouping */
unsigned short positive_sign; /* _lconv->positive_sign */
unsigned short negative_sign; /* _lconv->negative_sign */
};
/* LC_NUMERIC Tables (G) */
struct numeric_header {
unsigned short grouping; /* _lconv->grouping */
unsigned short decimal_point; /* _lconv->decimal_point */
/* msg_index[RADIXCHAR] */
/* _nl_radix */
unsigned short thousands_sep; /* _lconv->thousands_sep */
/* msg_index[THOUSEP] */
unsigned short alt_digit_addr; /* msg_index[ALT_DIGIT] */
};
/* LC_TIME Tables (H) */
struct time_header {
unsigned short d_t_fmt; /* msg_index[D_T_FMT] */
unsigned short d_fmt; /* msg_index[D_FMT] */
unsigned short t_fmt; /* msg_index[T_FMT] */
unsigned short day_1; /* msg_index[DAY_1] */
unsigned short day_2; /* msg_index[DAY_2] */
unsigned short day_3; /* msg_index[DAY_3] */
unsigned short day_4; /* msg_index[DAY_4] */
unsigned short day_5; /* msg_index[DAY_5] */
unsigned short day_6; /* msg_index[DAY_6] */
unsigned short day_7; /* msg_index[DAY_7] */
unsigned short abday_1; /* msg_index[ABDAY_1] */
unsigned short abday_2; /* msg_index[ABDAY_2] */
unsigned short abday_3; /* msg_index[ABDAY_3] */
unsigned short abday_4; /* msg_index[ABDAY_4] */
unsigned short abday_5; /* msg_index[ABDAY_5] */
unsigned short abday_6; /* msg_index[ABDAY_6] */
unsigned short abday_7; /* msg_index[ABDAY_7] */
unsigned short mon_1; /* msg_index[MON_1] */
unsigned short mon_2; /* msg_index[MON_2] */
unsigned short mon_3; /* msg_index[MON_3] */
unsigned short mon_4; /* msg_index[MON_4] */
unsigned short mon_5; /* msg_index[MON_5] */
unsigned short mon_6; /* msg_index[MON_6] */
unsigned short mon_7; /* msg_index[MON_7] */
unsigned short mon_8; /* msg_index[MON_8] */
unsigned short mon_9; /* msg_index[MON_9] */
unsigned short mon_10; /* msg_index[MON_10] */
unsigned short mon_11; /* msg_index[MON_11] */
unsigned short mon_12; /* msg_index[MON_12] */
unsigned short abmon_1; /* msg_index[ABMON_1] */
unsigned short abmon_2; /* msg_index[ABMON_2] */
unsigned short abmon_3; /* msg_index[ABMON_3] */
unsigned short abmon_4; /* msg_index[ABMON_4] */
unsigned short abmon_5; /* msg_index[ABMON_5] */
unsigned short abmon_6; /* msg_index[ABMON_6] */
unsigned short abmon_7; /* msg_index[ABMON_7] */
unsigned short abmon_8; /* msg_index[ABMON_8] */
unsigned short abmon_9; /* msg_index[ABMON_9] */
unsigned short abmon_10; /* msg_index[ABMON_10] */
unsigned short abmon_11; /* msg_index[ABMON_11] */
unsigned short abmon_12; /* msg_index[ABMON_12] */
unsigned short am_str; /* msg_index[AM_STR] */
unsigned short pm_str; /* msg_index[PM_STR] */
unsigned short year_unit; /* msg_index[YEAR_UNIT] */
unsigned short mon_unit; /* msg_index[MON_UNIT] */
unsigned short day_unit; /* msg_index[DAY_UNIT] */
unsigned short hour_unit; /* msg_index[HOUR_UNIT] */
unsigned short min_unit; /* msg_index[MIN_UNIT] */
unsigned short sec_unit; /* msg_index[SEC_UNIT] */
unsigned short era_fmt; /* msg_index[ERA_FMT] */
unsigned short era_count; /* number of era entries */
unsigned short era_names; /* address of era name and format strings */
unsigned short era_addr; /* address of era data structure entries */
unsigned short reserved; /* address of era data structure entries */
};
#endif /* DtSETLOCALE_INCLUDED */

View File

@@ -1,102 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/************************************<+>*************************************
****************************************************************************
**
** File: SharedProcs.h
**
** Project: SUI
**
** Description: Public include file for some shared functions.
**
**
** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _SharedProcs_h
#define _SharedProcs_h
/******** Public Function Declarations ********/
extern String _DtStripSpaces(
String string) ;
extern void _DtMessage(
Widget w,
char *title,
char *message_text,
XtPointer helpIdStr,
void (*helpCallback)()) ;
extern Widget _DtMessageDialog(
Widget w,
char *title,
char *message_text,
XtPointer helpIdStr,
Boolean cancel_btn,
void (*cancel_callback)(),
void (*ok_callback)(),
void (*close_callback)(),
void (*help_callback)(),
Boolean deleteOnClose,
int dialogType) ;
extern void _DtMessageOK(
Widget w,
XtPointer client_data,
XtPointer call_data) ;
extern void _DtMessageClose(
Widget w,
XtPointer client_data,
XEvent *event) ;
/******** End Public Function Declarations ********/
/* _DtMessage Dialog build defines */
#define ERROR_DIALOG 1
#define WARNING_DIALOG 2
#define QUESTION_DIALOG 3
/* Flag which can be used to prevent error dialogs from being posted */
extern Boolean messageDisplayEnabled;
/* Flag controlling whether dialogs are auto-positioned */
extern Boolean disableDialogAutoPlacement;
/* Generic overlay for all dialog 'Rec' structures */
typedef struct
{
Widget shell;
} GenericRecord;
#endif /* _SharedProcs_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,73 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: SmCreateDirs.h /main/4 1995/10/26 15:28:38 rswiston $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/*************************************<+>*************************************
*****************************************************************************
**
** File: SmCreateDirs.h
**
** Description: Header file for SmCreateDirs.c
** -----------
**
*******************************************************************
** (c) Copyright Hewlett-Packard Company, 1990. All rights are
** reserved. Copying or other reproduction of this program
** except for archival purposes is prohibited without prior
** written consent of Hewlett-Packard Company.
********************************************************************
**
**
**
*****************************************************************************
*************************************<+>*************************************/
#ifndef _SmCreateDirs_h
#define _SmCreateDirs_h
/*
* include statements
*/
/*
* define statements
*/
/*
* typedef statements
*/
/*
* Function definitions
*/
extern char * _DtCreateDtDirs(Display *display) ;
#endif /* _SmCreateDirs_h */
/* Do not add anything after this endif. */

View File

@@ -1,51 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Spc.h $XConsortium: Spc.h /main/3 1995/10/26 15:28:51 rswiston $
* Language: C
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_SPC_h
#define _Dt_SPC_h
#include <bms/spc.h>
/*
* For definitions of any of the following, look in <bms/spc.h>.
*/
#define DtSPCOpen XeSPCOpen
#define DtSPCClose XeSPCClose
#define DtSPCSpawn XeSPCSpawn
#define DtSPCAddInput XeSPCAddInput
#define DtSPCRegisterTerminator XeSPCRegisterTerminator
#define DtSPCErrorNumber XeSPCErrorNumber
#endif /* #ifdef _Dt_SPC_h */

View File

@@ -1,46 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: SvcTT.h /main/3 1995/10/26 15:30:33 rswiston $ */
/*%% */
/*%% RESTRICTED CONFIDENTIAL INFORMATION: */
/*%% */
/*%% The information in this document is subject to special */
/*%% restrictions in a confidential disclosure agreement between */
/*%% HP, IBM, Sun, USL, SCO and Univel. Do not distribute this */
/*%% document outside HP, IBM, Sun, USL, SCO, or Univel without */
/*%% Sun's specific written approval. This document and all copies */
/*%% and derivative works thereof must be returned or destroyed at */
/*%% Sun's request. */
/*%% */
/*%% Copyright 1994 Sun Microsystems, Inc. All rights reserved. */
/*%% */
#ifndef _DT_SVCTT_H
#define _DT_SVCTT_H
#include <Tt/tttk.h>
extern Tt_status _DtSvcInitToolTalk(
Widget widget
);
#endif

View File

@@ -1,39 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: Unistd.h /main/3 1995/10/26 15:31:10 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
#ifndef DtUNISTD_INCLUDED
#define DtUNISTD_INCLUDED
# define FNM_PATHNAME 01 /* flag for pathname matching */
# define _FNM_PERIOD 02 /* flag for explicitly matching leading '.'s */
# define _FNM_UAE 04 /* flag for csh pattern matching */
#endif /* DtUNISTD_INCLUDED */

View File

@@ -1,129 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $TOG: UserMsg.h /main/6 1998/04/09 17:50:49 mgreess $ */
/*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1988, 1993, 1994, 1995 Hewlett-Packard Company
* (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
* (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
* (c) Copyright 1993, 1994, 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*/
/* -*-C-*-
********************************************************************************
*
* File: usermsg.h
* Description: Header for error logging routines
* Status: Experimental (Do Not Distribute)
*
********************************************************************************
*/
#ifndef _usermsg_h
#define _usermsg_h
#include <X11/Intrinsic.h>
#ifndef __STDC__
# ifndef const
# define const
# endif
#endif
#include <bms/XeUserMsg.h>
typedef enum {
DtIgnore,
DtInformation,
DtWarning,
DtError,
DtFatalError,
DtInternalError
} DtSeverity;
extern void _DtSimpleError(
char *progName,
DtSeverity severity,
char *help,
char *format,
...) ;
extern void _DtSimpleErrnoError(
char *progName,
DtSeverity severity,
char *help,
char *format,
...) ;
#define DtProgName XeProgName
extern int _DtPrintDefaultError(
Display *dpy,
XErrorEvent *event,
char *msg );
#define _DTPRINTDEFAULTERROR_BUFSIZE 1024
extern int _DtPrintDefaultErrorSafe(
Display *dpy,
XErrorEvent *event,
char *msg,
int bytes);
/*
DESCRIPTION:
Supply the standard Xerror output to a buffer (instead of stederr)
so client can do what it wants with it. Also don't exit. Allow
client to decide what to do.
An appropriate thing to do would be to pass the buffer to
DtSimpleError() and return. ie. In your error callback:
{
char errmsg[1024];
int ret ;
ret = _DtPrintDefaultError (style.display, rep, errmsg);
DtSimpleError(DtWarning, "><An X Error has occurred...continuing" ,
errmsg, NULL);
return ret;
}
SYNOPSIS:
int _DtPrintDefaultError (dpy, event, msg)
Display *dpy; The application's display structure.
XErrorEvent *event; Error event returned to error callback.
char *msg; Buffer returning the formatted text of
the error message. It won't be more than
1024 bytes.
*/
#endif /* _usermsg_h */
/* DON'T ADD STUFF AFTER THIS #endif */

View File

@@ -1,140 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: Utility.h $XConsortium: Utility.h /main/4 1995/10/26 15:31:55 rswiston $
* Language: C
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_Utility_h
#define _Dt_Utility_h
/******************************************************************************
*
* _DtVectorizeInPlace() takes a string which is made up a group of
* components, separated by a common separator character, and breaks
* the string up into the separate components. To reduce the amount of
* memory used (and to reduce memory fragmentation), the string is simply
* searched for each occurrence of the separator, and the separator is then
* replaced by a NULL character. Pointers to the individual components are
* returned as a NULL-terminated array of pointers.
*
* The passed-in string should be malloc'ed space, since the string will
* eventually be freed when the application frees the returned array. If
* you don't want the original string modified, then a copy should be made,
* before calling this function.
*
* The application is responsible for freeing up this memory, and should do
* so by calling _DtFreeStringVector().
*
* Parameters:
*
* string A NULL-terminated string, which is to be vectorized.
*
* separator The character which separates the components within
* the string.
*
*****************************************************************************/
extern char ** _DtVectorizeInPlace( char * string,
char separator );
/******************************************************************************
*
* _DtFreeStringVector will free up the vectorized string array returned by
* a call to _DtVectorizeInPlace(). Both the array used to return the
* vectorized strings, and the original string itself will be freed up.
*
* Parameters:
*
* stringVector The array to be freed; originally obtained by a call
* to _DtVectorizeInPlace().
*
*****************************************************************************/
extern void _DtFreeStringVector( char ** stringVector );
/*****************************************************************************
* DtCmd String Utility routines.
*
*****************************************************************************
*
* _DtCmdStringToArrayOfStrings - takes a string and an array of pointers
* to strings and breaks the string into whitespace separated words.
*
* A "word" is a sequence of characters that has no whitespace with
* the following exception:
*
* - A word may contain contain whitespace if it is delimited
* by a pair of matching single or double qotes.
*
* "Whitespace" is a tab or blank character.
*
*
* NOTES:
*
* - The space for the "words" is malloc'd and must be free'd by
* the caller.
* - _DtCmdFreeStringVector() should be used to free up string vectors
* created by _DtCmdStringToArrayOfStrings().
*
* - "theArray" is NULL terminated.
*
* PARAMETERS:
*
* char theString[]; - The string to parse.
*
* char *theArray[]; - MODIFIED: gets filled with pointers to
* the words that are parsed.
*
*****************************************************************************/
/******************************************************************************
*
* _DtCmdFreeStringVector - takes an array of pointers to strings and
* frees the malloc'd space for the strings.
*
* This does NOT free the string vector itself; It assumes that
* stringv is a static i.e. char *stringv[N].
*
* PARAMETERS:
*
* char **stringv; - MODIFIED: Each string in the array is freed.
*
*****************************************************************************/
extern void _DtCmdStringToArrayOfStrings(
char theString[],
char *theArray[]) ;
extern void _DtCmdFreeStringVector(
char **stringv) ;
#endif /* _Dt_Utility_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,42 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* File: UtilityP.h $XConsortium: UtilityP.h /main/4 1995/10/26 15:32:08 rswiston $
* Language: C
*
* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
*
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _Dt_UtilityP_h
#define _Dt_UtilityP_h
extern char * _DtGetDisplayName( Display * display );
#endif /* _Dt_UtilityP_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */

View File

@@ -1,196 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: XlationSvc.h /main/6 1996/08/22 09:07:18 rswiston $ */
/************************************<+>*************************************
****************************************************************************
**
** File: XlationSvc.h
**
** Project: DtXlate
**
** Description: table-based translation services
**
** (c) Copyright 1993, 1994 Hewlett-Packard Company
** (c) Copyright 1993, 1994 International Business Machines Corp.
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
** (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
**
****************************************************************************
************************************<+>*************************************/
#ifndef _DtXLATE_XLATION_SVC_I
#define _DtXLATE_XLATION_SVC_I
#include <sys/utsname.h> /* for UTSLEN, SYS_NMLN */
#ifdef __cplusplus
extern "C" {
#endif
/*=================================================================
$SHAREDBEG$: This header appears in all appropriate DtXlate topics
$INCLUDE$
#include <XlationSvc.h>
=$END$==========================================================*/
#if DOC
/*========================================================*/
$TYPEBEG$: _DtXlateDb
$1LINER$: An opaque object used to represent translation dbs
$SUMMARY$:
_DtXlateDb is the type of a translation database object.
The database object must be opened before use and closed
after use. The definition of the object is opaque to users.
$ARGS$:
/*================================================$SKIP$==*/
#endif
/*$DEF$*/
typedef struct __DtXlateDbRec * _DtXlateDb;
/*$END$*/
#if DOC
/*========================================================*/
$CONSTBEG$: _DtXLATE_OPER_xxx
$1LINER$: Constants for specifying operations
$SUMMARY$:
The _DtXLATE_OPER_xxx are constants that produce strings
used in the translation specifications when specifying
the operation of a translation.
The operation string name must be identical both in the
source code and in the translation table.
These constants should be used whenever referencing
operations as part of a translation.
/*================================================$SKIP$==*/
#endif
/* $DEF$, Operation constants */
#define _DtXLATE_OPER_VERSION "version"
/*$END$*/
#if DOC
/*========================================================*/
$CONSTBEG$: _DtPLATFORM_xxx
$1LINER$: Constants for specifying platforms strings
$SUMMARY$:
The _DtPLATFORM_xxx are constants that produce strings
used in the translation specifications and when performing
a translation using the API. Recall that the platform name must
be an exact match if specified as translation criteria.
These names are the same strings returned by 'uname(1) -s'
and uname(2):utsname.sysname.
The operation string name must be identical both in the
source code and in the translation table.
These constants should be used whenever referencing
platforms as part of a translation.
/*================================================$SKIP$==*/
#endif
/* $DEF$, Platform constants */
#if defined(SVR4) || defined(_AIX)
#define _DtPLATFORM_MAX_LEN SYS_NMLN
#else
#if defined(SYS_NMLN)
#define _DtPLATFORM_MAX_LEN SYS_NMLN
#else
#define _DtPLATFORM_MAX_LEN UTSLEN
#endif
#endif
#define _DtPLATFORM_UNKNOWN ((const char *)0)
#define _DtPLATFORM_CURRENT ((const char *)0)
#define _DtPLATFORM_CDE "CDE"
#define _DtPLATFORM_HPUX "HP-UX"
#define _DtPLATFORM_AIX "AIX"
#define _DtPLATFORM_SUNOS "SunOS"
#define _DtPLATFORM_SOLARIS "Solaris" /* verify */
#define _DtPLATFORM_XENIX "Xenix" /* verify */
/*$END$*/
/* Functions */
int _DtXlateOpenDb(
const char * databaseName,
_DtXlateDb * ret_db);
int _DtXlateOpenAndMergeDbs(
const char * databaseName,
_DtXlateDb * io_db);
int _DtXlateMergeDbs(
_DtXlateDb * io_dbToMerge,
_DtXlateDb * io_mergeIntoDb);
int _DtXlateOpenAllDbs(
const char * searchPaths,
const char * databaseName,
_DtXlateDb * ret_db);
int _DtXlateCloseDb(
_DtXlateDb * io_db);
int _DtXlateStdToOpValue(
_DtXlateDb db,
const char * platform,
const int version,
const char * operation,
const char * stdValue,
char * * ret_opValue,
void * ret_reserved);
int _DtXlateOpToStdValue(
_DtXlateDb db,
const char * platform,
const int version,
const char * operation,
const char * opValue,
char * * ret_stdValue,
void * ret_reserved);
int _DtXlateGetXlateEnv(
_DtXlateDb db,
char * ret_AppExecEnvPlatform,
int * ret_AppExecEnvVersion,
int * ret_XlateCompiledForOSVersion);
/* Non DtXlate functions currently in XlationSvc.c */
int _DtMBStrrchr (
const char * s1,
int value,
int max_len,
const char * * ret_ptr );
int _DtMBStrchr (
const char * s1,
int value,
int max_len,
const char * * ret_ptr );
#ifdef __cplusplus
}
#endif
#endif /*_DtXLATE_XLATION_SVC_I*/
/********* do not put anything below this line ********/