From: Jon Trulson Date: Fri, 25 Oct 2019 23:01:34 +0000 (-0600) Subject: The great includes migration of 2019 (autotools) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=369308b737f9a115180aff8423c09d90b935cf57;p=oweals%2Fcde.git 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
, 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... --- diff --git a/cde/include/Dt/Action.h b/cde/include/Dt/Action.h new file mode 100644 index 00000000..63550e50 --- /dev/null +++ b/cde/include/Dt/Action.h @@ -0,0 +1,139 @@ +/* + * 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: Action.h /main/4 1998/05/06 15:55:18 rafi $ */ +/* + * (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_Action_h +#define _Dt_Action_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Argument types + */ + +#define DtACTION_FILE 1 /* file argument */ +#define DtACTION_BUFFER 2 /* buffer argument */ +#define DtACTION_STRING 3 /* string argument */ +#define DtACTION_NULLARG 4 /* untyped return-only argument */ + +typedef struct { + void *bp; /* location of buffer */ + int size; /* size of buffer in bytes */ + char *type; /* (opt.) type of buffer */ + char *name; /* (opt.) name of buffer object */ + Boolean writable; /* allow changes to buffer object? */ +} DtActionBuffer; + +typedef struct { + char *name; +} DtActionFile; + +typedef struct { + /* + * Structure containing argument information + */ + int argClass; /* see argument types */ + union { + DtActionFile file; + DtActionBuffer buffer; + } u; +} DtActionArg; + +/* + * DtActionStatus codes + */ +typedef enum { + DtACTION_OK, /* If not any of the below */ + DtACTION_INVALID_ID, /* ID is not valid */ + DtACTION_INVOKED, /* the action invocation step is done */ + DtACTION_STATUS_UPDATE, /* status update */ + DtACTION_DONE, /* normal action termination code */ + DtACTION_FAILED, /* error running action */ + DtACTION_CANCELED /* normal action termination by cancel*/ +} DtActionStatus; + +typedef void (*DtDbReloadCallbackProc)( + XtPointer clientData); + +/* + * DtActionInvocationID is the fundamental user-space handle to invoked + * actions. + */ +typedef unsigned long DtActionInvocationID; + +typedef void (*DtActionCallbackProc) ( + DtActionInvocationID id, + XtPointer client_data, + DtActionArg *actionArgPtr, + int actionArgCount, + DtActionStatus status); + +/* + * Functions + */ + +extern Boolean DtActionExists( + char *actionName); + +extern char * DtActionLabel( + char *actionName); + +extern char * DtActionDescription( + char *actionName); + +extern void DtDbReloadNotify ( + DtDbReloadCallbackProc proc, + XtPointer clientData); + +extern void DtDbLoad(void); + +extern DtActionInvocationID DtActionInvoke ( + Widget w, + char *action, + DtActionArg *args, + int argCount, + char *termOpts, + char *execHost, + char *contextDir, + int useIndicator, + DtActionCallbackProc statusUpdateCb, + XtPointer client_data); + +extern char * DtActionIcon( + char *actionName); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Action_h */ diff --git a/cde/include/Dt/ActionDb.h b/cde/include/Dt/ActionDb.h new file mode 100644 index 00000000..397cb185 --- /dev/null +++ b/cde/include/Dt/ActionDb.h @@ -0,0 +1,241 @@ +/* + * 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: ActionDb.h + * RCS: $XConsortium: ActionDb.h /main/3 1995/10/26 14:58:38 rswiston $ + * Description: Internal header file for the action database functions. + * Language: C + * Package: N/A + * Status: Experimental (Do Not Distribute) + * + * + ** (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_ActionDb_h +#define _Dt_ActionDb_h + + +/* + * The following constants are used by the database parsing code to + * identify the field names for an action definition. + * + * Recognized Field names for any action definition. + */ +#define _DtACTION_NAME "ACTION" +#define _DtACTION_TYPE "TYPE" +#define _DtACTION_LABEL "LABEL" +#define _DtACTION_ARG_CLASS "ARG_CLASS" +#define _DtACTION_ARG_MODE "ARG_MODE" +#define _DtACTION_ARG_TYPE "ARG_TYPE" +#define _DtACTION_ARG_COUNT "ARG_COUNT" +#define _DtACTION_DESCRIPTION "DESCRIPTION" +#define _DtACTION_ICON "ICON" +#define _DtACTION_INSTANCE_ICON "INSTANCE_ICON" + +/* + * Miscellaneous syntax strings + */ +#define _DtACT_ANY "*" +#define _DtACT_LIST_SEPARATOR_CHAR ',' +#define _DtACT_GT_CHAR '>' +#define _DtACT_LT_CHAR '<' + + +/* + * Valid values for ACTION_TYPE + */ +#define _DtACTION_MAP "MAP" +#define _DtACTION_COMMAND "COMMAND" +#define _DtACTION_TT_MSG "TT_MSG" + +#ifdef _DT_ALLOW_DT_MSGS + +#define _DtACTION_DT_REQUEST "DT_REQUEST" +#define _DtACTION_DT_NOTIFY "DT_NOTIFY" +#endif /* _DT_ALLOW_DT_MSGS */ + +/* + * Field names for "MAP" type actions + */ + +#define _DtACTION_MAP_ACTION "MAP_ACTION" + +/* + * Field names for the "COMMAND" type actions. + */ +#define _DtACTION_EXEC_STRING "EXEC_STRING" +#define _DtACTION_EXEC_HOST "EXEC_HOST" +#define _DtACTION_CWD "CWD" +#define _DtACTION_WINDOW_TYPE "WINDOW_TYPE" +#define _DtACTION_TERM_OPTS "TERM_OPTS" + +/* + * Field names for "TT_MSG" type actions + */ +#define _DtACTION_TT_CLASS "TT_CLASS" +#define _DtACTION_TT_SCOPE "TT_SCOPE" +#define _DtACTION_TT_OPERATION "TT_OPERATION" +#define _DtACTION_TT_FILE "TT_FILE" +/* definitions to decifer TT_ARGn_* fields */ +#define _DtACTION_TTN_ARG "TT_ARG" +#define _DtACTION_TTN_MODE "_MODE" +#define _DtACTION_TTN_VTYPE "_VTYPE" +#define _DtACTION_TTN_REP_TYPE "_REP_TYPE" +#define _DtACTION_TTN_VALUE "_VALUE" + + +#ifdef _DT_ALLOW_DT_MSGS +/* + * Field names for "DT_REQUEST" type actions + */ +#define _DtACTION_DT_REQUEST_NAME "DT_REQUEST_NAME" +#define _DtACTION_DT_SVC "DT_SVC" + +/* + * Field names for "DT_NOTIFY" type actions + */ +#define _DtACTION_DT_NOTIFY_NAME "DT_NOTIFY_NAME" +#define _DtACTION_DT_NGROUP "DT_NGROUP" + +/* + * Field names for DT ARGn (either request or notify) + */ +#define _DtACTION_DTN_ARG "DT_ARG" +#define _DtACTION_DTN_VALUE "_VALUE" + +#endif /* _DT_ALLOW_DT_MSGS */ + +/* + * Valid Field value strings + * for Command Actions Window Types + */ +#define _DtACTION_TERMINAL "TERMINAL" +#define _DtACTION_PERM_TERMINAL "PERM_TERMINAL" +#define _DtACTION_NO_STDIO "NO_STDIO" + +/* + * Valid Field values for ARG_CLASS records. + */ +#define _DtACTION_BUFFER "BUFFER" +#define _DtACTION_FILE "FILE" +#define _DtACTION_STRING "STRING" + +/* + * Valid Field values for ARG_MODE + */ + +#define _DtACT_ARG_MODE_WRITE "w" +#define _DtACT_ARG_MODE_NOWRITE "!w" +#define _DtACT_ARG_MODE_ANY _DtACT_ANY + + +/* + * Valid Field values for TT_CLASS records. + */ +#define _DtACTION_TT_NOTICE "TT_NOTICE" +#define _DtACTION_TT_REQUEST "TT_REQUEST" + +/* + * Valid Field values for TT_SCOPE records. + */ +#define _DtACTION_TT_SESSION "TT_SESSION" +#define _DtACTION_TT_BOTH "TT_BOTH" +#define _DtACTION_TT_FILE_IN_SESSION "TT_FILE_IN_SESSION" +/* --- same as TT_MSG's TT_FILE field name -------- + #define _DtACTION_TT_FILE "TT_FILE" + */ + +/* + * Valid Field values for TT_ARGn_MODE + */ +#define _DtACTION_TT_MODE_IN "TT_IN" +#define _DtACTION_TT_MODE_OUT "TT_OUT" +#define _DtACTION_TT_MODE_INOUT "TT_INOUT" + +/* + * Valid Field values for TT_ARGn_REP_TYPE + */ +#define _DtACTION_TT_RTYP_UND "TT_REP_UNDEFINED" +#define _DtACTION_TT_RTYP_INT "TT_REP_INTEGER" +#define _DtACTION_TT_RTYP_BUF "TT_REP_BUFFER" +#define _DtACTION_TT_RTYP_STR "TT_REP_STRING" + +/* + * Action Keywords -- + * these keywords appear in the action database files + * in the form: %% + * where the optional qualifier in enclosed in: () + * and the optional prompt string is enclosed in: "" + */ +#define _DtACT_DATABASEHOST_STR "DatabaseHost" +#define _DtACT_DISPLAYHOST_STR "DisplayHost" +#define _DtACT_LOCALHOST_STR "LocalHost" +#define _DtACT_SESSIONHOST_STR "SessionHost" +#define _DtACT_ARGS_STR "Args" +#define _DtACT_ARG_UNDER_STR "Arg_" + +#define _DtACT_STRING_QUALIFIER "(String)" +#define _DtACT_FILE_QUALIFIER "(File)" + + + +/* + * Default action field value definitions (these should be strings) + * for recognized fields. + */ +#define _DtACT_LBL_DFLT NULL +#define _DtACT_TYPE_DFLT _DtACTION_COMMAND +#define _DtACT_ARG_CLASS_DFLT _DtACT_ANY +#define _DtACT_ARG_MODE_DFLT _DtACT_ANY +#define _DtACT_ARG_TYPE_DFLT _DtACT_ANY +#define _DtACT_ARG_CNT_DFLT _DtACT_ANY +#define _DtACT_DESC_DFLT NULL +#define _DtACT_ICON_DFLT NULL +#define _DtACT_MAP_ACT_DFLT NULL +#define _DtACT_EXEC_STRG_DFLT NULL +#define _DtACT_EXEC_HOST_DFLT \ + "%" _DtACT_DATABASEHOST_STR "%,%" _DtACT_LOCALHOST_STR "%" +#define _DtACT_CWD_DFLT NULL +#define _DtACT_WIN_TYPE_DFLT _DtACTION_PERM_TERMINAL +#define _DtACT_TERM_OPTS_DFLT NULL +#define _DtACT_TT_CLASS_DFLT NULL +#define _DtACT_TT_SCOPE_DFLT NULL +#define _DtACT_TT_OP_DFLT NULL +#define _DtACT_TT_FILE_DFLT NULL + +#ifdef _DT_ALLOW_DT_MSGS +#define _DtACT_DT_REQ_DFLT NULL +#define _DtACT_DT_SVC_DFLT NULL +#define _DtACT_DT_NTFY_DFLT NULL +#define _DtACT_DT_NGRP_DFLT NULL +#endif /* _DT_ALLOW_DT_MSGS */ + + + +#endif /* _Dt_ActionDb_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ActionDbP.h b/cde/include/Dt/ActionDbP.h new file mode 100644 index 00000000..5c24e00c --- /dev/null +++ b/cde/include/Dt/ActionDbP.h @@ -0,0 +1,143 @@ +/* + * 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: ActionDbP.h + * RCS: $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $ + * Description: Private header file for the action database functions. + * Language: C + * Package: N/A + * + * + ** (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_ActionDbP_h +#define _Dt_ActionDbP_h + +#include
+#include
+ +#define _DtMAX_NUM_FIELDS 30 +#define _ActDb_MAX_NUM_FIELDS _DtMAX_NUM_FIELDS + + +/* + * Bitmask field definitions for the action converter bit mask. + * These are NOT the bits for the mask in struct ACTION. + */ + +#define _ActDb_LABEL_SET (1<<0) +#define _ActDb_TYPE_SET (1<<1) +#define _ActDb_ARG_CLASS_SET (1<<2) +#define _ActDb_ARG_TYPE_SET (1<<3) +#define _ActDb_ARG_COUNT_SET (1<<4) +#define _ActDb_ARG_MODE_SET (1<<5) +#define _ActDb_DESCRIPTION_SET (1<<6) +#define _ActDb_ICON_SET (1<<7) + +#define _ActDb_MAP_ACTION_SET (1<<10) + +#define _ActDb_EXEC_STRING_SET (1<<12) +#define _ActDb_EXEC_HOST_SET (1<<13) +#define _ActDb_CWD_SET (1<<14) +#define _ActDb_WINDOW_TYPE_SET (1<<15) +#define _ActDb_TERM_OPTS_SET (1<<16) + +#define _ActDb_TT_CLASS_SET (1<<18) +#define _ActDb_TT_SCOPE_SET (1<<19) +#define _ActDb_TT_OPERATION_SET (1<<20) +#define _ActDb_TT_FILE_SET (1<<21) +#define _ActDb_TT_ARGN_MODE_SET (1<<22) +#define _ActDb_TT_ARGN_VTYP_SET (1<<23) +#define _ActDb_TT_ARGN_RTYP_SET (1<<24) +#define _ActDb_TT_ARGN_VAL_SET (1<<25) + +#ifdef _DT_ALLOW_DT_MSGS +#define _ActDb_DT_REQ_NAME_SET (1<<26) +#define _ActDb_DT_SVC_SET (1<<27) + +#define _ActDb_DT_NTFY_NAME_SET (1<<28) +#define _ActDb_DT_NGROUP_SET (1<<29) +#define _ActDb_DT_ARGN_VAL_SET (1<<30) +/* no mask for ARGn strings */ + + +#define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET \ + | _ActDb_DT_SVC_SET ) +#define _ActDb_DT_NOTIFY_BITS ( _ActDb_DT_NTFY_NAME_SET \ + | _ActDb_DT_NGROUP_SET ) +#endif /* _DT_ALLOW_DT_MSGS */ +#define _ActDb_TT_BITS ( _ActDb_TT_CLASS_SET \ + | _ActDb_TT_SCOPE_SET \ + | _ActDb_TT_OPERATION_SET \ + | _ActDb_TT_ARGN_MODE_SET \ + | _ActDb_TT_ARGN_VTYP_SET \ + | _ActDb_TT_ARGN_RTYP_SET \ + | _ActDb_TT_ARGN_VAL_SET \ + | _ActDb_TT_FILE_SET ) +#define _ActDb_CMD_BITS ( _ActDb_EXEC_STRING_SET \ + | _ActDb_CWD_SET \ + | _ActDb_WINDOW_TYPE_SET \ + | _ActDb_TERM_OPTS_SET ) +#define _ActDb_MAP_BITS ( _ActDb_MAP_ACTION_SET ) + +#define _ActDb_TT_ARGN_BITS ( _ActDb_TT_ARGN_MODE_SET \ + | _ActDb_TT_ARGN_VTYP_SET \ + | _ActDb_TT_ARGN_RTYP_SET \ + | _ActDb_TT_ARGN_VAL_SET ) + +#ifdef _DT_ALLOW_DT_MSGS +#define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS \ + | _ActDb_DT_ARGN_VAL_SET ) +#else +#define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS ) +#endif /* _DT_ALLOW_DT_MSGS */ + + +/****************************************************************************** + * + * Private (but external) entry points for internal use by Action Database + * Library code only. + * + *****************************************************************************/ + +# ifdef __cplusplus +extern "C" { +# endif + + +extern Boolean _DtActionConverter( DtDtsDbField *fields, + DtDbPathId pathId, + char *hostPrefix, + Boolean rejectionStatus); + + +# ifdef __cplusplus +} +# endif +#endif /* _Dt_ActionDbP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ActionFind.h b/cde/include/Dt/ActionFind.h new file mode 100644 index 00000000..66edf99d --- /dev/null +++ b/cde/include/Dt/ActionFind.h @@ -0,0 +1,67 @@ +/* + * 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: ActionFind.h /main/4 1995/10/26 14:59:41 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: ActionFind.h + ** + ** Project: DT + ** + ** Description: Public include file for the ActionFind functions. + ** + ** (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_ActionFind_h +#define _Dt_ActionFind_h + +#include +#include + +#include
+#include
+#include
+ + +# ifdef __cplusplus +extern "C" { +# endif + +extern void _DtSortActionDb(void); +extern ActionPtr +_DtActionFindDBEntry( ActionRequest *reqp, + DtShmBoson actQuark ); + +# ifdef __cplusplus +} +# endif + + +#endif /* _Dt_ActionFind_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ + diff --git a/cde/include/Dt/ActionP.h b/cde/include/Dt/ActionP.h new file mode 100644 index 00000000..5a5777cf --- /dev/null +++ b/cde/include/Dt/ActionP.h @@ -0,0 +1,849 @@ +/* + * 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: ActionP.h /main/3 1995/10/26 14:59:56 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: ActionP.h + ** + ** Project: DT + ** + ** Description: Private include file for the Action Library. + ** + ** + ** (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 _ActionP_h +#define _ActionP_h + +#include
+#include
+#include
+#include
+#include +#include
+/* + * Environment Variable Names + */ +#define ENV_SESSION_SVR "SESSION_SVR" +/* + * Define maximum static buffer size for action code. + */ +#define _DtAct_MAX_BUF_SIZE 1024 + +/* + * Data-type field which contains the template for producing filenames + * of a given type. + */ +#define _DtActNAME_TEMPLATE "NAME_TEMPLATE" +#define _DtActIS_EXECUTABLE "IS_EXECUTABLE" + +/****************************************************************************** + * + * MASK LAYOUT: + * + * The same layout is used for all the masks (defined herein);, independent of + * the data structure in which they are defined. That is, all bit fields for + * all masks are non-overlapping. In general, the mask in any given structure + * should ONLY contain information in the field appropriate for that structure. + * + * The action bit mask is broken into the following fields + * + * -------------------------------------------------------------------------- + * |act'n |arg |arg |arg | win |args| request | object |treat| not | + * |type |class|count|typ | type | | status | status | as | | + * |bits |bits |bits |bit | bits |used| bits | bits |file |used | + * -------------------------------------------------------------------------- + * 0 - 4,5 - 8,9 - 12, 13 ,14 - 17,18-19,20 ------- 22,23 ---- 28, 29 ,30-31 + * | | | | | | + * |<-- action mask -->| |<- request->|<- obj. ->|< - >| + * mask data | + * mask msgCcomp. + * mask + ******************************************************************************/ + +/* + * generic bit manipulation macros + */ +#define SET_ANY_BITS(mask,bits) ( mask |= (bits) ) +#define RESET_ANY_BITS(mask,bits) ( mask &= ~(bits) ) +#define TST_ANY_BITS(mask,bits) ( mask & (bits) ) + +/* + * Action type bits + */ +#define _DtAct_CMD_BIT (1<<0) +#define _DtAct_MAP_BIT (1<<1) +#define _DtAct_TT_MSG_BIT (1<<2) + +#ifdef _DT_ALLOW_DT_MSGS +#define _DtAct_DT_REQ_MSG_BIT (1<<3) +#define _DtAct_DT_NTFY_MSG_BIT (1<<4) +#endif /* _DT_ALLOW_DT_MSGS */ + +/* + * Action structure mask bits + */ +#define _DtAct_ARG_CLASS_FILE_BIT (1<<5) +#define _DtAct_ARG_CLASS_STRING_BIT (1<<6) +#define _DtAct_ARG_CLASS_BUFFER_BIT (1<<7) +#define _DtAct_ARG_CLASS_WILD_BIT (1<<8) + +#define _DtAct_ARG_COUNT_LT_BIT (1<<9) +#define _DtAct_ARG_COUNT_GT_BIT (1<<10) +#define _DtAct_ARG_COUNT_EQ_BIT (1<<11) +#define _DtAct_ARG_COUNT_WILD_BIT (1<<12) + +#define _DtAct_ARG_TYPE_WILD_BIT (1<<13) + +#define _DtAct_NO_STDIO_BIT (1<<14) +#define _DtAct_TERMINAL_BIT (1<<15) +#define _DtAct_PERM_TERM_BIT (1<<16) + +/* + * Defines which reflect the actual number + * of %ARGn% instances found in the action definition + * NOTE: Is this JUST in the EXEC_STRING? or the total number of %ARGn%'s + * referenced in all parssed definitions? + * + */ +#define _DtAct_SINGLE_ARG_BIT (1<<18) +#define _DtAct_MULTI_ARG_BIT (1<<19) + + +#ifdef _DT_ALLOW_DT_MSGS +#define _DtAct_ACTION_TYPE_BITS ( _DtAct_CMD_BIT \ + | _DtAct_MAP_BIT \ + | _DtAct_DT_NTFY_MSG_BIT \ + | _DtAct_DT_REQ_MSG_BIT \ + | _DtAct_TT_MSG_BIT ) +#else +#define _DtAct_ACTION_TYPE_BITS ( _DtAct_CMD_BIT \ + | _DtAct_MAP_BIT \ + | _DtAct_TT_MSG_BIT ) +#endif /* _DT_ALLOW_DT_MSGS */ +#define _DtAct_ARG_CLASS_BITS ( _DtAct_ARG_CLASS_FILE_BIT \ + | _DtAct_ARG_CLASS_STRING_BIT\ + | _DtAct_ARG_CLASS_BUFFER_BIT \ + | _DtAct_ARG_CLASS_WILD_BIT ) +#define _DtAct_ARG_TYPE_BITS ( _DtAct_ARG_TYPE_WILD_BIT ) +#define _DtAct_ARG_COUNT_BITS ( _DtAct_ARG_COUNT_LT_BIT \ + | _DtAct_ARG_COUNT_GT_BIT \ + | _DtAct_ARG_COUNT_EQ_BIT \ + | _DtAct_ARG_COUNT_WILD_BIT ) +#define _DtAct_WINTYPE_BITS ( _DtAct_NO_STDIO_BIT \ + | _DtAct_TERMINAL_BIT \ + | _DtAct_PERM_TERM_BIT ) +#define _DtAct_ARGS_USED_BITS ( _DtAct_SINGLE_ARG \ + | _DtAct_MULTI_ARG ) + +#define _DtAct_ACTION_BITS ( _DtAct_ACTION_TYPE_BITS \ + | _DtAct_ARG_CLASS_BITS \ + | _DtAct_ARG_TYPE_BITS \ + | _DtAct_ARG_COUNT_BITS \ + | _DtAct_WINTYPE_BITS \ + | _DtAct_ARGS_USED_BITS ) + +#define IS_CMD(mask) ( mask & _DtAct_CMD_BIT ) +#define IS_MAP(mask) ( mask & _DtAct_MAP_BIT ) +#define IS_TT_MSG(mask) ( mask & _DtAct_TT_MSG_BIT ) + +#ifdef _DT_ALLOW_DT_MSGS +#define IS_DT_REQ_MSG(mask) ( mask & _DtAct_DT_REQ_MSG_BIT ) +#define IS_DT_NOTIFY_MSG(mask) ( mask & _DtAct_DT_NTFY_MSG_BIT ) +#endif /* _DT_ALLOW_DT_MSGS */ + +#define SET_CMD_ACTION(mask) ( mask |= _DtAct_CMD_BIT ) +#define SET_MAP_ACTION(mask) ( mask |= _DtAct_MAP_BIT ) +#define SET_TT_MSG(mask) ( mask |= _DtAct_TT_MSG_BIT ) +#ifdef _DT_ALLOW_DT_MSGS +#define SET_DT_REQUEST_MSG(mask) ( mask |= _DtAct_DT_REQ_MSG_BIT) +#define SET_DT_NOTIFY_MSG(mask) ( mask |= _DtAct_DT_NTFY_MSG_BIT) +#endif /* _DT_ALLOW_DT_MSGS */ + +#define RESET_CMD_ACTION(mask) ( mask &= ~(_DtAct_CMD_BIT)) +#define RESET_MAP_ACTION(mask) ( mask &= ~(_DtAct_MAP_BIT)) +#define RESET_TT_MSG(mask) ( mask &= ~(_DtAct_TT_MSG_BIT)) +#ifdef _DT_ALLOW_DT_MSGS +#define RESET_DT_REQ_MSG(mask) ( mask &= ~(_DtAct_DT_REQ_MSG_BIT)) +#define RESET_DT_NOTIFY_MSG(mask) ( mask &= ~(_DtAct_DT_NTFY_MSG_BIT)) +#endif /* _DT_ALLOW_DT_MSGS */ + +#define IS_NO_STDIO(mask) ( mask & _DtAct_NO_STDIO_BIT ) +#define IS_TERMINAL(mask) ( mask & _DtAct_TERMINAL_BIT ) +#define IS_PERM_TERM(mask) ( mask & _DtAct_PERM_TERM_BIT) + +#define SET_NO_STDIO(mask) ( mask |= _DtAct_NO_STDIO_BIT ) +#define SET_TERMINAL(mask) ( mask |= _DtAct_TERMINAL_BIT ) +#define SET_PERM_TERM(mask) ( mask |= _DtAct_PERM_TERM_BIT ) + +#define RESET_NO_STDIO(mask) ( mask &= ~(_DtAct_NO_STDIO_BIT )) +#define RESET_TERMINAL(mask) ( mask &= ~(_DtAct_TERMINAL_BIT )) +#define RESET_PERM_TERM(mask) ( mask &= ~(_DtAct_PERM_TERM_BIT )) + +#define IS_ARG_CLASS_FILE(mask) ( mask & _DtAct_ARG_CLASS_FILE_BIT ) +#define IS_ARG_CLASS_STRING(mask) ( mask & _DtAct_ARG_CLASS_STRING_BIT ) +#define IS_ARG_CLASS_BUFFER(mask) ( mask & _DtAct_ARG_CLASS_BUFFER_BIT ) +#define IS_ARG_CLASS_WILD(mask) ( mask & _DtAct_ARG_CLASS_WILD_BIT ) + +#define SET_ARG_CLASS_FILE(mask) ( mask |= _DtAct_ARG_CLASS_FILE_BIT ) +#define SET_ARG_CLASS_STRING(mask) ( mask |= _DtAct_ARG_CLASS_STRING_BIT) +#define SET_ARG_CLASS_BUFFER(mask) ( mask |= _DtAct_ARG_CLASS_BUFFER_BIT) +#define SET_ARG_CLASS_WILD(mask) ( mask |= _DtAct_ARG_CLASS_WILD_BIT ) + +#define RESET_ARG_CLASS_FILE(mask) (mask &= ~(_DtAct_ARG_CLASS_FILE_BIT)) +#define RESET_ARG_CLASS_STRING(mask) (mask &= ~(_DtAct_ARG_CLASS_STRING_BIT)) +#define RESET_ARG_CLASS_BUFFER(mask) (mask &= ~(_DtAct_ARG_CLASS_BUFFER_BIT)) +#define RESET_ARG_CLASS_WILD(mask) (mask &= ~(_DtAct_ARG_CLASS_WILD_BIT)) + + +#define IS_ARG_TYPE_WILD(mask) ( mask & _DtAct_ARG_TYPE_WILD_BIT ) + +#define SET_ARG_TYPE_WILD(mask) ( mask |= _DtAct_ARG_TYPE_WILD_BIT ) + +#define RESET_ARG_TYPE_WILD(mask) ( mask &= ~(_DtAct_ARG_TYPE_WILD_BIT)) + +#define IS_ARG_COUNT_GT(mask) ( mask & _DtAct_ARG_COUNT_GT_BIT ) +#define IS_ARG_COUNT_LT(mask) ( mask & _DtAct_ARG_COUNT_LT_BIT ) +#define IS_ARG_COUNT_EQ(mask) ( mask & _DtAct_ARG_COUNT_EQ_BIT ) +#define IS_ARG_COUNT_WILD(mask) ( mask & _DtAct_ARG_COUNT_WILD_BIT ) + +#define SET_ARG_COUNT_GT(mask) ( mask |= _DtAct_ARG_COUNT_GT_BIT ) +#define SET_ARG_COUNT_LT(mask) ( mask |= _DtAct_ARG_COUNT_LT_BIT ) +#define SET_ARG_COUNT_EQ(mask) ( mask |= _DtAct_ARG_COUNT_EQ_BIT ) +#define SET_ARG_COUNT_WILD(mask) ( mask |= _DtAct_ARG_COUNT_WILD_BIT ) + +#define RESET_ARG_COUNT_GT(mask) ( mask &= ~(_DtAct_ARG_COUNT_GT_BIT )) +#define RESET_ARG_COUNT_LT(mask) ( mask &= ~(_DtAct_ARG_COUNT_LT_BIT )) +#define RESET_ARG_COUNT_EQ(mask) ( mask &= ~(_DtAct_ARG_COUNT_EQ_BIT )) +#define RESET_ARG_COUNT_WILD(mask) ( mask &= ~(_DtAct_ARG_COUNT_WILD_BIT )) + +/* + * Use of the logical "NOT" operator(!) instead of the bitwise negation + * operator(~) is intentional in IS_ARG_NONE_FOUND. + */ +#define IS_ARG_NONE_FOUND(mask) !( mask & ( _DtAct_SINGLE_ARG_BIT \ + | _DtAct_MULTI_ARG_BIT )) +#define IS_ARG_SINGLE_ARG(mask) ( mask & _DtAct_SINGLE_ARG_BIT ) +#define IS_ARG_MULTI_ARG(mask) ( mask & _DtAct_MULTI_ARG_BIT ) + +#define SET_ARG_NONE_FOUND(mask) ( mask &= ~( _DtAct_SINGLE_ARG_BIT \ + | _DtAct_MULTI_ARG_BIT )) +#define SET_ARG_SINGLE_ARG(mask) ((mask |= _DtAct_SINGLE_ARG_BIT), \ + ( mask &= ~(_DtAct_MULTI_ARG_BIT))) +#define SET_ARG_MULTI_ARG(mask) ((mask |= _DtAct_MULTI_ARG_BIT), \ + ( mask &= ~(_DtAct_SINGLE_ARG_BIT))) + +#define RESET_ARG_SINGLE_ARG(mask) ( mask &= ~(_DtAct_SINGLE_ARG_BIT)) +#define RESET_ARG_MULTI_ARG(mask) ( mask &= ~(_DtAct_MULTI_ARG_BIT)) + +/* + * ActionRequest structure mask bits + */ + +#define _DtAct_REPROCESSING_BIT (1<<20) +#define _DtAct_TOO_MANY_MAPS_BIT (1<<21) +#define _DtAct_CLONED_REQUEST_BIT (1<<22) + +#define _DtAct_ACTION_REQUEST_BITS ( _DtAct_REPROCESSING_BIT \ + | _DtAct_TOO_MANY_MAPS_BIT \ + | _DtAct_CLONED_REQUEST_BIT ) + +#define IS_REPROCESSING(mask) ( mask & _DtAct_REPROCESSING_BIT ) +#define IS_TOO_MANY_MAPS(mask) ( mask & _DtAct_TOO_MANY_MAPS_BIT ) +#define IS_CLONED_REQUEST(mask) ( mask & _DtAct_CLONED_REQUEST_BIT ) + +#define SET_REPROCESSING(mask) ( mask |= _DtAct_REPROCESSING_BIT ) +#define SET_TOO_MANY_MAPS(mask) ( mask |= _DtAct_TOO_MANY_MAPS_BIT ) +#define SET_CLONED_REQUEST(mask) ( mask |= _DtAct_CLONED_REQUEST_BIT ) + +#define RESET_REPROCESSING(mask) ( mask &= ~(_DtAct_REPROCESSING_BIT)) +#define RESET_TOO_MANY_MAPS(mask) ( mask &= ~(_DtAct_TOO_MANY_MAPS_BIT)) +#define RESET_CLONED_REQUEST(mask) ( mask &= ~(_DtAct_CLONED_REQUEST_BIT)) + + +/* + * ObjectData structure mask bits + * + */ + +#define _DtAct_WRITE_OBJ_BIT (1<<23) +#define _DtAct_FILE_OBJ_BIT (1<<24) +#define _DtAct_BUFFER_OBJ_BIT (1<<25) +#define _DtAct_STRING_OBJ_BIT (1<<26) +#define _DtAct_DIR_OBJ_BIT (1<<27) +#define _DtAct_UNKNOWN_IF_DIR_BIT (1<<28) + +#define _DtAct_OBJ_DATA_BITS ( _DtAct_WRITE_OBJ_BIT \ + | _DtAct_FILE_OBJ_BIT \ + | _DtAct_DIR_OBJ_BIT \ + | _DtAct_BUFFER_OBJ_BIT \ + | _DtAct_STRING_OBJ_BIT \ + | _DtAct_UNKNOWN_IF_DIR_BIT ) + +#define IS_WRITE_OBJ(mask) ( mask & _DtAct_WRITE_OBJ_BIT ) +#define IS_FILE_OBJ(mask) ( mask & _DtAct_FILE_OBJ_BIT ) +#define IS_BUFFER_OBJ(mask) ( mask & _DtAct_BUFFER_OBJ_BIT ) +#define IS_STRING_OBJ(mask) ( mask & _DtAct_STRING_OBJ_BIT ) +#define IS_UNKNOWN_IF_DIR(mask) ( mask & _DtAct_UNKNOWN_IF_DIR_BIT ) +#define IS_DIR_OBJ(mask) ( mask & \ + ( _DtAct_UNKNOWN_IF_DIR_BIT \ + | _DtAct_DIR_OBJ_BIT ) \ + == _DtAct_DIR_OBJ_BIT) + +#define SET_WRITE_OBJ(mask) ( mask |= _DtAct_WRITE_OBJ_BIT ) +#define SET_FILE_OBJ(mask) ( mask |= _DtAct_FILE_OBJ_BIT ) +#define SET_BUFFER_OBJ(mask) ( mask |= _DtAct_BUFFER_OBJ_BIT ) +#define SET_STRING_OBJ(mask) ( mask |= _DtAct_STRING_OBJ_BIT ) +#define SET_DIR_OBJ(mask) ( mask |= _DtAct_DIR_OBJ_BIT ) +#define SET_UNKNOWN_IF_DIR(mask) ( mask |= _DtAct_UNKNOWN_IF_DIR_BIT) + +#define RESET_WRITE_OBJ(mask) ( mask &= ~(_DtAct_WRITE_OBJ_BIT)) +#define RESET_FILE_OBJ(mask) ( mask &= ~(_DtAct_FILE_OBJ_BIT)) +#define RESET_BUFFER_OBJ(mask) ( mask &= ~(_DtAct_BUFFER_OBJ_BIT)) +#define RESET_STRING_OBJ(mask) ( mask &= ~(_DtAct_STRING_OBJ_BIT)) +#define RESET_DIR_OBJ(mask) ( mask &= ~(_DtAct_DIR_OBJ_BIT)) +#define RESET_UNKNOWN_IF_DIR(mask) ( mask &= ~(_DtAct_UNKNOWN_IF_DIR_BIT)) + + +/* + * MsgComponent structure mask bits (shared with Object Data?) + */ + +#define _DtAct_TREAT_AS_FILE_BIT (1<<29) + +#define _DtAct_MSG_COMP_BITS ( _DtAct_TREAT_AS_FILE_BIT ) + +#define IS_TREAT_AS_FILE(mask) ( mask & _DtAct_TREAT_AS_FILE_BIT ) +#define SET_TREAT_AS_FILE(mask) ( mask |= _DtAct_TREAT_AS_FILE_BIT) +#define RESET_TREAT_AS_FILE(mask) ( mask &= ~(_DtAct_TREAT_AS_FILE_BIT)) + + +/* Keyword defines */ + +#define NO_KEYWORD -1 +#define LOCAL_HOST 0 +#define DATA_HOST 1 +#define DATABASE_HOST 2 +#define ARG 3 +#define DISPLAY_HOST 4 +#define LABEL 5 +#define SESSION_HOST 6 + +/* Special argNum values */ + +#define NO_ARG -1 +#define ALL_ARGS 0 + +/* + * ToolTalk base representation type ( tt_argn_rep_type ) values + */ +#define DtACT_TT_REP_UNDEFINED 0 +#define DtACT_TT_REP_INT 1 +#define DtACT_TT_REP_BUFFER 2 +#define DtACT_TT_REP_STRING 3 + +/* + * Resource name and class for the EXEC-HOST resource. + */ +#define DtEXEC_HOSTS_NAME "executionHosts" +#define DtEXEC_HOSTS_CLASS "ExecutionHosts" +#define DtEXEC_HOSTS_DEFAULT _DtACT_EXEC_HOST_DFLT + +/* Flags to force special processing of filenames */ +#define _DTAct_TT_VTYPE 1 << 0 +#define _DTAct_TT_ARG 1 << 1 + +/* Structure used to hold the components of a message */ + +typedef struct { + char *precedingText; + char *prompt; + int keyword; + int argNum; + unsigned long mask; /* replaces isFile, isBuffer, isString boolean */ +} MsgComponent; + + +typedef struct { + MsgComponent *parsedMessage; + int numMsgParts; + char *compiledMessage; + int msgLen; +} parsedMsg; + +/****************************************************************************** + * + * Structs used during the invocation of an action. Once DtActionInvoke() + * exits, these structs are generally freed. + * + *****************************************************************************/ +typedef struct { + /*int winMask; ---> moved into the action mask*/ + parsedMsg execString; + parsedMsg termOpts; + char *contextDir; + char *contextHost; + parsedMsg execHosts; + char **execHostArray; + int execHostCount; +} cmdAttr; + +typedef struct { + DtShmBoson map_action; +} mapAttr; + +typedef struct { + int tt_class; + int tt_scope; + parsedMsg tt_op; + parsedMsg tt_file; /* must be a single file name */ + int *tt_argn_mode; + int mode_count; + parsedMsg *tt_argn_vtype; + int vtype_count; + parsedMsg *tt_argn_value; + int value_count; + int *tt_argn_rep_type; /* INT, STRING, BUFFER or UNDEFINED */ + int rep_type_count; +} tt_msgAttr; + +#ifdef _DT_ALLOW_DT_MSGS +typedef struct { + parsedMsg service; /* ICCCM service name */ + parsedMsg request; /* request name string */ + parsedMsg *argn_value; + int value_count; + +} dt_reqAttr; + +typedef struct { + parsedMsg ngroup; /* ICCCM notification group */ + parsedMsg notify; /* notification to be sent */ + parsedMsg *argn_value; + int value_count; +} dt_notifyAttr; +#endif /* _DT_ALLOW_DT_MSGS */ + + +typedef struct { + DtShmBoson action; /* Might just use a char * here? */ + DtDbPathId file_name_id; /* id of file wherein the action is defined */ + char *label; /* localizable action label string */ + char *description; + DtShmBoson *arg_types; + int type_count; + int arg_count; /* Number of arguments accepted by the action */ + unsigned long mask; /* action mask -- class/type/arg info */ + union { /* attributes for the different action kinds */ + cmdAttr cmd; + mapAttr map; + tt_msgAttr tt_msg; +#ifdef _DT_ALLOW_DT_MSGS + dt_reqAttr dt_req; + dt_notifyAttr dt_notify; +#endif /* _DT_ALLOW_DT_MSGS */ + } u; +} Action, *ActionPtr; /* new action structure and pointer */ + + +/* Structure used to hold each of the object components */ + +typedef struct { + char * origFilename; + char * baseFilename; + char * origHostname; + int hostIndex; + int dirIndex; + void * bp; /* pointer to original buffer -- tmp files only */ + int sizebp; /* size of original buf -- for tmp files only */ +} fileAttr; + +typedef struct { + char * string; +} stringAttr; + +typedef struct { + int size; + void *bp; +} bufferAttr; + + +typedef struct { + DtShmBoson type; + unsigned long mask; + union { + fileAttr file; + stringAttr string; + bufferAttr buffer; + } u; +} ObjectData; + + +/* + * Structure attached to the button callbacks in the + * dialog used to collect missing parameters. + * + */ + +typedef struct { + char *actionName; + int objOffset; + int objsUsed; + int numObjects; + ObjectData *objects; + int numPromptInputs; + char **promptInputs; + int numHostNames; + char **hostNames; + int numDirNames; + char **dirNames; + char *termOpts; + char *cwdHost; + char *cwdDir; + ActionPtr clonedAction; + unsigned long mask; + char *badHostList; + char *currentHost; + int hostIndex; + char *execHost; + DtActionInvocationID invocId; + unsigned long childId; +} ActionRequest; + +/****************************************************************************** + * + * Structs used to maintain information on invoked actions until they + * exit. A few select elements of the ActionRequest and Action structs + * will be copied into these strcuts. + * + *****************************************************************************/ + +/****************************************************************************** + ****************************************************************************** + ** + ** Major data-structure diagram for the DtAction invocation layer: + ** + ** _DtActInvRec <=== _DtActInvRecArray[ actInvRecArraySize ] + ** ------------------ + ** | info per | + ** | DtActionInvoke | + ** |----------------| + ** | numChildren | + ** |----------------| + ** | childRecs[] | ===> _DtActChildRec + ** ------------------ ------------------ + ** | info per | + ** | child request | + ** |----------------| + ** | *request | ===> ActionRequest + ** ------------------ ------------------ + ** | info on users | + ** | action request | + ** |----------------| + ** Action <=== | *clonedAction | + ** ------------------ ------------------ + ** |info on matching| + ** | actionDB entry | + ** |----------------| + ** | cmd/map/tt/dt | + ** | attributes of | + ** | resulting msg | + ** ------------------ + ** + ** "ActionRequest" and "Action" were present in VUE 3.0, and have a + ** scratch-pad like function within DtActionInvoke() to get actions + ** started. They are not good long-term retainers of information. + ** Action and ActionRequest are in fact freed when DtActionInvoke() + ** exits. + ** + ** "_DtActInvRec" and "_DtActChildRec" have been introduced to retain + ** information for the entire life of the actions. Some of the + ** information from ActionRequest and Action will be copied (mirrored) + ** up to these structures. + ** + ****************************************************************************** + *****************************************************************************/ + +/****************************************************************************** + * + * Child Status Macro Definitions -- These values are used in + * the status word of the _DtActChildRec child record. + * + * ****** IMPORTANT NOTE *** IMPORTANT NOTE *** IMPORTANT NOTE ****** + * + * The _DtActCHILD_ macros are also used in cde1/dtexec/Main.c + * in the _DtActDtexecDone(Request) message, so in effect they + * are also protocol constants that should *never* be changed. + * If changed, libDtSvc and dtexec may mis-communicate status. + * + *****************************************************************************/ + +#define _DtActCHILD_UNKNOWN (1<<0) /* 1 - child status unknown */ +#define _DtActCHILD_PENDING_START (1<<1) /* 2 - child start pending */ +#define _DtActCHILD_ALIVE_UNKNOWN (1<<2) /* 4 - child alive but unknown*/ +#define _DtActCHILD_ALIVE (1<<3) /* 8 - child alive and well */ +#define _DtActCHILD_DONE (1<<4) /* 16 - child done */ +#define _DtActCHILD_FAILED (1<<5) /* 32 - child failed */ +#define _DtActCHILD_CANCELED (1<<6) /* 64 - child canceled */ + +#define _DtActCHILD_DONE_BITS ( (_DtActCHILD_DONE) | \ + (_DtActCHILD_FAILED) | \ + (_DtActCHILD_CANCELED) ) + +/*** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE ***/ + + +#define ARE_CHILDREN_DONE(mask) ( (mask) & _DtActCHILD_DONE_BITS ) + +#define IS_CHILD_UNKNOWN(mask) ( (mask) == _DtActCHILD_UNKNOWN ) +#define IS_CHILD_PENDING_START(mask) ( (mask) & _DtActCHILD_PENDING_START ) +#define IS_CHILD_DONE(mask) ( (mask) & _DtActCHILD_DONE) +#define IS_CHILD_FAILED(mask) ( (mask) & _DtActCHILD_FAILED) +#define IS_CHILD_CANCELED(mask) ( (mask) & _DtActCHILD_CANCELED) +#define IS_CHILD_ALIVE(mask) ( (mask) & _DtActCHILD_ALIVE) +#define IS_CHILD_ALIVE_UNKOWN(mask) ( (mask) & _DtActCHILD_ALIVE_UNKNOWN) + + +/****************************************************************************** + * + * Information per child of DtActionInvoke() + * + *****************************************************************************/ + +/* + * Structure useed to map returnable arguments to the child argument list. + */ + +typedef struct { + int argN; /* Nth returned value (0 based for tooltalk) */ + int argIdx; /* Nth child argument */ +} _DtActArgMap; + +typedef struct { + unsigned long childId; /* serial # with DtActInvId */ + unsigned long childState; /* child state */ + + /* + * Information cloned from "ActionRequest *req" + */ + int numObjects; /* number of child args */ + _DtActArgMap *argMap; /* map of returnable args to chd args */ + + /* + * Information cloned from "ActionPtr clonedAction" + */ + unsigned long mask; /* action type - IS_xxx() */ + + /* a list of tmp file names 5/11/94 --tomg */ + + union { + struct { /* COMMAND elements */ + char *TTProcId; /* TT procID handle to child */ + Tt_message reqMessage; /* Initiator TT Request */ + Tt_pattern magic_cookie; /* dtexec to libDtSvc cookie */ + } cmd; + struct { /* TT_MSG elements */ + char *TTProcId; /* TT procID handle to child */ + Tt_message reqMessage; /* Initiator TT Request */ + int isTtMedia; /* handled by ttmedia_load ? */ + Tttk_op TtMediaOp; /* if ttmedia_load, the op */ + Tt_pattern *subConPats; /* for subcontract_manage */ + } tt; + } u; + +} _DtActChildRecT; + + +/****************************************************************************** + * + * Invocation Status Macro Definitions -- These values are used in + * the state word of the _DtActInvRec invocation record. + * + *****************************************************************************/ + +#define _DtActINV_UNKNOWN 0 /* unknown invocation status */ +#define _DtActINV_ERROR (1<<0) /* invocation error detected */ +#define _DtActINV_CANCEL (1<<1) /* trying to cancel invocation*/ +#define _DtActINV_PENDING (1<<2) /* invocation pending */ +#define _DtActINV_WORKING (1<<3) /* invocation in process */ +#define _DtActINV_DONE (1<<4) /* invocation step done */ +#define _DtActINV_COMPLETE (1<<5) /* invocation steps all done */ +#define _DtActINV_CB_CALLED (1<<6) /* invocation callback called */ +#define _DtActINV_ID_RETURNED (1<<7) /* invocation id has returned */ +#define _DtActINV_CMD_QUEUED (1<<8) /* command has been queued */ +#define _DtActINV_INDICATOR_ON (1<<9) /* busy indicator active bit */ + +#define SET_INV_UNKNOWN(mask) (mask = 0) + +#define SET_INV_ERROR(mask) (mask |= _DtActINV_ERROR) +#define SET_INV_CANCEL(mask) (mask |= _DtActINV_CANCEL) +#define SET_INV_PENDING(mask) (mask |= _DtActINV_PENDING) +#define SET_INV_WORKING(mask) (mask |= _DtActINV_WORKING) +#define SET_INV_DONE(mask) (mask |= _DtActINV_DONE) +#define SET_INV_COMPLETE(mask) (mask |= _DtActINV_COMPLETE) +#define SET_INV_CB_CALLED(mask) (mask |= _DtActINV_CB_CALLED) +#define SET_INV_ID_RETURNED(mask) (mask |= _DtActINV_ID_RETURNED) +#define SET_INV_CMD_QUEUED(mask) (mask |= _DtActINV_CMD_QUEUED) +#define SET_INV_INDICATOR_ON(mask) (mask |= _DtActINV_INDICATOR_ON) + +#define RESET_INV_ERROR(mask) (mask &= ~(_DtActINV_ERROR)) +#define RESET_INV_CANCEL(mask) (mask &= ~(_DtActINV_CANCEL)) +#define RESET_INV_PENDING(mask) (mask &= ~(_DtActINV_PENDING)) +#define RESET_INV_WORKING(mask) (mask &= ~(_DtActINV_WORKING)) +#define RESET_INV_COMPLETE(mask) (mask &= ~(_DtActINV_COMPLETE)) +#define RESET_INV_DONE(mask) (mask &= ~(_DtActINV_DONE)) +#define RESET_INV_CB_CALLED(mask) (mask &= ~(_DtActINV_CB_CALLED)) +#define RESET_INV_ID_RETURNED(mask) (mask &= ~(_DtActINV_ID_RETURNED)) +#define RESET_INV_CMD_QUEUED(mask) (mask &= ~(_DtActINV_CMD_QUEUED)) +#define RESET_INV_INDICATOR_ON(mask) (mask &= ~(_DtActINV_INDICATOR_ON)) + +#define IS_INV_FINISHED(mask) ( !((mask) & _DtActINV_CMD_QUEUED) \ + && ((mask) & (_DtActINV_COMPLETE \ + | _DtActINV_CANCEL)) ) +#define IS_INV_UNKNOWN(mask) ( (mask) == _DtActINV_UNKNOWN ) + +#define IS_INV_ERROR(mask) ((mask) & _DtActINV_ERROR ) +#define IS_INV_CANCEL(mask) ((mask) & _DtActINV_CANCEL ) +#define IS_INV_PENDING(mask) ((mask) & _DtActINV_PENDING ) +#define IS_INV_WORKING(mask) ((mask) & _DtActINV_WORKING ) +#define IS_INV_DONE(mask) ((mask) & _DtActINV_DONE ) +#define IS_INV_COMPLETE(mask) ((mask) & _DtActINV_COMPLETE ) +#define IS_INV_CB_CALLED(mask) ((mask) & _DtActINV_CB_CALLED ) +#define IS_INV_ID_RETURNED(mask) ((mask) & _DtActINV_ID_RETURNED ) +#define IS_INV_CMD_QUEUED(mask) ((mask) & _DtActINV_CMD_QUEUED ) +#define IS_INV_INDICATOR_ON(mask) ((mask) & _DtActINV_INDICATOR_ON ) + +#define CALL_INV_CB(mask) ((IS_INV_FINISHED(mask)) && \ + (IS_INV_ID_RETURNED(mask)) && \ + !(IS_INV_CB_CALLED(mask))) + +/****************************************************************************** + * + * Information per DtActionInvoke() + * + * Note: For TT_MSG(NOTICE)'s during CDE 1.0, this struct will disappear + * immediately after the NOTICEs are sent. + * + *****************************************************************************/ + + +typedef struct { + unsigned long mask; /* encodes object class and writable flag */ + int size; /* original size (buffers only) */ + char *type; /* original type (buffers only) */ + char *name; /* encodes (tmp) file name associated with the + object (if any) */ +} _DtActArgInfo; + +typedef struct { + DtActionStatus userStatus; + DtActionArg *newArgp; + int newArgc; +} _DtActUpdateCache; + +typedef struct _DtActInvRec { + unsigned long state; /* invocation state */ + DtActionInvocationID id; /* identifying invocation ID */ + Widget w; /* users widget id */ + DtActionCallbackProc cb; /* users callback */ + XtPointer client_data; /* users client data for cb */ + _DtActArgInfo *info; /* template w/ .argClass info */ + int ac; /* original # of arguments */ + int numChildren; /* number of childRec's. */ + _DtActChildRecT **childRec; /* array of child Rec's */ + int cachedUploadCnt;/* cached callback updates */ + _DtActUpdateCache *cachedUploads; /* data for */ +} _DtActInvRecT; + + +/****************************************************************************** + * + * Structs for dialogs/prompts + * + *****************************************************************************/ + +/* Structure used to hold a prompt string destined for a dialog */ + +typedef struct { + int argIndex; + char *prompt; +} PromptEntry; + + +/* Structure used to contain prompt dialog information */ + +typedef struct { + int argIndex; + Widget promptWidget; +} DialogPromptEntry; + +typedef struct { + ActionRequest * request; + Widget topLevel; + Widget associatedWidget; + int numPrompts; + DialogPromptEntry * prompts; +} PromptDialog; + + +/* Structure used to contain abort/continue dialog information */ + +typedef struct { + ActionRequest * request; + Widget topLevel; + Widget associatedWidget; + int numPrompts; + PromptEntry * prompts; +} ContinueDialog; + + +/* Structure passed to request passed/failed callbacks */ + +typedef struct { + Widget associatedWidget; + char *actionLabel; + int offset; + ActionPtr actionPtr; /* Ptr to the action that + was invoked. */ + ActionRequest *requestPtr; + DtActionInvocationID actInvId; /* A standard invocation id */ + unsigned long childId; /* An id to further identify + children of actInvId */ +} CallbackData; + +/****************************************************************************** + * + * Private External Function Declarations -- not for public consumption + * + ******************************************************************************/ + +extern void _DtFreeActionStruct( ActionPtr action) ; + +#endif /* _ActionP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ActionUtilP.h b/cde/include/Dt/ActionUtilP.h new file mode 100644 index 00000000..742e39b6 --- /dev/null +++ b/cde/include/Dt/ActionUtilP.h @@ -0,0 +1,114 @@ +/* + * 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: ActionUtilP.h /main/3 1995/10/26 15:01:19 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: ActionUtilP.h + ** + ** Project: DT + ** + ** Description: Private include file for the Action Library Utilities. + ** + ** + ** (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 _ActionUtilP_h +#define _ActionUtilP_h + +#include /* for Display struct definition */ +#include "ActionP.h" + + +/***************************************************************************** + * + * Macro to protect against sending a NULL pointer to certain + * library functions (i.e. sprintf, strlen, ...) with on some + * systems choke on a NULL pointer. + * + ****************************************************************************/ +#define _DtActNULL_GUARD(s) ((s) ? (s) : "") + +/****************************************************************************** + External Utility Function Declarations + + These functions are for internal use and are not part of the + public Action API. Each of the following functions returns a + newly allocated version of the desired string. It is up to the + caller to free the strings obtained. +******************************************************************************/ + +extern char *_DtBasename(const char *s); +extern char *_DtDirname(const char *s); +extern char *_DtPathname(const char *s); +extern char *_DtHostString(const char *s); +extern char *_DtGetSessionHostName( void ); +extern char *_DtGetDisplayHostName( Display *d); +extern char *_DtGetLocalHostName( void ); +extern char *_DtGetExecHostsDefault (void); +extern char *_DtGetActionIconDefault (void); +extern char *_DtGetDtTmpDir(void); +extern char *_DtActGenerateTmpFile(char *dir, + char *format, + mode_t mode, + int *fd ); +extern int _DtIsSameHost( const char *host1, const char *host2 ); +extern void _DtRemoveTrailingBlanksInPlace(char **s); +extern int _DtExecuteAccess(const char *path); + +extern DtActionInvocationID _DtActAllocID(); +extern _DtActInvRecT *_DtActAllocInvRec(); +extern _DtActChildRecT *_DtActAllocChildRec( _DtActInvRecT *recp ); +extern int _DtActDeleteInvRec( DtActionInvocationID id); +extern _DtActInvRecT *_DtActFindInvRec( DtActionInvocationID id); +extern _DtActChildRecT *_DtActFindChildRec( + DtActionInvocationID id, + unsigned long childId); +extern unsigned long _DtActEvalChildren(DtActionInvocationID id); +extern void _DtActExecutionLeafNodeCleanup( + DtActionInvocationID id, + DtActionArg *newArgp, + int newArgc, + int respectQuitBlock); +extern DtActionArg *_DtActMallocEmptyArgArray(int ac); +extern void _DtActFreeArgArray( DtActionArg *argp, int ac ); +extern void *_DtActReadTmpFileToBuffer ( + char *fname, + int *sizep); +extern int _DtActGetCmdReturnArgs ( + DtActionInvocationID invId, + _DtActChildRecT *childp, + DtActionArg **aargv ); + +/******************************************************************************/ + + +#endif /* _ActionUtilP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ + + diff --git a/cde/include/Dt/CanvasP.h b/cde/include/Dt/CanvasP.h new file mode 100644 index 00000000..ed20c24a --- /dev/null +++ b/cde/include/Dt/CanvasP.h @@ -0,0 +1,514 @@ +/* + * 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: CanvasP.h /main/17 1999/10/14 13:19:41 mgreess $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: CanvasP.h + ** + ** Project: Cde Help System + ** + ** Description: Private Header file for the UI independent core engine + ** of the help system. It contains function prototypes, + ** structure definitions, typedefs, etc. + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtCanvasP_h +#define _DtCanvasP_h + + +#ifdef __cplusplus +extern "C" { +#endif + +/******** Public Re-defines ********/ +#if !defined(_AIX) +#define _DtCvStrCaseCmp(s1,s2) strcasecmp(s1,s2) +#define _DtCvStrNCaseCmp(s1,s2, n) strncasecmp(s1,s2,n) +#else +#define _DtCvStrCaseCmp(s1,s2) _DtHelpCeStrCaseCmp(s1,s2) +#define _DtCvStrNCaseCmp(s1,s2,n) _DtHelpCeStrNCaseCmp(s1,s2, n) +#endif /* _AIX */ + +/******** Public Defines Declarations ********/ +/* + * true, false and null + */ +#ifndef Null +#define Null 0 +#endif +#ifndef NULL +#define NULL 0 +#endif +#ifndef False +#define False 0 +#endif +#ifndef True +#define True 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +#define TRUE 1 +#endif + +/* + * Get Selection Type Declarations + */ +#define _DtCvSELECTED_TEXT (1 << 0) +#define _DtCvSELECTED_REGION (1 << 1) +#define _DtCvSELECTED_ALL (~((unsigned int) 0)) + +/* + * hypertext link types + */ +#define _DtCvLinkType_Execute 3 +#define _DtCvLinkType_ManPage 4 +#define _DtCvLinkType_AppDefine 5 +#define _DtCvLinkType_SameVolume 6 +#define _DtCvLinkType_CrossLink 7 +#define _DtCvLinkType_TextFile 8 + +/* + * hypertext window hints + */ +#define _DtCvWindowHint_PopupWindow 1 +#define _DtCvWindowHint_CurrentWindow 2 +#define _DtCvWindowHint_NewWindow 3 +#define _DtCvWindowHint_Original 4 + +/********************* + * Rendering flags + *********************/ + +/* + * Rendering flags - Link + */ +#define _DtCvLINK_FLAG (0x01 << 0) +#define _DtCvLINK_BEGIN (0x01 << 1) +#define _DtCvLINK_END (0x01 << 2) + +#define _DtCvLINK_POP_UP (0x01 << 3) +#define _DtCvLINK_NEW_WINDOW (0x01 << 4) + +/* + * Rendering flags - Search + * + * a gap is left for the search flags on a segment in CanvasSegP.h. If these + * change value, the other values must move to accommodate it. */ +#define _DtCvSEARCH_FLAG (0x01 << 5) +#define _DtCvSEARCH_BEGIN (0x01 << 6) +#define _DtCvSEARCH_END (0x01 << 7) +#define _DtCvSEARCH_CURR (0x01 << 8) + +/* + * Rendering flags - Mark + */ +#define _DtCvMARK_FLAG (0x01 << 9) +#define _DtCvMARK_BEGIN (0x01 << 10) +#define _DtCvMARK_END (0x01 << 11) +#define _DtCvMARK_ON (0x01 << 12) + +/* + * Rendering flags - Traversal + */ +#define _DtCvTRAVERSAL_FLAG (0x01 << 13) +#define _DtCvTRAVERSAL_BEGIN (0x01 << 14) +#define _DtCvTRAVERSAL_END (0x01 << 15) + +/* + * Rendering flags - Application defined flags. + */ +#define _DtCvAPP_FIELD_OFFSET (16) +#define _DtCvAPP_FIELD_MASK (0x0f << _DtCvAPP_FIELD_OFFSET) +#define _DtCvAPP_FIELD_S_MASK (0x03 << _DtCvAPP_FIELD_OFFSET) +#define _DtCvAPP_FLAG1 (0x01 << (_DtCvAPP_FIELD_OFFSET + 0)) +#define _DtCvAPP_FLAG2 (0x01 << (_DtCvAPP_FIELD_OFFSET + 1)) +#define _DtCvAPP_FLAG3 (0x01 << (_DtCvAPP_FIELD_OFFSET + 2)) +#define _DtCvAPP_FLAG4 (0x01 << (_DtCvAPP_FIELD_OFFSET + 3)) + +/* + * Rendering flags - Selection + */ +#define _DtCvSELECTED_FLAG (0x01 << 20) +#define _DtCvEND_OF_LINE (0x01 << 21) + +/* + * Activation masks + */ +#define _DtCvACTIVATE_SELECTION (0x01 << 0) +#define _DtCvACTIVATE_MARK (0x01 << 1) +#define _DtCvDEACTIVATE (0x01 << 2) +#define _DtCvACTIVATE_MARK_ON (0x01 << 3) +#define _DtCvACTIVATE_MARK_OFF (0x01 << 4) + +/******** Public Enum Declarations ********/ + +/* + * Element types + */ +enum _dtCvElemType + { + _DtCvBAD_TYPE, + _DtCvCANVAS_TYPE, + _DtCvLINE_TYPE, + _DtCvLINK_TYPE, + _DtCvLOCALE_TYPE, + _DtCvMARK_TYPE, + _DtCvREGION_TYPE, + _DtCvSTRING_TYPE, + _DtCvTRAVERSAL_TYPE + }; + +typedef enum _dtCvElemType _DtCvElemType; + +/* + * Canvas Engine values. Either parameters or return values. + */ +enum _dtCvValue + { +/* + * status types. i.e. True/False, Ok/Bad, etc. + */ + _DtCvFALSE = False, + _DtCvSTATUS_OK = False, + _DtCvTRUE = True, + _DtCvSTATUS_BAD = True, + _DtCvSTATUS_ID_BAD, + _DtCvSTATUS_NONE, + _DtCvSTATUS_LINK, + _DtCvSTATUS_MARK, +/* + * Render types + */ + _DtCvRENDER_PARTIAL, + _DtCvRENDER_COMPLETE, +/* + * Traversal defines + */ + _DtCvTRAVERSAL_OFF, + _DtCvTRAVERSAL_ON, + _DtCvTRAVERSAL_TOP, + _DtCvTRAVERSAL_NEXT, + _DtCvTRAVERSAL_PREV, + _DtCvTRAVERSAL_BOTTOM, + _DtCvTRAVERSAL_ID, + _DtCvTRAVERSAL_MARK, +/* + * processing a selection types + */ + _DtCvSELECTION_CLEAR, + _DtCvSELECTION_START, + _DtCvSELECTION_UPDATE, + _DtCvSELECTION_END, +/* + * honor the right boundary when laying out information + */ + _DtCvUSE_BOUNDARY, + _DtCvUSE_BOUNDARY_MOVE, + _DtCvIGNORE_BOUNDARY + }; + +typedef enum _dtCvValue _DtCvValue; +typedef enum _dtCvValue _DtCvStatus; +typedef enum _dtCvValue _DtCvRenderType; +typedef enum _dtCvValue _DtCvTraversalCmd; +typedef enum _dtCvValue _DtCvSelectMode; + +/* + * line wrap mode types. + */ +enum _dtCvModeType + { + _DtCvModeWrapNone, + _DtCvModeWrapDown, + _DtCvModeWrapUp + }; + +typedef enum _dtCvModeType _DtCvModeType; + +/******** Public Typedef Declarations ********/ +typedef void* _DtCvPointer; +typedef void* _DtCvHandle; + +typedef int _DtCvUnit; + +typedef unsigned long _DtCvFlags; + +typedef struct _dtCvSegPts _DtCvSegPts; +typedef struct _dtCvSegment _DtCvSegment; + +/******** Public Structures Declarations ********/ +typedef struct _dtCvMetrics { + _DtCvUnit width; /* max width of canvas area */ + _DtCvUnit height; /* max height of canvas area */ + _DtCvUnit top_margin; /* top margin to allow for */ + _DtCvUnit side_margin; /* left margin to allow for */ + _DtCvUnit line_height; /* the height of an average line of */ + /* text */ + _DtCvUnit horiz_pad_hint; /* the optimul spacing to use if */ + /* lines have to be squeezed for */ + /* _DtCvUSE_BOUNDARY */ +} _DtCvMetrics; + +typedef struct _dtCvSpaceMetrics { + _DtCvUnit space_before; + _DtCvUnit space_after; + _DtCvUnit space_above; + _DtCvUnit space_below; +} _DtCvSpaceMetrics; + +typedef struct _dtCvLocale { + _DtCvModeType line_wrap_mode; /* specifies the wrap mode */ + const wchar_t *cant_begin_chars; /* specifies the characters */ + /* that can't begin a line */ + const wchar_t *cant_end_chars; /* specifies the characters */ + /* that can't end a line */ +} _DtCvLocale; + +typedef struct _dtCvStringInfo { + const void *string; + int byte_len; + int wc; + _DtCvPointer font_ptr; + _DtCvPointer csd; +} _DtCvStringInfo; + +typedef struct _dtCvLineInfo { + _DtCvUnit x2; + _DtCvUnit y2; + _DtCvUnit width; + _DtCvPointer data; +} _DtCvLineInfo; + +typedef struct _dtCvRenderInfo { + _DtCvPointer info; + _DtCvUnit box_x; + _DtCvUnit box_y; + _DtCvUnit box_height; + _DtCvUnit box_width; +} _DtCvRenderInfo; + +typedef struct _dtCvLinkInfo { + char *specification; + char *description; + int hyper_type; + int win_hint; + _DtCvUnit offset_x; + _DtCvUnit offset_y; +} _DtCvLinkInfo; + +typedef struct _dtCvPointInfo { + _DtCvPointer client_data; + _DtCvSegPts **segs; +} _DtCvPointInfo; + +/******** Public Structure Typedef Declarations ********/ +typedef struct _dtCvTopicInfo* _DtCvTopicPtr; + +/******** Public Prototyped Procedures ********/ +typedef void (*_DtCvGetMetrics)( + _DtCvPointer /* client_data */, + _DtCvElemType /* elem_type */, + _DtCvPointer /* ret_metrics */ +); + +typedef void (*_DtCvRenderElem)( + _DtCvPointer /* client_data */, + _DtCvElemType /* elem_type */, + _DtCvUnit /* x */, + _DtCvUnit /* y */, + int /* link_type */, + _DtCvFlags /* old_flags */, + _DtCvFlags /* new_flags */, + _DtCvElemType /* trav_type */, + _DtCvPointer /* trav_data */, + _DtCvPointer /* data */ +); + +typedef _DtCvUnit (*_DtCvGetElemWidth)( + _DtCvPointer /* client_data */, + _DtCvElemType /* elem_type */, + _DtCvPointer /* data */ +); + +typedef void (*_DtCvGetFontMetrics)( + _DtCvPointer /* client_data */, + _DtCvPointer /* font_ptr */, + _DtCvUnit* /* *ret_ascent */, + _DtCvUnit* /* *ret_descent */, + _DtCvUnit* /* *ret_width */, + _DtCvUnit* /* *ret_super */, + _DtCvUnit* /* *ret_sub */ +); + +typedef _DtCvStatus (*_DtCvBuildSelection)( + _DtCvPointer /* client_data */, + _DtCvElemType /* elem_type */, + unsigned int /* mask */, + _DtCvPointer* /* prev_info */, + _DtCvUnit /* space */, + _DtCvUnit /* width */, + _DtCvFlags /* flags */, + _DtCvPointer /* data */ +); + +typedef int (*_DtCvFilterExecCmd)( + _DtCvPointer /* client_data */, + const char* /* cmd */, + char** /* ret_cmd */ +); + +/******** Public Structures Declarations ********/ +typedef struct _dtCvVirtualInfo { + _DtCvGetMetrics get_metrics; + _DtCvRenderElem render_elem; + _DtCvGetElemWidth get_width; + _DtCvGetFontMetrics get_font_metrics; + _DtCvBuildSelection build_selection; + _DtCvFilterExecCmd exec_cmd_filter; +} _DtCvVirtualInfo; + +typedef struct _dtCvMarkPos { + _DtCvPointer client_data; + _DtCvUnit x1; + _DtCvUnit y1; + _DtCvUnit baseline1; + _DtCvUnit x2; + _DtCvUnit y2; + _DtCvUnit baseline2; +} _DtCvMarkPos; + +/******** Public Macro Declarations ********/ + +/******** Semi-Public Function Declarations ********/ +extern int _DtCvGetSearchLineMetrics( + _DtCvHandle canvas_handle, + int search_hit_index, + _DtCvUnit* baseline, + _DtCvUnit* descent, + _DtCvUnit* ascent); + +/******** Public Function Declarations ********/ +extern _DtCvStatus _DtCanvasActivatePts( + _DtCvHandle canvas_handle, + unsigned int mask, + _DtCvPointInfo *info, + _DtCvUnit *ret_y1, + _DtCvUnit *ret_y2); +extern void _DtCanvasClean( + _DtCvHandle canvas_handle); +extern _DtCvHandle _DtCanvasCreate( + _DtCvVirtualInfo virt_info, + _DtCvPointer client_data); +extern void _DtCanvasDestroy( + _DtCvHandle canvas_handle); +extern _DtCvStatus _DtCanvasGetCurLink( + _DtCvHandle canvas_handle, + _DtCvLinkInfo *ret_info); +extern _DtCvStatus _DtCanvasGetCurTraversal( + _DtCvHandle canvas_handle, + _DtCvLinkInfo *ret_info, + _DtCvPointer *ret_data); +extern _DtCvStatus _DtCanvasGetMarkPositions( + _DtCvHandle canvas_handle, + _DtCvMarkPos ***ret_pos); +extern _DtCvStatus _DtCanvasGetPosLink( + _DtCvHandle canvas_handle, + _DtCvUnit x1, + _DtCvUnit y1, + _DtCvUnit x2, + _DtCvUnit y2, + _DtCvLinkInfo *ret_info); +extern _DtCvStatus _DtCanvasGetSelection( + _DtCvHandle canvas_handle, + unsigned int mask, + _DtCvPointer *ret_select); +extern _DtCvStatus _DtCanvasGetSelectionPoints( + _DtCvHandle canvas_handle, + _DtCvSegPts ***ret_segs, + _DtCvUnit *ret_y1, + _DtCvUnit *ret_y2); +extern _DtCvStatus _DtCanvasGetSpotInfo( + _DtCvHandle canvas_handle, + _DtCvUnit x, + _DtCvUnit y, + _DtCvSegment **ret_seg, + _DtCvUnit *ret_offx, + _DtCvUnit *ret_offy, + _DtCvElemType *ret_element); +extern _DtCvStatus _DtCanvasMoveTraversal( + _DtCvHandle canvas_handle, + _DtCvTraversalCmd cmd, + _DtCvValue wrap, + _DtCvValue render, + _DtCvPointer rid, + _DtCvUnit *ret_x, + _DtCvUnit *ret_y, + _DtCvUnit *ret_baseline, + _DtCvUnit *ret_height); +extern void _DtCanvasProcessSelection ( + _DtCvHandle canvas_handle, + _DtCvUnit x, + _DtCvUnit y, + _DtCvSelectMode mode); +extern void _DtCanvasRender( + _DtCvHandle canvas_handle, + _DtCvUnit x1, + _DtCvUnit y1, + _DtCvUnit x2, + _DtCvUnit y2, + _DtCvRenderType flag, + _DtCvValue pg_break, + _DtCvUnit *max_y, + _DtCvUnit *next_y); +extern _DtCvStatus _DtCanvasResize( + _DtCvHandle canvas_handle, + _DtCvValue force, + _DtCvUnit *ret_width, + _DtCvUnit *ret_height); +extern _DtCvStatus _DtCanvasSetTopic( + _DtCvHandle canvas_handle, + _DtCvTopicPtr topic_handle, + _DtCvValue honor_size, + _DtCvUnit *ret_width, + _DtCvUnit *ret_height, + _DtCvUnit *ret_y); +extern void _DtCanvasLoadMetrics( + _DtCvHandle canvas_handle); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + + +#endif /* _DtCanvasP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/CanvasSegP.h b/cde/include/Dt/CanvasSegP.h new file mode 100644 index 00000000..43cd052d --- /dev/null +++ b/cde/include/Dt/CanvasSegP.h @@ -0,0 +1,538 @@ +/* + * 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: CanvasSegP.h /main/19 1996/10/04 18:30:19 rswiston $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: CanvasSegP.h + ** + ** Project: + ** + ** Description: Public Header file for Canvas Engine + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtCanvasSegP_h +#define _DtCanvasSegP_h + +#ifdef __cplusplus +extern "C" { +#endif + +/******** Public Defines Declarations ********/ +/***************************************************************************** + * Some bits in passed in as a _DtCvFlags and the 'type' in _DtCvSegment + * must match because they are passed straight thought from the segment + * to the application. The following map is to help prevent colisions. + * + * (-------------------------> _DtCvEND_OF_LINE + * | (-----------------------> _DtCvSELECTED_FLAG + * | | + * | | (-------------------------> _DtCvAPP_FLAG4 \ + * | | | (-----------------------> _DtCvAPP_FLAG3 \ + * | | | | (---------------------> _DtCvAPP_FLAG2 / _DtCvAPP_FIELD + * | | | | | (-------------------> _DtCvAPP_FLAG1 / + * | | | | | | + * | | | | | | (---------------------> _DtCvTRAVERSAL_END + * | | | | | | | (-------------------> _DtCvTRAVERSAL_BEGIN + * | | | | | | | | (-----------------> _DtCvTRAVERSAL_FLAG + * | | | | | | | | | + * | | | | | | | | | (-------------------> _DtCvMARK_ON + * | | | | | | | | | | (-----------------> _DtCvMARK_END + * | | | | | | | | | | | (---------------> _DtCvMARK_BEGIN + * | | | | | | | | | | | | (-------------> _DtCvMARK_FLAG + * | | | | | | | | | | | | | + * | | | | | | | | | | | | | (-------------> _DtCvSEARCH_CURR + * | | | | | | | | | | | | | | (-----------> _DtCvSEARCH_END + * | | | | | | | | | | | | | | | (---------> _DtCvSEARCH_BEGIN + * | | | | | | | | | | | | | | | | (-------> _DtCvSEARCH_FLAG + * | | | | | | | | | | | | | | | | | + * | | | | | | | | | | | | | | | | | (---------> _DtCvLINK_NEW_WINDOW + * | | | | | | | | | | | | | | | | | | (-------> _DtCvLINK_POP_UP + * | | | | | | | | | | | | | | | | | | | (-----> _DtCvLINK_END + * | | | | | | | | | | | | | | | | | | | | (---> _DtCvLINK_BEGIN + * | | | | | | | | | | | | | | | | | | | | | (-> _DtCvLINK_FLAG + * | | | | | | | | | | | | | | | | | | | | | | + * v v v v v v#v v v v v v v v#v v v v v v v v + * 1 0 9 8 7 6#5 4 3 2 1 0 9 8#7 6 5 4 3 2 1 0 + * ------------#---------------#---------------- + * |.|.|.|.|.|.#.|.|.|.|.|.|.|.#.|.|.|.|.|.|.|.| + * ------------#---------------#---------------- + * ^ ^ ^ ^ ^#^ ^ ^ ^ ^ ^ ^ ^#^ ^ ^ ^ ^^^^^ + * | | | | | | | | | | | | | | | | | \|/ + * | | | | | | | | | | | | | | | | | | + * | | | | | | | | | | | | | | | | | (-> Segment type + * | | | | | | | | | | | | | | | | (-----> _DtCvWIDE_CHAR + * | | | | | | | | | | | | | | | | + * | | | | | | | | | | | | | | | (-----> _DtCvSEARCH_FLAG + * | | | | | | | | | | | | | | (-------> _DtCvSEARCH_BEGIN + * | | | | | | | | | | | | | (---------> _DtCvSEARCH_END + * | | | | | | | | | | | | (-----------> _DtCvSEARCH_CURR + * | | | | | | | | | | | | + * | | | | | | | | | | | (---------> _DtCvCONTROLLER/_DtCvBLOCK_LINE/ + * | | | | | | | | | | | _DtCvNEW_LINE + * | | | | | | | | | | (-----------> _DtCvSUB_SCRIPT + * | | | | | | | | | (-------------> _DtCvSUPER_SCRIPT + * | | | | | | | | (---------------> _DtCvGHOST_LINK + * | | | | | | | (-----------------> _DtCvHYPER_TEXT + * | | | | | | (-------------------> _DtCvNON_BREAK + * | | | | | (---------------------> _DtCvIN_LINE + * | | | | | + * | | | | (---------------> _DtCvAPP_FLAG1 \ + * | | | (-----------------> _DtCvAPP_FLAG2 \ _DtCvAPP_FIELD + * | | (-------------------> _DtCvAPP_FLAG3 / + * | (---------------------> _DtCvAPP_FLAG4 / + * | + * (------------------> _DtCvPAGE_BREAK + * + *****************************************************************************/ +/* + * segment types + */ +#define _DtCvNOOP (0x00) +#define _DtCvCONTAINER (0x01) +#define _DtCvLINE (0x02) +#define _DtCvMARKER (0x03) +#define _DtCvREGION (0x04) +#define _DtCvSTRING (0x05) +#define _DtCvTABLE (0x06) + +#define _DtCvPRIMARY_MASK (0x07) +#define _DtCvSHIFT_PAST_PRIMARY 3 + +/* + * character size manipulation + */ +#define _DtCvWIDE_CHAR (0x01 << _DtCvSHIFT_PAST_PRIMARY) + +/* + * segment flags + */ +/* leave a gap for the search flags defined in CanvasP.h */ +#define _DtCvSHIFT_TO_FLAGS 9 + +/* container only */ +#define _DtCvCONTROLLER (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) + +/* line type */ +#define _DtCvBLOCK_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) + +/* string & region (_DtCvNEW_LINE works on _DtCvNOOP too) */ +#define _DtCvNEW_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) +#define _DtCvSUB_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 1)) +#define _DtCvSUPER_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 2)) +#define _DtCvGHOST_LINK (0x01 << (_DtCvSHIFT_TO_FLAGS + 3)) +#define _DtCvHYPER_TEXT (0x01 << (_DtCvSHIFT_TO_FLAGS + 4)) +#define _DtCvNON_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 5)) + +/* region only */ +#define _DtCvIN_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 6)) + +/* application flags - defined in CanvasP.h (starting at 16th bit for 4 bits) */ + +/* valid on any segment */ +#define _DtCvPAGE_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 11)) + +/* highlight macros */ +#define HILITE_OVERLINE 0 +#define HILITE_STRIKETHROUGH 1 +#define HILITE_UNDERLINE 2 + +/******** Public Enum Declarations ********/ +enum _dtCvFrmtOption + { + _DtCvOPTION_BAD, +/* + * string breaking types + */ + _DtCvLITERAL, + _DtCvDYNAMIC, +/* + * table border types + */ + _DtCvBORDER_NONE, + _DtCvBORDER_FULL, + _DtCvBORDER_HORZ, + _DtCvBORDER_VERT, + _DtCvBORDER_TOP, + _DtCvBORDER_BOTTOM, + _DtCvBORDER_LEFT, + _DtCvBORDER_RIGHT, + _DtCvBORDER_TOP_LEFT, + _DtCvBORDER_TOP_RIGHT, + _DtCvBORDER_BOTTOM_LEFT, + _DtCvBORDER_BOTTOM_RIGHT, +/* + * controller horizontal orientation + */ + _DtCvJUSTIFY_LEFT_CORNER, + _DtCvJUSTIFY_LEFT, /* also container horizontal text placement */ + _DtCvJUSTIFY_LEFT_MARGIN, + _DtCvJUSTIFY_CENTER, /* also container horiz/vert text placement */ + _DtCvJUSTIFY_RIGHT_MARGIN, + _DtCvJUSTIFY_RIGHT, /* also container horizontal text placement */ + _DtCvJUSTIFY_RIGHT_CORNER, +/* + * extra container horizontal text placement + */ + _DtCvJUSTIFY_NUM, + _DtCvJUSTIFY_CHAR, +/* + * inherit the parent's horizontal text placement + */ + _DtCvINHERIT, +/* + * controller vertical orientation, includes _DtCvJUSTIFY_CENTER + */ + _DtCvJUSTIFY_TOP, /* also container vertical text placement */ + _DtCvJUSTIFY_BOTTOM, /* also container vertical text placement */ +/* + * controller flow types + */ + _DtCvWRAP, + _DtCvWRAP_NONE, + _DtCvWRAP_JOIN + }; + +typedef enum { + hilite_overline = 0x01 << HILITE_OVERLINE, + hilite_strikethrough = 0x01 << HILITE_STRIKETHROUGH, + hilite_underline = 0x01 << HILITE_UNDERLINE +} text_hilite_t; + +/******** Public Enum Typedef Declarations ********/ +typedef enum _dtCvFrmtOption _DtCvFrmtOption; + +/******** Public Structures Declarations ********/ +typedef struct _dtCvLine { + _DtCvUnit width; + _DtCvPointer data; +} _DtCvLine; + +typedef struct _dtCvContainer { + char *id; + char *justify_char; + _DtCvFrmtOption type; + _DtCvFrmtOption border; + _DtCvFrmtOption justify; + _DtCvFrmtOption vjustify; + _DtCvFrmtOption orient; + _DtCvFrmtOption vorient; + _DtCvFrmtOption flow; + int percent; + _DtCvUnit leading; + _DtCvUnit fmargin; + _DtCvUnit lmargin; + _DtCvUnit rmargin; + _DtCvUnit tmargin; + _DtCvUnit bmargin; + _DtCvLine bdr_info; + struct _dtCvSegment *seg_list; +} _DtCvContainer; + +typedef struct _DtCvString { + void *string; + _DtCvPointer font; +} _DtCvString; + +typedef struct _dtCvRegion { + _DtCvPointer info; + _DtCvUnit width; + _DtCvUnit height; + _DtCvUnit ascent; +} _DtCvRegion; + +typedef struct _dtCvTable { + int num_cols; + char **col_w; + _DtCvFrmtOption *col_justify; + char *justify_chars; + char **cell_ids; + struct _dtCvSegment **cells; +} _DtCvTable; + +typedef union _dtCvSegHandles { + _DtCvContainer container; + _DtCvString string; + _DtCvRegion region; + _DtCvTable table; + _DtCvLine rule; + char *marker; +} _DtCvSegHandles; + +struct _dtCvSegment { + unsigned long type; + int link_idx; + _DtCvSegHandles handle; + struct _dtCvSegment *next_seg; + struct _dtCvSegment *next_disp; + _DtCvPointer client_use; + _DtCvPointer internal_use; +}; + +struct _dtCvSegPts { + struct _dtCvSegment *segment; + int offset; + int len; +}; + +typedef struct _dtCvTopicInfo { + char *id_str; + struct _dtCvSegment *seg_list; + _DtCvPointInfo **mark_list; + struct _dtCvLinkDb *link_data; +} _DtCvTopicInfo; + +typedef struct _dtCvStringClientData { + unsigned int vcc; + unsigned int vclen; + + unsigned int hilite_type; + + char* bg_color; + char* fg_color; + unsigned long bg_pixel; + unsigned long fg_pixel; +} _DtCvStringClientData; + +typedef struct _dtCvRegionClientData { + _DtCvPointer GraphicHandle; +} _DtCvRegionClientData; + +typedef union _dtCvClientData { + _DtCvRegionClientData region; + _DtCvStringClientData string; +} _DtCvClientData; + +/******** Public Structure Typedef Declarations ********/ + +/******** Public Prototyped Procedures ********/ + +/******** Public Macro Declarations ********/ +/* + * set segment type + */ +#define _DtCvSetTypeToContainer(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvCONTAINER) +#define _DtCvSetTypeToLine(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvLINE) +#define _DtCvSetTypeToMarker(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvMARKER) +#define _DtCvSetTypeToNoop(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvNOOP) +#define _DtCvSetTypeToRegion(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvREGION) +#define _DtCvSetTypeToString(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvSTRING) +#define _DtCvSetTypeToTable(x) \ + (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvTABLE) +/* + * set segment flags + */ +#define _DtCvSetTypeToBlockLine(x) ((x) | _DtCvBLOCK_LINE) +#define _DtCvSetTypeToController(x) ((x) | _DtCvCONTROLLER) +#define _DtCvSetTypeToGhostLink(x) ((x) | _DtCvGHOST_LINK) +#define _DtCvSetTypeToHyperText(x) ((x) | _DtCvHYPER_TEXT) +#define _DtCvSetTypeToInLine(x) ((x) | _DtCvIN_LINE) +#define _DtCvSetTypeToNewLine(x) ((x) | _DtCvNEW_LINE) +#define _DtCvSetTypeToNonBreak(x) ((x) | _DtCvNON_BREAK) +#define _DtCvSetTypeToSearch(x) ((x) | _DtCvSEARCH_FLAG) +#define _DtCvSetTypeToSearchBegin(x) ((x) | _DtCvSEARCH_BEGIN) +#define _DtCvSetTypeToSearchEnd(x) ((x) | _DtCvSEARCH_END) +#define _DtCvSetTypeToSubScript(x) ((x) | _DtCvSUB_SCRIPT) +#define _DtCvSetTypeToSuperScript(x) ((x) | _DtCvSUPER_SCRIPT) + +/* + * set character size + */ +#define _DtCvSetTypeToWideChar(x) ((x) | _DtCvWIDE_CHAR) + +/* + * set application flags and/or field + */ +#define _DtCvSetAppFlag1(x) ((x) | _DtCvAPP_FLAG1) +#define _DtCvSetAppFlag2(x) ((x) | _DtCvAPP_FLAG2) +#define _DtCvSetAppFlag3(x) ((x) | _DtCvAPP_FLAG3) +#define _DtCvSetAppFlag4(x) ((x) | _DtCvAPP_FLAG4) +#define _DtCvSetAppField(x,y) \ + (((x) & ~(_DtCvAPP_FIELD_MASK)) | \ + ((y & _DtCvAPP_FIELD_MASK) << _DtCvAPP_FIELD_OFFSET)) +#define _DtCvSetAppFieldSmall(x,y) \ + (((x) & ~(_DtCvAPP_FIELD_S_MASK)) | \ + ((y & _DtCvAPP_FIELD_S_MASK) << _DtCvAPP_FIELD_OFFSET)) + +/* + * get the application field value + */ +#define _DtCvGetAppField(x) \ + (((x) & _DtCvAPP_FIELD_MASK) >> _DtCvAPP_FIELD_OFFSET) +#define _DtCvGetAppFieldSmall(x) \ + (((x) & _DtCvAPP_FIELD_S_MASK) >> _DtCvAPP_FIELD_OFFSET) + +/******** Semi-Public Macro Declarations ********/ +/* + * get segment type + */ +#define _DtCvPrimaryTypeOfSeg(x) ((x->type) & _DtCvPRIMARY_MASK) +#define _DtCvIsSegContainer(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvCONTAINER) ? 1 : 0) +#define _DtCvIsSegLine(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvLINE) ? 1 : 0) +#define _DtCvIsSegMarker(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvMARKER) ? 1 : 0) +#define _DtCvIsSegNoop(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0) +#define _DtCvIsSegRegion(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvREGION) ? 1 : 0) +#define _DtCvIsSegString(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvSTRING) ? 1 : 0) +#define _DtCvIsSegTable(x) \ + (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvTABLE) ? 1 : 0) + +/* + * get segment flags + */ +#define _DtCvIsSegController(x) \ + ((((x)->type) & _DtCvCONTROLLER) ? 1 : 0) +#define _DtCvIsSegBlockLine(x) \ + ((((x)->type) & _DtCvBLOCK_LINE) ? 1 : 0) +#define _DtCvIsSegGhostLink(x) \ + ((((x)->type) & _DtCvGHOST_LINK) ? 1 : 0) +#define _DtCvIsSegHyperText(x) \ + ((((x)->type) & _DtCvHYPER_TEXT) ? 1 : 0) +#define _DtCvIsSegInLine(x) \ + ((((x)->type) & _DtCvIN_LINE) ? 1 : 0) +#define _DtCvIsSegNewLine(x) \ + ((((x)->type) & _DtCvNEW_LINE) ? 1 : 0) +#define _DtCvIsSegNonBreakingChar(x) \ + ((((x)->type) & _DtCvNON_BREAK) ? 1 : 0) +#define _DtCvIsSegPageBreak(x) \ + ((((x)->type) & _DtCvPAGE_BREAK) ? 1 : 0) +#define _DtCvIsSegRegChar(x) \ + ((((x)->type) & _DtCvWIDE_CHAR) ? 0 : 1) +#define _DtCvIsSegSubScript(x) \ + ((((x)->type) & _DtCvSUB_SCRIPT) ? 1 : 0) +#define _DtCvIsSegSuperScript(x) \ + ((((x)->type) & _DtCvSUPER_SCRIPT) ? 1 : 0) +#define _DtCvIsSegWideChar(x) \ + ((((x)->type) & _DtCvWIDE_CHAR) ? 1 : 0) +/* + * segment access + */ +#define _DtCvNextSeg(x) ((x)->next_seg) +#define _DtCvNextDisp(x) ((x)->next_disp) + +/* + * container access + */ +#define _DtCvContainerOfSeg(x) \ + ((x)->handle.container) +#define _DtCvContainerBMarginOfSeg(x) \ + ((x)->handle.container.bmargin) +#define _DtCvContainerBorderOfSeg(x) \ + ((x)->handle.container.border) +#define _DtCvContainerFlowOfSeg(x) \ + ((x)->handle.container.flow) +#define _DtCvContainerFMarginOfSeg(x) \ + ((x)->handle.container.fmargin) +#define _DtCvContainerIdOfSeg(x) \ + ((x)->handle.container.id) +#define _DtCvContainerJustifyCharOfSeg(x) \ + ((x)->handle.container.justify_char) +#define _DtCvContainerJustifyOfSeg(x) \ + ((x)->handle.container.justify) +#define _DtCvContainerLeadingOfSeg(x) \ + ((x)->handle.container.leading) +#define _DtCvContainerLineWidthOfSeg(x) \ + ((x)->handle.container.bdr_info.width) +#define _DtCvContainerLineDataOfSeg(x) \ + ((x)->handle.container.bdr_info.data) +#define _DtCvContainerListOfSeg(x) \ + ((x)->handle.container.seg_list) +#define _DtCvContainerLMarginOfSeg(x) \ + ((x)->handle.container.lmargin) +#define _DtCvContainerOrientOfSeg(x) \ + ((x)->handle.container.orient) +#define _DtCvContainerPercentOfSeg(x) \ + ((x)->handle.container.percent) +#define _DtCvContainerRMarginOfSeg(x) \ + ((x)->handle.container.rmargin) +#define _DtCvContainerTMarginOfSeg(x) \ + ((x)->handle.container.tmargin) +#define _DtCvContainerTypeOfSeg(x) \ + ((x)->handle.container.type) +#define _DtCvContainerVJustifyOfSeg(x) \ + ((x)->handle.container.vjustify) +#define _DtCvContainerVOrientOfSeg(x) \ + ((x)->handle.container.vorient) + +/* + * marker access + */ +#define _DtCvIdOfMarkerSeg(x) ((x)->handle.marker) + +/* + * marker access + */ +#define _DtCvDataOfLineSeg(x) ((x)->handle.rule.data) +#define _DtCvWidthOfLineSeg(x) ((x)->handle.rule.width) + +/* + * string access + */ +#define _DtCvStringOfStringSeg(x) ((x)->handle.string.string) +#define _DtCvFontOfStringSeg(x) ((x)->handle.string.font) + +/* + * region access + */ +#define _DtCvInfoOfRegionSeg(x) ((x)->handle.region.info) +#define _DtCvWidthOfRegionSeg(x) ((x)->handle.region.width) +#define _DtCvHeightOfRegionSeg(x) ((x)->handle.region.height) +#define _DtCvAscentOfRegionSeg(x) ((x)->handle.region.ascent) + +/* + * table access + */ +#define _DtCvNumColsOfTableSeg(x) ((x)->handle.table.num_cols) +#define _DtCvColWOfTableSeg(x) ((x)->handle.table.col_w) +#define _DtCvColJustifyOfTableSeg(x) ((x)->handle.table.col_justify) +#define _DtCvJustifyCharsOfTableSeg(x) ((x)->handle.table.justify_chars) +#define _DtCvCellIdsOfTableSeg(x) ((x)->handle.table.cell_ids) +#define _DtCvCellsOfTableSeg(x) ((x)->handle.table.cells) + +/******** Semi-Public Function Declarations ********/ +/******** Public Function Declarations ********/ + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtCanvasSegP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ChkpntP.h b/cde/include/Dt/ChkpntP.h new file mode 100644 index 00000000..5430a4d6 --- /dev/null +++ b/cde/include/Dt/ChkpntP.h @@ -0,0 +1,133 @@ +/* + * 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 +#include +#include + +/*************************************************************************/ +/************* 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. */ diff --git a/cde/include/Dt/CmdInv.h b/cde/include/Dt/CmdInv.h new file mode 100644 index 00000000..2d845946 --- /dev/null +++ b/cde/include/Dt/CmdInv.h @@ -0,0 +1,199 @@ +/* + * 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: CmdInv.h /main/6 1996/01/23 10:41:03 barstow $ */ +/*************************************************************************** +* +* File: CmdInv.h +* Description: Public header for the command invocation system. +* Language: C +* +** (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 _CmdInv_h +#define _CmdInv_h + +#include +#include
+#include
+ +/****************************************************************************** + * + * DtCmdInvExecuteProc - This type is is used to define the parameters + * needed in the callback functions for success and failure notification + * of a Command Invoker execution call. + * + *****************************************************************************/ + +typedef void (*DtCmdInvExecuteProc) ( + char *message, /* NULL if the request is successful. + * Otherwise an error message. */ + void *client_data +); + +/****************************************************************************** + * + * Function: void _DtInitializeCommandInvoker ( + * Display *display, + * char *toolClass, + * char *applicationClass, + * DtSvcReceiveProc reloadDBHandler, + * XtAppContext appContext) + * + * Parameters: + * + * display - The X server display connection. + * + * toolClass - The BMS tool class of the client. + * + * applicationClass - The application class of the client (see + * XtInitialize). This is needed to add the + * Command Invoker's resources to the client's + * resources. + * + * reloadDBHandler - Function to be called if a RELOAD-TYPES-DB + * request is made. If the client does not read + * DT action and/or filetype databases, NULL must + * be used. + * + * appContext - The client's application context. Must be NULL + * if the client does not use an application + * context. + * + * Purpose: + * + * This function allows a client to internalize the functionality + * of the DT "Command Invoker". By using this library and the + * Action Library, requests for the Command Invoker will be done + * internally instead of sending a request to a separate Command + * Invoker process. + * + * For local execution, the "fork" and "execvp" system calls are + * used. For remote execution, the "SPCD" is used. + * + *****************************************************************************/ + +extern void +_DtInitializeCommandInvoker( + Display *display, + char *toolClass, + char *applicationClass, + DtSvcReceiveProc reloadDBHandler, + XtAppContext appContext); + +/****************************************************************************** + * + * Function: void _DtCommandInvokerExecute ( + * char *request_name, + * char *context_host, + * char *context_dir, + * char *context_file, + * char *exec_parameters, + * char *exec_host, + * char *exec_string, + * DtCmdInvExecProc success_proc, + * void *success_data, + * DtCmdInvExecProc failure_proc, + * void *failure_data) + * + * Parameters: + * + * request_name - The request name (defined in "CommandM.h"). + * + * context_host - Name of the host where request is executed from. If + * NULL, the "exec_host" parameter is used. Note: this + * should not be confused with execution host, described + * below. + * + * context_dir - Directory where the request should be executed. If + * NULL, the HOME directory is used. + * + * context_file - Not currently used by the Command Invoker. + * + * exec_parameters - Command Invoker execution parameters. See External + * Specification for more information. + * If set to NULL, "-" is used. + * + * exec_host - Name of the host where the request is executed. + * + * exec_string - The command line to execute. + * + * success_proc - The function to be invoked if the request is + * successfully executed. + * + * success_data - Client data for successful execution. + * + * failure_proc - The function to be invoked if an attempt to exeucte + * the request fails. + * + * failure_data - Client data for unsuccessful execution. + * + * Purpose: + * + * This function allows a client to use the DT "Command Invoker" + * Library for its' process execution. This function is intended + * for processes which do not use the Action Library. + * + * For local execution, the "fork" and "execvp" system calls are + * used. For remote execution, the "SPCD" is used. + * + * Notes: + * + * This function must be preceded by a call to + * "_DtInitializeCommandInvoker". + * + *****************************************************************************/ + +extern void +_DtCommandInvokerExecute( + char *request_name, + char *context_host, + char *context_dir, + char *context_file, + char *exec_parameters, + char *exec_host, + char *exec_string, + DtCmdInvExecuteProc success_proc, + void *success_data, + DtCmdInvExecuteProc failure_proc, + void *failure_data); + +extern SPC_Channel_Ptr _DtSPCOpen( char *hostname, + int iomode, + char *errorMessage); /* MODIFIED */ + +extern int _DtSPCSpawn( + char *path, + char *context, + char **args, + char **env, + SPC_Channel_Ptr chan, + char *execHost, + char *contextHost, + char *contextDir, + char *errorMessage); /* MODIFIED */ + +#endif /* _CmdInv_h */ diff --git a/cde/include/Dt/CmdInvP.h b/cde/include/Dt/CmdInvP.h new file mode 100644 index 00000000..951d1390 --- /dev/null +++ b/cde/include/Dt/CmdInvP.h @@ -0,0 +1,206 @@ +/* + * 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: CmdInvP.h /main/5 1998/07/30 12:10:30 mgreess $ */ +/*************************************************************************** +* +* File: CmdInvP.h +* Description: Command execution system private externs and includes +* Language: C +* +** (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 _CmdInvP_h +#define _CmdInvP_h + +#include +#include +#include +#include +#include /* MAXPATHNAMELEN */ + +#include + +#include
+#include
+#include
+#include +#include +#include
+#include
+#include
+#include
+ +#ifndef CDE_INSTALLATION_TOP +#define CDE_INSTALLATION_TOP "/opt/dt" +#endif + +/* + * Resource names and classes for the Command Invoker. + */ +#define DtLOCAL_TERMINAL_NAME "localTerminal" +#define DtLOCAL_TERMINAL_CLASS "LocalTerminal" + +#define DtREMOTE_TERMINALS_NAME "remoteTerminals" +#define DtREMOTE_TERMINALS_CLASS "RemoteTerminals" + +#define DtWAIT_TIME_NAME "waitTime" +#define DtWAIT_TIME_CLASS "WaitTime" + +#define DtDTEXEC_PATH_NAME "dtexecPath" +#define DtDTEXEC_PATH_CLASS "DtexecPath" + +#define DtEXECUTION_HOST_LOGGING_NAME "executionHostLogging" +#define DtEXECUTION_HOST_LOGGING_CLASS "ExecutionHostLogging" + + +/* + * Structure for saving the "state" of a remote request that is + * queued while waiting for a remote subprocess to terminate. + */ +typedef struct _Cmd_RequestQueue { + SPC_Channel_Ptr channel; + char *context; + char *exec_host; + char *exec_string; + char **argv; + int winType; + unsigned long request_num; + DtSvcMsgContext replyContext; + DtCmdInvExecuteProc success_proc; + void *success_data; + DtCmdInvExecuteProc failure_proc; + void *failure_data; + struct _Cmd_RequestQueue *next; +} Cmd_RequestQueue; + +/* + * Command invocation resources. + */ +typedef struct { + char *localTerminal; + char **remoteHosts; + char **remoteTerminals; + int waitTime; + char *dtexecPath; + Boolean executionHostLogging; +} Cmd_Resources; + +/* + * Command invocation global variables. + */ +typedef struct { + Boolean terminal_ok; + Boolean subprocess_ok; + XtAppContext app_context; + char **path_list; + char *error_directory_name_map; + char *error_subprocess; + char *error_terminal; +} Cmd_Globals; + +/* + * Defaults for the Resources. + */ +#define DtWAIT_TIME_DEFAULT 3 /* In seconds. */ +#define DtTERMINAL_DEFAULT "dtterm" + +#define DtCMD_INV_SUB_PROCESS CDE_INSTALLATION_TOP "/bin/dtexec" + +/* + * Temporary buffer size. + */ +#define MAX_BUF_SIZE 1024 + +/* + * Window types: + */ +#define NO_STDIO 0 +#define TERMINAL 1 +#define PERM_TERMINAL 2 + +/* + * Command execution return status: + */ +#define _CMD_EXECUTE_SUCCESS 1 +#define _CMD_EXECUTE_FAILURE 2 +#define _CMD_EXECUTE_QUEUED 3 +#define _CMD_EXECUTE_FATAL 4 + +/* + * External declarations for the global Command Invoker variables. + */ +extern Cmd_Resources cmd_Resources; +extern Cmd_Globals cmd_Globals; + +/* + ******* Public Function Declarations for CmdSpc.c ******* + */ + +extern SbInputId _DtCmdSPCAddInputHandler ( + int fd, + SbInputCallbackProc proc, + void *data); +extern SbInputId _DtCmdSPCAddExceptionHandler ( + int fd, + SbInputCallbackProc proc, + void *data); +extern void _DtCmdLogErrorMessage( + char *message) ; + + +/* + ******* Public Function Declarations for CmdProcess.c ******* + */ + +extern void _DtCmdCreateTerminalCommand( + char **theCommand, + int windowType, + char *execString, + char *execParms, + char *execHost, + char *procId, + char *tmpFiles) ; +extern Boolean _DtCmdCheckForExecutable( + char *fileName) ; +extern Boolean _DtCmdValidDir( + char *clientHost, + char *contextDir, + char *contextHost) ; +extern void _DtCmdGetResources( + Display *display); + + + +/* + ******* Public Function Declarations for CmdUtilityP.c ******* + */ + +extern void _DtCmdBuildPathList( void ) ; + +/******** End Public Function Declarations ********/ + +#endif /* _CmdInvP_h */ diff --git a/cde/include/Dt/Collate.h b/cde/include/Dt/Collate.h new file mode 100644 index 00000000..4a9cc379 --- /dev/null +++ b/cde/include/Dt/Collate.h @@ -0,0 +1,51 @@ +/* + * 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 */ diff --git a/cde/include/Dt/ComboBox.h b/cde/include/Dt/ComboBox.h new file mode 100644 index 00000000..b7bf0d3f --- /dev/null +++ b/cde/include/Dt/ComboBox.h @@ -0,0 +1,587 @@ +/* + * 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: ComboBox.h /main/4 1995/10/26 09:29:51 rswiston $ */ +/* + * (c) Copyright 1993, 1994 Hewlett-Packard Company + * (c) Copyright 1993, 1994 International Business Machines Corp. + * (c) Copyright 1993, 1994 Novell, Inc. + * (c) Copyright 1993, 1994 Sun Microsystems, Inc. + */ +/*********************************************************** +Copyright 1993 Interleaf, Inc. + +Permission to use, copy, modify, and distribute this software +and its documentation for any purpose without fee is granted, +provided that the above copyright notice appear in all copies +and that both copyright notice and this permission notice appear +in supporting documentation, and that the name of Interleaf not +be used in advertising or publicly pertaining to distribution of +the software without specific written prior permission. + +Interleaf makes no representation about the suitability of this +software for any purpose. It is provided "AS IS" without any +express or implied warranty. +******************************************************************/ + +#ifndef _Dt_ComboBox_h +#define _Dt_ComboBox_h + +/* + * This widget is deprecated in favor of XmComboBox. The two are very + * similar, but do have minor differences. Applications doing new + * development are encouraged to use XmComboBox directly. Existing + * applications may wish to recompile with DT_USE_XM_COMBOBOX. + */ + +#include +#ifdef DT_USE_XM_COMBOBOX +#include +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Resources */ + +#ifndef DT_USE_XM_COMBOBOX + +/*********************************************************************** + * + * NOTE: + * Because of future development of the ComboBox, not all of the + * following resources should be used. The only ones which are + * supported are the ones found in the Common Desktop Environment: + * Programmer's Guide. The supported resources include: + * DtNmarginHeight, DtNmarginWidth, DtNselectedItem, + * DtNselectedPosition, DtNselectionCallback, and DtNcomboBoxType. + * + * The use of the unsupported resources found in this header + * file may cause dangerous and unexpected behavior. + * + **********************************************************************/ + +/* WARNING: DtNactivateCallback is an unsupported resource in CDE 1.0 */ +#ifndef DtNactivateCallback +#define DtNactivateCallback XmNactivateCallback +#endif +/* WARNING: DtNalignment is an unsupported resource in CDE 1.0 */ +#ifndef DtNalignment +#define DtNalignment XmNalignment +#endif +/* WARNING: DtNarrowSize is an unsupported resource in CDE 1.0 */ +#ifndef DtNarrowSize +#define DtNarrowSize "arrowSize" +#endif +/* WARNING: DtNarrowSpacing is an unsupported resource in CDE 1.0 */ +#ifndef DtNarrowSpacing +#define DtNarrowSpacing "arrowSpacing" +#endif +/* WARNING: DtNarrowType is an unsupported resource in CDE 1.0 */ +#ifndef DtNarrowType +#define DtNarrowType "arrowType" +#endif +/* WARNING: DtNcolumns is an unsupported resource in CDE 1.0 */ +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNcomboBoxType +#define DtNcomboBoxType "comboBoxType" +#endif +/* WARNING: DtNfocusCallback is an unsupported resource in CDE 1.0 */ +#ifndef DtNfocusCallback +#define DtNfocusCallback XmNfocusCallback +#endif +/* WARNING: DtNhorizontalSpacing is an unsupported resource in CDE 1.0 */ +#ifndef DtNhorizontalSpacing +#define DtNhorizontalSpacing XmNhorizontalSpacing +#endif +/* WARNING: DtNitemCount is an unsupported resource in CDE 1.0 */ +#ifndef DtNitemCount +#define DtNitemCount XmNitemCount +#endif +/* WARNING: DtNitems is an unsupported resource in CDE 1.0 */ +#ifndef DtNitems +#define DtNitems XmNitems +#endif +/* WARNING: DtNlabelString is an unsupported resource in CDE 1.0 */ +#ifndef DtNlabelString +#define DtNlabelString XmNlabelString +#endif +/* WARNING: DtNlist is an unsupported resource in CDE 1.0 */ +#ifndef DtNlist +#define DtNlist "list" +#endif +/* WARNING: DtNlistFontList is an unsupported resource in CDE 1.0 */ +#ifndef DtNlistFontList +#define DtNlistFontList "listFontList" +#endif +/* WARNING: DtNlistMarginHeight is an unsupported resource in CDE 1.0 */ +#ifndef DtNlistMarginHeight +#define DtNlistMarginHeight XmNlistMarginHeight +#endif +/* WARNING: DtNlistMarginWidth is an unsupported resource in CDE 1.0 */ +#ifndef DtNlistMarginWidth +#define DtNlistMarginWidth XmNlistMarginWidth +#endif +/* WARNING: DtNlistSpacing is an unsupported resource in CDE 1.0 */ +#ifndef DtNlistSpacing +#define DtNlistSpacing XmNlistSpacing +#endif +/* WARNING: DtNlosingFocusCallback is an unsupported resource in CDE 1.0 */ +#ifndef DtNlosingFocusCallback +#define DtNlosingFocusCallback XmNlosingFocusCallback +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +/* WARNING: DtNmaxLength is an unsupported resource in CDE 1.0 */ +#ifndef DtNmaxLength +#define DtNmaxLength XmNmaxLength +#endif +/* WARNING: DtNmenuPostCallback is an unsupported resource in CDE 1.0 */ +#ifndef DtNmenuPostCallback +#define DtNmenuPostCallback "menuPostCallback" +#endif +/* WARNING: DtNorientation is an unsupported resource in CDE 1.0 */ +#ifndef DtNorientation +#define DtNorientation XmNorientation +#endif +/* WARNING: DtNpoppedUp is an unsupported resource in CDE 1.0 */ +#ifndef DtNpoppedUp +#define DtNpoppedUp "poppedUp" +#endif +/* WARNING: DtNrecomputeSize is an unsupported resource in CDE 1.0 */ +#ifndef DtNrecomputeSize +#define DtNrecomputeSize XmNrecomputeSize +#endif +#ifndef DtNselectedItem +#define DtNselectedItem "selectedItem" +#endif +#ifndef DtNselectedPosition +#define DtNselectedPosition "selectedPosition" +#endif +#ifndef DtNselectionCallback +#define DtNselectionCallback "selectionCallback" +#endif +/* WARNING: DtNtextField is an unsupported resource in CDE 1.0 */ +#ifndef DtNtextField +#define DtNtextField "textField" +#endif +/* WARNING: DtNtopItemPosition is an unsupported resource in CDE 1.0 */ +#ifndef DtNtopItemPosition +#define DtNtopItemPosition XmNtopItemPosition +#endif +/* WARNING: DtNupdateLabel is an unsupported resource in CDE 1.0 */ +#ifndef DtNupdateLabel +#define DtNupdateLabel "updateLabel" +#endif +/* WARNING: DtNverticalSpacing is an unsupported resource in CDE 1.0 */ +#ifndef DtNverticalSpacing +#define DtNverticalSpacing XmNverticalSpacing +#endif +/* WARNING: DtNvisibleItemCount is an unsupported resource in CDE 1.0 */ +#ifndef DtNvisibleItemCount +#define DtNvisibleItemCount XmNvisibleItemCount +#endif + +#ifndef DtCAlignment +#define DtCAlignment XmCAlignment +#endif +#ifndef DtCArrowSize +#define DtCArrowSize "ArrowSize" +#endif +#ifndef DtCArrowSpacing +#define DtCArrowSpacing "ArrowSpacing" +#endif +#ifndef DtCArrowType +#define DtCArrowType "ArrowType" +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCComboBoxType +#define DtCComboBoxType "ComboBoxType" +#endif +#ifndef DtCHorizontalSpacing +#define DtCHorizontalSpacing "HorizontalSpacing" +#endif +#ifndef DtCItemCount +#define DtCItemCount XmCItemCount +#endif +#ifndef DtCItems +#define DtCItems XmCItems +#endif +#ifndef DtCList +#define DtCList "List" +#endif +#ifndef DtCListFontList +#define DtCListFontList "ListFontList" +#endif +#ifndef DtCListMarginHeight +#define DtCListMarginHeight XmCListMarginHeight +#endif +#ifndef DtCListMarginWidth +#define DtCListMarginWidth XmCListMarginWidth +#endif +#ifndef DtCListSpacing +#define DtCListSpacing XmCListSpacing +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCMaxLength +#define DtCMaxLength XmCMaxLength +#endif +#ifndef DtCOrientation +#define DtCOrientation XmCOrientation +#endif +#ifndef DtCPoppedUp +#define DtCPoppedUp "PoppedUp" +#endif +#ifndef DtCRecomputeSize +#define DtCRecomputeSize XmCRecomputeSize +#endif +#ifndef DtCSelectedItem +#define DtCSelectedItem "SelectedItem" +#endif +#ifndef DtCSelectedPosition +#define DtCSelectedPosition "SelectedPosition" +#endif +#ifndef DtCTextField +#define DtCTextField "TextField" +#endif +#ifndef DtCTopItemPosition +#define DtCTopItemPosition XmCTopItemPosition +#endif +#ifndef DtCUpdateLabel +#define DtCUpdateLabel "UpdateLabel" +#endif +#ifndef DtCVerticalSpacing +#define DtCVerticalSpacing "VerticalSpacing" +#endif +#ifndef DtCVisibleItemCount +#define DtCVisibleItemCount XmCVisibleItemCount +#endif +#ifndef DtCXmString +#define DtCXmString XmCXmString +#endif + +#else /* DT_USE_XM_COMBOBOX */ + +#ifndef DtNarrowSize +#define DtNarrowSize XmNarrowSize +#endif +#ifndef DtNarrowSpacing +#define DtNarrowSpacing XmNarrowSpacing +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNcomboBoxType +#define DtNcomboBoxType XmNcomboBoxType +#endif +#ifndef DtNitemCount +#define DtNitemCount XmNitemCount +#endif +#ifndef DtNitems +#define DtNitems XmNitems +#endif +#ifndef DtNlabelString +#define DtNlabelString XmNlabelString +#endif +#ifndef DtNlist +#define DtNlist XmNlist +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +#ifndef DtNselectedItem +#define DtNselectedItem XmNselectedItem +#endif +#ifndef DtNselectedPosition +#define DtNselectedPosition XmNselectedPosition +#endif +#ifndef DtNselectionCallback +#define DtNselectionCallback XmNselectionCallback +#endif +#ifndef DtNtextField +#define DtNtextField XmNtextField +#endif +#ifndef DtNvisibleItemCount +#define DtNvisibleItemCount XmNvisibleItemCount +#endif + +#ifndef DtCArrowSize +#define DtCArrowSize XmCArrowSize +#endif +#ifndef DtCArrowSpacing +#define DtCArrowSpacing XmCArrowSpacing +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCComboBoxType +#define DtCComboBoxType XmCComboBoxType +#endif +#ifndef DtCItemCount +#define DtCItemCount XmCItemCount +#endif +#ifndef DtCItems +#define DtCItems XmCItems +#endif +#ifndef DtCList +#define DtCList XmCList +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCSelectedItem +#define DtCSelectedItem XmCSelectedItem +#endif +#ifndef DtCSelectedPosition +#define DtCSelectedPosition XmCSelectedPosition +#endif +#ifndef DtCTextField +#define DtCTextField XmCTextField +#endif +#ifndef DtCVisibleItemCount +#define DtCVisibleItemCount XmCVisibleItemCount +#endif +#ifndef DtCXmString +#define DtCXmString XmCXmString +#endif + +#endif /* DT_USE_XM_COMBOBOX */ + +/* Representation types */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtRArrowType +#define DtRArrowType "ArrowType" +#endif +#ifndef DtRComboBoxType +#define DtRComboBoxType "ComboBoxType" +#endif + +#else /* DT_USE_XM_COMBOBOX */ + +#ifndef DtRComboBoxType +#define DtRComboBoxType XmRComboBoxType +#endif + +#endif /* DT_USE_XM_COMBOBOX */ + +/* DtNorientation values */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtLEFT +#define DtLEFT 1 +#endif +#ifndef DtRIGHT +#define DtRIGHT 2 +#endif + +#endif /* not DT_USE_XM_COMBOBOX */ + +/* DtNarrowType values */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtMOTIF +#define DtMOTIF 0 +#endif +#ifndef DtWINDOWS +#define DtWINDOWS 1 +#endif + +#endif /* not DT_USE_XM_COMBOBOX */ + +/* DtNcomboBoxType values */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtDROP_DOWN_LIST +#define DtDROP_DOWN_LIST 2 +#endif +#ifndef DtDROP_DOWN_COMBO_BOX +#define DtDROP_DOWN_COMBO_BOX 1 +#endif + +#else /* DT_USE_XM_COMBOBOX */ + +#ifndef DtDROP_DOWN_LIST +#define DtDROP_DOWN_LIST XmDROP_DOWN_LIST +#endif +#ifndef DtDROP_DOWN_COMBO_BOX +#define DtDROP_DOWN_COMBO_BOX XmDROP_DOWN_COMBO_BOX +#endif + +#endif /* DT_USE_XM_COMBOBOX */ + +/* DtNalignment values */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtALIGNMENT_BEGINNING +#define DtALIGNMENT_BEGINNING XmALIGNMENT_BEGINNING +#endif +#ifndef DtALIGNMENT_CENTER +#define DtALIGNMENT_CENTER XmALIGNMENT_CENTER +#endif +#ifndef DtALIGNMENT_END +#define DtALIGNMENT_END XmALIGNMENT_END +#endif + +#endif /* not DT_USE_XM_COMBOBOX */ + +/* Callback reasons */ + +#ifndef DT_USE_XM_COMBOBOX + +#ifndef DtCR_SELECT +#define DtCR_SELECT 57 /* Large #, so no collisions with XM */ +#endif +#ifndef DtCR_MENU_POST +#define DtCR_MENU_POST 129 /* Large #, so no collisions with XM */ +#endif + +#endif /* not DT_USE_XM_COMBOBOX */ + + +/* + * Types + */ + +#ifndef DT_USE_XM_COMBOBOX + +typedef struct { + int reason; + XEvent *event; + XmString item_or_text; + int item_position; +} DtComboBoxCallbackStruct; + + +/* Widget class and instance */ + +typedef struct _DtComboBoxClassRec *DtComboBoxWidgetClass; +typedef struct _DtComboBoxRec *DtComboBoxWidget; + +#else /* DT_USE_XM_COMBOBOX */ + +#define DtComboBoxCallbackStruct XmComboBoxCallbackStruct +#define DtComboBoxWidgetClass XmComboBoxWidgetClass +#define DtComboBoxWidget XmComboBoxWidget + +#endif /* DT_USE_XM_COMBOBOX */ + + +/* + * Data + */ + +#ifndef DT_USE_XM_COMBOBOX + +/* Widget class record */ + +externalref WidgetClass dtComboBoxWidgetClass; + +#else /* DT_USE_XM_COMBOBOX */ + +#define dtComboBoxWidgetClass xmComboBoxWidgetClass; + +#endif /* DT_USE_XM_COMBOBOX */ + + +/* + * Functions + */ + +#ifndef DT_USE_XM_COMBOBOX + +extern Widget DtCreateComboBox( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern void DtComboBoxAddItem( + Widget combo, + XmString item, + int pos, + Boolean unique); + +extern void DtComboBoxDeletePos( + Widget combo, + int pos); + +extern void DtComboBoxSetItem( + Widget combo, + XmString item); + +extern void DtComboBoxSelectItem( + Widget combo, + XmString item); + +#else /* DT_USE_XM_COMBOBOX */ + +#define DtCreateComboBox XmCreateComboBox +#define DtComboBoxAddItem XmComboBoxAddItem +#define DtComboBoxDeletePos XmComboBoxDeletePos +#define DtComboBoxSetItem XmComboBoxSetItem +#define DtComboBoxSelectItem XmComboBoxSelectItem + +#endif /* DT_USE_XM_COMBOBOX */ + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_ComboBox_h */ diff --git a/cde/include/Dt/ComboBoxP.h b/cde/include/Dt/ComboBoxP.h new file mode 100644 index 00000000..00991970 --- /dev/null +++ b/cde/include/Dt/ComboBoxP.h @@ -0,0 +1,255 @@ +/* + * 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: ComboBoxP.h /main/3 1995/10/26 09:29:58 rswiston $ */ +/* + * DtWidget/ComboBoxP.h + */ +/* + * (c) Copyright 1993, 1994 Hewlett-Packard Company + * (c) Copyright 1993, 1994 International Business Machines Corp. + * (c) Copyright 1993, 1994 Novell, Inc. + * (c) Copyright 1993, 1994 Sun Microsystems, Inc. + */ +/*********************************************************** +Copyright 1993 Interleaf, Inc. + +Permission to use, copy, modify, and distribute this software +and its documentation for any purpose without fee is granted, +provided that the above copyright notice appear in all copies +and that both copyright notice and this permission notice appear +in supporting documentation, and that the name of Interleaf not +be used in advertising or publicly pertaining to distribution of +the software without specific written prior permission. + +Interleaf makes no representation about the suitability of this +software for any purpose. It is provided "AS IS" without any +express or implied warranty. +******************************************************************/ + +/* + * (C) Copyright 1991,1992, 1993 + * Interleaf, Inc. + * Nine Hillside Avenue, Waltham, MA 02154 + * + * ComboBoxP.h: + * + * Private header file for DtComboBoxWidget. + */ +#ifndef _ComboBoxP_h +#define _ComboBoxP_h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include "ComboBox.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * External definitions of syn_resources for our list widget. + */ +#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value) +extern void _DtComboBoxGetArrowSize SYN_RESOURCE_AA; +extern void _DtComboBoxGetLabelString SYN_RESOURCE_AA; +extern void _DtComboBoxGetListItemCount SYN_RESOURCE_AA; +extern void _DtComboBoxGetListItems SYN_RESOURCE_AA; +extern void _DtComboBoxGetListFontList SYN_RESOURCE_AA; +extern void _DtComboBoxGetListMarginHeight SYN_RESOURCE_AA; +extern void _DtComboBoxGetListMarginWidth SYN_RESOURCE_AA; +extern void _DtComboBoxGetListSpacing SYN_RESOURCE_AA; +extern void _DtComboBoxGetListTopItemPosition SYN_RESOURCE_AA; +extern void _DtComboBoxGetListVisibleItemCount SYN_RESOURCE_AA; + +#define ARROW_MULT .45 +#define ARROW_MIN 13 +#define MARGIN 2 +#define LABEL_PADDING 2 +#define LABEL_SHADOW 2 +#define TEXT_FIELD_SHADOW 1 +#define TEXT_CONTEXT_MARGIN 4 + +/**************************************************************** + * + * Message Defines + * + ****************************************************************/ + +#define CB_ALIGNMENT DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_ALIGNMENT, _DtMsgComboBox_0000) + +#define CB_MARGIN_HEIGHT DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_MARGIN_HEIGHT, _DtMsgComboBox_0001) + +#define CB_MARGIN_WIDTH DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_MARGIN_WIDTH, _DtMsgComboBox_0002) + +#define CB_HORIZONTAL_SPACING DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_HORIZONTAL_SPACING, _DtMsgComboBox_0003) + +#define CB_VERTICAL_SPACING DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_VERTICAL_SPACING, _DtMsgComboBox_0004) + +#define CB_ORIENTATION DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_ORIENTATION, _DtMsgComboBox_0005) + +#define CB_ITEM_COUNT DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_ITEM_COUNT, _DtMsgComboBox_0006) + +#define CB_VISIBLE_ITEM DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_VISIBLE_ITEM, _DtMsgComboBox_0007) + +#define CB_TEXT DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_TEXT, _DtMsgComboBox_0008) + +#define CB_SET_ITEM DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_SET_ITEM, _DtMsgComboBox_0009) + +#define CB_SELECT_ITEM DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_SELECT_ITEM, _DtMsgComboBox_0010) + +#define CB_RESIZE DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_RESIZE, _DtMsgComboBox_0011) + +#define CB_LABEL DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_LABEL, _DtMsgComboBox_0012) + +#define CB_CVTSTRING DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_CVTSTRING, _DtMsgComboBox_0013) + +#define CB_DEL_POS DTWIDGET_GETMESSAGE( \ + MS_ComboBox, COMBO_DEL_POS, _DtMsgComboBox_0014) +/* + * Class Records + */ +typedef struct { + Boolean junk; /* Need something */ +} DtComboBoxClassPart; + +typedef struct _DtComboBoxClassRec { + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + DtComboBoxClassPart combo_box_class; +} DtComboBoxClassRec; + +extern DtComboBoxClassRec dtComboBoxClassRec; + + +/* + * Instance Record. + */ +typedef struct _DtComboBoxPart { + /* Private data */ + Widget arrow; + Widget shell; + Widget frame; + Widget label; + Widget sep; + Dimension old_width; + Dimension old_height; + Dimension label_max_length; + Dimension label_max_height; + /* + * max_shell_width is the width that is needed to hold the + * list if the longest item was visible. We then use this + * width to figure out if the shell is not wide enough, + * when it gets popped on the screen. This is needed in case the + * combo-box resizes, or if items changes (list will resize). + * Sometimes we change the size of the shell to fit on the screen, or + * to make it at least as large as the combo_box. The next time we pop + * the shell up the size may be different; therefore, we set the shell + * size to the maximum everytime it gets popped up, then we will + * make adjustments, only if needed. + * This value gets saved every time the user updates DtNitems. + */ + Dimension max_shell_width; + Dimension max_shell_height; + + /* ComboBox specific public resources */ + Dimension margin_height; + Dimension margin_width; + XmString selected_item; + int selected_position; + XtCallbackList selection_callback; + unsigned char type; + Dimension arrow_spacing; + + /* ComboBox specific private resources */ + Dimension arrow_size; + XtCallbackList activate_callback; + unsigned char alignment; + unsigned char arrow_type; + short text_columns; + XtCallbackList focus_callback; + Dimension horizontal_spacing; + int item_count; + XmStringTable items; + XmStringTable list_items; + XmString label_string; + Widget list; + XmFontList list_font_list; + Dimension list_margin_height; + Dimension list_margin_width; + Dimension list_spacing; + XtCallbackList losing_focus_callback; + unsigned int text_max_length; + XtCallbackList menu_post_callback; + unsigned char orientation; + Boolean popped_up; + Boolean recompute_size; + Widget text; + int top_item_position; + Boolean update_label; + Dimension vertical_spacing; + int visible_item_count; +} DtComboBoxPart; + + +typedef struct _DtComboBoxRec { + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + DtComboBoxPart combo_box; +} DtComboBoxRec; + + + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _XmComboBoxP_h */ diff --git a/cde/include/Dt/CommandM.h b/cde/include/Dt/CommandM.h new file mode 100644 index 00000000..e79879a6 --- /dev/null +++ b/cde/include/Dt/CommandM.h @@ -0,0 +1,58 @@ +/* + * 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. */ diff --git a/cde/include/Dt/Connect.h b/cde/include/Dt/Connect.h new file mode 100644 index 00000000..2266c63d --- /dev/null +++ b/cde/include/Dt/Connect.h @@ -0,0 +1,179 @@ +/* + * 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
+#include +#include + +#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. */ diff --git a/cde/include/Dt/Control.h b/cde/include/Dt/Control.h new file mode 100644 index 00000000..d01c7af7 --- /dev/null +++ b/cde/include/Dt/Control.h @@ -0,0 +1,109 @@ +/* + * 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: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: Control.h +*** +*** project: MotifPlus Widgets +*** +*** description: Public include file for DtControl class. +*** +*** +*** (c) Copyright 1992 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtControl_h +#define _DtControl_h + +#include + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#define XmCONTROL_NONE 0 +#define XmCONTROL_BLANK 1 +#define XmCONTROL_BUSY 2 +#define XmCONTROL_BUTTON 3 +#define XmCONTROL_CLIENT 4 +#define XmCONTROL_DATE 5 +#define XmCONTROL_MAIL 6 +#define XmCONTROL_MONITOR 7 +#define XmCONTROL_SWITCH 8 + +#define NUM_LIST_ITEMS 10 + +#define XmCR_BUSY_START 60 +#define XmCR_BUSY_STOP 61 +#define XmCR_MONITOR 62 + +#define DtMONITOR_OFF 0 +#define DtMONITOR_ON 1 + +#define XmNuseLabelAdjustment "use_label_adjustment" + +#ifndef DtIsControl +#define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass) +#endif /* DtIsControl */ + + +extern Widget _DtCreateControl (Widget, String, ArgList, int); +extern void _DtControlSetFileChanged (Widget, Boolean); +extern void _DtControlSetBusy (Widget, Boolean); +extern void _DtControlAddDropAnimationImage (Widget, String, int); +extern void _DtControlDoDropAnimation (Widget); +extern void _DtControlAddPushAnimationImage (Widget, String, int); +extern void _DtControlDoPushAnimation (Widget); +extern char _DtControlGetMonitorState(Widget); + + +extern WidgetClass dtControlGadgetClass; + +typedef struct _DtControlClassRec * DtControlClass; +typedef struct _DtControlRec * DtControlGadget; + +#define XmCR_FILE_CHANGED 51 + +typedef struct + { + int reason; + XEvent *event; + Boolean set; + unsigned char control_type; + XtPointer push_function; + XtPointer push_argument; + Widget subpanel; + long file_size; + } DtControlCallbackStruct; + +#if defined(__cplusplus) || defined(c_plusplus) +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + + +#endif /* _DtControl_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ControlP.h b/cde/include/Dt/ControlP.h new file mode 100644 index 00000000..878c1202 --- /dev/null +++ b/cde/include/Dt/ControlP.h @@ -0,0 +1,245 @@ +/* + * 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: ControlP.h /main/6 1996/03/25 11:17:48 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: ControlP.h +*** +*** project: MotifPlus Widgets +*** +*** description: Private include file for DtControl class. +*** +*** +*** (c) Copyright 1992 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtControlP_h +#define _DtControlP_h + +#include +#include
+#include
+ +typedef struct _DtControlCacheObjClassPart +{ + XtPointer dummy; +} DtControlCacheObjClassPart; + + +typedef struct _DtControlCacheObjClassRec /* label cache class record */ +{ + ObjectClassPart object_class; + XmExtClassPart ext_class; + DtControlCacheObjClassPart control_class_cache; +} DtControlCacheObjClassRec; + +externalref DtControlCacheObjClassRec dtControlCacheObjClassRec; + + +/* The Control Gadget Cache instance record */ + +typedef struct _DtControlCacheObjPart +{ + XtPointer dummy; +} DtControlCacheObjPart; + +typedef struct _DtControlCacheObjRec +{ + ObjectPart object; + XmExtPart ext; + DtControlCacheObjPart control_cache; +} DtControlCacheObjRec; + +/*------------------------------------------------------------- +** Class Structure +*/ + +/* Class Part +*/ +typedef struct _DtControlClassPart +{ + XmCacheClassPartPtr cache_part; + caddr_t extension; +} DtControlClassPart; + +/* Full Class Record +*/ +typedef struct _DtControlClassRec +{ + RectObjClassPart rect_class; + XmGadgetClassPart gadget_class; + DtIconClassPart icon_class; + DtControlClassPart control_class; +} DtControlClassRec; + +/* Actual Class +*/ +extern DtControlClassRec dtControlClassRec; + + + +/*------------------------------------------------------------- +** Instance Structure +*/ + +/* Instance Part +*/ +typedef struct _DtControlPart +{ + XtPointer push_function; + XtPointer push_argument; + + String push_action; + int num_push_images; + int max_push_images; + int push_image_position; + int *push_delays; + Pixmap *push_pixmaps; + Pixmap *push_masks; + + String drop_action; + int num_drop_images; + int max_drop_images; + int drop_image_position; + int *drop_delays; + Pixmap *drop_pixmaps; + Pixmap *drop_masks; + + Widget subpanel; + + Pixmap alt_pix; + Pixmap alt_mask; + String alt_image; + + XmString alt_string; + Dimension alt_string_width; + Dimension alt_string_height; + + String format; + String format_jp; + String file_name; + long file_size; + XtIntervalId monitor_timer; + int monitor_time; + Boolean chime; + Boolean file_changed; + + Boolean _do_update; + Boolean use_embossed_text; + Boolean use_label_adj; + + unsigned char control_type; + + GC top_shadow_gc; + GC bottom_shadow_gc; + + XtIntervalId click_timer; + int click_time; + + short busy; + int blink_elapsed; + int max_blink_time; + int blink_time; + XtIntervalId blink_timer; + + XtIntervalId date_timer; + XtIntervalId push_animation_timer; + XtIntervalId drop_animation_timer; +} DtControlPart; + +/* Full Instance Record +*/ +typedef struct _DtControlRec +{ + ObjectPart object; + RectObjPart rectangle; + XmGadgetPart gadget; + DtIconPart icon; + DtControlPart control; +} DtControlRec; + + +/*------------------------------------------------------------- +** Class and Instance Macros +*/ + +/* DtControl Class Macros +*/ + +/* DtControl Instance Macros +*/ +#define G_Format(g) (g -> control.format) +#define G_TopShadowGC(g) (g -> control.top_shadow_gc) +#define G_BottomShadowGC(g) (g -> control.bottom_shadow_gc) +#define G_Busy(g) (g -> control.busy) +#define G_PushImagePosition(g) (g -> control.push_image_position) +#define G_NumPushImages(g) (g -> control.num_push_images) +#define G_MaxPushImages(g) (g -> control.max_push_images) +#define G_PushDelays(g) (g -> control.push_delays) +#define G_PushPixmaps(g) (g -> control.push_pixmaps) +#define G_PushMasks(g) (g -> control.push_masks) +#define G_DropImagePosition(g) (g -> control.drop_image_position) +#define G_NumDropImages(g) (g -> control.num_drop_images) +#define G_MaxDropImages(g) (g -> control.max_drop_images) +#define G_DropDelays(g) (g -> control.drop_delays) +#define G_DropPixmaps(g) (g -> control.drop_pixmaps) +#define G_DropMasks(g) (g -> control.drop_masks) +#define G_DropAction(g) (g -> control.drop_action) +#define G_PushAction(g) (g -> control.push_action) +#define G__DoUpdate(g) (g -> control._do_update) +#define G_PushFunction(g) (g -> control.push_function) +#define G_PushArgument(g) (g -> control.push_argument) +#define G_Subpanel(g) (g -> control.subpanel) +#define G_AltMask(g) (g -> control.alt_mask) +#define G_AltPix(g) (g -> control.alt_pix) +#define G_AltString(g) (g -> control.alt_string) +#define G_AltStringWidth(g) (g -> control.alt_string_width) +#define G_AltStringHeight(g) (g -> control.alt_string_height) +#define G_ControlType(g) (g -> control.control_type) +#define G_AltImage(g) (g -> control.alt_image) +#define G_FileChanged(g) (g -> control.file_changed) +#define G_FileName(g) (g -> control.file_name) +#define G_FileSize(g) (g -> control.file_size) +#define G_Chime(g) (g -> control.chime) +#define G_MonitorTimer(g) (g -> control.monitor_timer) +#define G_MonitorTime(g) (g -> control.monitor_time) +#define G_ClickTime(g) (g -> control.click_time) +#define G_ClickTimer(g) (g -> control.click_timer) +#define G_DateTimer(g) (g -> control.date_timer) +#define G_PushAnimationTimer(g) (g -> control.push_animation_timer) +#define G_DropAnimationTimer(g) (g -> control.drop_animation_timer) +#define G_BlinkCount(g) (g -> control.blink_count) +#define G_BlinkElapsed(g) (g -> control.blink_elapsed) +#define G_MaxBlinkTime(g) (g -> control.max_blink_time) +#define G_BlinkTime(g) (g -> control.blink_time) +#define G_BlinkTimer(g) (g -> control.blink_timer) +#define G_BlinkTime(g) (g -> control.blink_time) +#define G_UseEmbossedText(g) (g -> control.use_embossed_text) +#define G_UseLabelAdjustment(g) (g -> control.use_label_adj) + + +#endif /* _DtControlP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/DataTypes.h b/cde/include/Dt/DataTypes.h new file mode 100644 index 00000000..8d4694bb --- /dev/null +++ b/cde/include/Dt/DataTypes.h @@ -0,0 +1,58 @@ +/* + * 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 + +typedef XtPointer Pointer; + +#endif /* _Dt_DataTypes_h */ +/* Do not add anything after this endif. */ diff --git a/cde/include/Dt/DbReader.h b/cde/include/Dt/DbReader.h new file mode 100644 index 00000000..12df7fa6 --- /dev/null +++ b/cde/include/Dt/DbReader.h @@ -0,0 +1,188 @@ +/* + * 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: DbReader.h $XConsortium: DbReader.h /main/4 1995/10/26 15:03:35 rswiston $ + * + * Description: Public include file for the database reader. + * + * (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company + * + * (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_DbReader_h +#define _Dt_DbReader_h + +#include +#include +#include
+ +#define DTRECORDIDENTIFIER NULL +#define DTUNLIMITEDFIELDS 0 + +/* one set of attribute/pair */ +typedef struct +{ + XrmQuark fieldName; + char *fieldValue; +} DtDtsDbField; + +/* + * Opaque identifier used for identifying a database file name. The opaque + * identifier can be converted to an ascii string, using the function + * _DtDbPathIdToString(). + */ +#define DtDbPathId long + +/* + * All record converters should expect to be called with the parameters + * indicated below: + * + * fields: This is an array of keyword/value pair strings, each + * representing one field value for this database record. NOTE: + * the keywords have not been validated; this is the + * responsibility of the converter, and is usually accomplished + * by calling _DtValidateFieldNames(). The array is NULL + * terminated, with the last entry having both the 'fieldName' + * and 'fieldValue' pointers set to NULL. The first entry always + * represents the record identifier, with the 'fieldName' set + * to the record type string, and the 'fieldValue' set to any + * remaining data specified on the record identifier line. + * + * pathId: Is an opaque identifier, which can be used to retrieve the name + * of the database file from which this record was obtained. By + * calling _DtDbPathIdToString(), the database file, in + * "host:/path" format, can be obtained. + * + * hostPrefix: If the database file was loaded from a machine other than the + * local machine, then this string indicates the host prefix, in + * "/nfs/" format. If the host was the local host, then + * this value is set to NULL. + * + * rejectionStatus: This flag indicates whether any of the earlier record + * converters had rejected this entry. Certain classes + * of converters may choose to ignore entries if they + * had already been rejected. + * + * It is the responsibility of the converter to perform any necessary + * verification of the passed in set of keywords; the function + * _DtValidateFieldNames() is provided as a convenience function for performing + * this type of validation. Typically, the converter will write an error to + * the user's errorlog file, if an invalid record is encountered. + * + * It is also the responsibility of the converter to allocate any memory needed + * to store the new record. The strings contained within the 'fields' array + * will all be freed when the converter returns to _DtDbRead(), so the + * converter should make copies of any information it wishes to use in the + * future. The converter is also responsible for adding the new record to + * whatever storage array it is using to save record information. + * + * If the converter decides to reject the record, then it should return a + * 'True' value. If the record was acceptable, then 'False' should be + * returned. + */ +typedef Boolean (*DtDbConverter) (DtDtsDbField * fields, + DtDbPathId pathId, + char * hostPrefix, + Boolean rejectionStatus); + +/* + * This structure defines each record type which should be loaded by + * _DtDbRead(). Since _DtDbRead() is capable of loading multiple record types + * (i.e ACTION, DATA_CRITERIA, etc) in a single pass, the invoking function will + * pass in an array of these structures, for which each element will define a + * record type which should be loaded. Each record definition requires the + * following information: + * + * recordKeyword: This is the keyword which uniquely identifies the record + * which matches this definition. Examples are "ACTION" and + * "DATA_CRITERIA". + * + * maxFields: Indicates the maximum number of fields which is expected + * by this record type; typically, this corresponds to the + * number of distinct field keywords supported by this type + * of record. This feature is used to prevent runaway database + * records from getting out of hand; a runaway database record + * typically occurs when the user forgets to include line + * continuation characters, and a long 'description' field + * is entered. If this parameter is set to + * DTUNLIMITEDFIELDS, then the check for runaway records + * will be disabled for records of this type. + * + * converters: This is a NULL-terminated array of function pointers, + * corresponding to the set of record converters which will + * be called, whenever a record of this type is encountered. + * The converters are called in order, and all converters will + * be called, even if an earlier one rejects the record. The + * last entry in the array must be set to NULL. + */ +typedef struct { + char * recordKeyword; + int maxFields; + DtDbConverter * converters; +} DtDbRecordDesc; + + +/* + * _DtDbRead() is the function which causes the specified set of directories to + * be searched for files ending with the specified suffix. Although not + * required, the set of directories to search is typically obtained by calling + * _DtGetDatabaseDirPaths(). This function supports the loading of multiple + * field types, all in a single pass of the database files. This function does + * not attempt to manage the memory used to store the information extracted from + * the database files; it is the responsibility of the function calling this + * procedure to initialize any storage, and it is the responsibility of the + * record converters to allocate any memory needed to store and record, along + * with adding the record to the appropriate storage array. + * + * dirs: The set of directories to be searched for database files. + * + * suffix: The file suffix (i.e. ".vf") used to qualify which files within + * the database directories should be loaded. + * + * recordDescriptions: An array, where each entry describes a database record + * which should be loaded during this pass of _DtDbRead(). + * See the definition for this structure, for more details. + * + * int numRecordDescriptions: The number of entries in the above array. + */ +extern void _DtDbRead (DtDirPaths * dirs, + char * suffix, + DtDbRecordDesc * recordDescriptions, + int numRecordDescriptions); + + +/* + * _DtDbPathIdToString() is used to map a filename identifier, represented + * by an opaque DtDbPathId value, into its corresponding ascii string + * representation. The returned string is owned by the calling application, + * which should free it up when no longer needed. + */ +extern char * _DtDbPathIdToString ( DtDbPathId pathId ); + +#endif /* _Dt_DbReader_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/DbUtil.h b/cde/include/Dt/DbUtil.h new file mode 100644 index 00000000..8f6cb9f5 --- /dev/null +++ b/cde/include/Dt/DbUtil.h @@ -0,0 +1,103 @@ +/* + * 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: DbUtil.h $XConsortium: DbUtil.h /main/4 1995/10/26 15:04:04 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_DbUtil_h +#define _Dt_DbUtil_h + +#include /* Boolean */ + +/* + * This structure is used by many of the database functions. It is used to + * specify a collection of filenames or directory names. Each file/directory + * name is returned in two forms: + * + * dirs[n] The fully host-qualified pathname for the file or directory, + * in "host:/path" format. + * + * paths[n] The internal format of the file or directory anme, which + * can be passed to any of the standard tools which expect a + * valid filename; i.e. /nfs/host/path. + * + * Both of the arrays are NULL-terminated. + */ +typedef struct { + char ** dirs; + char ** paths; +} DtDirPaths; + + + +/***************************************************************************** + * + * + * + ****************************************************************************/ +extern DtDirPaths * _DtFindMatchingFiles( DtDirPaths * dirs, + char * suffix, + Boolean sortFiles ); + +/***************************************************************************** + * + * _DtGetDatabaseDirPaths() returns a NULL-terminated array of directories, + * which are to be searched for database files. The paths are obtained by + * querying the DTDATABASESEARCHPATH environment variable, which specifies + * a set of comma separated pathnames, int "host:/path" format. The + * return structure should be freed up, when no longer needed, by invoking + * _DtFreeDatabaseDirPaths(). + * + * The returned directory names are represented in two formats: + * + * 1) Fully host qualified; i.e. "host:/path" + * 2) Internal format; i.e. "/nfs/host/path" + * + ****************************************************************************/ +extern DtDirPaths * _DtGetDatabaseDirPaths( void ); + +/***************************************************************************** + * + * _DtFreeDatabaseDirPaths() is used to free the memory occupied by the + * passed-in instance of the DtDirPaths structure. Typically, this + * information was originally obtained by a call to DtGetDatabasePaths() + * or _DtFindMatchingFiles(). + * + * Parameters: + * + * dirs The structure which is to be freed up. + * + ****************************************************************************/ +extern void _DtFreeDatabaseDirPaths( DtDirPaths * dirs ); + +#endif /* _Dt_DbUtil_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/DialogBox.h b/cde/include/Dt/DialogBox.h new file mode 100644 index 00000000..8db03c5a --- /dev/null +++ b/cde/include/Dt/DialogBox.h @@ -0,0 +1,88 @@ +/* + * 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: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: DialogBox.h +*** +*** project: MotifPlus Widgets +*** +*** description: Public include file for DtDialogBox class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtDialogBox_h +#define _DtDialogBox_h + +#include +#include
+ +#ifndef DtIsDialogBox +#define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass) +#endif /* XmIsDialogBox */ + + +extern Widget _DtCreateDialogBox( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount) ; +extern Widget __DtCreateDialogBoxDialog( + Widget ds_p, + String name, + ArgList db_args, + Cardinal db_n) ; +extern Widget _DtDialogBoxGetButton( + Widget w, + Cardinal pos) ; +extern Widget _DtDialogBoxGetWorkArea( + Widget w) ; + + +extern WidgetClass dtDialogBoxWidgetClass; + +typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass; +typedef struct _DtDialogBoxRec * DtDialogBoxWidget; + + +#define XmBUTTON 11 + + +#define XmCR_DIALOG_BUTTON 100 + +typedef struct +{ + int reason; + XEvent * event; + Cardinal button_position; + Widget button; +} DtDialogBoxCallbackStruct; + + +#endif /* _DtDialogBox_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/DialogBoxP.h b/cde/include/Dt/DialogBoxP.h new file mode 100644 index 00000000..fc402f58 --- /dev/null +++ b/cde/include/Dt/DialogBoxP.h @@ -0,0 +1,169 @@ +/* + * 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: DialogBoxP.h /main/5 1996/03/27 20:16:24 drk $ */ +/**--------------------------------------------------------------------- +*** +*** file: DialogBoxP.h +*** +*** project: Motif Widgets +*** +*** description: Private include file for DtDialogBox class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtDialogBoxP_h +#define _DtDialogBoxP_h + +#include +#include +#include +#include
+ +typedef void (*DlgGetSizeProc)( + Widget, + Dimension, + Dimension, + Dimension, + Dimension, + Dimension *, + Dimension * +); +/*------------------------------------------------------------- +** Class Structure +*/ + +/* Class Part +*/ +typedef struct _DtDialogBoxClassPart +{ + XtWidgetProc create_children; + XtWidgetProc configure_children; + DlgGetSizeProc get_size; + XtCallbackProc button_callback; + caddr_t extension; +} DtDialogBoxClassPart; + +/* Full Class Record +*/ +typedef struct _DtDialogBoxClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + XmFormClassPart form_class; + DtDialogBoxClassPart dialog_box_class; +} DtDialogBoxClassRec; + +/* Actual Class +*/ +extern DtDialogBoxClassRec dtDialogBoxClassRec; + + +/*------------------------------------------------------------- +** Instance Structure +*/ + +/* Instance Part +*/ +typedef struct _DtDialogBoxPart +{ + XtCallbackList callback; + Widget work_area; + Widget separator; + WidgetList button; + Cardinal button_count; + Boolean minimize_buttons; + XmStringTable button_label_strings; +} DtDialogBoxPart; + +/* Full Instance Record +*/ +typedef struct _DtDialogBoxRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + XmFormPart form; + DtDialogBoxPart dialog_box; +} DtDialogBoxRec; + + +/*------------------------------------------------------------- +** Constraint Structure +*/ + +/* Constraint Part +*/ +typedef struct _DtDialogBoxConstraintPart +{ + unsigned char child_type; +} DtDialogBoxConstraintPart, * DtDialogBoxConstraint; + +/* Full Constraint Record +*/ +typedef struct _DtDialogBoxConstraintRec +{ + XmManagerConstraintPart manager_constraint; + XmFormConstraintPart form_constraint; + DtDialogBoxConstraintPart dialog_box_constraint; +} DtDialogBoxConstraintRec, * DtDialogBoxConstraintPtr; + + + +/*------------------------------------------------------------- +** Class and Instance Macros +*/ + +/* DtDialogBox Class Macros +*/ +/**** WARNING: These macros are not thread-safe! ****/ +#define C_CreateChildren(mc) ((mc) -> dialog_box_class.create_children) +#define C_ConfigureChildren(mc) ((mc) -> dialog_box_class.configure_children) +#define C_GetSize(mc) ((mc) -> dialog_box_class.get_size) +#define C_ButtonCallback(mc) ((mc) -> dialog_box_class.button_callback) + +/* DtDialogBox Instance Macros +*/ +#define M_DialogBoxConstraint(w) \ + (&((DtDialogBoxConstraintPtr) (w)->core.constraints) \ + -> dialog_box_constraint) +#define M_WorkArea(m) (m -> dialog_box.work_area) +#define M_Separator(m) (m -> dialog_box.separator) +#define M_MinimizeButtons(m) (m -> dialog_box.minimize_buttons) +#define M_Button(m) (m -> dialog_box.button) +#define M_ButtonCount(m) (m -> dialog_box.button_count) +#define M_ButtonLabelStrings(m) (m -> dialog_box.button_label_strings) +#define M_Callback(m) (m -> dialog_box.callback) + +#endif /* _DtDialogBoxP_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Dnd.h b/cde/include/Dt/Dnd.h new file mode 100644 index 00000000..866557f3 --- /dev/null +++ b/cde/include/Dt/Dnd.h @@ -0,0 +1,210 @@ +/* + * 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: Dnd.h /main/3 1995/10/26 15:04:35 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. + */ + +#ifndef _Dt_Dnd_h +#define _Dt_Dnd_h + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Dnd Callback Reasons */ + +enum { + DtCR_DND_CONVERT_DATA, + DtCR_DND_CONVERT_DELETE, + DtCR_DND_DRAG_FINISH, + DtCR_DND_TRANSFER_DATA, + DtCR_DND_DROP_ANIMATE, + DtCR_DND_ROOT_TRANSFER +}; +#define DtCR_DND_TRANSFER DtCR_DND_TRANSFER_DATA + +/* + * Dnd Drag Start Resources + * dropOnRootCallback is private and should not be used + */ + +#define DtNdropOnRootCallback "dropOnRootCallback" +#define DtCDropOnRootCallback "DropOnRootCallback" +#define DtNsourceIcon "sourceIcon" +#define DtCSourceIcon "SourceIcon" +#define DtNbufferIsText "bufferIsText" +#define DtCBufferIsText "BufferIsText" + +/* + *Dnd Drop Register Resources + */ + +#define DtNdropAnimateCallback "dropAnimateCallback" +#define DtCDropAnimateCallback "DropAnimateCallback" +#define DtNpreserveRegistration "preserveRegistration" +#define DtCPreserveRegistration "PreserveRegistration" +#define DtNregisterChildren "registerChildren" +#define DtCRegisterChildren "RegisterChildren" +#define DtNtextIsBuffer "textIsBuffer" +#define DtCTextIsBuffer "TextIsBuffer" + +/* + * Types + */ + +typedef enum { + DtDND_SUCCESS, + DtDND_FAILURE +} DtDndStatus; + +typedef unsigned long DtDndProtocol; + +enum { + DtDND_NOOP_TRANSFER = 0L, + DtDND_TEXT_TRANSFER = (1L << 0), + DtDND_FILENAME_TRANSFER = (1L << 1), + DtDND_BUFFER_TRANSFER = (1L << 2) +}; + +typedef struct _DtDndBuffer { + void * bp; + int size; + String name; +} DtDndBuffer; + +typedef struct _DtDndContext { + DtDndProtocol protocol; + Cardinal numItems; + union { + XmString * strings; + String * files; + DtDndBuffer * buffers; + } data; +} DtDndContext; + + +/* + * Dnd Callback Structures + */ + +typedef struct _DtDndConvertCallbackStruct { + int reason; + XEvent * event; + DtDndContext * dragData; + DtDndStatus status; +} DtDndConvertCallbackStruct, *DtDndConvertCallback; + +typedef struct _DtDndDragFinishCallbackStruct { + int reason; + XEvent * event; + DtDndContext * dragData; + Widget sourceIcon; +} DtDndDragFinishCallbackStruct, *DtDndDragFinishCallback; + +typedef struct _DtDndTransferCallbackStruct { + int reason; + XEvent * event; + Position x, y; + unsigned char operation; + DtDndContext * dropData; + Widget dragContext; + Boolean completeMove; + DtDndStatus status; +} DtDndTransferCallbackStruct, *DtDndTransferCallback; + +typedef DtDndTransferCallbackStruct DtDndDropCallbackStruct, *DtDndDropCallback; + +typedef struct _DtDndDropAnimateCallbackStruct { + int reason; + XEvent * event; + Position x, y; + unsigned char operation; + DtDndContext * dropData; +} DtDndDropAnimateCallbackStruct, *DtDndDropAnimateCallback; + + +/* + * Functions + */ + +extern Widget DtDndCreateSourceIcon( + Widget widget, + Pixmap source, + Pixmap mask); + +extern Widget DtDndDragStart( + Widget dragInitiator, + XEvent* event, + DtDndProtocol protocol, + Cardinal numItems, + unsigned char operations, + XtCallbackList convertCallback, + XtCallbackList dragFinishCallback, + ArgList argList, + Cardinal argCount); + +extern Widget DtDndVaDragStart( + Widget dragInitiator, + XEvent* event, + DtDndProtocol protocol, + Cardinal numItems, + unsigned char operations, + XtCallbackList convertCallback, + XtCallbackList dragFinishCallback, + ...); + +extern void DtDndDropRegister( + Widget dropSite, + DtDndProtocol protocols, + unsigned char operations, + XtCallbackList transferCallback, + ArgList argList, + Cardinal argCount); + +extern void DtDndVaDropRegister( + Widget dropSite, + DtDndProtocol protocols, + unsigned char operations, + XtCallbackList transferCallback, + ...); + +extern void DtDndDropUnregister( + Widget widget); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Dnd_h */ diff --git a/cde/include/Dt/DndIconI.h b/cde/include/Dt/DndIconI.h new file mode 100644 index 00000000..383918d2 --- /dev/null +++ b/cde/include/Dt/DndIconI.h @@ -0,0 +1,423 @@ +/* + * 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: DndIconI.h /main/3 1995/10/26 15:05:58 rswiston $ */ +/********************************************************************* + * + * File: DndIconI.h + * + * Description: Private include file containing DND drag icons bitmaps + * + ********************************************************************* + * + *+SNOTICE + * + * 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 documment and all copies + * and derivative works thereof must be returned or destroyed at + * Sun's request. + * + * Copyright 1993 Sun Microsystems, Inc. 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. + * + *+ENOTICE + */ + +#ifndef _Dt_DndIconI_h +#define _Dt_DndIconI_h + +#ifdef __cplusplus +extern "C" { +#endif + + +/*------------------------------------------------------------------- + * Motif Defaults + *-------------------------------------------------------------------*/ + +#define motif_x_hot 1 +#define motif_y_hot 1 + +#define motif_x_offset_state -8 +#define motif_y_offset_state -2 + +#define motif_x_offset_delta 0 +#define motif_y_offset_delta 0 + +/*------------------------------------------------------------------- + * Text Drags: Cursors + *-------------------------------------------------------------------*/ + +#define text_x_hot 1 +#define text_y_hot 1 + +#define text_x_offset_state 1 +#define text_y_offset_state 1 + +#define text_x_offset_delta 7 +#define text_y_offset_delta 3 + +/* + * Text: State Valid + */ + +#define text_valid_width 16 +#define text_valid_height 16 + +static unsigned char text_valid_bits[] = { +#ifdef OLDTEXTVALID + 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00, + 0x7e, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#else + 0x00, 0x00, 0xfe, 0x01, 0xfe, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00, + 0x0e, 0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#endif + +static unsigned char text_valid_m_bits[] = { +#ifdef OLDTEXTVALID + 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00, + 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#else + 0xff, 0x07, 0xff, 0x03, 0xff, 0x01, 0xff, 0x00, 0x7f, 0x00, 0x3f, 0x00, + 0x1f, 0x00, 0x0f, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#endif + +/* + * Text: State Invalid + */ + +#define text_invalid_width 16 +#define text_invalid_height 16 + +static unsigned char text_invalid_bits[] = { + 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, + 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, + 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char text_invalid_m_bits[] = { + 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, + 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, + 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; + +/* + * Text: None + */ + +#define text_none_width 16 +#define text_none_height 16 + +static unsigned char text_none_bits[] = { + 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, + 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, + 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char text_none_m_bits[] = { + 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, + 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, + 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; + +/*------------------------------------------------------------------- + * Text Drags: Operation Cursors + *-------------------------------------------------------------------*/ + +/* Use Data Operation Cursors */ + +/* + * Text: Operation Move + */ + +/* + * Text: Operation Copy + */ + +/* + * Text: Operation Link + */ + +/*------------------------------------------------------------------- + * Text Drags: Source Cursor + *-------------------------------------------------------------------*/ + +#define text_source_width 32 +#define text_source_height 32 + +static unsigned char text_source_bits[] = { +#ifdef OLDTEXTSOURCE + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xd8, 0xdb, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbe, 0x7f, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0xb8, 0xf6, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00, + 0xe8, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xbb, 0xff, 0x06, + 0x00, 0x00, 0x00, 0x00, 0xd8, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00, + 0x78, 0xd7, 0xb4, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xad, 0xd5, 0x0f, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#else + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0xc0, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x7f, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xbb, 0xff, 0x06, + 0x00, 0x00, 0x00, 0x00, 0xf0, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00, + 0x78, 0x77, 0xb7, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbd, 0xdd, 0x0f, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#endif + +static unsigned char text_source_m_bits[] = { +#ifdef OLDTEXTSOURCE + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#else + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x3f, + 0x00, 0xf0, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, + 0x00, 0xfe, 0xff, 0x3f, 0x00, 0xff, 0xff, 0x3f, 0x80, 0xff, 0xff, 0x3f, + 0xc0, 0xff, 0xff, 0x3f, 0xe0, 0xff, 0xff, 0x3f, 0xf0, 0xff, 0xff, 0x3f, + 0xf8, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, + 0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +#endif + +/*------------------------------------------------------------------- + * Data Drags: Cursors + *------------------------------------------------------------------*/ + +#define data_x_hot 3 +#define data_y_hot 3 + +#define data_x_offset_state 11 +#define data_y_offset_state 11 + +#define data_x_offset_delta 7 +#define data_y_offset_delta 7 + +/* + * Data: State Valid + */ + +#define data_valid_width 16 +#define data_valid_height 16 + +static unsigned char data_valid_bits[] = { + 0x00, 0x00, 0x06, 0x00, 0x1e, 0x00, 0x7c, 0x00, 0xfc, 0x01, 0xf8, 0x07, + 0xf8, 0x07, 0xf0, 0x01, 0xf0, 0x03, 0x60, 0x07, 0x60, 0x0e, 0x00, 0x1c, + 0x00, 0x38, 0x00, 0x70, 0x00, 0x60, 0x00, 0x00}; + +static unsigned char data_valid_m_bits[] = { + 0x07, 0x00, 0x1f, 0x00, 0x7f, 0x00, 0xfe, 0x01, 0xfe, 0x07, 0xfc, 0x0f, + 0xfc, 0x0f, 0xf8, 0x07, 0xf8, 0x07, 0xf0, 0x0f, 0xf0, 0x1f, 0x60, 0x3e, + 0x00, 0x7c, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x60}; + +/* + * Data: State Invalid + */ + +#define data_invalid_width 16 +#define data_invalid_height 16 + +static unsigned char data_invalid_bits[] = { + 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, + 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, + 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char data_invalid_m_bits[] = { + 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, + 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, + 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; + +/* + * Data: State None + */ + +#define data_none_width 16 +#define data_none_height 16 + +static unsigned char data_none_bits[] = { + 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, + 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, + 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char data_none_m_bits[] = { + 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, + 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, + 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; + +/*------------------------------------------------------------------- + * Data Drags: Operation Cursors + *-------------------------------------------------------------------*/ + +/* + * Data: Operation Move + */ + +#define data_move_width 16 +#define data_move_height 16 + +static unsigned char data_move_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char data_move_m_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + +/* + * Data: Operation Copy + */ + +#define data_copy_width 16 +#define data_copy_height 16 + +static unsigned char data_copy_bits[] = { + 0x00, 0x00, 0xfe, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x1f, 0x02, 0x11, + 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0xfe, 0x11, 0x20, 0x10, + 0x20, 0x10, 0xe0, 0x1f, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char data_copy_m_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, + 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, + 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x3f, 0x00, 0x00}; + +/* + * Data: Operation Link + */ + +#define data_link_width 16 +#define data_link_height 16 + +static unsigned char data_link_bits[] = { + 0x00, 0x00, 0xfe, 0x03, 0x02, 0x02, 0x02, 0x02, 0x32, 0x02, 0x32, 0x3e, + 0x42, 0x20, 0x82, 0x20, 0x02, 0x21, 0x3e, 0x26, 0x20, 0x26, 0x20, 0x20, + 0x20, 0x20, 0xe0, 0x3f, 0x00, 0x00, 0x00, 0x00}; + +static unsigned char data_link_m_bits[] = { + 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x7f, 0xff, 0x7f, + 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xf0, 0x7f, + 0xf0, 0x7f, 0xf0, 0x7f, 0xf0, 0x7f, 0x00, 0x00}; + +/*------------------------------------------------------------------- + * Data Drags: Source Icons + *-------------------------------------------------------------------*/ + +/* + * Data Source: Single + */ + +#define data_single_width 32 +#define data_single_height 32 + +static unsigned char data_single_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00, + 0x10, 0x00, 0x40, 0x01, 0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04, + 0x10, 0x00, 0xc0, 0x0f, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, + 0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f}; + +static unsigned char data_single_m_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0x00, + 0xf0, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0x07, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, + 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f}; + +/* + * Data Source: Multiple + */ + +#define data_multiple_width 32 +#define data_multiple_height 32 + +static unsigned char data_multiple_bits[] = { + 0xfc, 0xff, 0x0f, 0x00, 0x04, 0x00, 0x30, 0x00, 0x04, 0x00, 0xd0, 0x1f, + 0x04, 0x00, 0x90, 0x10, 0x04, 0x00, 0x10, 0xf1, 0x04, 0x00, 0xf0, 0x93, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, + 0xfc, 0xff, 0xff, 0x93, 0x20, 0x00, 0x00, 0x90, 0xe0, 0xff, 0xff, 0x9f, + 0x00, 0x01, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff}; + +static unsigned char data_multiple_m_bits[] = { + 0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0x1f, + 0xfc, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, + 0xfc, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, + 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff}; + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_DndIconI_h */ diff --git a/cde/include/Dt/DndP.h b/cde/include/Dt/DndP.h new file mode 100644 index 00000000..63447b0d --- /dev/null +++ b/cde/include/Dt/DndP.h @@ -0,0 +1,332 @@ +/* + * 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: DndP.h /main/4 1996/06/21 17:28:31 ageorge $ */ +/********************************************************************* + * + * File: DndP.h + * + * Description: Private include file for DND Convenience API. + * + ********************************************************************* + * + *+SNOTICE + * + * RESTRICTED CONFIDENTIAL INFORMATION: + * + * The information in this document is subject to special + * restrictions in a confidential disclosure agreement bertween + * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this + * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout + * Sun's specific written approval. This documment and all copies + * and derivative works thereof must be returned or destroyed at + * Sun's request. + * + * Copyright 1993 Sun Microsystems, Inc. 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. + * + *+ENOTICE + */ + +#ifndef _Dt_DndP_h +#define _Dt_DndP_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Drag and Drop selection targets + */ + +extern Atom XA_TARGETS; +extern Atom XA_TIMESTAMP; +extern Atom XA_MULTIPLE; +extern Atom XA_DELETE; +extern Atom XA_NULL; +extern Atom XA_TEXT; +extern Atom XA_HOST_NAME; +extern Atom XA_SUN_FILE_HOST_NAME; +extern Atom XA_SUN_ENUM_COUNT; +extern Atom XA_SUN_DATA_LABEL; +extern Atom XA_SUN_SELN_READONLY; +extern Atom XA_SUN_ATM_FILE_NAME; +extern Atom XA_SUN_ATM_METHODS; + +#define DtGetAtom(display, atomname) \ + XmInternAtom((display),(atomname),False) + + +/* + * Drag Icon Styles + */ +typedef enum { + DtDND_DRAG_SOURCE_DEFAULT, + DtDND_DRAG_SOURCE_TEXT, + DtDND_DRAG_SOURCE_DATA, + DtDND_DRAG_SOURCE_MULTIPLE +} DtDndDragSource; + +/* + * Drag-n-Drop Data Transfer Protocol + */ +typedef struct _DtDndTransfer { + Atom * targets; + Cardinal numTargets; + struct _DtDndMethods * methods; +} DtDndTransfer; + +/* + * Drag Initiator Structure + */ + +typedef struct _DtDragInfo { + Widget dragInitiator; + Widget dragContext; + DtDndProtocol protocol; + Cardinal numItems; + unsigned char operations; + XtCallbackList dragConvertCallback; + XtCallbackList dragFinishCallback; + XtCallbackList dropOnRootCallback; + XtCallbackList dragDropFinishCallback; + XtCallbackList dropFinishCallback; + XtCallbackList topLevelEnterCallback; + XtCallbackList topLevelLeaveCallback; + XtCallbackList dropStartCallback; + Widget sourceIcon; + Boolean bufferIsText; + DtDndTransfer * transfer; + DtDndContext * dragData; + Boolean inRoot; + Window backdropWindow; + DtDndStatus status; + XtPointer clientData; +} DtDragInfo; + +/* + * Drop Receiver Existing Registration Structure + */ + +typedef struct _DtDropSiteInfo { + XtCallbackProc dropProc; + unsigned char operations; + Atom * importTargets; + int numImportTargets; +} DtDropSiteInfo; + +/* + * Drop Receiver Data Transfer Structure + */ + +typedef struct _DtTransferInfo { + Widget dragContext; + DtDndProtocol protocol; + unsigned char operation; + struct _DtDndMethods * methods; + Atom * transferTargets; + Cardinal numTransferTargets; + Cardinal currentTransfer; + Boolean appTransferCalled; + XEvent * event; + Position x, y; + XtPointer clientData; + XtCallbackList dropAnimateCallback; +} DtTransferInfo; + +/* + * Drop Receiver Registration Structure + */ + +typedef struct _DtDropInfo { + Widget dropReceiver; + DtDndProtocol protocols; + unsigned char operations; + XtCallbackList dropTransferCallback; + XtCallbackList dropAnimateCallback; + Boolean textIsBuffer; + DtDropSiteInfo * dropSiteInfo; + DtDndTransfer * transfers; + Cardinal numTransfers; + DtTransferInfo * transferInfo; + DtDndContext * dropData; + DtDndStatus status; +} DtDropInfo; + +/* + * Drag-n-Drop Data Transfer Protocol Function Prototypes + */ + +typedef void +(*DtDndGetAvailTargetsProc)( + DtDragInfo * dtDragInfo, + Atom ** returnAvailTargetsList, + Cardinal * returnNumAvailTargets); + +typedef void +(*DtDndGetExportTargetsProc)( + DtDragInfo * dtDragInfo, + Atom ** returnExportTargetsList, + Cardinal * returnNumExportTargets); + +typedef void +(*DtDndGetImportTargetsProc)( + DtDropInfo * dtDropInfo, + Atom ** returnImportTargetsList, + Cardinal * returnNumImportTargets); + +typedef void +(*DtDndConvertInitProc)( + DtDragInfo * dtDragInfo); + +typedef Boolean +(*DtDndConvertProc)( + Widget dragContext, + DtDragInfo * dtDragInfo, + Atom * selection, + Atom * target, + Atom * returnType, + XtPointer * returnValue, + unsigned long * returnLength, + int * returnFormat, + XSelectionRequestEvent *selectionRequestEvent); + +typedef void +(*DtDndConvertFinishProc)( + DtDragInfo * dtDragInfo); + +typedef void +(*DtDndTransferTargetsProc)( + DtDropInfo * dtDropInfo, + Atom * exportTargets, + Cardinal numExportTargets, + Atom ** returnTransferTargetsList, + Cardinal * returnNumTransferTargets); + +typedef void +(*DtDndTransferProc)( + Widget dropTransfer, + DtDropInfo * dtDropInfo, + Atom * selection, + Atom * target, + Atom * type, + XtPointer value, + unsigned long * length, + int * format); + +typedef void +(*DtDndTransferFinishProc)( + DtDropInfo * dtDropInfo); + +/* + * Drag-n-Drop Data Transfer Methods + */ + +typedef struct _DtDndMethods { + String name; + DtDndProtocol protocol; + DtDndDragSource sourceType; + DtDndGetAvailTargetsProc getAvailTargets; + DtDndGetExportTargetsProc getExportTargets; + DtDndGetImportTargetsProc getImportTargets; + DtDndConvertInitProc convertInit; + DtDndConvertProc convert; + DtDndConvertFinishProc convertFinish; + DtDndTransferTargetsProc transferTargets; + DtDndTransferProc transfer; + DtDndTransferFinishProc transferFinish; +} DtDndMethods; + +/* + * Drag-n-Drop Private Utility Functions + */ + +extern DtDndTransfer * +_DtDndCreateExportTransfer( + DtDragInfo * dtDragInfo); + +extern DtDndTransfer * +_DtDndCreateImportTransfers( + DtDropInfo * dtDropInfo, + Cardinal * numTransfers); + +extern void +_DtDndDestroyTransfers( + DtDndTransfer * transfers, + Cardinal numTransfers); + +extern DtDndTransfer * +_DtDndTransferFromTargets( + DtDndTransfer * transfers, + Cardinal numTransfers, + Atom * targets, + Cardinal numTargets); + +extern void +_DtDndTransferAdd( + Widget dropTransfer, + DtDropInfo * dtDropInfo, + Atom * transferTargets, + Cardinal numTransferTargets); + +extern XtCallbackList +_DtDndCopyCallbackList( + XtCallbackList callbacks); + +extern void +_DtDndCallCallbackList( + Widget widget, + XtCallbackList callbacks, + XtPointer calldata); + +extern void +_DtDndSelectDragSource( + Widget anyWidget, + DtDndDragSource sourceType, + Widget sourceIcon); + +extern void +_DtDndGetIconOffset( + Widget dragContext, + DtDndDragSource sourceType, + int * offsetXReturn, + int * offsetYReturn); + +extern String +_DtDndGetHostName(void); + +#ifdef DEBUG +extern void _DtDndPrintTargets(Display*,Atom*,Cardinal); +extern void _DtDndPrintTransfers(Display*,DtDndTransfer*,Cardinal); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_DndP_h */ diff --git a/cde/include/Dt/Dt.h b/cde/include/Dt/Dt.h new file mode 100644 index 00000000..3122efa7 --- /dev/null +++ b/cde/include/Dt/Dt.h @@ -0,0 +1,93 @@ +/* + * 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: Dt.h /main/12 1999/10/18 14:49:57 samborn $ */ +/* + * (c) Copyright 1997, The Open Group + */ +/* + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. + * (c) Copyright 1993,1994,1996 International Business Machines Corp. + * (c) Copyright 1993-1996 Sun Microsystems, Inc. + * (c) Copyright 1993,1994,1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef _Dt_Dt_h +#define _Dt_Dt_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* CDE Version information */ + +#define DtVERSION 2 +#define DtREVISION 3 +#define DtUPDATE_LEVEL 0 + +#define DtVERSION_NUMBER (DtVERSION * 10000 + \ + DtREVISION * 100 + \ + DtUPDATE_LEVEL) + +#define DtVERSION_STRING "CDE Version 2.3.0a" + + +/* + * CDE Version information + */ + +externalref const int DtVersion; +externalref const char *DtVersionString; + + +/* + * Functions + */ + +extern Boolean DtInitialize( + Display *display, + Widget widget, + char *name, + char *tool_class); + +extern Boolean DtAppInitialize( + XtAppContext app_context, + Display *display, + Widget widget, + char *name, + char *tool_class); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Dt_h */ diff --git a/cde/include/Dt/DtGetMessageP.h b/cde/include/Dt/DtGetMessageP.h new file mode 100644 index 00000000..ebbae220 --- /dev/null +++ b/cde/include/Dt/DtGetMessageP.h @@ -0,0 +1,69 @@ +/* + * 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 */ diff --git a/cde/include/Dt/DtHash.h b/cde/include/Dt/DtHash.h new file mode 100644 index 00000000..b3740310 --- /dev/null +++ b/cde/include/Dt/DtHash.h @@ -0,0 +1,49 @@ +/* + * 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: DtHash.h /main/5 1996/08/29 15:42:13 cde-dec $ */ +#ifndef _DtHash_h +#define _DtHash_h + +typedef void * DtHashTbl; + +DtHashTbl _DtUtilMakeHash(int size); +DtHashTbl _DtUtilMakeIHash(int size); +void ** _DtUtilGetHash(DtHashTbl tbl, const unsigned char * key); +void ** _DtUtilFindHash(DtHashTbl tbl,const unsigned char * key); +void * _DtUtilDelHash(DtHashTbl tbl, const unsigned char * key); +int _DtUtilOperateHash(DtHashTbl tbl, void (*op_func)(), void * usr_arg); +void _DtUtilDestroyHash(DtHashTbl tbl, int (*des_func)(), void * usr_arg); + +typedef void (*DtHashOperateFunc)(); +typedef int (*DtHashDestroyFunc)(); + +#endif /* _DtHash_h */ + + + + + + + + + diff --git a/cde/include/Dt/DtMsgsP.h b/cde/include/Dt/DtMsgsP.h new file mode 100644 index 00000000..3f139754 --- /dev/null +++ b/cde/include/Dt/DtMsgsP.h @@ -0,0 +1,232 @@ +/* + * 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: DtMsgsP.h /main/7 1996/06/19 11:27:42 cde-dec $ */ +/* + * DtWidget/DtMsgsP.h + */ +/* + * DtMsgsP.h: + * + * Private header file for libDtWidget + */ +#ifndef _DtMessages_h +#define _DtMessages_h + +/*** const causes the HP compiler to complain. Remove reference until *** + *** the build and integration people can figure out how to get this to *** + *** work. ***/ + +/* #define CONST const */ +#define CONST + +#ifdef I18N_MSG +#include +#define DTWIDGET_GETMESSAGE(set, number, string)\ + (char *) _DtWidgetGetMessage(set, number, string) + +#else /* I18N_MSG */ +#define DTWIDGET_GETMESSAGE(set, number, string) string +#endif /* I18N_MSG */ + +extern CONST char _DtMsgCommon_0000[]; +extern CONST char _DtMsgCommon_0001[]; +extern CONST char _DtMsgComboBox_0000[]; +extern CONST char _DtMsgComboBox_0001[]; +extern CONST char _DtMsgComboBox_0002[]; +extern CONST char _DtMsgComboBox_0003[]; +extern CONST char _DtMsgComboBox_0004[]; +extern CONST char _DtMsgComboBox_0005[]; +extern CONST char _DtMsgComboBox_0006[]; +extern CONST char _DtMsgComboBox_0007[]; +extern CONST char _DtMsgComboBox_0008[]; +extern CONST char _DtMsgComboBox_0009[]; +extern CONST char _DtMsgComboBox_0010[]; +extern CONST char _DtMsgComboBox_0011[]; +extern CONST char _DtMsgComboBox_0012[]; +extern CONST char _DtMsgComboBox_0013[]; +extern CONST char _DtMsgComboBox_0014[]; +extern CONST char _DtMsgDialogBox_0000[]; +extern CONST char _DtMsgDialogBox_0001[]; +extern CONST char _DtMsgEditor_0000[]; +extern CONST char _DtMsgEditor_0001[]; +extern CONST char _DtMsgEditor_0002[]; +extern CONST char _DtMsgEditor_0003[]; +extern CONST char _DtMsgEditor_0004[]; +extern CONST char _DtMsgEditor_0005[]; +extern CONST char _DtMsgEditor_0006[]; +extern CONST char _DtMsgEditor_0007[]; +extern CONST char _DtMsgEditor_0008[]; +extern CONST char _DtMsgEditor_0009[]; +extern CONST char _DtMsgEditor_0010[]; +extern CONST char _DtMsgEditor_0011[]; +extern CONST char _DtMsgEditor_0012[]; +extern CONST char _DtMsgEditor_0013[]; +extern CONST char _DtMsgEditor_0014[]; +extern CONST char _DtMsgEditor_0015[]; +extern CONST char _DtMsgEditor_0016[]; +extern CONST char _DtMsgEditor_0017[]; +extern CONST char _DtMsgEditor_0018[]; +extern CONST char _DtMsgEditor_0019[]; +extern CONST char _DtMsgEditor_0020[]; +extern CONST char _DtMsgEditor_0021[]; +extern CONST char _DtMsgEditor_0022[]; +extern CONST char _DtMsgEditor_0023[]; +extern CONST char _DtMsgEditor_0024[]; +extern CONST char _DtMsgEditor_0025[]; +extern CONST char _DtMsgIcon_0000[]; +extern CONST char _DtMsgIcon_0001[]; +extern CONST char _DtMsgIcon_0002[]; +extern CONST char _DtMsgIcon_0003[]; +extern CONST char _DtMsgIcon_0004[]; +extern CONST char _DtMsgIcon_0005[]; +extern CONST char _DtMsgIndicator_0000[]; +extern CONST char _DtMsgMenuButton_0000[]; +extern CONST char _DtMsgMenuButton_0001[]; +extern CONST char _DtMsgMenuButton_0002[]; +extern CONST char _DtMsgSpinBox_0000[]; +extern CONST char _DtMsgSpinBox_0001[]; +extern CONST char _DtMsgSpinBox_0002[]; +extern CONST char _DtMsgSpinBox_0003[]; +extern CONST char _DtMsgSpinBox_0004[]; +extern CONST char _DtMsgSpinBox_0005[]; +extern CONST char _DtMsgSpinBox_0006[]; +extern CONST char _DtMsgSpinBox_0007[]; +extern CONST char _DtMsgSpinBox_0008[]; +extern CONST char _DtMsgSpinBox_0009[]; +extern CONST char _DtMsgSpinBox_0010[]; +extern CONST char _DtMsgSpinBox_0011[]; +extern CONST char _DtMsgSpinBox_0012[]; +extern CONST char _DtMsgSpinBox_0013[]; +extern CONST char _DtMsgSpinBox_0014[]; +extern CONST char _DtMsgTitleBox_0000[]; +extern CONST char _DtMsgTitleBox_0001[]; +extern CONST char _DtMsgTitleBox_0002[]; +extern CONST char _DtMsgTitleBox_0003[]; +extern CONST char _DtMsgTitleBox_0004[]; + +#ifdef I18N_MSG + +/* + * Message set for shared messages + */ +#define MS_Common 2 + +/* Message IDs for shared messages */ +#define MSG_CLOSE 1 +#define MSG_HELP 2 + +/* + * Message set for Editor widget + */ +#define MS_Editor 3 + +/* Message IDs for Editor */ +#define EDITOR_FORMAT_SETTINGS 1 +#define EDITOR_RIGHT_MARGIN 2 +#define EDITOR_LEFT_MARGIN 3 +#define EDITOR_LEFT_ALIGN 4 +#define EDITOR_RIGHT_ALIGN 5 +#define EDITOR_JUSTIFY 6 +#define EDITOR_CENTER 7 +#define EDITOR_PARAGRAPH 8 +#define EDITOR_ALL 9 +#define EDITOR_SPELL_TITLE 20 +#define EDITOR_FIND_TITLE 21 +#define EDITOR_MISSPELLED 22 +#define EDITOR_FIND_LABEL 23 +#define EDITOR_CHANGE_LABEL 24 +#define EDITOR_FIND_BUTTON 25 +#define EDITOR_CHANGE_BUTTON 26 +#define EDITOR_CHNG_ALL_BUTTON 27 +#define EDITOR_NO_FIND 30 +#define EDITOR_INFO_TITLE 31 +#define EDITOR_LINE 40 +#define EDITOR_TOTAL 41 +#define EDITOR_OVR 42 +#define EDITOR_INS 43 +#define EDITOR_FILTER_ERROR 50 +#define EDITOR_FILTER_ERROR2 51 +#define EDITOR_ERROR_TITLE 52 + +/* + * Message set for MenuButton widget + */ +#define MS_MenuButton 4 + +/* Message IDs for MenuButton*/ +#define MENU_POST 1 +#define MENU_PARENT 2 +#define MENU_SUBMENU 3 + +/* + * Message set for ComboBox widget + */ +#define MS_ComboBox 5 + +/* Message IDs for ComboBox */ +#define COMBO_ALIGNMENT 1 +#define COMBO_MARGIN_HEIGHT 2 +#define COMBO_MARGIN_WIDTH 3 +#define COMBO_HORIZONTAL_SPACING 4 +#define COMBO_VERTICAL_SPACING 5 +#define COMBO_ORIENTATION 6 +#define COMBO_ITEM_COUNT 7 +#define COMBO_VISIBLE_ITEM 8 +#define COMBO_TEXT 9 +#define COMBO_SET_ITEM 10 +#define COMBO_SELECT_ITEM 11 +#define COMBO_RESIZE 12 +#define COMBO_LABEL 13 +#define COMBO_CVTSTRING 14 +#define COMBO_DEL_POS 15 + +/* + * Message set for SpinBox widget + */ +#define MS_SpinBox 6 + +/* Message IDs for SpinBox */ +#define SPIN_ARROW_SENSITIVE 1 +#define SPIN_ALIGNMENT 2 +#define SPIN_INIT_DELAY 3 +#define SPIN_MARGIN_HEIGHT 4 +#define SPIN_MARGIN_WIDTH 5 +#define SPIN_ARROW_LAYOUT 6 +#define SPIN_REPEAT_DELAY 7 +#define SPIN_ITEM_COUNT 8 +#define SPIN_POSITION_STRING 9 +#define SPIN_POSITION_NUMERIC 10 +#define SPIN_DECIMAL_POINTS 11 +#define SPIN_MIN_MAX 12 +#define SPIN_TEXT 13 +#define SPIN_SET_ITEM 14 +#define SPIN_LABEL 15 + +extern char * _DtWidgetGetMessage( + int set, + int n, + char *s ); + +#endif /* I18N_MSG */ + +#endif /* _DtMessageh */ diff --git a/cde/include/Dt/DtNlUtils.h b/cde/include/Dt/DtNlUtils.h new file mode 100644 index 00000000..6a20789c --- /dev/null +++ b/cde/include/Dt/DtNlUtils.h @@ -0,0 +1,127 @@ +/* + * 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 +#include +#include +#include +#include +#include +#endif + +#include + + +#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); + diff --git a/cde/include/Dt/DtP.h b/cde/include/Dt/DtP.h new file mode 100644 index 00000000..0964aaee --- /dev/null +++ b/cde/include/Dt/DtP.h @@ -0,0 +1,145 @@ +/* + * 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 /* for protocol typedefs */ +#include + +#include
+#include
+ +#include +#include + +#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 */ diff --git a/cde/include/Dt/DtPStrings.h b/cde/include/Dt/DtPStrings.h new file mode 100644 index 00000000..d2058d4c --- /dev/null +++ b/cde/include/Dt/DtPStrings.h @@ -0,0 +1,87 @@ +/* + * 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 */ diff --git a/cde/include/Dt/DtShmDb.h b/cde/include/Dt/DtShmDb.h new file mode 100644 index 00000000..ff2709d3 --- /dev/null +++ b/cde/include/Dt/DtShmDb.h @@ -0,0 +1,76 @@ +/* + * 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: DtShmDb.h /main/4 1996/05/09 04:22:30 drk $ */ +#ifndef DtShmDb_h +#define DtShmDb_h + +/* + this include file provides prototypes for the various + shared memory database routines + */ + +typedef void * DtShmProtoStrtab; +typedef void * DtShmProtoInttab; +typedef void * DtShmProtoIntList; + +typedef const void * DtShmStrtab; +typedef const void * DtShmInttab; +typedef const int * DtShmIntList; +typedef int DtShmBoson; + +/* + routines used while building shared memory databases + */ + +DtShmProtoStrtab _DtShmProtoInitStrtab (int estimated_entries); +DtShmBoson _DtShmProtoAddStrtab (DtShmProtoStrtab prototab, const char * string, int * isnew); +const char * _DtShmProtoLookUpStrtab (DtShmProtoStrtab prototab, DtShmBoson boson); +int _DtShmProtoSizeStrtab (DtShmProtoStrtab prototab); +DtShmStrtab _DtShmProtoCopyStrtab (DtShmProtoStrtab prototab, void * dataspace); +int _DtShmProtoDestroyStrtab (DtShmProtoStrtab prototab); + +DtShmProtoInttab _DtShmProtoInitInttab (int estimated_entries); +int _DtShmProtoAddInttab (DtShmProtoInttab prototab, unsigned int keyin, int datain); +int * _DtShmProtoLookUpInttab (DtShmProtoInttab prototab, unsigned int keyin); +int _DtShmProtoSizeInttab (DtShmProtoInttab prototab); +DtShmInttab _DtShmProtoCopyInttab (DtShmProtoInttab prototab, void * dataspace); +int _DtShmProtoDestroyInttab (DtShmProtoInttab prototab); + + +DtShmProtoIntList _DtShmProtoInitIntLst (int estimated_entries); +int * _DtShmProtoAddIntLst (DtShmProtoIntList protolist, int size, int * index_value); +int _DtShmProtoSizeIntLst (DtShmProtoIntList protolist); +DtShmIntList _DtShmProtoCopyIntLst (DtShmProtoIntList protolist, void * dataspace); +int _DtShmProtoDestroyIntLst (DtShmProtoIntList protolist); + + +/* + run-time routines once shared memory area is built + */ + +DtShmBoson _DtShmStringToBoson (DtShmStrtab tab, const char * string); +const char * _DtShmBosonToString (DtShmStrtab tab, DtShmBoson boson); +const int * _DtShmFindIntTabEntry (DtShmInttab tab, unsigned int key); + +#endif /* DtShmDb_h */ + diff --git a/cde/include/Dt/DtStrDefs.h b/cde/include/Dt/DtStrDefs.h new file mode 100644 index 00000000..bf9f992e --- /dev/null +++ b/cde/include/Dt/DtStrDefs.h @@ -0,0 +1,542 @@ +/* + * 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: DtStrDefs.h /main/4 1996/03/25 11:18:44 rswiston $ */ +/* This file is automatically generated. */ +/* Do not edit. */ + +#ifndef _DtStrDefs_h_ +#define _DtStrDefs_h_ + +#ifdef DTSTRINGDEFINES +#define DtCAlternateImage "AlternateImage" +#define DtCBehavior "Behavior" +#define DtRBehavior "Behavior" +#define DtCBorderType "BorderType" +#define DtRBorderType "BorderType" +#define DtCBoxType "BoxType" +#define DtRBoxType "BoxType" +#define DtCButtonLabelStrings "ButtonLabelStrings" +#define DtCControlType "ControlType" +#define DtRControlType "ControlType" +#define DtCCursorFont "CursorFont" +#define DtCDrawShadow "DrawShadow" +#define DtCDropAction "DropAction" +#define DtCDropCallback "DropCallback" +#define DtCFillMode "FillMode" +#define DtRFillMode "FillMode" +#define DtCFormat "Format" +#define DtCHighResFontList "HighResFontList" +#define DtCLowResFontList "LowResFontList" +#define DtCMediumResFontList "MediumResFontList" +#define DtCPixmapPosition "PixmapPosition" +#define DtRPixmapPosition "PixmapPosition" +#define DtCPushArgument "PushArgument" +#define DtCPushFunction "PushFunction" +#define DtCStringPosition "StringPosition" +#define DtRStringPosition "StringPosition" +#define DtCSubpanel "Subpanel" +#define DtCTitleSpacing "TitleSpacing" +#define DtCTitlePosition "TitlePosition" +#define DtRTitlePosition "TitlePosition" +#define DtCUnderline "Underline" +#define DtNalternateImage "alternateImage" +#define DtNbehavior "behavior" +#define DtNbottomInset "bottomInset" +#define DtNborderType "borderType" +#define DtNboxType "boxType" +#define DtNbuttonLabelStrings "buttonLabelStrings" +#define DtNchime "chime" +#define DtNclientTimeoutInterval "clientTimeoutInterval" +#define DtNclockInterval "clockInterval" +#define DtNcontrolType "controlType" +#define DtNcursorFont "cursorFont" +#define DtNdrawShadow "drawShadow" +#define DtNdropAction "dropAction" +#define DtNdropCallback "dropCallback" +#define DtNfileName "fileName" +#define DtNfillMode "fillMode" +#define DtNformat "format" +#define DtNheightIncrement "heightIncrement" +#define DtNhighResFontList "highResFontList" +#define DtNimageName "imageName" +#define DtNleftInset "leftInset" +#define DtNlowResFontList "lowResFontList" +#define DtNmediumResFontList "mediumResFontList" +#define DtNmonitorTime "monitorTime" +#define DtNpixmapForeground "pixmapForeground" +#define DtNpixmapBackground "pixmapBackground" +#define DtNmaxPixmapWidth "maxPixmapWidth" +#define DtNmaxPixmapHeight "maxPixmapHeight" +#define DtNpixmapPosition "pixmapPosition" +#define DtNpushArgument "pushArgument" +#define DtNpushButtonClickTime "pushButtonClickTime" +#define DtNpushFunction "pushFunction" +#define DtNrightInset "rightInset" +#define DtNstringPosition "stringPosition" +#define DtNsubpanel "subpanel" +#define DtNresolution "resolution" +#define DtNtitleSpacing "titleSpacing" +#define DtNtitlePosition "titlePosition" +#define DtNtitleAlignment "titleAlignment" +#define DtNtopInset "topInset" +#define DtNunderline "underline" +#define DtNuseEmbossedText "useEmbossedText" +#define DtNwaitingBlinkRate "waitingBlinkRate" +#define DtNwidthIncrement "widthIncrement" +#define DtSicon_label "icon_label" +#define DtSicon_button "icon_button" +#define DtSicon_toggle "icon_toggle" +#define DtSicon_drag "icon_drag" +#define DtSwork_area "work_area" +#define DtStitle_area "title_area" +#define DtSseparator "separator" +#define DtSbutton "button" +#define DtSfill_none "fill_none" +#define DtSfill_parent "fill_parent" +#define DtSfill_transparent "fill_transparent" +#define DtSfill_self "fill_self" +#define DtSpixmap_top "pixmap_top" +#define DtSpixmap_bottom "pixmap_bottom" +#define DtSpixmap_left "pixmap_left" +#define DtSpixmap_right "pixmap_right" +#define DtSstring_top "string_top" +#define DtSstring_bottom "string_bottom" +#define DtSstring_left "string_left" +#define DtSstring_right "string_right" +#define DtStitle_top "title_top" +#define DtStitle_bottom "title_bottom" +#define DtNformatJP "formatJP" +#define DtCFormatJP "FormatJP" +#else +#ifndef _DtConst +#define _DtConst /**/ +#endif +extern _DtConst char _DtStrings[]; +#ifndef DtCAlternateImage +#define DtCAlternateImage ((char*)&_DtStrings[0]) +#endif +#ifndef DtCBehavior +#define DtCBehavior ((char*)&_DtStrings[15]) +#endif +#ifndef DtRBehavior +#define DtRBehavior ((char*)&_DtStrings[24]) +#endif +#ifndef DtCBorderType +#define DtCBorderType ((char*)&_DtStrings[33]) +#endif +#ifndef DtRBorderType +#define DtRBorderType ((char*)&_DtStrings[44]) +#endif +#ifndef DtCBoxType +#define DtCBoxType ((char*)&_DtStrings[55]) +#endif +#ifndef DtRBoxType +#define DtRBoxType ((char*)&_DtStrings[63]) +#endif +#ifndef DtCButtonLabelStrings +#define DtCButtonLabelStrings ((char*)&_DtStrings[71]) +#endif +#ifndef DtCControlType +#define DtCControlType ((char*)&_DtStrings[90]) +#endif +#ifndef DtRControlType +#define DtRControlType ((char*)&_DtStrings[102]) +#endif +#ifndef DtCCursorFont +#define DtCCursorFont ((char*)&_DtStrings[114]) +#endif +#ifndef DtCDrawShadow +#define DtCDrawShadow ((char*)&_DtStrings[125]) +#endif +#ifndef DtCDropAction +#define DtCDropAction ((char*)&_DtStrings[136]) +#endif +#ifndef DtCDropCallback +#define DtCDropCallback ((char*)&_DtStrings[147]) +#endif +#ifndef DtCFillMode +#define DtCFillMode ((char*)&_DtStrings[160]) +#endif +#ifndef DtRFillMode +#define DtRFillMode ((char*)&_DtStrings[169]) +#endif +#ifndef DtCFormat +#define DtCFormat ((char*)&_DtStrings[178]) +#endif +#ifndef DtCHighResFontList +#define DtCHighResFontList ((char*)&_DtStrings[185]) +#endif +#ifndef DtCLowResFontList +#define DtCLowResFontList ((char*)&_DtStrings[201]) +#endif +#ifndef DtCMediumResFontList +#define DtCMediumResFontList ((char*)&_DtStrings[216]) +#endif +#ifndef DtCPixmapPosition +#define DtCPixmapPosition ((char*)&_DtStrings[234]) +#endif +#ifndef DtRPixmapPosition +#define DtRPixmapPosition ((char*)&_DtStrings[249]) +#endif +#ifndef DtCPushArgument +#define DtCPushArgument ((char*)&_DtStrings[264]) +#endif +#ifndef DtCPushFunction +#define DtCPushFunction ((char*)&_DtStrings[277]) +#endif +#ifndef DtCStringPosition +#define DtCStringPosition ((char*)&_DtStrings[290]) +#endif +#ifndef DtRStringPosition +#define DtRStringPosition ((char*)&_DtStrings[305]) +#endif +#ifndef DtCSubpanel +#define DtCSubpanel ((char*)&_DtStrings[320]) +#endif +#ifndef DtCTitleSpacing +#define DtCTitleSpacing ((char*)&_DtStrings[329]) +#endif +#ifndef DtCTitlePosition +#define DtCTitlePosition ((char*)&_DtStrings[342]) +#endif +#ifndef DtRTitlePosition +#define DtRTitlePosition ((char*)&_DtStrings[356]) +#endif +#ifndef DtCUnderline +#define DtCUnderline ((char*)&_DtStrings[370]) +#endif +#ifndef DtNalternateImage +#define DtNalternateImage ((char*)&_DtStrings[380]) +#endif +#ifndef DtNbehavior +#define DtNbehavior ((char*)&_DtStrings[395]) +#endif +#ifndef DtNbottomInset +#define DtNbottomInset ((char*)&_DtStrings[404]) +#endif +#ifndef DtNborderType +#define DtNborderType ((char*)&_DtStrings[416]) +#endif +#ifndef DtNboxType +#define DtNboxType ((char*)&_DtStrings[427]) +#endif +#ifndef DtNbuttonLabelStrings +#define DtNbuttonLabelStrings ((char*)&_DtStrings[435]) +#endif +#ifndef DtNchime +#define DtNchime ((char*)&_DtStrings[454]) +#endif +#ifndef DtNclientTimeoutInterval +#define DtNclientTimeoutInterval ((char*)&_DtStrings[460]) +#endif +#ifndef DtNclockInterval +#define DtNclockInterval ((char*)&_DtStrings[482]) +#endif +#ifndef DtNcontrolType +#define DtNcontrolType ((char*)&_DtStrings[496]) +#endif +#ifndef DtNcursorFont +#define DtNcursorFont ((char*)&_DtStrings[508]) +#endif +#ifndef DtNdrawShadow +#define DtNdrawShadow ((char*)&_DtStrings[519]) +#endif +#ifndef DtNdropAction +#define DtNdropAction ((char*)&_DtStrings[530]) +#endif +#ifndef DtNdropCallback +#define DtNdropCallback ((char*)&_DtStrings[541]) +#endif +#ifndef DtNfileName +#define DtNfileName ((char*)&_DtStrings[554]) +#endif +#ifndef DtNfillMode +#define DtNfillMode ((char*)&_DtStrings[563]) +#endif +#ifndef DtNformat +#define DtNformat ((char*)&_DtStrings[572]) +#endif +#ifndef DtNheightIncrement +#define DtNheightIncrement ((char*)&_DtStrings[579]) +#endif +#ifndef DtNhighResFontList +#define DtNhighResFontList ((char*)&_DtStrings[595]) +#endif +#ifndef DtNimageName +#define DtNimageName ((char*)&_DtStrings[611]) +#endif +#ifndef DtNleftInset +#define DtNleftInset ((char*)&_DtStrings[621]) +#endif +#ifndef DtNlowResFontList +#define DtNlowResFontList ((char*)&_DtStrings[631]) +#endif +#ifndef DtNmediumResFontList +#define DtNmediumResFontList ((char*)&_DtStrings[646]) +#endif +#ifndef DtNmonitorTime +#define DtNmonitorTime ((char*)&_DtStrings[664]) +#endif +#ifndef DtNpixmapForeground +#define DtNpixmapForeground ((char*)&_DtStrings[676]) +#endif +#ifndef DtNpixmapBackground +#define DtNpixmapBackground ((char*)&_DtStrings[693]) +#endif +#ifndef DtNpixmapPosition +#define DtNpixmapPosition ((char*)&_DtStrings[710]) +#endif +#ifndef DtNpushArgument +#define DtNpushArgument ((char*)&_DtStrings[725]) +#endif +#ifndef DtNpushButtonClickTime +#define DtNpushButtonClickTime ((char*)&_DtStrings[738]) +#endif +#ifndef DtNpushFunction +#define DtNpushFunction ((char*)&_DtStrings[758]) +#endif +#ifndef DtNrightInset +#define DtNrightInset ((char*)&_DtStrings[771]) +#endif +#ifndef DtNstringPosition +#define DtNstringPosition ((char*)&_DtStrings[782]) +#endif +#ifndef DtNsubpanel +#define DtNsubpanel ((char*)&_DtStrings[797]) +#endif +#ifndef DtNresolution +#define DtNresolution ((char*)&_DtStrings[806]) +#endif +#ifndef DtNtitleSpacing +#define DtNtitleSpacing ((char*)&_DtStrings[817]) +#endif +#ifndef DtNtitlePosition +#define DtNtitlePosition ((char*)&_DtStrings[830]) +#endif +#ifndef DtNtitleAlignment +#define DtNtitleAlignment ((char*)&_DtStrings[844]) +#endif +#ifndef DtNtopInset +#define DtNtopInset ((char*)&_DtStrings[859]) +#endif +#ifndef DtNunderline +#define DtNunderline ((char*)&_DtStrings[868]) +#endif +#ifndef DtNuseEmbossedText +#define DtNuseEmbossedText ((char*)&_DtStrings[878]) +#endif +#ifndef DtNwaitingBlinkRate +#define DtNwaitingBlinkRate ((char*)&_DtStrings[894]) +#endif +#ifndef DtNwidthIncrement +#define DtNwidthIncrement ((char*)&_DtStrings[911]) +#endif +#ifndef DtSicon_label +#define DtSicon_label ((char*)&_DtStrings[926]) +#endif +#ifndef DtSicon_button +#define DtSicon_button ((char*)&_DtStrings[937]) +#endif +#ifndef DtSicon_toggle +#define DtSicon_toggle ((char*)&_DtStrings[949]) +#endif +#ifndef DtSicon_drag +#define DtSicon_drag ((char*)&_DtStrings[961]) +#endif +#ifndef DtSwork_area +#define DtSwork_area ((char*)&_DtStrings[971]) +#endif +#ifndef DtStitle_area +#define DtStitle_area ((char*)&_DtStrings[981]) +#endif +#ifndef DtSseparator +#define DtSseparator ((char*)&_DtStrings[992]) +#endif +#ifndef DtSbutton +#define DtSbutton ((char*)&_DtStrings[1002]) +#endif +#ifndef DtSfill_none +#define DtSfill_none ((char*)&_DtStrings[1009]) +#endif +#ifndef DtSfill_parent +#define DtSfill_parent ((char*)&_DtStrings[1019]) +#endif +#ifndef DtSfill_transparent +#define DtSfill_transparent ((char*)&_DtStrings[1031]) +#endif +#ifndef DtSfill_self +#define DtSfill_self ((char*)&_DtStrings[1048]) +#endif +#ifndef DtSpixmap_top +#define DtSpixmap_top ((char*)&_DtStrings[1058]) +#endif +#ifndef DtSpixmap_bottom +#define DtSpixmap_bottom ((char*)&_DtStrings[1069]) +#endif +#ifndef DtSpixmap_left +#define DtSpixmap_left ((char*)&_DtStrings[1083]) +#endif +#ifndef DtSpixmap_right +#define DtSpixmap_right ((char*)&_DtStrings[1095]) +#endif +#ifndef DtSstring_top +#define DtSstring_top ((char*)&_DtStrings[1108]) +#endif +#ifndef DtSstring_bottom +#define DtSstring_bottom ((char*)&_DtStrings[1119]) +#endif +#ifndef DtSstring_left +#define DtSstring_left ((char*)&_DtStrings[1133]) +#endif +#ifndef DtSstring_right +#define DtSstring_right ((char*)&_DtStrings[1145]) +#endif +#ifndef DtStitle_top +#define DtStitle_top ((char*)&_DtStrings[1158]) +#endif +#ifndef DtStitle_bottom +#define DtStitle_bottom ((char*)&_DtStrings[1168]) +#endif +#ifndef DtNmaxPixmapWidth +#define DtNmaxPixmapWidth ((char*)&_DtStrings[1181]) +#endif +#ifndef DtNmaxPixmapHeight +#define DtNmaxPixmapHeight ((char*)&_DtStrings[1196]) +#endif +#endif +extern _DtConst char _AIXJPStrings[]; +#ifndef DtNformatJP +#define DtNformatJP ((char*)&_AIXJPStrings[0]) +#endif +#ifndef DtCFormatJP +#define DtCFormatJP ((char*)&_AIXJPStrings[9]) +#endif + +/* + * Resource name mapping to Xm prefix. If Motif defines on of these + * resources, the redefined resource definition should be removed. + */ +#define XmCAlternateImage DtCAlternateImage +#define XmCBehavior DtCBehavior +#define XmRBehavior DtRBehavior +#define XmCBorderType DtCBorderType +#define XmRBorderType DtRBorderType +#define XmCBoxType DtCBoxType +#define XmRBoxType DtRBoxType +#define XmCButtonLabelStrings DtCButtonLabelStrings +#define XmCControlType DtCControlType +#define XmRControlType DtRControlType +#define XmCCursorFont DtCCursorFont +#define XmCDrawShadow DtCDrawShadow +#define XmCDropAction DtCDropAction +#define XmCDropCallback DtCDropCallback +#define XmCFillMode DtCFillMode +#define XmRFillMode DtRFillMode +#define XmCFormat DtCFormat +#define XmCHighResFontList DtCHighResFontList +#define XmCLowResFontList DtCLowResFontList +#define XmCMediumResFontList DtCMediumResFontList +#define XmCPixmapPosition DtCPixmapPosition +#define XmRPixmapPosition DtRPixmapPosition +#define XmCPushArgument DtCPushArgument +#define XmCPushFunction DtCPushFunction +#define XmCStringPosition DtCStringPosition +#define XmRStringPosition DtRStringPosition +#define XmCSubpanel DtCSubpanel +#define XmCTitleSpacing DtCTitleSpacing +#define XmCTitlePosition DtCTitlePosition +#define XmRTitlePosition DtRTitlePosition +#define XmCUnderline DtCUnderline +#define XmNalternateImage DtNalternateImage +#define XmNbehavior DtNbehavior +#define XmNbottomInset DtNbottomInset +#define XmNborderType DtNborderType +#define XmNboxType DtNboxType +#define XmNbuttonLabelStrings DtNbuttonLabelStrings +#define XmNchime DtNchime +#define XmNclientTimeoutInterval DtNclientTimeoutInterval +#define XmNclockInterval DtNclockInterval +#define XmNcontrolType DtNcontrolType +#define XmNcursorFont DtNcursorFont +#define XmNdrawShadow DtNdrawShadow +#define XmNdropAction DtNdropAction +#define XmNdropCallback DtNdropCallback +#define XmNfileName DtNfileName +#define XmNfillMode DtNfillMode +#define XmNformat DtNformat +#define XmNheightIncrement DtNheightIncrement +#define XmNhighResFontList DtNhighResFontList +#define XmNimageName DtNimageName +#define XmNleftInset DtNleftInset +#define XmNlowResFontList DtNlowResFontList +#define XmNmediumResFontList DtNmediumResFontList +#define XmNmonitorTime DtNmonitorTime +#define XmNpixmapForeground DtNpixmapForeground +#define XmNpixmapBackground DtNpixmapBackground +#define XmNmaxPixmapWidth DtNmaxPixmapWidth +#define XmNmaxPixmapHeight DtNmaxPixmapHeight +#define XmNpixmapPosition DtNpixmapPosition +#define XmNpushArgument DtNpushArgument +#define XmNpushButtonClickTime DtNpushButtonClickTime +#define XmNpushFunction DtNpushFunction +#define XmNrightInset DtNrightInset +#define XmNstringPosition DtNstringPosition +#define XmNsubpanel DtNsubpanel +#define XmNresolution DtNresolution +#define XmNtitleSpacing DtNtitleSpacing +#define XmNtitlePosition DtNtitlePosition +#define XmNtitleAlignment DtNtitleAlignment +#define XmNtopInset DtNtopInset +#define XmNunderline DtNunderline +#define XmNuseEmbossedText DtNuseEmbossedText +#define XmNwaitingBlinkRate DtNwaitingBlinkRate +#define XmNwidthIncrement DtNwidthIncrement +#define XmNformatJP DtNformatJP +#define XmCFormatJP DtCFormatJP + +/* + * String defines for converter string names. + */ +#define STR_ICON_LABEL DtSicon_label +#define STR_ICON_BUTTON DtSicon_button +#define STR_ICON_TOGGLE DtSicon_toggle +#define STR_ICON_DRAG DtSicon_drag +#define STR_WORK_AREA DtSwork_area +#define STR_TITLE_AREA DtStitle_area +#define STR_SEPARATOR DtSseparator +#define STR_BUTTON DtSbutton +#define STR_FILL_NONE DtSfill_none +#define STR_FILL_PARENT DtSfill_parent +#define STR_FILL_TRANSPARENT DtSfill_transparent +#define STR_FILL_SELF DtSfill_self +#define STR_PIXMAP_TOP DtSpixmap_top +#define STR_PIXMAP_BOTTOM DtSpixmap_bottom +#define STR_PIXMAP_LEFT DtSpixmap_left +#define STR_PIXMAP_RIGHT DtSpixmap_right +#define STR_STRING_TOP DtSstring_top +#define STR_STRING_BOTTOM DtSstring_bottom +#define STR_STRING_LEFT DtSstring_left +#define STR_STRING_RIGHT DtSstring_right +#define STR_TITLE_TOP DtStitle_top +#define STR_TITLE_BOTTOM DtStitle_bottom +#endif diff --git a/cde/include/Dt/DtosP.h b/cde/include/Dt/DtosP.h new file mode 100644 index 00000000..866da797 --- /dev/null +++ b/cde/include/Dt/DtosP.h @@ -0,0 +1,248 @@ +/* + * 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 /* 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 +#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 */ + + + + diff --git a/cde/include/Dt/DtpadM.h b/cde/include/Dt/DtpadM.h new file mode 100644 index 00000000..2ffd8c64 --- /dev/null +++ b/cde/include/Dt/DtpadM.h @@ -0,0 +1,61 @@ +/* + * 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*/ diff --git a/cde/include/Dt/Dts.h b/cde/include/Dt/Dts.h new file mode 100644 index 00000000..273dc321 --- /dev/null +++ b/cde/include/Dt/Dts.h @@ -0,0 +1,181 @@ +/* + * 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: Dts.h /main/5 1996/03/05 13:30:59 drk $ */ +/* + * (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_Dts_h +#define _Dt_Dts_h + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Constants + */ + +#define DtDTS_DC_NAME "DATA_CRITERIA" +#define DtDTS_NAME_PATTERN "NAME_PATTERN" +#define DtDTS_PATH_PATTERN "PATH_PATTERN" +#define DtDTS_CONTENT "CONTENT" +#define DtDTS_MODE "MODE" +#define DtDTS_LINK_PATH "LINK_PATH" +#define DtDTS_LINK_NAME "LINK_NAME" +#define DtDTS_DATA_ATTRIBUTES_NAME "DATA_ATTRIBUTES_NAME" + +#define DtDTS_DT_RECURSIVE_LINK "RECURSIVE_LINK" +#define DtDTS_DT_BROKEN_LINK "BROKEN_LINK" +#define DtDTS_DT_UNKNOWN "UNKNOWN" + +#define DtDTS_DA_IS_SYNTHETIC "IS_SYNTHETIC" +#define DtDTS_DA_LABEL "LABEL" +#define DtDTS_DA_NAME "DATA_ATTRIBUTES" +#define DtDTS_DA_DESCRIPTION "DESCRIPTION" +#define DtDTS_DA_DATA_HOST "DATA_HOST" +#define DtDTS_DA_ICON "ICON" +#define DtDTS_DA_INSTANCE_ICON "INSTANCE_ICON" +#define DtDTS_DA_PROPERTIES "PROPERTIES" +#define DtDTS_DA_ACTION_LIST "ACTIONS" +#define DtDTS_DA_NAME_TEMPLATE "NAME_TEMPLATE" +#define DtDTS_DA_MODE_TEMPLATE "MODE_TEMPLATE" +#define DtDTS_DA_MOVE_TO_ACTION "MOVE_TO_ACTION" +#define DtDTS_DA_COPY_TO_ACTION "COPY_TO_ACTION" +#define DtDTS_DA_LINK_TO_ACTION "LINK_TO_ACTION" +#define DtDTS_DA_IS_TEXT "IS_TEXT" +#define DtDTS_DA_MEDIA "MEDIA" +#define DtDTS_DA_MIME_TYPE "MIME_TYPE" +#define DtDTS_DA_MIME_TO_MEDIA_FILTER "MIME_TO_MEDIA_FILTER" +#define DtDTS_DA_MEDIA_TO_MIME_FILTER "MEDIA_TO_MIME_FILTER" +#define DtDTS_DA_X400_TYPE "X400_TYPE" +#define DtDTS_DA_X400_TO_MEDIA_FILTER "X400_TO_MEDIA_FILTER" +#define DtDTS_DA_MEDIA_TO_X400_FILTER "MEDIA_TO_X400_FILTER" +#define DtDTS_DA_IS_ACTION "IS_ACTION" +#define DtDTS_DA_IS_EXECUTABLE "IS_EXECUTABLE" + +#define DtDTS_DT_DIR ".DtDirDataType" + + +/* + * Types + */ + +typedef struct _DtDtsAttribute +{ + char *name; + char *value; +} DtDtsAttribute; + + +/* + * Functions + */ + +extern void DtDtsLoadDataTypes(void); +extern void DtDtsRelease(void); + +extern char *DtDtsDataToDataType( + const char *filepath, + const void *buffer, + const int size, + const struct stat *stat_buff, + const char *link_name, + const struct stat *link_stat_buff, + const char *opt_name); + +extern char *DtDtsFileToDataType( + const char *filepath); + +extern char *DtDtsFileToAttributeValue( + const char *filepath, + const char *attr); + +extern DtDtsAttribute **DtDtsFileToAttributeList( + const char *filepath); + +extern char *DtDtsBufferToDataType( + const void *buffer, + const int size, + const char *opt_name); + +extern char *DtDtsBufferToAttributeValue( + const void *buffer, + const int size, + const char *attr, + const char *opt_name); + +extern DtDtsAttribute **DtDtsBufferToAttributeList( + const void *buffer, + const int size, + const char *opt_name); + +extern char *DtDtsDataTypeToAttributeValue( + const char *datatype, + const char *attr, + const char *opt_name); + +extern DtDtsAttribute **DtDtsDataTypeToAttributeList( + const char *datatype, + const char *opt_name); + +extern void DtDtsFreeDataTypeNames( + char **namelist); + +extern void DtDtsFreeAttributeList( + DtDtsAttribute **attr_list); + +extern void DtDtsFreeAttributeValue( + char *attr_value); + +extern void DtDtsFreeDataType( + char *datatype); + +extern char **DtDtsDataTypeNames(void); + +extern char **DtDtsFindAttribute( + const char *name, + const char *value); + +extern char *DtDtsSetDataType( + const char *filepath, + const char *datatype, + const int override); + +extern int DtDtsDataTypeIsAction( + const char *datatype); + +extern Boolean DtDtsIsTrue( + const char *str); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Dts_h */ diff --git a/cde/include/Dt/DtsDb.h b/cde/include/Dt/DtsDb.h new file mode 100644 index 00000000..03fb5b2e --- /dev/null +++ b/cde/include/Dt/DtsDb.h @@ -0,0 +1,154 @@ +/* + * 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. * + */ +/* + *+SNOTICE + * + * $XConsortium: DtsDb.h /main/5 1996/08/28 14:32:17 rswiston $ + * + * RESTRICTED CONFIDENTIAL INFORMATION: + * + * The information in this document is subject to special + * restrictions in a confidential disclosure agreement bertween + * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this + * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout + * Sun's specific written approval. This documment and all copies + * and derivative works thereof must be returned or destroyed at + * Sun's request. + * + * Copyright 1993 Sun Microsystems, Inc. All rights reserved. + * + *+ENOTICE + */ +#ifndef DT_DTS_DB_H +#define DT_DTS_DB_H + +#include +#include
+ +typedef int OtBoolean; + +/* typedefs for casting comparison functions if needed */ +typedef int (*_DtDtsDbFieldCompare)(DtDtsDbField **fld1, DtDtsDbField **fld2); + +/* entry of a list of attribute/pairs */ +typedef struct +{ + XrmQuark recordName; + _DtDtsDbFieldCompare compare; + long pathId; + int seq; + int fieldCount; + DtDtsDbField **fieldList; +} DtDtsDbRecord; + +/* typedefs for casting record comparison functions if needed */ +typedef int (*_DtDtsDbRecordCompare)(DtDtsDbRecord **rec1, DtDtsDbRecord **rec2); + +/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE + This is a private Structure to the DtDtsDb component. +*/ +typedef struct +{ + char *databaseName; + _DtDtsDbRecordCompare compare; + int recordCount; + DtDtsDbRecord **recordList; + unsigned long ActionSequenceNumber; +} DtDtsDbDatabase; + +/* for the mmaped database this the use_in_memory_db variable is used + to call the old API while the database is being built and is set to + false when the mmaped versions are being accessed. +*/ + +extern int use_in_memory_db; + +/* + * adds a new database to the list of databases -- returns a pointer to the + * new database. If a database of the given name already exists it returns + * a pointer to that database. + */ +extern DtDtsDbDatabase *_DtDtsDbAddDatabase( char *dbname ); + +/* returns the handle for the database where name is the Database name */ +extern DtDtsDbDatabase *_DtDtsDbGet(char *name); +extern char **_DtDtsDbListDb(void); + +/* Record Sort function: + * sorts the specified database, usually obtained from _DtDtsDbGet(), in the + * order specified by the comparison function. If (*compare) == 0 then + * _DtDtsDbCompareRecordNames() is used as the (*compare) function. + */ +extern void _DtDtsDbRecordSort(DtDtsDbDatabase *database, + _DtDtsDbRecordCompare compare); +/* Field Sort function: + * sorts the specified Record in the order specified by the comparison function + * If (*compare) == 0 then _DtDtsDbCompareFieldNames() is used as the + * (*compare) function. + */ +extern void _DtDtsDbFieldSort(DtDtsDbRecord *record, + _DtDtsDbFieldCompare compare); + +/* Name Comparison functions: + * These routines can be passed in to the corresponding sort function to + * sort by name. + * + */ +extern int _DtDtsDbCompareRecordNames(DtDtsDbRecord **entry1, DtDtsDbRecord **entry2); +extern int _DtDtsDbCompareFieldNames(DtDtsDbField **entry1, DtDtsDbField **entry2); + +/* retrieves the Record that matches the specified entry from the record */ +extern DtDtsDbField *_DtDtsDbGetField(DtDtsDbRecord *record, + char *value); + +/* retrieves the entry of the specified entry from the specified database */ +extern DtDtsDbRecord *_DtDtsDbGetRecord(DtDtsDbDatabase *database, + DtDtsDbRecord *value); + +/* Get By Name functions: + * retrieves the entry of the specified name from the specified database + * ** IF ** the _DtDtsDb*Sort routine has been called with the corresponding + * _DtDtsDbCompare*Name comparison function. Otherwise use the standard + * _DtDtsDbGet* functions. +*/ +extern char *_DtDtsDbGetFieldByName(DtDtsDbRecord *record, char *name); +extern DtDtsDbRecord *_DtDtsDbGetRecordByName(DtDtsDbDatabase *database, char *name); + +extern DtDtsDbRecord *_DtDtsDbAddRecord(DtDtsDbDatabase *db); + +extern DtDtsDbField *_DtDtsDbAddField(DtDtsDbRecord *rec); + +extern int _DtDtsDbDeleteDb(DtDtsDbDatabase *db); +extern int _DtDtsDbDeleteRecord(DtDtsDbRecord *rec, DtDtsDbDatabase *db); +extern int _DtDtsDbDeleteRecords(DtDtsDbDatabase *db); +extern int _DtDtsDbDeleteField(DtDtsDbField *fld, DtDtsDbRecord *rec); +extern int _DtDtsDbDeleteFields(DtDtsDbRecord *rec); + +#endif + diff --git a/cde/include/Dt/DtsMM.h b/cde/include/Dt/DtsMM.h new file mode 100644 index 00000000..48ad0cf5 --- /dev/null +++ b/cde/include/Dt/DtsMM.h @@ -0,0 +1,174 @@ +/* + * 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: DtsMM.h /main/8 1996/08/28 14:27:26 rswiston $ */ +/* + * + * RESTRICTED CONFIDENTIAL INFORMATION: + * + * + * Copyright 1993 Sun Microsystems, Inc. All rights reserved. + * + *+ENOTICE + */ +#ifndef DT_DTS_MM_H +#define DT_DTS_MM_H + +#include +#include
+#include +#include "Dt/DbReader.h" + +#define DTDTSDB_TMPDATABASENAME "%s/.dt/.tmp_dt_db_cache.%s\0" +#define DTDTSDB_DATABASENAME "%s/.dt/.dt_db_cache.%s\0" +#define _DTDTSMMTEMPFILE "dtdbcache_" + +/* + * NOTE: _DTDTSMMTEMPDIR affects the location of the dtdbcache + * file, and therefore affects the Xsession.src, Xreset.src, and + * Xstartup.src scripts in dtlogin/config. + */ +#define _DTDTSMMTEMPDIR "/tmp" + +typedef int DtDtsMMSeqNo; /* the order it occures in db */ +typedef int DtDtsMMFieldCount; /* number of fields in record */ +typedef int DtDtsMMRecordCount; /* number of records in field */ +typedef int DtDtsMMDataBaseCount; /* how many databases */ +typedef int DtDtsMMFieldStart; /* index in table where field list starts */ +typedef int DtDtsMMRecordStart; /* index in table where record list starts */ +typedef int DtDtsMMDataBaseStart; /* index in table where database list starts */ +typedef int DtDtsMMIndexOffset; +typedef int DtDtsMMNameIndex; +typedef int DtDtsMMPathHash; + +typedef struct +{ + DtDtsMMPathHash pathhash; /* hash of dir. we visit */ + DtDtsMMDataBaseCount num_db; /* number of databases */ + DtDtsMMDataBaseStart db_offset; /* index to databases */ + DtDtsMMNameIndex name_list_offset; /* index to name list */ + DtDtsMMNameIndex no_name_offset; /* index to nonunique names */ + DtDtsMMNameIndex buffer_start_index; /* index to list of buffers */ + DtDtsMMIndexOffset str_tbl_offset; /* index to table of strings */ + DtDtsMMIndexOffset files_count; /* number of loaded files */ + DtDtsMMIndexOffset files_offset; /* index to list of loaded files */ + DtDtsMMIndexOffset mtimes_offset; /* index to modified times of files */ +} DtDtsMMHeader; + +/* one set of attribute/pair */ +typedef struct +{ + DtShmBoson fieldName; /* name of attribute */ + DtShmBoson fieldValue; /* value of attribute */ +} DtDtsMMField; + +/* typedefs for casting comparison functions if needed */ +typedef int (*_DtDtsMMFieldCompare)(DtDtsMMField *fld1, DtDtsMMField *fld2); + +/* entry of a list of attribute/pairs */ +typedef struct +{ + DtShmBoson recordName; /* name of this entry */ + DtShmBoson pathId; /* file entry is located in */ + DtDtsMMSeqNo seq; /* sequence this got loaded */ + DtDtsMMFieldCount fieldCount; /* number of fields in record */ + DtDtsMMFieldStart fieldList; /* index to field table */ +} DtDtsMMRecord; + +/* typedefs for casting record comparison functions if needed */ +typedef int (*_DtDtsMMRecordCompare)(DtDtsMMRecord *rec1, DtDtsMMRecord *rec2); + +/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE + This is a private Structure to the DtDtsMM component. +*/ +typedef struct +{ + DtShmBoson databaseName; /* name of database */ + DtDtsMMIndexOffset nameIndex; /* index for DataCriteria quick find */ + DtDtsMMRecordCount recordCount; /* number of records */ + DtDtsMMRecordStart recordList; /* index to records table */ +} DtDtsMMDatabase; + + +/* Db Internal pointers */ +int * _DtDtsMMGetDCNameIndex(int *size); +int * _DtDtsMMGetBufferIndex(int *size); +int * _DtDtsMMGetNoNameIndex(int *size); +void * _DtDtsMMGetPtr(int index); +DtShmInttab _DtDtsMMGetFileList(void); +int _DtDtsMMGetPtrSize(int index); +int _DtDtsMMInit(int); +void _DtDtsMMPrint(FILE *org_fd); +int _DtDtsMMCreateDb(DtDirPaths *dirs, const char *CacheFile, int override); +int _DtDtsMMCreateFile(DtDirPaths *dirs, const char *CacheFile); +char * _DtDtsMMCacheName(int); +int _DtDtsMMapDB(const char *CacheFile); + +const char * _DtDtsMMBosonToString(DtShmBoson boson); +DtShmBoson _DtDtsMMStringToBoson(const char *string); + +extern int use_in_memory_db; + + +/* returns the handle for the database where name is the Database name */ +extern DtDtsMMDatabase *_DtDtsMMGet(const char *name); +extern char **_DtDtsMMListDb(void); + +/* FIXME: document */ +extern int *_DtDtsMMGetDbName(DtDtsMMDatabase *db, DtShmBoson boson); + + +/* Name Comparison functions: + * These routines can be passed in to the corresponding sort function to + * sort by name. + * + */ +extern int _DtDtsMMCompareRecordNames(DtDtsMMRecord *entry1, DtDtsMMRecord *entry2); +extern int _DtDtsMMCompareFieldNames(DtDtsMMField *entry1, DtDtsMMField *entry2); + +/* retrieves the Record that matches the specified entry from the record */ +extern DtDtsMMField *_DtDtsMMGetField(DtDtsMMRecord *record, + const char *value); +extern const char *_DtDtsMMGetFieldByName(DtDtsMMRecord *rec, const char *name); + +/* retrieves the entry of the specified entry from the specified database */ +extern DtDtsMMRecord *_DtDtsMMGetRecord(DtDtsMMDatabase *database, + DtDtsMMRecord *value); +extern DtDtsMMRecord *_DtDtsMMGetRecordByName(DtDtsMMDatabase *database, + const char *value); + +/* Get By Name functions: + * retrieves the entry of the specified name from the specified database + * ** IF ** the _DtDtsMM*Sort routine has been called with the corresponding + * _DtDtsMMCompare*Name comparison function. Otherwise use the standard + * _DtDtsMMGet* functions. +*/ + + +char * _DtDtsMMExpandValue(const char *value); +void _DtDtsMMSafeFree(char *value); +int _DtDtsMMIsMemory(const char *value); + +extern DtShmBoson _DtDtsMMNameStringToBoson(const char *string); + + +#endif /* DT_DTS_MM_H */ diff --git a/cde/include/Dt/Editor.h b/cde/include/Dt/Editor.h new file mode 100644 index 00000000..01e2b866 --- /dev/null +++ b/cde/include/Dt/Editor.h @@ -0,0 +1,616 @@ +/* + * 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: Editor.h /main/3 1995/10/26 09:32: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. + */ + +#ifndef _Dt_Editor_h +#define _Dt_Editor_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Sources of Help requests */ +/* Used with XmNhelpCallback */ + +#define DtEDITOR_HELP_EDIT_WINDOW 1 +#define DtEDITOR_HELP_STATUS_LINE 2 +#define DtEDITOR_HELP_STATUS_CURRENT_LINE 3 +#define DtEDITOR_HELP_STATUS_TOTAL_LINES 4 +#define DtEDITOR_HELP_STATUS_MESSAGE 5 +#define DtEDITOR_HELP_STATUS_OVERSTRIKE 6 +#define DtEDITOR_HELP_FORMAT_DIALOG 7 +#define DtEDITOR_HELP_FORMAT_LEFT_MARGIN 8 +#define DtEDITOR_HELP_FORMAT_RIGHT_MARGIN 9 +#define DtEDITOR_HELP_FORMAT_ALIGNMENT 10 +#define DtEDITOR_HELP_CHANGE_DIALOG 11 +#define DtEDITOR_HELP_CHANGE_FIND 12 +#define DtEDITOR_HELP_CHANGE_CHANGE 13 +#define DtEDITOR_HELP_SPELL_DIALOG 14 +#define DtEDITOR_HELP_SPELL_MISSPELLED_WORDS 15 +#define DtEDITOR_HELP_SPELL_CHANGE 16 + +/* Specifies the last line in the edit area */ +/* Used with DtEditorGoToLine */ +#define DtEDITOR_LAST_LINE -999 + +/* Resource constants */ + +#ifndef DtNautoShowCursorPosition +#define DtNautoShowCursorPosition XmNautoShowCursorPosition +#endif +#ifndef DtCAutoShowCursorPosition +#define DtCAutoShowCursorPosition XmCAutoShowCursorPosition +#endif +#ifndef DtNblinkRate +#define DtNblinkRate XmNblinkRate +#endif +#ifndef DtCBlinkRate +#define DtCBlinkRate XmCBlinkRate +#endif +#ifndef DtNbuttonFontList +#define DtNbuttonFontList XmNbuttonFontList +#endif +#ifndef DtCFontList +#define DtCFontList XmCFontList +#endif +#ifndef DtNcenterToggleLabel +#define DtNcenterToggleLabel "centerToggleLabel" +#endif +#ifndef DtCCenterToggleLabel +#define DtCCenterToggleLabel "CenterToggleLabel" +#endif +#ifndef DtNchangeAllButtonLabel +#define DtNchangeAllButtonLabel "changeAllButtonLabel" +#endif +#ifndef DtCChangeAllButtonLabel +#define DtCChangeAllButtonLabel "ChangeAllButtonLabel" +#endif +#ifndef DtNchangeButtonLabel +#define DtNchangeButtonLabel "changeButtonLabel" +#endif +#ifndef DtCChangeButtonLabel +#define DtCChangeButtonLabel "ChangeButtonLabel" +#endif +#ifndef DtNchangeFieldLabel +#define DtNchangeFieldLabel "changeFieldLabel" +#endif +#ifndef DtCChangeFieldLabel +#define DtCChangeFieldLabel "ChangeFieldLabel" +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtNcurrentLineLabel +#define DtNcurrentLineLabel "currentLineLabel" +#endif +#ifndef DtCCurrentLineLabel +#define DtCCurrentLineLabel "CurrentLineLabel" +#endif +#ifndef DtNcursorPosition +#define DtNcursorPosition XmNcursorPosition +#endif +#ifndef DtCCursorPosition +#define DtCCursorPosition XmCCursorPosition +#endif +#ifndef DtNcursorPositionVisible +#define DtNcursorPositionVisible XmNcursorPositionVisible +#endif +#ifndef DtCCursorPositionVisible +#define DtCCursorPositionVisible XmCCursorPositionVisible +#endif +#ifndef DtNdialogTitle +#define DtNdialogTitle "dialogTitle" +#endif +#ifndef DtCDialogTitle +#define DtCDialogTitle XmCDialogTitle +#endif +#ifndef DtNeditable +#define DtNeditable XmNeditable +#endif +#ifndef DtCEditable +#define DtCEditable XmCEditable +#endif +#ifndef DtNfindButtonLabel +#define DtNfindButtonLabel "findButtonLabel" +#endif +#ifndef DtCFindButtonLabel +#define DtCFindButtonLabel "FindButtonLabel" +#endif +#ifndef DtNfindChangeDialogTitle +#define DtNfindChangeDialogTitle "findChangeDialogTitle" +#endif +#ifndef DtCFindChangeDialogTitle +#define DtCFindChangeDialogTitle "FindChangeDialogTitle" +#endif +#ifndef DtNfindFieldLabel +#define DtNfindFieldLabel "findFieldLabel" +#endif +#ifndef DtCFindFieldLabel +#define DtCFindFieldLabel "FindFieldLabel" +#endif +#ifndef DtNformatAllButtonLabel +#define DtNformatAllButtonLabel "formatAllButtonLabel" +#endif +#ifndef DtCFormatAllButtonLabel +#define DtCFormatAllButtonLabel "FormatAllButtonLabel" +#endif +#ifndef DtNformatParagraphButtonLabel +#define DtNformatParagraphButtonLabel "formatParagraphButtonLabel" +#endif +#ifndef DtCFormatParagraphButtonLabel +#define DtCFormatParagraphButtonLabel "FormatParagraphButtonLabel" +#endif +#ifndef DtNformatSettingsDialogTitle +#define DtNformatSettingsDialogTitle "formatSettingsDialogTitle" +#endif +#ifndef DtCFormatSettingsDialogTitle +#define DtCFormatSettingsDialogTitle "FormatSettingsDialogTitle" +#endif +#ifndef DtNinformationDialogTitle +#define DtNinformationDialogTitle "informationDialogTitle" +#endif +#ifndef DtCInformationDialogTitle +#define DtCInformationDialogTitle "InformationDialogTitle" +#endif +#ifndef DtNinsertLabel +#define DtNinsertLabel "insertLabel" +#endif +#ifndef DtCInsertLabel +#define DtCInsertLabel "InsertLabel" +#endif +#ifndef DtNjustifyToggleLabel +#define DtNjustifyToggleLabel "justifyToggleLabel" +#endif +#ifndef DtCJustifyToggleLabel +#define DtCJustifyToggleLabel "JustifyToggleLabel" +#endif +#ifndef DtNlabelFontList +#define DtNlabelFontList XmNlabelFontList +#endif +#ifndef DtNleftAlignToggleLabel +#define DtNleftAlignToggleLabel "leftAlignToggleLabel" +#endif +#ifndef DtCLeftAlignToggleLabel +#define DtCLeftAlignToggleLabel "LeftAlignToggleLabel" +#endif +#ifndef DtNleftMarginFieldLabel +#define DtNleftMarginFieldLabel "leftMarginFieldLabel" +#endif +#ifndef DtCLeftMarginFieldLabel +#define DtCLeftMarginFieldLabel "LeftMarginFieldLabel" +#endif +#ifndef DtNmaxLength +#define DtNmaxLength XmNmaxLength +#endif +#ifndef DtCMaxLength +#define DtCMaxLength XmCMaxLength +#endif +#ifndef DtNmisspelledListLabel +#define DtNmisspelledListLabel "misspelledListLabel" +#endif +#ifndef DtCMisspelledListLabel +#define DtCMisspelledListLabel "MisspelledListLabel" +#endif +#ifndef DtNoverstrike +#define DtNoverstrike "overstrike" +#endif +#ifndef DtCOverstrike +#define DtCOverstrike "Overstrike" +#endif +#ifndef DtNoverstrikeLabel +#define DtNoverstrikeLabel "overstrikeLabel" +#endif +#ifndef DtCOverstrikeLabel +#define DtCOverstrikeLabel "OverstrikeLabel" +#endif +#ifndef DtNrightAlignToggleLabel +#define DtNrightAlignToggleLabel "rightAlignToggleLabel" +#endif +#ifndef DtCRightAlignToggleLabel +#define DtCRightAlignToggleLabel "RightAlignToggleLabel" +#endif +#ifndef DtNrightMarginFieldLabel +#define DtNrightMarginFieldLabel "rightMarginFieldLabel" +#endif +#ifndef DtCRightMarginFieldLabel +#define DtCRightMarginFieldLabel "RightMarginFieldLabel" +#endif +#ifndef DtNrows +#define DtNrows XmNrows +#endif +#ifndef DtCRows +#define DtCRows XmCRows +#endif +#ifndef DtNscrollHorizontal +#define DtNscrollHorizontal XmNscrollHorizontal +#endif +#ifndef DtCScroll +#define DtCScroll XmCScroll +#endif +#ifndef DtNscrollLeftSide +#define DtNscrollLeftSide XmNscrollLeftSide +#endif +#ifndef DtCScrollSide +#define DtCScrollSide XmCScrollSide +#endif +#ifndef DtNscrollTopSide +#define DtNscrollTopSide XmNscrollTopSide +#endif +#ifndef DtNscrollVertical +#define DtNscrollVertical XmNscrollVertical +#endif +#ifndef DtNshowStatusLine +#define DtNshowStatusLine "showStatusLine" +#endif +#ifndef DtCShowStatusLine +#define DtCShowStatusLine "ShowStatusLine" +#endif +#ifndef DtNspellDialogTitle +#define DtNspellDialogTitle "spellDialogTitle" +#endif +#ifndef DtCSpellDialogTitle +#define DtCSpellDialogTitle "SpellDialogTitle" +#endif +#ifndef DtNspellFilter +#define DtNspellFilter "spellFilter" +#endif +#ifndef DtCSpellFilter +#define DtCSpellFilter "SpellFilter" +#endif +#ifndef DtNtextBackground +#define DtNtextBackground "textBackground" +#endif +#ifndef DtCBackground +#define DtCBackground XmCBackground +#endif +#ifndef DtNtextDeselectCallback +#define DtNtextDeselectCallback "textDeselectCallback" +#endif +#ifndef DtNtextFontList +#define DtNtextFontList XmNtextFontList +#endif +#ifndef DtNtextForeground +#define DtNtextForeground "textForeground" +#endif +#ifndef DtCForeground +#define DtCForeground XmCForeground +#endif +#ifndef DtNtextSelectCallback +#define DtNtextSelectCallback "textSelectCallback" +#endif +#ifndef DtNtextTranslations +#define DtNtextTranslations XmNtextTranslations +#endif +#ifndef DtCTranslations +#define DtCTranslations XmCTranslations +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtNtopCharacter +#define DtNtopCharacter XmNtopCharacter +#endif +#ifndef DtCTopCharacter +#define DtCTopCharacter XmCTopCharacter +#endif +#ifndef DtNtotalLineCountLabel +#define DtNtotalLineCountLabel "totalLineCountLabel" +#endif +#ifndef DtCTotalLineCountLabel +#define DtCTotalLineCountLabel "TotalLineCountLabel" +#endif +#ifndef DtNwordWrap +#define DtNwordWrap XmNwordWrap +#endif +#ifndef DtCWordWrap +#define DtCWordWrap XmCWordWrap +#endif + +#ifndef DtEditorHelpCallbackStruct +#define DtEditorHelpCallbackStruct XmAnyCallbackStruct +#endif +#ifndef DtEditorSelectCallbackStruct +#define DtEditorSelectCallbackStruct XmAnyCallbackStruct +#endif +#ifndef DtEditorDeselectCallbackStruct +#define DtEditorDeselectCallbackStruct XmAnyCallbackStruct +#endif + + +/* Used with DtEditorChange() */ + +enum { + DtEDITOR_CURRENT_SELECTION, + DtEDITOR_NEXT_OCCURRENCE, + DtEDITOR_ALL_OCCURRENCES +}; + +/* Used with DtEditorFormat() */ + +enum { + DtEDITOR_FORMAT_ALL, + DtEDITOR_FORMAT_PARAGRAPH +}; + +enum { + DtEDITOR_ALIGN_CENTER, + DtEDITOR_ALIGN_JUSTIFY, + DtEDITOR_ALIGN_LEFT, + DtEDITOR_ALIGN_RIGHT +}; + +/* Used with DtNtextSelectCallback */ +enum { + DtEDITOR_TEXT_SELECT, + DtEDITOR_TEXT_DESELECT +}; + +/* + * Types + */ + +typedef enum _DtEditorErrorCode{ + DtEDITOR_NO_ERRORS, + DtEDITOR_INVALID_TYPE, + DtEDITOR_INVALID_RANGE, + DtEDITOR_NULL_ITEM, + DtEDITOR_ILLEGAL_SIZE, + DtEDITOR_SPELL_FILTER_FAILED, + DtEDITOR_NO_TMP_FILE, + DtEDITOR_INVALID_FILENAME, + DtEDITOR_NONEXISTENT_FILE, + DtEDITOR_UNREADABLE_FILE, + DtEDITOR_READ_ONLY_FILE, + DtEDITOR_NO_FILE_ACCESS, + DtEDITOR_DIRECTORY, + DtEDITOR_CHAR_SPECIAL_FILE, + DtEDITOR_BLOCK_MODE_FILE, + DtEDITOR_UNWRITABLE_FILE, + DtEDITOR_WRITABLE_FILE, + DtEDITOR_SAVE_FAILED, + DtEDITOR_INSUFFICIENT_MEMORY, + DtEDITOR_NULLS_REMOVED +} DtEditorErrorCode; + + +/* Used with DtEditorChange() to specify Find and Change To strings */ + +typedef struct _DtEditorChangeValues { + char *find; + char *changeTo; +} DtEditorChangeValues; + +/* Used with DtEditorFormat() to specify left margin, right margin * + * and justification styles. */ + +typedef struct _DtEditorFormatSettings { + int leftMargin; + int rightMargin; + unsigned int alignment; +} DtEditorFormatSettings; + +/* Types used to tag data to/from the editor widget */ + +typedef enum _DtEditorDataFormat{ + DtEDITOR_TEXT, + DtEDITOR_WCHAR, + DtEDITOR_DATA +} DtEditorDataFormat; + + +/* Types used to pass data to/from the editor widget */ + +typedef struct _DtEditor_DataObj { + unsigned int length; + void *buf; +} DtEditor_DataObj; + +typedef struct _DtEditorContentRec { + DtEditorDataFormat type; + union { + char *string; + wchar_t *wchar; + DtEditor_DataObj data; + } value; +} DtEditorContentRec; + + +/* Widget class and instance */ + +typedef struct _DtEditorClassRec *DtEditorClass; +typedef struct _DtEditorRec *DtEditorWidget; + + +/* + * Data + */ + +/* Widget class */ + +externalref WidgetClass dtEditorWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateEditor( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern DtEditorErrorCode DtEditorAppend( + Widget widget, + DtEditorContentRec *data); + +extern DtEditorErrorCode DtEditorAppendFromFile( + Widget widget, + char *fileName); + +extern Boolean DtEditorChange( + Widget widget, + DtEditorChangeValues *findChangeStrings, + unsigned int instanceToChange); + +extern Boolean DtEditorCheckForUnsavedChanges( + Widget widget); + +extern Boolean DtEditorClearSelection( + Widget widget); + +extern Boolean DtEditorCopyToClipboard( + Widget widget); + +extern Boolean DtEditorCutToClipboard( + Widget widget); + +extern Boolean DtEditorDeleteSelection( + Widget widget); + +extern Boolean DtEditorDeselect( + Widget widget); + +extern void DtEditorDisableRedisplay( + Widget widget); + +extern void DtEditorEnableRedisplay( + Widget widget); + +extern Boolean DtEditorFind( + Widget widget, + char * find); + +extern DtEditorErrorCode DtEditorFormat( + Widget widget, + DtEditorFormatSettings *formatSettings, + unsigned int amountToFormat); + +extern DtEditorErrorCode DtEditorGetContents( + Widget widget, + DtEditorContentRec *data, + Boolean hardCarriageReturns, + Boolean markContentsAsSaved); + +extern XmTextPosition DtEditorGetInsertionPosition( + Widget widget); + +extern XmTextPosition DtEditorGetLastPosition( + Widget widget); + +extern Widget DtEditorGetMessageTextFieldID( + Widget widget); + +extern void DtEditorGetSizeHints( + Widget widget, + XSizeHints *pHints); + +extern void DtEditorGoToLine( + Widget widget, + int lineNumber); + +extern DtEditorErrorCode DtEditorInsert( + Widget widget, + DtEditorContentRec *data); + +extern DtEditorErrorCode DtEditorInsertFromFile( + Widget widget, + char *fileName); + +extern void DtEditorInvokeFindChangeDialog( + Widget widget); + +extern void DtEditorInvokeFormatDialog( + Widget widget); + +extern DtEditorErrorCode DtEditorInvokeSpellDialog( + Widget widget); + +extern Boolean DtEditorPasteFromClipboard( + Widget widget); + +extern DtEditorErrorCode DtEditorReplace( + Widget widget, + XmTextPosition startPos, + XmTextPosition endPos, + DtEditorContentRec *data); + +extern DtEditorErrorCode DtEditorReplaceFromFile( + Widget widget, + XmTextPosition startPos, + XmTextPosition endPos, + char *fileName); + +extern void DtEditorReset( + Widget widget); + +extern DtEditorErrorCode DtEditorSaveContentsToFile( + Widget widget, + char *fileName, + Boolean overwriteIfExists, + Boolean hardCarriageReturns, + Boolean markContentsAsSaved); + +extern Boolean DtEditorSelectAll( + Widget widget); + +extern DtEditorErrorCode DtEditorSetContents( + Widget widget, + DtEditorContentRec *data); + +extern DtEditorErrorCode DtEditorSetContentsFromFile( + Widget widget, + char *fileName); + +extern void DtEditorSetInsertionPosition( + Widget widget, + XmTextPosition position); + +extern void DtEditorTraverseToEditor( + Widget widget); + +extern Boolean DtEditorUndoEdit( + Widget widget); + + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Editor_h */ diff --git a/cde/include/Dt/EditorP.h b/cde/include/Dt/EditorP.h new file mode 100644 index 00000000..c727df63 --- /dev/null +++ b/cde/include/Dt/EditorP.h @@ -0,0 +1,710 @@ +/* + * 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: EditorP.h /main/4 1996/06/19 11:28:20 cde-dec $ */ +/**********************************<+>************************************* +*************************************************************************** +** +** File: EditorP.h +** +** Project: DtEditor widget +** +** Description: +** ----------- +** Private include file for the DtEditor widget, text editor class. +** +******************************************************************* +* +* (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 _DtEditorP_h +#define _DtEditorP_h + +#include
+ +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include + +#include "MacrosP.h" +#include
+ +#ifdef SENTINEL +#include +#endif /* SENTINEL */ + + +/**************************************************************** + * + * Defines + * + ****************************************************************/ + +#define READ_ACCESS 1 +#define WRITE_ACCESS 2 + +#define REPLACE 0 +#define FIND 1 +#define SPELL 2 + +#define UNKNOWN_ACTION -1 +#define EXTEND_SELECTION 0 +#define ICON_FOCUSED 1 + +#define NO_DELETION_IN_PROGRESS -999 + +#ifndef DtUNSPECIFIED +#define DtUNSPECIFIED (~0) +#endif + + +#define CLOSE_BUTTON DTWIDGET_GETMESSAGE( \ + MS_Common, MSG_CLOSE, _DtMsgCommon_0000) + +#define HELP_BUTTON DTWIDGET_GETMESSAGE( \ + MS_Common, MSG_HELP, _DtMsgCommon_0001) + +#define FORMAT_SETTINGS DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FORMAT_SETTINGS, _DtMsgEditor_0000) + +#define RIGHT_MARGIN DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_RIGHT_MARGIN, _DtMsgEditor_0001) + +#define LEFT_MARGIN DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_LEFT_MARGIN, _DtMsgEditor_0002) + +#define LEFT_ALIGN DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_LEFT_ALIGN, _DtMsgEditor_0003) + +#define RIGHT_ALIGN DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_RIGHT_ALIGN, _DtMsgEditor_0004) + +#define JUSTIFY DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_JUSTIFY, _DtMsgEditor_0005) + +#define CENTER DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_CENTER, _DtMsgEditor_0006) + +#define PARAGRAPH DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_PARAGRAPH, _DtMsgEditor_0007) + +#define ALL DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_ALL, _DtMsgEditor_0008) + +#define SPELL_TITLE DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_SPELL_TITLE, _DtMsgEditor_0009) + +#define FIND_TITLE DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FIND_TITLE, _DtMsgEditor_0010) + +#define MISSPELLED DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_MISSPELLED, _DtMsgEditor_0011) + +#define FIND_LABEL DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FIND_LABEL, _DtMsgEditor_0012) + +#define CHANGE_LABEL DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_CHANGE_LABEL, _DtMsgEditor_0013) + +#define FIND_BUTTON DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FIND_BUTTON, _DtMsgEditor_0014) + +#define CHANGE_BUTTON DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_CHANGE_BUTTON, _DtMsgEditor_0015) + +#define CHNG_ALL_BUTTON DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_CHNG_ALL_BUTTON, _DtMsgEditor_0016) + +#define NO_FIND DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_NO_FIND, _DtMsgEditor_0017) + +#define INFO_TITLE DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_INFO_TITLE, _DtMsgEditor_0018) + +#define LINE DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_LINE, _DtMsgEditor_0019) + +#define TOTAL DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_TOTAL, _DtMsgEditor_0020) + +#define OVR DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_OVR, _DtMsgEditor_0021) + +#define INS DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_INS, _DtMsgEditor_0022) + +#define BAD_FILTER DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FILTER_ERROR, _DtMsgEditor_0023) + +#define BAD_FILTER2 DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_FILTER_ERROR2, _DtMsgEditor_0024) + +#define ERROR_TITLE DTWIDGET_GETMESSAGE( \ + MS_Editor, EDITOR_ERROR_TITLE, _DtMsgEditor_0025) + + +/**************************************************************** + * + * Structures + * + ****************************************************************/ + +typedef struct _AdjRec { + int bflag; /* -b (blanks) option */ + int cflag; /* -c (center) option */ + int jflag; /* -j (justify) option */ + int rflag; /* -r (right justify) */ + int tabsize; /* tab size in use */ + long margin; + FILE *infp; /* file pointer for unformatted data */ + FILE *outfp; /* file pointer for formatted data */ +} AdjRec, *AdjRecPtr; + + +/**************************************************************** + * + * Deleted text structure definition + * + ****************************************************************/ +typedef struct _DtEditorUndoRec { + char *deletedText; + XmTextPosition deletionStart; + XmTextPosition insertStart; + int insertionLength; +} DtEditorUndoRec; + +/**************************************************************** + * + * Data structures for miscellaneous edit information + * + ****************************************************************/ +typedef struct _DtEditorEditStuff +{ + int blinkRate, + maxLength; + short columns, rows; + XmTextPosition cursorPos, + topCharacter; + Boolean autoShowCursorPos, + cursorPosVisible, + editable, + overstrikeMode, + scrollHorizontal, + scrollLeft, + scrollTop, + scrollVertical, + wordWrap; + Pixel background, + foreground; + int fontWidth, /* widest font, used for formatting */ + fontHeight; /* font height; used for WM size hints */ + + DtEditorUndoRec undo; /* holds deleted text for undo */ + + Boolean loadingAllNewData, + unreadChanges; /* Data changed since read by app? */ + + SetSelectionProc setSelection; +} DtEditorEditStuff; + +/**************************************************************** + * + * Data structures for Search + * + ****************************************************************/ +typedef struct _DtEditorSearchWidgets { + Widget formDlg, + listLbl, + spellList, + findLbl, + findText, + replaceLbl, + replaceText, + separator, + findBtn, + replaceBtn, + replaceAllBtn, + closeBtn, + helpBtn; +} DtEditorSearchWidgets; + +typedef struct _DtEditorSearchStuff { + DtEditorSearchWidgets widgets; + int search_dialog_mode; + char *search_string, /* last string searched for */ + *replace_string, /* last replacement string */ + *misspelled_string, /* last misspelled word selected */ + *spellFilter; + Boolean misspelled_found; + Dimension buttonHeight; + XmString spellTitle, + fndChngTitle, + changeAllButtonLabel, + changeButtonLabel, + changeFieldLabel, + findButtonLabel, + findFieldLabel, + misspelledListLabel; +} DtEditorSearchStuff; + +/**************************************************************** + * + * Data structures for Format + * + ****************************************************************/ +typedef struct _DtEditorFormatWidgets { + Widget format_dialog, + right_label, + left_label, + rightMargField, /* format right margin text field */ + leftMargField, /* format left margin text field */ + radio_box, + left_just, /* format type toggle button */ + right_just, /* format type toggle button */ + both_just, /* format type toggle button */ + center, /* format type toggle button */ + separator, + paragraph, + all, + close, + help; +} DtEditorFormatWidgets; + +typedef struct _DtEditorFormatStuff { + DtEditorFormatWidgets widgets; + XmString centerToggleLabel, + formatAllButtonLabel, + formatParaButtonLabel, + formatDialogTitle, + justifyToggleLabel, + leftAlignToggleLabel, + leftMarginFieldLabel, + rightAlignToggleLabel, + rightMarginFieldLabel; +} DtEditorFormatStuff; + + +/**************************************************************** + * + * Data structures for the Status Line + * + ****************************************************************/ + +typedef struct _status { + Boolean showStatusLine; + int currentLine, + lastLine; + XmString ovr, + ins, + currentLineLabel, + totalLineLabel; + Widget statusArea, + lineLabel, + lineText, + totalLabel, + totalText, + overstrikeLabel, + messageText; +} DtEditorStatusStuff; + +/**************************************************************** + * + * Data structures for holding warning dialogs + * + ****************************************************************/ + +typedef struct _textlibwarning { + Widget warningDialog; + XmString infoDialogTitle; +} DtEditorWarningStuff; + + +/**************************************************************** + * + * Class Part structure definition + * + ****************************************************************/ +typedef struct _DtEditorClassPart +{ + int ignore; +} DtEditorClassPart; + + +/**************************************************************** + * + * Full Class Record declaration + * + ****************************************************************/ +typedef struct _DtEditorClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + XmFormClassPart form_class; + DtEditorClassPart editor_class; +} DtEditorClassRec; + +externalref DtEditorClassRec dtEditorClassRec; + + +/**************************************************************** + * + * Resources added by the Editor widget + * + ****************************************************************/ +typedef struct _DtEditorPart +{ + Display *display; + Widget topLevelShell, + /* + * scrolled text widget + */ + text; + Dimension width; /* the text widget width */ + + /* All data for Edit functions */ + DtEditorEditStuff editStuff; + /* All data for Search functions */ + DtEditorSearchStuff searchStuff; + /* All data for Format functions */ + DtEditorFormatStuff formatStuff; + /* All data for warning dialogs functions */ + DtEditorWarningStuff warningStuff; + /* All data for the status line */ + DtEditorStatusStuff statusStuff; + + XtAppContext app_context; + + /* + * The editor widget's callbacks + */ + + Boolean textSelectCbCalled; + XtCallbackList textSelect; + XtCallbackList textDeselect; + +} DtEditorPart; + + +/**************************************************************** + * + * Full Instance Record declaration + * + ****************************************************************/ +typedef struct _DtEditorRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + XmFormPart form; + DtEditorPart editor; +} DtEditorRec; + + +/**************************************************************** + * + * MACRO DEFINITIONS + * + ****************************************************************/ + +/* + * Class and Instance Macros + */ + +/* + * Note: DtEditor utilizes the bulletin board's dialog_title and + * text_translations fields to hold its dialogTitle and textTranslations + * resources + */ +#define E_dialogTitle(m) (m -> bulletin_board.dialog_title) +#define E_textTranslations(m) (m -> bulletin_board.text_translations) +#define E_buttonFontList(m) (m -> bulletin_board.button_font_list) +#define E_labelFontList(m) (m -> bulletin_board.label_font_list) +#define E_textFontList(m) (m -> bulletin_board.text_font_list) + +#define M_app_context(m) (m -> editor.app_context) +#define M_display(m) (m -> editor.display) +#define M_topLevelShell(m) (m -> editor.topLevelShell) +#define M_text(m) (m -> editor.text) +#define M_textWidth(m) (m -> editor.width) + +/* callbacks */ +#define M_textSelect(m) (m -> editor.textSelect) +#define M_textDeselect(m) (m -> editor.textDeselect) +#define M_textSelectCbCalled(m) (m -> editor.textSelectCbCalled) + +/* editStuff - scrolled text resources */ +#define M_autoShowCursorPos(m) (m->editor.editStuff.autoShowCursorPos) +#define M_blinkRate(m) (m -> editor.editStuff.blinkRate) +#define M_columns(m) (m -> editor.editStuff.columns) +#define M_cursorPos(m) (m -> editor.editStuff.cursorPos) +#define M_cursorPosVisible(m) (m -> editor.editStuff.cursorPosVisible) +#define M_editable(m) (m -> editor.editStuff.editable) +#define M_fontWidth(m) (m -> editor.editStuff.fontWidth) +#define M_fontHeight(m) (m -> editor.editStuff.fontHeight) +#define M_maxLength(m) (m -> editor.editStuff.maxLength) +#define M_overstrikeMode(m) (m -> editor.editStuff.overstrikeMode) +#define M_rows(m) (m -> editor.editStuff.rows) +#define M_scrollHorizontal(m) (m -> editor.editStuff.scrollHorizontal) +#define M_scrollLeftSide(m) (m -> editor.editStuff.scrollLeft) +#define M_scrollTopSide(m) (m -> editor.editStuff.scrollTop) +#define M_scrollVertical(m) (m -> editor.editStuff.scrollVertical) +#define M_topCharacter(m) (m -> editor.editStuff.topCharacter) +#define M_wordWrap(m) (m -> editor.editStuff.wordWrap) +#define M_textBackground(m) (m -> editor.editStuff.background) +#define M_textForeground(m) (m -> editor.editStuff.foreground) + +/* editStuff - scrolled text related data */ +#define M_deletionStart(m) (m -> editor.editStuff.undo.deletionStart) +#define M_deletedText(m) (m -> editor.editStuff.undo.deletedText) +#define M_insertStart(m) (m -> editor.editStuff.undo.insertStart) +#define M_insertionLength(m) (m -> editor.editStuff.undo.insertionLength) +#define M_loadingAllNewData(m) (m -> editor.editStuff.loadingAllNewData) +#define M_unreadChanges(m) (m -> editor.editStuff.unreadChanges) +#define M_setSelection(m) (m -> editor.editStuff.setSelection) + +/* searchStuff */ +#define M_search_dialogMode(m) (m ->editor.searchStuff.search_dialog_mode) +#define M_spellTitle(m) (m -> editor.searchStuff.spellTitle) +#define M_fndChngTitle(m) (m -> editor.searchStuff.fndChngTitle) +#define E_changeAllButtonLabel(m) (m->editor.searchStuff.changeAllButtonLabel) +#define E_changeButtonLabel(m) (m->editor.searchStuff.changeButtonLabel) +#define E_changeFieldLabel(m) (m->editor.searchStuff.changeFieldLabel) +#define E_findButtonLabel(m) (m->editor.searchStuff.findButtonLabel) +#define E_findFieldLabel(m) (m->editor.searchStuff.findFieldLabel) +#define E_misspelledListLabel(m) (m->editor.searchStuff.misspelledListLabel) +#define M_search_string(m) (m -> editor.searchStuff.search_string) +#define M_replace_string(m) (m -> editor.searchStuff.replace_string) +#define M_misspelled_string(m) (m -> editor.searchStuff.misspelled_string) +#define M_misspelled_found(m) (m -> editor.searchStuff.misspelled_found) +#define M_spellFilter(m) (m -> editor.searchStuff.spellFilter) +#define M_replaceText(m) (m -> editor.searchStuff.widgets.replaceText) +#define M_findText(m) (m -> editor.searchStuff.widgets.findText) +#define M_search_replaceLbl(m) (m -> editor.searchStuff.widgets.replaceLbl) +#define M_search_buttonHeight(m) (m -> editor.searchStuff.buttonHeight) +#define M_search_dialog(m) (m -> editor.searchStuff.widgets.formDlg) +#define M_search_closeBtn(m) (m -> editor.searchStuff.widgets.closeBtn) +#define M_search_helpBtn(m) (m -> editor.searchStuff.widgets.helpBtn) +#define M_search_findBtn(m) (m -> editor.searchStuff.widgets.findBtn) +#define M_search_replaceBtn(m) (m -> editor.searchStuff.widgets.replaceBtn) +#define M_search_replaceAllBtn(m)\ + (m -> editor.searchStuff.widgets.replaceAllBtn) +#define M_search_spellList(m) (m -> editor.searchStuff.widgets.spellList) +#define M_search_listLbl(m) (m -> editor.searchStuff.widgets.listLbl) +#define M_search_findLbl(m) (m -> editor.searchStuff.widgets.findLbl) +#define M_search_separator(m) (m -> editor.searchStuff.widgets.separator) + +/* formatStuff */ +#define E_format_centerToggleLabel(m) (m->editor.formatStuff.centerToggleLabel) +#define E_format_formatAllButtonLabel(m)\ + (m->editor.formatStuff.formatAllButtonLabel) +#define E_format_formatParagraphButtonLabel(m)\ + (m->editor.formatStuff.formatParaButtonLabel) +#define E_format_dialogTitle(m) (m->editor.formatStuff.formatDialogTitle) +#define E_format_justifyToggleLabel(m)\ + (m->editor.formatStuff.justifyToggleLabel) +#define E_format_leftAlignToggleLabel(m)\ + (m->editor.formatStuff.leftAlignToggleLabel) +#define E_format_leftMarginFieldLabel(m)\ + (m->editor.formatStuff.leftMarginFieldLabel) +#define E_format_rightAlignToggleLabel(m)\ + (m->editor.formatStuff.rightAlignToggleLabel) +#define E_format_rightMarginFieldLabel(m)\ + (m->editor.formatStuff.rightMarginFieldLabel) +#define M_format_all(m) (m -> editor.formatStuff.widgets.all) +#define M_format_bothJust(m) (m -> editor.formatStuff.widgets.both_just) +#define M_format_center(m) (m -> editor.formatStuff.widgets.center) +#define M_format_close(m) (m -> editor.formatStuff.widgets.close) +#define M_format_dialog(m) (m -> editor.formatStuff.widgets.format_dialog) +#define M_format_help(m) (m -> editor.formatStuff.widgets.help) +#define M_format_leftJust(m) (m -> editor.formatStuff.widgets.left_just) +#define M_format_leftLabel(m) (m -> editor.formatStuff.widgets.left_label) +#define M_format_leftMarginField(m) (m -> editor.formatStuff.widgets.leftMargField) +#define M_format_paragraph(m) (m -> editor.formatStuff.widgets.paragraph) +#define M_format_radioBox(m) (m -> editor.formatStuff.widgets.radio_box) +#define M_format_rightJust(m) (m -> editor.formatStuff.widgets.right_just) +#define M_format_rightLabel(m) (m -> editor.formatStuff.widgets.right_label) +#define M_format_rightMarginField(m) (m -> editor.formatStuff.widgets.rightMargField) +#define M_format_separator(m) (m -> editor.formatStuff.widgets.separator) + +/* statusStuff */ +#define M_status_showStatusLine(m) (m -> editor.statusStuff.showStatusLine) +#define M_status_currentLine(m) (m -> editor.statusStuff.currentLine) +#define M_status_lastLine(m) (m -> editor.statusStuff.lastLine) +#define M_status_overstrikeLabel(m) (m -> editor.statusStuff.ovr) +#define M_status_insertLabel(m) (m -> editor.statusStuff.ins) +#define E_status_currentLineLabel(m) (m -> editor.statusStuff.currentLineLabel) +#define E_status_totalLineCountLabel(m) (m->editor.statusStuff.totalLineLabel) +#define M_status_statusArea(m) (m -> editor.statusStuff.statusArea) +#define M_status_lineLabel(m) (m -> editor.statusStuff.lineLabel) +#define M_status_lineText(m) (m -> editor.statusStuff.lineText) +#define M_status_totalLabel(m) (m -> editor.statusStuff.totalLabel) +#define M_status_totalText(m) (m -> editor.statusStuff.totalText) +#define M_status_overstrikeWidget(m) (m->editor.statusStuff.overstrikeLabel) +#define M_status_messageText(m) (m -> editor.statusStuff.messageText) + +/* warningStuff */ +#define M_gen_warning(m) (m ->editor.warningStuff.warningDialog) +#define E_infoDialogTitle(m) (m ->editor.warningStuff.infoDialogTitle) + +/* + * Misc macros + */ +#define M_editor(m) ((DtEditorWidget) m ->core.parent -> core.parent) + + +/**************************************************************** + * + * Private library functions + * + ****************************************************************/ + +/*** library-private functions in Editor.c ***/ +extern void _DtEditorResetUndo( + DtEditorWidget editor); +extern void _DtEditorUpdateLineDisplay( + DtEditorWidget editor, + int currentLine, + Boolean forceUpdate ); +extern int _DtEditorGetLineIndex( + XmTextWidget tw, + XmTextPosition pos); +extern void _DtEditorWarning( + DtEditorWidget pPriv, + char *mess, + unsigned char dialogType); +extern DtEditorErrorCode _DtEditorValidateFileAccess( + char *fileName, + int accessType ); +extern void _DtEditorHelpSearchCB ( + Widget w, + caddr_t client_data , + caddr_t call_data ); +extern void _DtEditorHelpSearchSpellCB ( + Widget w, + caddr_t client_data , + caddr_t call_data ); +extern void _DtEditorHelpSearchFindCB ( + Widget w, + caddr_t client_data , + caddr_t call_data ); +extern void _DtEditorHelpSearchChangeCB ( + Widget w, + caddr_t client_data , + caddr_t call_data ); + +/*** library-private functions in EditAreaData.c ***/ + +extern char *_DtEditorGetPointer( + char *pString, + int startChar); + +/*** library-private functions in EditorCalls.c ***/ + +extern void _DtEditorModifyVerifyCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); + +/*** library-private functions in SearchCalls.c ***/ + +extern void _DtEditorSearchMapCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern int _DtEditor_CountCharacters( + char *str, + int num_count_bytes); +extern void _DtEditorDialogSearchCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorDialogReplaceCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorDialogReplaceAllCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorDialogFindCancelCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorMisspelledSelectCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorMisspelledDblClickCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorFindTextChangedCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorReplaceTextChangedCB( + Widget w, + caddr_t client_data, + caddr_t call_data ); +extern void _DtEditorSetFindSensitivity( + DtEditorWidget pPriv, + Boolean sensitivity); +extern void _DtEditorSetReplaceSensitivity( + DtEditorWidget pPriv, + Boolean sensitivity); +extern void _DtEditorSetReplaceAllSensitivity( + DtEditorWidget pPriv, + Boolean sensitivity); + + +/*** library-private functions in SearchDlg.c ***/ +extern void _DtEditorSearch( + DtEditorWidget pPriv, + Boolean spell, + Boolean createonly ); + +#endif /* _DtEditorP_h */ + diff --git a/cde/include/Dt/EnvControlI.h b/cde/include/Dt/EnvControlI.h new file mode 100644 index 00000000..34fca5e4 --- /dev/null +++ b/cde/include/Dt/EnvControlI.h @@ -0,0 +1,124 @@ +/* + * 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- 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 **********************/ diff --git a/cde/include/Dt/EnvControlP.h b/cde/include/Dt/EnvControlP.h new file mode 100644 index 00000000..3b1f372f --- /dev/null +++ b/cde/include/Dt/EnvControlP.h @@ -0,0 +1,87 @@ +/* + * 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 **********************/ diff --git a/cde/include/Dt/FileM.h b/cde/include/Dt/FileM.h new file mode 100644 index 00000000..aed4a603 --- /dev/null +++ b/cde/include/Dt/FileM.h @@ -0,0 +1,63 @@ +/* + * 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 */ diff --git a/cde/include/Dt/FileUtil.h b/cde/include/Dt/FileUtil.h new file mode 100644 index 00000000..5e0bb6a7 --- /dev/null +++ b/cde/include/Dt/FileUtil.h @@ -0,0 +1,169 @@ +/* + * 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 */ diff --git a/cde/include/Dt/GetDispRes.h b/cde/include/Dt/GetDispRes.h new file mode 100644 index 00000000..aab8b4e4 --- /dev/null +++ b/cde/include/Dt/GetDispRes.h @@ -0,0 +1,69 @@ +/* + * 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 **********************/ diff --git a/cde/include/Dt/HashP.h b/cde/include/Dt/HashP.h new file mode 100644 index 00000000..0c4b6068 --- /dev/null +++ b/cde/include/Dt/HashP.h @@ -0,0 +1,181 @@ +/* + * 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 + +#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 */ + + + diff --git a/cde/include/Dt/Help.h b/cde/include/Dt/Help.h new file mode 100644 index 00000000..29921a1c --- /dev/null +++ b/cde/include/Dt/Help.h @@ -0,0 +1,266 @@ +/* + * 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: Help.h /main/3 1995/10/26 12:23:24 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. + */ + +#ifndef _Dt_Help_h +#define _Dt_Help_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Common DtHelp Resources */ + +#ifndef DtNcloseCallback +#define DtNcloseCallback "closeCallback" +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNexecutionPolicy +#define DtNexecutionPolicy "executionPolicy" +#endif +#ifndef DtNhelpFile +#define DtNhelpFile "helpFile" +#endif +#ifndef DtNhelpOnHelpVolume +#define DtNhelpOnHelpVolume "helpOnHelpVolume" +#endif +#ifndef DtNhelpPrint +#define DtNhelpPrint "helpPrint" +#endif +#ifndef DtNhelpType +#define DtNhelpType "helpType" +#endif +#ifndef DtNhelpVolume +#define DtNhelpVolume "helpVolume" +#endif +#ifndef DtNhyperLinkCallback +#define DtNhyperLinkCallback "hyperLinkCallback" +#endif +#ifndef DtNlocationId +#define DtNlocationId "locationId" +#endif +#ifndef DtNmanPage +#define DtNmanPage "manPage" +#endif +#ifndef DtNminimizeButtons +#define DtNminimizeButtons XmNminimizeButtons +#endif +#ifndef DtNpaperSize +#define DtNpaperSize "paperSize" +#endif +#ifndef DtNprinter +#define DtNprinter "printer" +#endif +#ifndef DtNrows +#define DtNrows XmNrows +#endif +#ifndef DtNscrollBarPolicy +#define DtNscrollBarPolicy "scrollBarPolicy" +#endif +#ifndef DtNstringData +#define DtNstringData "stringData" +#endif + +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif + +#ifndef DtCCloseCallback +#define DtCCloseCallback "CloseCallback" +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCExecutionPolicy +#define DtCExecutionPolicy "ExecutionPolicy" +#endif +#ifndef DtCHelpFile +#define DtCHelpFile "HelpFile" +#endif +#ifndef DtCHelpOnHelpVolume +#define DtCHelpOnHelpVolume "HelpOnHelpVolume" +#endif +#ifndef DtCHelpPrint +#define DtCHelpPrint "HelpPrint" +#endif +#ifndef DtCHelpType +#define DtCHelpType "HelpType" +#endif +#ifndef DtCHelpVolume +#define DtCHelpVolume "HelpVolume" +#endif +#ifndef DtCHyperLinkCallback +#define DtCHyperLinkCallback "HyperLinkCallback" +#endif +#ifndef DtCLocationId +#define DtCLocationId "LocationId" +#endif +#ifndef DtCManPage +#define DtCManPage "ManPage" +#endif +#ifndef DtCMinimizeButtons +#define DtCMinimizeButtons XmCMinimizeButtons +#endif +#ifndef DtCPaperSize +#define DtCPaperSize "PaperSize" +#endif +#ifndef DtCPrinter +#define DtCPrinter "Printer" +#endif +#ifndef DtCRows +#define DtCRows XmCRows +#endif +#ifndef DtCScrollBarPolicy +#define DtCScrollBarPolicy "ScrollBarPolicy" +#endif +#ifndef DtCStringData +#define DtCStringData "StringData" +#endif + +/* Representation types */ + +#ifndef DtRDtExecutionPolicy +#define DtRDtExecutionPolicy "DtExecutionPolicy" +#endif +#ifndef DtRDtHelpType +#define DtRDtHelpType "DtHelpType" +#endif +#ifndef DtRDtPaperSize +#define DtRDtPaperSize "DtPaperSize" +#endif +#ifndef DtRDtScrollBarPolicy +#define DtRDtScrollBarPolicy "DtScrollBarPolicy" +#endif + +/* DtHelpDialogCallbackStruct windowHint field */ + +#define DtHELP_POPUP_WINDOW 1 +#define DtHELP_CURRENT_WINDOW 2 +#define DtHELP_NEW_WINDOW 3 + +/* DtHelpDialogCallbackStruct hyperType field */ + +#define DtHELP_LINK_JUMP_NEW 1 +#define DtHELP_LINK_TOPIC 1 +#define DtHELP_LINK_MAN_PAGE 4 +#define DtHELP_LINK_APP_DEFINE 5 +#define DtHELP_LINK_TEXT_FILE 8 + +/* DtHelpDialogCallbackStruct reason field */ + +#define DtCR_HELP_LINK_ACTIVATE 1 +#define DtCR_HELP_CLOSE 2 +#define DtCR_HELP_HELP 3 + +/* Possible values for DtNscrollBarPolicy resource */ + +#define DtHELP_NO_SCROLLBARS 0 +#define DtHELP_STATIC_SCROLLBARS 1 +#define DtHELP_AS_NEEDED_SCROLLBARS 2 + +/* Possible values for DtNexecutionPolicy resource */ +#define DtHELP_EXECUTE_NONE 0 +#define DtHELP_EXECUTE_QUERY_ALL 1 +#define DtHELP_EXECUTE_QUERY_UNALIASED 2 +#define DtHELP_EXECUTE_ALL 3 + +/* Possible values for DtNhelpType resource */ + +#define DtHELP_TYPE_TOPIC 0 +#define DtHELP_TYPE_STRING 1 +#define DtHELP_TYPE_MAN_PAGE 2 +#define DtHELP_TYPE_FILE 3 +#define DtHELP_TYPE_DYNAMIC_STRING 4 + +/* Possible values for DtNpaperSize resource */ + +#define DtHELP_PAPERSIZE_LETTER 0 +#define DtHELP_PAPERSIZE_LEGAL 1 +#define DtHELP_PAPERSIZE_EXECUTIVE 2 +#define DtHELP_PAPERSIZE_A4 3 +#define DtHELP_PAPERSIZE_B5 4 + +/* DtHelpQuickGetChildGetChild() function */ + +#define DtHELP_QUICK_CLOSE_BUTTON 1 +#define DtHELP_QUICK_PRINT_BUTTON 2 +#define DtHELP_QUICK_HELP_BUTTON 3 +#define DtHELP_QUICK_SEPARATOR 4 +#define DtHELP_QUICK_MORE_BUTTON 5 +#define DtHELP_QUICK_BACK_BUTTON 6 + +/* Return values for DtHelpReturnSelectedWidgetId() */ + +#define DtHELP_SELECT_ERROR -1 +#define DtHELP_SELECT_VALID 0 +#define DtHELP_SELECT_ABORT 1 +#define DtHELP_SELECT_INVALID 2 + + +/* + * Types + */ + +typedef struct { + int reason; + XEvent *event; + char *locationId; + char *helpVolume; + char *specification; + int hyperType; + int windowHint; +} DtHelpDialogCallbackStruct; + + +/* + * Functions + */ + +extern void DtHelpSetCatalogName( + char *catFile); + +extern int DtHelpReturnSelectedWidgetId( + Widget parent, + Cursor cursor, + Widget *widget); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Help_h */ diff --git a/cde/include/Dt/HelpDialog.h b/cde/include/Dt/HelpDialog.h new file mode 100644 index 00000000..0c810a8b --- /dev/null +++ b/cde/include/Dt/HelpDialog.h @@ -0,0 +1,117 @@ +/* + * 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: HelpDialog.h /main/3 1995/10/26 12:24:05 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. + */ + +#ifndef _Dt_HelpDialog_h +#define _Dt_HelpDialog_h + +#include
+ +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* General Help Dialog-specific Resources */ + +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNshowNewWindowButton +#define DtNshowNewWindowButton "showNewWindowButton" +#endif +#ifndef DtNtopicTitle +#define DtNtopicTitle "topicTitle" +#endif +#ifndef DtNvisiblePathCount +#define DtNvisiblePathCount "visiblePathCount" +#endif + +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif + +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCShowNewWindowButton +#define DtCShowNewWindowButton "ShowNewWindowButton" +#endif +#ifndef DtCTopicTitle +#define DtCTopicTitle "TopicTitle" +#endif +#ifndef DtCVisiblePathCount +#define DtCVisiblePathCount "VisiblePathCount" +#endif + + +/* + * Types + */ + +/* Widget class and instance */ + +typedef struct _DtHelpDialogWidgetClassRec * DtHelpDialogWidgetClass; +typedef struct _DtHelpDialogWidgetRec * DtHelpDialogWidget; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtHelpDialogWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateHelpDialog( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_HelpDialog_h */ diff --git a/cde/include/Dt/HelpDialogP.h b/cde/include/Dt/HelpDialogP.h new file mode 100644 index 00000000..47d66134 --- /dev/null +++ b/cde/include/Dt/HelpDialogP.h @@ -0,0 +1,392 @@ +/* + * 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: HelpDialogP.h /main/6 1996/04/13 11:55:10 ageorge $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: HelpDialogP.h + ** + ** Project: Cache Creek (Rivers) Project: + ** + ** Description: Privite Header file for HelpDialog.c + ** ----------- + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpDialogP_h +#define _DtHelpDialogP_h + +#include + +#include
+ +#include "FileListUtilsI.h" +#include "GlobSearchP.h" + +#define XmDIALOG_SUFFIX "_popup" +#define XmDIALOG_SUFFIX_SIZE 6 + + +/* Defines for use in allocation geometry matrix. */ +#define TB_MAX_WIDGETS_VERT 7 +#define TB_MAX_NUM_WIDGETS 12 + + +/**************************************************************** + * + * Topic List Info Structure Definition (History & Jump Back Lists) + * + ****************************************************************/ +typedef struct _DtTopicListStruct { + char *locationId; + XmString topicTitleLbl; + char *helpVolume; + int topicType; + int pathLevel; + int scrollPosition; + struct _DtTopicListStruct *pNext; + struct _DtTopicListStruct *pPrevious; +} DtTopicListStruct; + + +/**************************************************************** + * + * Volume List Info: History Dialog only. + * + ****************************************************************/ +typedef struct _DtHistoryListStruct { + XmString itemTitle; + int topicType; + int totalNodes; + struct _DtHistoryListStruct *pNext; + struct _DtTopicListStruct *pTopicHead; + struct _DtTopicListStruct *pTopicTale; +} DtHistoryListStruct; + + +/**************************************************************** + * + * Help Callback return structure + * + ****************************************************************/ +typedef struct _DtHelpListStruct { + char * locationId; + Widget widget; + struct _DtHelpCommonHelpStuff * help; + struct _DtHelpListStruct * pNext; + struct _DtHelpListStruct * pPrevious; +} DtHelpListStruct; + + + +/**************************************************************** + * + * Kewword Search entry structure. + * + ****************************************************************/ + +typedef struct { + char * keyWord; + Boolean matchesFindPattern; +} KeyEntry; + + + + +/* Class Part Structure Definition */ + +typedef struct +{ + XtPointer extension; /* Pointer to extension record */ +} DtHelpDialogWidgetClassPart; + + + + +/* Full class record declaration */ + +typedef struct _DtHelpDialogWidgetClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + DtHelpDialogWidgetClassPart selection_box_class; +} DtHelpDialogWidgetClassRec; + +externalref DtHelpDialogWidgetClassRec dtHelpDialogWidgetClassRec; + + +typedef struct _DtHelpDisplayWidgetStuff +{ + short textColumns; /* Columns Resource Value resource */ + short textRows; /* Rows Resource Value resource */ + char * locationId; /* Current Topic String resource */ + char * helpVolume; /* Current Project File resource */ + char * manPage; /* man page resource */ + char * stringData; /* string data resource */ + char * helpFile; /* help file resource */ + unsigned char scrollBarPolicy; /* Scrollbar policy resource */ + unsigned char executionPolicy; /* Link/script exec policy resource */ + XtCallbackList hyperLinkCallback; /* Hypertext Callback resource */ + _DtHelpVolumeHdl volumeHandle; /* handle of current volume */ + unsigned char helpType; /* Current displayed file type resource */ + char * topicTitleStr; /* title of topic */ + int count; /* Nonexistent topic title count */ + XmString topicTitleLbl; /* XmString title of topic */ + Boolean firstTimePopupFlag; /* False, untel we map the widget */ + + +} _DtHelpDisplayWidgetStuff; + +typedef struct _DtHelpCommonHelpStuff +{ + XtPointer pDisplayArea; /* Display widget handle */ + + /* for help on help */ + char * helpOnHelpVolume; /* help on help volume resource */ + DtHelpListStruct * pHelpListHead; /* Help List Pointer */ + Widget onHelpDialog; /* help on help dialog */ + + char * sysVolumeSearchPath; /* system search path */ + char * userVolumeSearchPath; /* user search path */ + + char * currentHelpFile; /* Current help file */ + int topicOffset; /* Offset into help file */ + + char * topLevelId; /* Toplevel topic volume displayed */ + int topLevelTopicOffset; +} _DtHelpCommonHelpStuff; + +typedef struct _DtHelpGeneralHelpStuff +{ + char * parentId; /* used for "Up" menu */ + + Boolean volumeFlag; /* set when to process new vol */ + + Widget definitionBox; + XtCallbackList closeCallback; /* Window Close Callback */ + + Dimension marginHeight; + Dimension marginWidth; +} _DtHelpGeneralHelpStuff; + + +typedef struct _DtHelpBrowserStuff +{ + int visiblePathCount; /* Number of path lines shown */ + XtPointer pTocArea; /* Toc area handle */ + + Widget volumeLabel; + Widget panedWindow; + Widget pathArea; + + Boolean showTopLevelBtn; + Widget btnBoxBackBtn; + Widget btnBoxHistoryBtn; + Widget btnBoxIndexBtn; + Widget btnBoxTopLevelBtn; +} _DtHelpBrowserStuff; + +typedef struct _DtHelpMenuStuff +{ + Boolean showDupBtn; + + /* Help Dialog Widgets */ + Widget menuBar; + + Widget topBtn; + Widget keyBtn; + Widget backBtn; + Widget historyBtn; + Widget printBtn; + Widget closeBtn; + Widget helpBtn; + Widget newWindowBtn; + Widget copyBtn; + + Widget popupMenu; + Widget popupBackBtn; + Widget popupTopBtn; +} _DtHelpMenuStuff; + +typedef struct _DtHelpHistoryStuff +{ + /* Path Area Variables */ + DtTopicListStruct * pPathListHead; + DtTopicListStruct * pPathListTale; + int totalPathNodes; + + /* History Dialog Widgets & variables */ + Widget volumeList; /* Scrolled volume list */ + Widget topicList; /* Scrolled topic list */ + Widget historyWidget; /* Top Level History Shell */ + Widget topicsListLabel; + DtHistoryListStruct * pHistoryListHead; /* Head pointer to history */ +} _DtHelpHistoryStuff; + +typedef struct _DtHelpBacktrackStuff +{ + /* Jump List variables */ + DtTopicListStruct * pJumpListHead; + DtTopicListStruct * pJumpListTale; + int totalJumpNodes; + int scrollPosition; +} _DtHelpBacktrackStuff; + +typedef struct _DtHelpGlobSearchStuff +{ + /* search dialog resource (undocumented) */ + char * hitPrefixFont; /* hit prefix mono-space font resource */ + + /* host application locale settings */ + char * iconv3Codeset; /* iconv3-ok codeset of app */ + _DtHelpCeIconvContext iconv3Context; /* from vol to app locale */ + + /* File Selection Dialog font list */ + XmFontList volTitlesFontList; /*font list req'd by font titles*/ + + /* Search Dialog Widgets & variables */ + Widget srchForm; + Widget actionBtn; + Widget curVolRadBtn; + Widget allVolRadBtn; + Widget selVolRadBtn; + Widget selectBtn; + Widget fullIndexRadBtn; + Widget containsRadBtn; + Widget wordField; + Widget statusLabel; + Widget resultList; + Widget gotoBtn; + Widget closeBtn; + Widget helpBtn; + Widget selectionDlg; /* selectionBox (child of dlg) */ + char * curVolPath; /* cur vol shown in btn label */ + char * rawWordStr; /* word as taken from srchWord */ + char * normWordStr; /* normalized word str */ + char * localeWordStr; /* after iconv() of NormWordStr */ + wchar_t wordFieldFirstChar; + short wordFieldLen; + short statusLineUsage; + _DtHelpGlobSrchSources srchSources; /* current state of radio but */ + _DtHelpFileEntry curSrchVol; /* vol currently being searched */ + unsigned int hitsFontLoaded:1; /* is font loaded? */ + unsigned int volScanDone:1; /* is the volume list complete? */ + unsigned int fullIndex:1; /* state of search */ + unsigned int readyToStart:1; /* state of search */ + unsigned int hitsFound:1; /* state of search */ + unsigned int searchInProgress:1; /* state of search */ + unsigned int curVolRadBtnSens:1; /* state of curVol sens */ + short volLeftCnt; /* updated during search */ + _DtHelpFileList volListHead; /* info on search topics found */ + XtWorkProcId workProcId; /* ID of search proc */ +} _DtHelpGlobSearchStuff; + +typedef struct _DtHelpPrintStuff +{ + /* printing resources */ + char * helpPrint; /* help print command resource */ + unsigned char paperSize; /* paper size resource */ + char * printer; /* printer destination resource */ + char * printVolume; /* volume to print resource */ + + /* Print Dialog widgets & variables */ + Widget printForm; /* Form inside top level print shell */ + Widget subject; /* label for subject matter to print */ + Widget printerField; /* text field for printer */ + Widget copiesField; /* text field for copies */ + Widget letterBtn; /* menu item for letter paper */ + Widget legalBtn; /* menu item for legal paper */ + Widget execBtn; /* menu item for executive paper */ + Widget a4Btn; /* menu item for A4 paper */ + Widget b5Btn; /* menu item for B5 paper */ + Widget paperSizeOptMenu; /* menu item for A4 paper */ + Widget topicsFrame; /* frame holding print topic selection */ + Widget curTopicBtn; /* radio btn for cur topic */ + Widget subTopicsBtn; /* radio btn for cur & sub topics */ + Widget tocBtn; /* radio btn for table of contents */ + Widget allTopicsBtn; /* radio btn for all topics */ + Widget paperTopicsSeparator; /* hidden sep btwn paper size & topic sel */ + Widget topicsBtnsSeparator; /* sep between topic sel & btns */ +} _DtHelpPrintStuff; + + +/* fields for the GeneralHelp widget record */ +typedef struct +{ + _DtHelpDisplayWidgetStuff display; + _DtHelpCommonHelpStuff help; + _DtHelpGeneralHelpStuff ghelp; + _DtHelpBrowserStuff browser; + _DtHelpMenuStuff menu; + _DtHelpHistoryStuff history; + _DtHelpBacktrackStuff backtr; + _DtHelpGlobSearchStuff srch; + _DtHelpPrintStuff print; +} DtHelpDialogWidgetPart; + + +/**************************************************************** + * + * Full instance record declaration + * + ****************************************************************/ + +typedef struct _DtHelpDialogWidgetRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + DtHelpDialogWidgetPart help_dialog; +} DtHelpDialogWidgetRec; + + + +/******** Private Function Declarations ********/ + +extern XmGeoMatrix _DtHelpDialogWidgetGeoMatrixCreate( + Widget wid, + Widget instigator, + XtWidgetGeometry *desired) ; +extern Boolean _DtHelpDialogWidgetNoGeoRequest( + XmGeoMatrix geoSpec) ; + +/******** End Private Function Declarations ********/ + + + +#endif /* _XmTemplateBP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ + diff --git a/cde/include/Dt/HelpP.h b/cde/include/Dt/HelpP.h new file mode 100644 index 00000000..a9dd4d8b --- /dev/null +++ b/cde/include/Dt/HelpP.h @@ -0,0 +1,118 @@ +/* + * 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: HelpP.h /main/3 1995/10/26 12:24:50 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: HelpP.h + ** + ** Project: CacheCreeek (Rivers) Project. + ** + ** + ** Description: Private header file for Dts. + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpP_h +#define _DtHelpP_h + +/* Privite Argument Resource Definitions for Help Widget */ + +#define DtNshowTopLevelButton "showTopLevelButton" +#ifndef XmNshowTopLevelButton +#define XmNshowTopLevelButton DtNshowTopLevelButton +#endif +#define DtCShowTopLevelButton "ShowTopLevelButton" +#ifndef XmCShowTopLevelButton +#define XmCShowTopLevelButton DtCShowTopLevelButton +#endif + +#define DtNsrchHitPrefixFont "srchHitPrefixFont" +#ifndef XmNsrchHitPrefixFont +#define XmNsrchHitPrefixFont DtNsrchHitPrefixFont +#endif +#define DtCSrchHitPrefixFont "SrchHitPrefixFont" +#ifndef XmCSrchHitPrefixFont +#define XmCSrchHitPrefixFont DtCSrchHitPrefixFont +#endif + + +#ifndef CDE_CONFIGURATION_TOP +#define CDE_CONFIGURATION_TOP "/etc/dt" +#endif + +#ifndef CDE_INSTALLATION_TOP +#define CDE_INSTALLATION_TOP "/usr/dt" +#endif + + +#define DtDEFAULT_SYSTEM_PATH \ + CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H:" \ + CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.sdl:" \ + CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.hv:" \ + CDE_CONFIGURATION_TOP "/appconfig/help/C/%H:" \ + CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.sdl:" \ + CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.hv:" \ + CDE_INSTALLATION_TOP "/appconfig/help/%L/%H:" \ + CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.sdl:" \ + CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.hv" \ + CDE_INSTALLATION_TOP "/appconfig/help/C/%H:" \ + CDE_INSTALLATION_TOP "/appconfig/help/C/%H.sdl:" \ + CDE_INSTALLATION_TOP "/appconfig/help/C/%H.hv:" + + +#define DtDEFAULT_USER_PATH_FORMAT \ + "%s/.dt/help/%s/%%H:" \ + "%s/.dt/help/%s/%%H.sdl:" \ + "%s/.dt/help/%s/%%H.hv:" \ + "%s/.dt/help/%%H:" \ + "%s/.dt/help/%%H.sdl:" \ + "%s/.dt/help/%%H.hv" + +/* this path expects a sprintf usage as follows: + sprintf(buf,DtDEFAULT_USER_PATH_FORMAT, + homedir, dtusersessionname, + homedir, dtusersessionname, + homedir, dtusersessionname, + homedir, homedir, homedir); +*/ + +/* #define DtVOLUMES_TYPE "volumes" */ + +#endif /* _DtHelpP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ + + + + + diff --git a/cde/include/Dt/HelpQuickD.h b/cde/include/Dt/HelpQuickD.h new file mode 100644 index 00000000..e29a4b16 --- /dev/null +++ b/cde/include/Dt/HelpQuickD.h @@ -0,0 +1,124 @@ +/* + * 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: HelpQuickD.h /main/3 1995/10/26 12:25:25 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. + */ + +#ifndef _Dt_HelpQuickD_h +#define _Dt_HelpQuickD_h + +#include
+ +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Quick help dialog-specific Resources */ + +#ifndef DtNbackLabelString +#define DtNbackLabelString "backLabelString" +#endif +#ifndef DtNhelpLabelString +#define DtNhelpLabelString XmNhelpLabelString +#endif +#ifndef DtNmoreLabelString +#define DtNmoreLabelString "moreLabelString" +#endif +#ifndef DtNcloseLabelString +#define DtNcloseLabelString "closeLabelString" +#endif +#ifndef DtNprintLabelString +#define DtNprintLabelString "printLabelString" +#endif + +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif + +#ifndef DtCBackLabelString +#define DtCBackLabelString "BackLabelString" +#endif +#ifndef DtCHelpLabelString +#define DtCHelpLabelString XmCHelpLabelString +#endif +#ifndef DtCMoreLabelString +#define DtCMoreLabelString "MoreLabelString" +#endif +#ifndef DtCCloseLabelString +#define DtCCloseLabelString "CloseLabelString" +#endif +#ifndef DtCPrintLabelString +#define DtCPrintLabelString "PrintLabelString" +#endif + + +/* + * Types + */ + +/* Widget class and instance */ + +typedef struct _DtHelpQuickDialogWidgetClassRec * DtHelpQuickDialogWidgetClass; +typedef struct _DtHelpQuickDialogWidgetRec * DtHelpQuickDialogWidget; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtHelpQuickDialogWidgetClass; + + +/* + * Functions + */ + +/* tmp backwards compat */ +#define DtCreateQuickHelpDialog DtCreateHelpQuickDialog + +extern Widget DtCreateHelpQuickDialog( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern Widget DtHelpQuickDialogGetChild( + Widget widget, + unsigned char child); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_HelpQuickD_h */ diff --git a/cde/include/Dt/HelpQuickDP.h b/cde/include/Dt/HelpQuickDP.h new file mode 100644 index 00000000..0ab2cb3e --- /dev/null +++ b/cde/include/Dt/HelpQuickDP.h @@ -0,0 +1,177 @@ +/* + * 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: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: HelpQuickDP.h + ** + ** Project: CDE 1.0 Common Desktop Environment + ** + ** Description: Privite Header file for HelpQuickD.c + ** ----------- + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpQuickDP_h +#define _DtHelpQuickDP_h + +#include + +#include
+ +#include "HelpQuickDI.h" +#include "HelpDialogP.h" + + +#define DtNO_JUMP_UPDATE 1 +#define DtJUMP_UPDATE 2 + + +#define XmDIALOG_SUFFIX "_popup" +#define XmDIALOG_SUFFIX_SIZE 6 + + +/* Defines for use in allocation geometry matrix. */ +#define TB_MAX_WIDGETS_VERT 7 +#define TB_MAX_NUM_WIDGETS 12 + + + +/* Class Part Structure Definition */ + +typedef struct +{ + XtPointer extension; /* Pointer to extension record */ +} DtHelpQuickDialogWidgetClassPart; + + + + +/* Full class record declaration */ + +typedef struct _DtHelpQuickDialogWidgetClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + DtHelpQuickDialogWidgetClassPart selection_box_class; +} DtHelpQuickDialogWidgetClassRec; + +externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec; + + +/* fields for the Quick Help widget record */ + +/* reuse the CommonHelpStuff structure from HelpDialogP.h */ +/* reuse the BacktrackStuff structure from HelpDialogP.h */ +/* reuse the PrintStuff structure from HelpDialogP.h */ + +typedef struct _DtHelpQuickHelpStuff +{ + int pad; + Widget definitionBox; + Boolean minimize_buttons; + + /* Help Dialog Widgets */ + + Widget displayAreaFrame; + Widget separator; + + Widget closeButton; /* close button */ + XmString closeLabelString; + XtCallbackList closeCallback; + + Widget moreButton; /* Application button */ + XmString moreLabelString; + + Widget backButton; /* Backtrack button */ + XmString backLabelString; + + Widget printButton; /* print button */ + XmString printLabelString; + + Widget helpButton; /* help button */ + XmString helpLabelString; +} _DtHelpQuickHelpStuff; + +typedef struct +{ + _DtHelpDisplayWidgetStuff display; + _DtHelpCommonHelpStuff help; + _DtHelpQuickHelpStuff qhelp; + _DtHelpBacktrackStuff backtr; + _DtHelpPrintStuff print; +} _DtHelpQuickDialogWidgetPart; + + +/**************************************************************** + * + * Full instance record declaration + * + ****************************************************************/ + +typedef struct _DtHelpQuickDialogWidgetRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + _DtHelpQuickDialogWidgetPart qhelp_dialog; +} DtHelpQuickDialogWidgetRec; + + + +/******** Private Function Declarations ********/ +extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate( + Widget wid, + Widget instigator, + XtWidgetGeometry *desired) ; +extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest( + XmGeoMatrix geoSpec) ; +extern void _DtHelpQuickDialogGetCloseLabelString( + Widget wid, + int resource_offset, + XtArgVal *value ); +extern void _DtHelpQuickDialogGetHelpLabelString( + Widget wid, + int resource_offset, + XtArgVal *value ); + +/******** End Private Function Declarations ********/ + + + +#endif /* _DtHelpDialogP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/HourGlass.h b/cde/include/Dt/HourGlass.h new file mode 100644 index 00000000..f6ad47ef --- /dev/null +++ b/cde/include/Dt/HourGlass.h @@ -0,0 +1,94 @@ +/* + * 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 */ + + + diff --git a/cde/include/Dt/Icon.h b/cde/include/Dt/Icon.h new file mode 100644 index 00000000..0b36064d --- /dev/null +++ b/cde/include/Dt/Icon.h @@ -0,0 +1,140 @@ +/* + * 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: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: Icon.h +*** +*** project: MotifPlus Widgets +*** +*** description: Public include file for DtIcon gadget class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtIcon_h +#define _DtIcon_h + +#include +#include
+ +#ifndef DtIsIcon +#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass) +#endif /* DtIsIcon */ + +typedef struct _DtIconClassRec * DtIconGadgetClass; +typedef struct _DtIconRec * DtIconGadget; +typedef struct _DtIconCacheObjRec * DtIconCacheObject; + + +extern Widget _DtCreateIcon( + Widget parent, + String name, + ArgList arglist, + Cardinal argcount) ; +extern Boolean _DtIconGetState( + Widget w) ; +extern void _DtIconSetState( + Widget w, + Boolean state, + Boolean notify) ; +extern Drawable _DtIconDraw( + Widget widget, + Drawable drawable, + Position x, + Position y, + Boolean fill) ; +extern Widget _DtDuplicateIcon( + Widget parent, + Widget widget, + XmString string, + String pixmap, + XtPointer user_data, + Boolean underline) ; +extern Boolean _DtIconSelectInTitle( + Widget widget, + Position pt_x, + Position pt_y) ; +extern XRectangle * _DtIconGetTextExtent( + Widget widget) ; +extern void _DtIconGetIconRects( + DtIconGadget g, + unsigned char *flags, + XRectangle *rect1, + XRectangle *rect2) ; + + + +extern WidgetClass dtIconGadgetClass; + + +#define XmCR_SELECT XmCR_SINGLE_SELECT +#define XmCR_DROP 50 +#define XmCR_POPUP 51 +#define XmCR_HIGHLIGHT 52 +#define XmCR_UNHIGHLIGHT 53 +#define XmCR_SHADOW 54 + +typedef struct +{ + int reason; + XEvent * event; + Boolean set; +} DtIconCallbackStruct; + + +#define XmPIXMAP_TOP 0 +#define XmPIXMAP_BOTTOM 1 +#define XmPIXMAP_LEFT 2 +#define XmPIXMAP_RIGHT 3 +#define XmPIXMAP_MIDDLE 4 + +#define XmSTRING_BOTTOM 0 +#define XmSTRING_TOP 1 +#define XmSTRING_RIGHT 2 +#define XmSTRING_LEFT 3 + +#define XmICON_LABEL 0 +#define XmICON_BUTTON 1 +#define XmICON_TOGGLE 2 +#define XmICON_DRAG 3 + +#define XmFILL_NONE 0 +#define XmFILL_PARENT 1 +#define XmFILL_SELF 2 +#define XmFILL_TRANSPARENT 3 + +#define XmPIXMAP_RECT 0x01 +#define XmLABEL_RECT 0x02 + +#define DtRECTANGLE 0 +#define DtNON_RECTANGLE 1 + + +#endif /* _XmIcon_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/IconFile.h b/cde/include/Dt/IconFile.h new file mode 100644 index 00000000..3afae96a --- /dev/null +++ b/cde/include/Dt/IconFile.h @@ -0,0 +1,140 @@ +/* + * 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 +#include +#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 */ + + + diff --git a/cde/include/Dt/IconP.h b/cde/include/Dt/IconP.h new file mode 100644 index 00000000..dff4e568 --- /dev/null +++ b/cde/include/Dt/IconP.h @@ -0,0 +1,350 @@ +/* + * 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: IconP.h /main/7 1996/03/29 11:33:23 drk $ */ +/**--------------------------------------------------------------------- +*** +*** file: IconP.h +*** +*** project: MotifPlus Widgets +*** +*** description: Private include file for DtIcon gadget class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtIconP_h +#define _DtIconP_h + +#include +#include +#include +#include
+ + +/*------------------------------------------------------------- +** Cache Class Structure +*/ + +/* Cache Class Part +*/ +typedef struct _DtIconCacheObjClassPart +{ + int foo; +} DtIconCacheObjClassPart; + +/* Cache Full Class Record +*/ +typedef struct _DtIconCacheObjClassRec /* label cache class record */ +{ + ObjectClassPart object_class; + XmExtClassPart ext_class; + DtIconCacheObjClassPart icon_class_cache; +} DtIconCacheObjClassRec; + +/* Cache Actual Class +*/ +externalref DtIconCacheObjClassRec dtIconCacheObjClassRec; + + +/*------------------------------------------------------------- +** Cache Instance Structure +*/ + +/* Cache Instance Part +*/ +typedef struct _DtIconCacheObjPart +{ + Dimension margin_width; + Dimension margin_height; + Dimension string_height; + Dimension spacing; + Pixel foreground; + Pixel background; + Pixel arm_color; + Boolean fill_on_arm; + Boolean recompute_size; + Boolean draw_shadow; + unsigned char pixmap_position; + unsigned char string_position; + unsigned char alignment; + unsigned char behavior; + unsigned char fill_mode; +} DtIconCacheObjPart; + +typedef struct _DtIconCacheObjRec +{ + ObjectPart object; + XmExtPart ext; + DtIconCacheObjPart icon_cache; +} DtIconCacheObjRec; + + +typedef void (*GetPositionProc)( + DtIconGadget, + Position, + Position, + Dimension, + Dimension, + Position *, + Position *, + Position *, + Position * +); +typedef void (*GetSizeProc)( + DtIconGadget, + Dimension *, + Dimension * +); +typedef void (*DrawProc)( + DtIconGadget, + Drawable, + Position, + Position, + Dimension, + Dimension, + Dimension, + Dimension, + unsigned char, + unsigned char +); +typedef void (*CallCallbackProc)( + DtIconGadget, + XtCallbackList, + int, + XEvent * +); +typedef void (*UpdateGCsProc)( + DtIconGadget +); +/*------------------------------------------------------------- +** Class Structure +*/ + +/* Class Part +*/ +typedef struct _DtIconClassPart +{ + GetSizeProc get_size; + GetPositionProc get_positions; + DrawProc draw; + CallCallbackProc call_callback; + UpdateGCsProc update_gcs; + Boolean optimize_redraw; + XmCacheClassPartPtr cache_part; + caddr_t extension; +} DtIconClassPart; + +/* Full Class Record +*/ +typedef struct _DtIconClassRec +{ + RectObjClassPart rect_class; + XmGadgetClassPart gadget_class; + DtIconClassPart icon_class; +} DtIconClassRec; + +/* Actual Class +*/ +externalref DtIconClassRec dtIconClassRec; + + +/*------------------------------------------------------------- +** Instance Structure +*/ + +/* Instance Part +*/ +typedef struct _DtIconPart +{ + Boolean set; + Boolean armed; + Boolean sync; + Boolean underline; + unsigned char shadow_type; + unsigned char border_type; + XtCallbackList callback; + XtIntervalId click_timer_id; + XButtonEvent * click_event; + String image_name; + Pixmap pixmap; + Pixmap mask; + Pixel pixmap_foreground; + Pixel pixmap_background; + Dimension max_pixmap_width; + Dimension max_pixmap_height; + XmFontList font_list; + XmString string; + Dimension string_width; + Dimension pixmap_width; + Dimension pixmap_height; + GC clip_gc; + GC normal_gc; + GC background_gc; + GC armed_gc; + GC armed_background_gc; + GC parent_background_gc; + Pixel saved_parent_background; + DtIconCacheObjPart *cache; + unsigned char operations; + XtCallbackList drop_callback; +} DtIconPart; + +/* Full Instance Record +*/ +typedef struct _DtIconRec +{ + ObjectPart object; + RectObjPart rectangle; + XmGadgetPart gadget; + DtIconPart icon; +} DtIconRec; + + +/*------------------------------------------------------------- +** Class and Instance Macros +*/ + +/* DtIcon Class Macros +*/ +#define DtInheritGetSize ((GetSizeProc) _XtInherit) +#define DtInheritGetPositions ((GetPositionProc) _XtInherit) +#define DtInheritDraw ((DrawProc) _XtInherit) +#define DtInheritCallCallback ((CallCallbackProc) _XtInherit) +#define DtInheritUpdateGCs ((UpdateGCsProc) _XtInherit) + +/*** WARNING: These macros are not thread-safe! ***/ +#define C_GetSize(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.get_size) +#define C_GetPositions(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.get_positions) +#define C_Draw(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.draw) +#define C_CallCallback(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.call_callback) +#define C_OptimizeRedraw(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.optimize_redraw) +#define C_UpdateGCs(wc) \ + (((DtIconGadgetClass)(wc)) -> icon_class.update_gcs) + +/* DtIcon Macros +*/ + +/*** WARNING: These macros are not thread-safe! ***/ +#define G_GetSize(g,w,h) \ + (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_size) \ + (g,w,h) +#define G_GetPositions(g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) \ + (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_positions) \ + (g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) +#define G_Draw(g,d,x,y,w,h,h_t,s_t,s_type,fill) \ + (((DtIconClassRec *)g -> object.widget_class) -> icon_class.draw) \ + (g,d,x,y,w,h,h_t,s_t,s_type,fill) +#define G_CallCallback(g,cb,r,e) \ + (((DtIconClassRec *)g -> object.widget_class) -> icon_class.call_callback) \ + (g,cb,r,e) +#define G_UpdateGCs(g) \ + (((DtIconClassRec *)g -> object.widget_class) -> icon_class.update_gcs) \ + (g) + +/* Cached Instance Field Macros +*/ +#define G_CachePixmapPosition(co) (((DtIconCacheObject)(co)) -> \ + icon_cache.pixmap_position) +#define G_FillOnArm(g) (((DtIconGadget)(g)) -> \ + icon.cache -> fill_on_arm) +#define G_RecomputeSize(g) (((DtIconGadget)(g)) -> \ + icon.cache -> recompute_size) +#define G_DrawShadow(g) (((DtIconGadget)(g)) -> \ + icon.cache -> draw_shadow) +#define G_PixmapPosition(g) (((DtIconGadget)(g)) -> \ + icon.cache -> pixmap_position) +#define G_StringPosition(g) (((DtIconGadget)(g)) -> \ + icon.cache -> string_position) +#define G_Alignment(g) (((DtIconGadget)(g)) -> \ + icon.cache -> alignment) +#define G_Behavior(g) (((DtIconGadget)(g)) -> \ + icon.cache -> behavior) +#define G_FillMode(g) (((DtIconGadget)(g)) -> \ + icon.cache -> fill_mode) +#define G_MarginWidth(g) (((DtIconGadget)(g)) -> \ + icon.cache -> margin_width) +#define G_MarginHeight(g) (((DtIconGadget)(g)) -> \ + icon.cache -> margin_height) +#define G_StringHeight(g) (((DtIconGadget)(g)) -> \ + icon.cache -> string_height) +#define G_Spacing(g) (((DtIconGadget)(g)) -> \ + icon.cache -> spacing) +#define G_Foreground(g) (((DtIconGadget)(g)) -> \ + icon.cache -> foreground) +#define G_Background(g) (((DtIconGadget)(g)) -> \ + icon.cache -> background) +#define G_ArmColor(g) (((DtIconGadget)(g)) -> \ + icon.cache -> arm_color) + +/* Non-Cached Instance Field Macros +*/ +#define G_Armed(g) (g -> icon.armed) +#define G_Set(g) (g -> icon.set) +#define G_Sync(g) (g -> icon.sync) +#define G_Callback(g) (g -> icon.callback) +#define G_ClickTimerID(g) (g -> icon.click_timer_id) +#define G_ClickInterval(g) (g -> icon.click_interval) +#define G_ClickEvent(g) (g -> icon.click_event) +#define G_ShadowType(g) (g -> icon.shadow_type) +#define G_BorderType(g) (g -> icon.border_type) +#define G_Pixmap(g) (g -> icon.pixmap) +#define G_Mask(g) (g -> icon.mask) +#define G_PixmapForeground(g) (g -> icon.pixmap_foreground) +#define G_PixmapBackground(g) (g -> icon.pixmap_background) +#define G_MaxPixmapWidth(g) (g -> icon.max_pixmap_width) +#define G_MaxPixmapHeight(g) (g -> icon.max_pixmap_height) +#define G_String(g) (g -> icon.string) +#define G_FontList(g) (g -> icon.font_list) +#define G_ImageName(g) (g -> icon.image_name) +#define G_StringWidth(g) (g -> icon.string_width) +#define G_PixmapWidth(g) (g -> icon.pixmap_width) +#define G_PixmapHeight(g) (g -> icon.pixmap_height) +#define G_BackgroundGC(g) (g -> icon.background_gc) +#define G_ArmedGC(g) (g -> icon.armed_gc) +#define G_ArmedBackgroundGC(g) (g -> icon.armed_background_gc) +#define G_NormalGC(g) (g -> icon.normal_gc) +#define G_ClipGC(g) (g -> icon.clip_gc) +#define G_Underline(g) (g -> icon.underline) +#define G_ParentBackgroundGC(g) (g -> icon.parent_background_gc) +#define G_SavedParentBG(g) (g -> icon.saved_parent_background) +#define G_Operations(g) (g -> icon.operations) +#define G_DropCallback(g) (g -> icon.drop_callback) + +#define Icon_Cache(w) (((DtIconGadget)(w))-> \ + icon.cache) + +#define Icon_ClassCachePart(w) \ + (((DtIconGadgetClass)dtIconGadgetClass)->gadget_class.cache_part) + + +#endif /* _DtIconP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Indicator.h b/cde/include/Dt/Indicator.h new file mode 100644 index 00000000..9b3c3a7c --- /dev/null +++ b/cde/include/Dt/Indicator.h @@ -0,0 +1,64 @@ +/* + * 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 */ diff --git a/cde/include/Dt/IndicatorM.h b/cde/include/Dt/IndicatorM.h new file mode 100644 index 00000000..e4e1d594 --- /dev/null +++ b/cde/include/Dt/IndicatorM.h @@ -0,0 +1,59 @@ +/* + * 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. */ diff --git a/cde/include/Dt/Info.h b/cde/include/Dt/Info.h new file mode 100644 index 00000000..d3e65b7f --- /dev/null +++ b/cde/include/Dt/Info.h @@ -0,0 +1,59 @@ +/* + * 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_ */ diff --git a/cde/include/Dt/LocaleXlate.h b/cde/include/Dt/LocaleXlate.h new file mode 100644 index 00000000..974282b6 --- /dev/null +++ b/cde/include/Dt/LocaleXlate.h @@ -0,0 +1,112 @@ +/* + * 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 ********/ diff --git a/cde/include/Dt/Lock.h b/cde/include/Dt/Lock.h new file mode 100644 index 00000000..d2da1948 --- /dev/null +++ b/cde/include/Dt/Lock.h @@ -0,0 +1,145 @@ +/* + * 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)) { + + _DtReleaseLock (display, MY_LOCK); + } + else { + + } +*/ + +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. */ diff --git a/cde/include/Dt/MacrosP.h b/cde/include/Dt/MacrosP.h new file mode 100644 index 00000000..6579435f --- /dev/null +++ b/cde/include/Dt/MacrosP.h @@ -0,0 +1,199 @@ +/* + * 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: MacrosP.h /main/5 1996/03/27 20:16:40 drk $ + * + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1990,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. + */ + +/**--------------------------------------------------------------------- +*** +*** file: MacrosP.h +*** +*** project: MotifPlus Widgets +*** +*** description: Private include file with macros for MotifPlus +*** widgets and gadgets. +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtMacrosP_h +#define _DtMacrosP_h + +#define XmUNSPECIFIED_STRING (XmString) 3 + + +/*------------------------------------------------------------- +** Widget Class Macros +*/ + +/* Core Class Macros +*/ +/*** WARNING: These macros are not thread-safe! ***/ +#define C_WidgetClass(wc) (wc -> core_class.widget_class) +#define C_Superclass(wc) (wc -> core_class.superclass) +#define C_ClassName(wc) (wc -> core_class.class_name) +#define C_ClassInited(wc) (wc -> core_class.class_inited) +#define C_NumResources(wc) (wc -> core_class.num_resources) + +/* Composite Class Macros +*/ +#ifdef _XtCompositeP_h +#define C_ChangeManaged(wc) (wc -> composite_class.change_managed) +#endif /* _XtCompositeP_h */ + +/* Constraint Class Macros +*/ +#ifdef _XtConstraintP_h +#define C_ConstraintResources(wc) (wc -> constraint_class.resources) +#define C_ConstraintNumResources(wc) (wc -> constraint_class.num_resources) +#endif /* _XtConstraintP_h */ + +/* XmGadget Class Macros +*/ +#define XmInheritBorderHighlight ((XtWidgetProc) _XtInherit) +#define XmInheritBorderUnhighlight ((XtWidgetProc) _XtInherit) +#define XmInheritVisualChange ((XmVisualChangeProc) _XtInherit) + + + +/*------------------------------------------------------------- +** Primitive Macros +*/ + +#define P_X(w) (w -> core.x) +#define P_Y(w) (w -> core.y) +#define P_Width(w) (w -> core.width) +#define P_Height(w) (w -> core.height) +#define P_BorderWidth(w) (w -> core.border_width) +#define P_XrmName(w) (w -> core.xrm_name) +#define P_PopupList(w) (w -> core.popup_list) +#define P_NumPopups(w) (w -> core.num_popups) + + + +/*------------------------------------------------------------- +** Gadget Macros +*/ + +/* Object Macros +*/ +#define G_XrmName(r) (r -> object.xrm_name) +#define G_Class(r) (r -> object.widget_class) + +/* RectObject Macros +*/ +#define G_X(r) (r -> rectangle.x) +#define G_Y(r) (r -> rectangle.y) +#define G_Width(r) (r -> rectangle.width) +#define G_Height(r) (r -> rectangle.height) +#define G_BorderWidth(r) (r -> rectangle.border_width) + +/* XmGadget Macros +*/ +#define G_HelpCB(g) (g -> gadget.help_callback) +#define G_EventMask(g) (g -> gadget.event_mask) +#define G_Highlighted(g) (g -> gadget.highlighted) +#define G_UnitType(g) (g -> gadget.unit_type) + + + +/*------------------------------------------------------------- +** Manager Macros +*/ + +/* Core Macros +*/ +#define M_X(w) (w -> core.x) +#define M_Y(w) (w -> core.y) +#define M_Width(w) (w -> core.width) +#define M_Height(w) (w -> core.height) +#define M_BorderWidth(w) (w -> core.border_width) +#define M_Background(w) (w -> core.background_pixel) +#define M_Sensitive(w) (w->core.sensitive && w->core.ancestor_sensitive) +#define M_Name(w) (w -> core.name) +#define M_Accelerators(w) (w -> core.accelerators) +#define M_TmTranslations(w) (w -> core.tm.translations) +#define M_PopupList(w) (w -> core.popup_list) +#define M_NumPopups(w) (w -> core.num_popups) + +/* Composite and Constraint Macros +*/ +#define M_Children(m) (m -> composite.children) +#define M_NumChildren(m) (m -> composite.num_children) + +/* XmManager Macros +*/ +#ifdef _XmManagerP_h +#define M_Foreground(m) (m -> manager.foreground) +#define M_HighlightThickness(m) (m -> manager.highlight_thickness) +#define M_ShadowThickness(m) (m -> manager.shadow_thickness) +#define M_TopShadowGC(m) (m -> manager.top_shadow_GC) +#define M_BottomShadowGC(m) (m -> manager.bottom_shadow_GC) +#define M_BackgroundGC(m) (m -> manager.background_GC) +#define M_SelectedGadget(m) (m -> manager.selected_gadget) +#define M_HelpCB(m) (m -> manager.help_callback) +#define M_UnitType(m) (m -> manager.unit_type) +#endif /* _XmManagerP_h */ + +/* XmDrawingArea Macros +*/ +#ifdef _XmDrawingAreaP_h +#define M_MarginWidth(m) (m -> drawing_area.margin_width) +#define M_MarginHeight(m) (m -> drawing_area.margin_height) +#endif /* _XmDrawingAreaP_h */ + +/* XmBulletinBoard Macros +*/ +#ifdef _XmBulletinBoardP_h +#define M_ButtonFontList(m) (m -> bulletin_board.button_font_list) +#define M_LabelFontList(m) (m -> bulletin_board.label_font_list) +#define M_TextFontList(m) (m -> bulletin_board.text_font_list) +#define M_MarginWidth(m) (m -> bulletin_board.margin_width) +#define M_MarginHeight(m) (m -> bulletin_board.margin_height) +#endif /* _XmBulletinBoardP_h */ + +#ifdef MAYBE +/* DtIconBox Macros +*/ +#ifdef _DtIconBoxP_h +#define M_Timer(m) (m -> icon_box.timer) +#define M_ShellX(m) (m -> icon_box.shell_x) +#define M_ShellY(m) (m -> icon_box.shell_y) +#define M_DragShell(m) (m -> icon_box.drag_shell) +#define M_DragWidget(m) (m -> icon_box.drag_widget) +#define M_DragIcon(m) (m -> icon_box.drag_icon) +#define M_XCursor(m) (m -> icon_box.x_cursor) +#define M_CrossCursor(m) (m -> icon_box.cross_cursor) +#endif /* _DtIconBoxP_h */ +#endif /* MAYBE */ + +#endif /* _DtMacrosP_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/MenuButton.h b/cde/include/Dt/MenuButton.h new file mode 100644 index 00000000..e1a6fba2 --- /dev/null +++ b/cde/include/Dt/MenuButton.h @@ -0,0 +1,104 @@ +/* + * 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: MenuButton.h /main/3 1995/10/26 09:33: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. + */ + +#ifndef _Dt_MenuButton_h +#define _Dt_MenuButton_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Constants + */ + +/* Resources */ + +#ifndef DtNcascadingCallback +#define DtNcascadingCallback XmNcascadingCallback +#endif +#ifndef DtNsubMenuId +#define DtNsubMenuId XmNsubMenuId +#endif +#ifndef DtNcascadePixmap +#define DtNcascadePixmap XmNcascadePixmap +#endif + +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCPixmap +#define DtCPixmap XmCPixmap +#endif +#ifndef DtCMenuWidget +#define DtCMenuWidget XmCMenuWidget +#endif + +#ifndef DtCR_CASCADING +#define DtCR_CASCADING XmCR_CASCADING +#endif + + +/* + * Types + */ + +/* Widget class and instance */ + +typedef struct _DtMenuButtonRec * DtMenuButtonWidget; +typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtMenuButtonWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateMenuButton( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_MenuButton_h */ diff --git a/cde/include/Dt/MenuButtonP.h b/cde/include/Dt/MenuButtonP.h new file mode 100644 index 00000000..7b8ab7fd --- /dev/null +++ b/cde/include/Dt/MenuButtonP.h @@ -0,0 +1,123 @@ +/* + * 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: MenuButtonP.h /main/3 1995/10/26 09:33:17 rswiston $ */ +/* + * Copyright (C) 1986,1991 Sun Microsystems, Inc + * All rights reserved. + * Notice of copyright on this source code + * product does not indicate publication. + * + * RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by + * the U.S. Government is subject to restrictions as set forth + * in subparagraph (c)(1)(ii) of the Rights in Technical Data + * and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988) + * and FAR 52.227-19 (c) (June 1987). + * + * Sun Microsystems, Inc., 2550 Garcia Avenue, + * Mountain View, California 94043. + * + */ + +#ifndef _DtMenuButtonP_h +#define _DtMenuButtonP_h + +#include "MenuButton.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/**************************************************************** + * + * Message Defines + * + ****************************************************************/ + +#define MB_POST DTWIDGET_GETMESSAGE( \ + MS_MenuButton, MENU_POST, _DtMsgMenuButton_0000) + +#define MB_PARENT DTWIDGET_GETMESSAGE( \ + MS_MenuButton, MENU_PARENT, _DtMsgMenuButton_0001) + +#define MB_SUBMENU DTWIDGET_GETMESSAGE( \ + MS_MenuButton, MENU_SUBMENU, _DtMsgMenuButton_0002) + + +/* The MenuButton instance record */ + +typedef struct +{ /* resources */ + XtCallbackList cascading_callback; /* Cascading callback */ + Widget submenu; /* the menu to pull down */ + Pixmap menu_pixmap; /* pixmap for the menu */ + + /* internal fields */ + + Boolean armed; /* armed flag */ + Boolean popped_up; /* submenu popped up flag*/ + XRectangle menu_rect; /* location of menu*/ + Time last_timestamp; /* last time submenu popped down */ + Boolean private_submenu; + GC gc; +} DtMenuButtonPart; + + +/* Full instance record declaration */ + +typedef struct _DtMenuButtonRec +{ + CorePart core; + XmPrimitivePart primitive; + XmLabelPart label; + DtMenuButtonPart menu_button; +} DtMenuButtonRec; + + +/* MenuButton class structure */ + +typedef struct { + XtPointer extension; /* Pointer to extension record */ +} DtMenuButtonClassPart; + + +/* Full class record declaration for MenuButton class */ + +typedef struct _DtMenuButtonClassRec { + CoreClassPart core_class; + XmPrimitiveClassPart primitive_class; + XmLabelClassPart label_class; + DtMenuButtonClassPart menu_button_class; +} DtMenuButtonClassRec; + + +extern DtMenuButtonClassRec dtMenuButtonClassRec; + + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtMenuButtonP_h */ +/* DON'T ADD STUFF AFTER THIS #endif */ + diff --git a/cde/include/Dt/Message.h b/cde/include/Dt/Message.h new file mode 100644 index 00000000..6d6e74e9 --- /dev/null +++ b/cde/include/Dt/Message.h @@ -0,0 +1,114 @@ +/* + * 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
+#include
+ +#include
+ +/* This header file is a modifed version of that + * provides compatibility between the BMS messaging and the new + * ICCCM messaging used in DT. + * + * The following symbols that were defined in 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: [args ...] + * Reply message: [args ...] + * Notify message: [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. */ diff --git a/cde/include/Dt/Mrm.h b/cde/include/Dt/Mrm.h new file mode 100644 index 00000000..77892626 --- /dev/null +++ b/cde/include/Dt/Mrm.h @@ -0,0 +1,60 @@ +/* + * 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: Mrm.h /main/1 1996/04/05 14:41:44 mgreess $ */ +/* + * Common Desktop Environment + * + * (c) Copyright 1996 Hewlett-Packard Company + * (c) Copyright 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 Digital Equipment Corp. + * (c) Copyright 1995 Fujitsu Limited + * (c) Copyright 1995 Hitachi, Ltd. + * + * + * RESTRICTED RIGHTS LEGEND + * + * Use, duplication, or disclosure by the U.S. Government is subject to + * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in + * Technical Data and Computer Software clause in DFARS 252.227-7013. Rights + * for non-DOD U.S. Government Departments and Agencies are as set forth in + * FAR 52.227-19(c)(1,2). + * + * Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A. + * International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. + * Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A. + * Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A. + * Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A. + * Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan + * Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan + */ +#ifndef MRM_H +#define MRM_H + +/* DtMrmInit.c */ +extern void DtMrmInitialize(void); + +#endif /* MRM_H */ +/* DON'T ADD STUFF AFTER THIS #endif */ diff --git a/cde/include/Dt/Msg.h b/cde/include/Dt/Msg.h new file mode 100644 index 00000000..3c8fe922 --- /dev/null +++ b/cde/include/Dt/Msg.h @@ -0,0 +1,55 @@ +/* + * 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 +#include
+ +/* + * _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 ****/ diff --git a/cde/include/Dt/MsgCatP.h b/cde/include/Dt/MsgCatP.h new file mode 100644 index 00000000..bfbb9e60 --- /dev/null +++ b/cde/include/Dt/MsgCatP.h @@ -0,0 +1,53 @@ +/* + * 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 + +#ifdef __cplusplus +extern "C" { +#endif + +extern char *_DtCatgetsCached(nl_catd catd, int set, int num, char *dflt); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_MsgCat_h */ diff --git a/cde/include/Dt/MsgLog.h b/cde/include/Dt/MsgLog.h new file mode 100644 index 00000000..615edda0 --- /dev/null +++ b/cde/include/Dt/MsgLog.h @@ -0,0 +1,86 @@ +/* + * 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 /* needed for FILE */ + +#ifdef __cplusplus +extern "C" { +#endif + +# include + +/* + * 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 */ diff --git a/cde/include/Dt/MsgLogI.h b/cde/include/Dt/MsgLogI.h new file mode 100644 index 00000000..bb261c79 --- /dev/null +++ b/cde/include/Dt/MsgLogI.h @@ -0,0 +1,65 @@ +/* + * 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 +# 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 */ diff --git a/cde/include/Dt/MsgP.h b/cde/include/Dt/MsgP.h new file mode 100644 index 00000000..f25db8a6 --- /dev/null +++ b/cde/include/Dt/MsgP.h @@ -0,0 +1,182 @@ +/* + * 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
+ + +/* + * 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 ****/ diff --git a/cde/include/Dt/Print.h b/cde/include/Dt/Print.h new file mode 100644 index 00000000..4d72b64f --- /dev/null +++ b/cde/include/Dt/Print.h @@ -0,0 +1,237 @@ +/* + * 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: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */ +/* + * DtPrint/Print.h + */ +/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC. + * ALL RIGHTS RESERVED + * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. + * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 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 _DtPrint_h +#define _DtPrint_h + +#include +#if 0 && defined(PRINTING_SUPPORTED) +#include +#endif /* PRINTING_SUPPORTED */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Class record constants + */ +externalref WidgetClass dtPrintSetupBoxWidgetClass; + +typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass; +typedef struct _DtPrintSetupBoxRec * DtPrintSetupBoxWidget; + + +#ifndef DtIsPrintSetupBox +#define DtIsPrintSetupBox(w) (XtIsSubclass (w, dtPrintSetupBoxWidgetClass)) +#endif + +/* + * Resource Names + */ +#define DtNcancelCallback "cancelCallback" +#define DtNclosePrintDisplayCallback "closePrintDisplayCallback" +#define DtNcopies "copies" +#define DtNdescription "description" +#define DtNdestroyContextCallback "destroyContextCallback" +#define DtNfileName "fileName" +#ifndef DtNminimizeButtons +# define DtNminimizeButtons "minimizeButtons" +#endif +#define DtNoptionCount "optionCount" +#define DtNoptions "options" +#define DtNprintCallback "printCallback" +#define DtNprintDestination "printDestination" +#define DtNprinterInfoProc "printerInfoProc" +#define DtNprinterName "printerName" +#define DtNprintSetupMode "printSetupMode" +#define DtNselectFileProc "selectFileProc" +#define DtNselectPrinterProc "selectPrinterProc" +#define DtNsetupCallback "setupCallback" +#define DtNverifyPrinterProc "verifyPrinterProc" +#define DtNworkAreaLocation "workAreaLocation" + +#define DtCCancelCallback "CancelCallback" +#define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback" +#define DtCCopies "Copies" +#define DtCDescription "Description" +#define DtCDestroyContextCallback "DestroyContextCallback" +#define DtCFileName "FileName" +#ifndef DtCMinimizeButtons +# define DtCMinimizeButtons "MinimizeButtons" +#endif +#define DtCOptionCount "OptionCount" +#define DtCOptions "Options" +#define DtCPrintCallback "PrintCallback" +#define DtCPrintDestination "PrintDestination" +#define DtCPrinterInfoProc "PrinterInfoProc" +#define DtCPrinterName "PrinterName" +#define DtCPrintSetupMode "PrintSetupMode" +#define DtCSelectFileProc "SelectFileProc" +#define DtCSelectPrinterProc "SelectPrinterProc" +#define DtCSetupCallback "SetupCallback" +#define DtCVerifyPrinterProc "VerifyPrinterProc" +#define DtCWorkAreaLocation "WorkAreaLocation" + +#define DtRPrintSetupProc "PrintSetupProc" + +/* + * DtNsetupMode Resource Values + */ +enum { + DtPRINT_SETUP_PLAIN, + DtPRINT_SETUP_XP +}; + +/* + * DtNworkAreaLocation Resource Values + */ +enum { + DtWORK_AREA_NONE, + DtWORK_AREA_TOP, + DtWORK_AREA_TOP_AND_BOTTOM, + DtWORK_AREA_BOTTOM +}; + +/* + * DtNprintDestination Resource Values + */ +enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE }; + +/* + * DtNprinterNameMode Resource Values + */ +enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME }; + +/* + * Mode values for DtPrintSetupBoxResetConnection() + */ +typedef enum { + DtPRINT_CLOSE_CONNECTION, + DtPRINT_RELEASE_CONNECTION +} DtPrintResetConnectionMode; + +/* + * Callback Reasons + */ +enum { + DtPRINT_CR_NONE, + DtPRINT_CR_CANCEL, + DtPRINT_CR_CLOSE_PRINT_DISPLAY, + DtPRINT_CR_PRINT, + DtPRINT_CR_SETUP +}; + +/* + * DtPrint proecdure return values + */ +enum { + DtPRINT_SUCCESS, + DtPRINT_BAD_PARM, + DtPRINT_FAILURE, + DtPRINT_INVALID_DISPLAY, + DtPRINT_NOT_XP_DISPLAY, + DtPRINT_NO_CONNECTION, + DtPRINT_NO_DEFAULT, + DtPRINT_NO_DEFAULT_DISPLAY, + DtPRINT_NO_PRINTER, + DtPRINT_PRINTER_MISSING +}; + +enum { + DtPRINT_HINT_MESSAGES_OK, + DtPRINT_HINT_NO_MESSAGES +}; + +/* + * PrintSetupBox Callback Structure Definition + */ +typedef struct _DtPrintSetupData +{ + String printer_name; + Display *print_display; +#ifdef PRINTING_SUPPORT + XPContext print_context; +#endif /* PRINTING_SUPPORTED */ + XtEnum destination; + String dest_info; + XtEnum messages_hint; +} DtPrintSetupData; + +typedef struct _DtPrintSetupCallbackStruct +{ + int reason; + XEvent *event; + DtPrintSetupData *print_data; +} DtPrintSetupCallbackStruct; + +/* + * PrintSetupBox Procedure Resource Type Definition + */ +typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*); + +/* + * Public Function Declarations + */ +extern Widget DtCreatePrintSetupBox( + Widget p, + String name, + ArgList args, + Cardinal n) ; +extern Widget DtCreatePrintSetupDialog( + Widget ds_p, + String name, + ArgList sb_args, + Cardinal sb_n) ; +extern DtPrintSetupData* DtPrintCopySetupData( + DtPrintSetupData* target, + const DtPrintSetupData* source); +extern XtEnum DtPrintFillSetupData( + Widget psub, + DtPrintSetupData* print_data); +extern void DtPrintFreeSetupData( + DtPrintSetupData* target); +extern XtEnum DtPrintResetConnection( + Widget psub, + DtPrintResetConnectionMode m); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPrint_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PrintDlgMgrP.h b/cde/include/Dt/PrintDlgMgrP.h new file mode 100644 index 00000000..1f7eaef5 --- /dev/null +++ b/cde/include/Dt/PrintDlgMgrP.h @@ -0,0 +1,52 @@ +/* + * 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: PrintDlgMgrP.h /main/3 1996/08/12 18:40:55 cde-hp $ */ +/* + * DtPrint/PrintDlgMgrP.h + */ +/* + * (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 _PrintDlgMgrP_h +#define _PrintDlgMgrP_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern Widget _DtCreatePDMJobSetup(Widget Parent); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPrintDlgMgrP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PrintI.h b/cde/include/Dt/PrintI.h new file mode 100644 index 00000000..3b66fac9 --- /dev/null +++ b/cde/include/Dt/PrintI.h @@ -0,0 +1,72 @@ +/* + * 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: PrintI.h /main/1 1996/10/31 11:19:07 drk $ + * + * (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 _DtPrintI_h +#define _DtPrintI_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/******** Conditionally defined macros for thread safe DtPrint ******/ +#ifdef XTHREADS + +#define _DtPrintWidgetToAppContext(w) \ + XtAppContext app = XtWidgetToApplicationContext(w) + +#define _DtPrintDisplayToAppContext(d) \ + XtAppContext app = XtDisplayToApplicationContext(d) + +#define _DtPrintAppLock(app) XtAppLock(app) +#define _DtPrintAppUnlock(app) XtAppUnlock(app) +#define _DtPrintProcessLock() XtProcessLock() +#define _DtPrintProcessUnlock() XtProcessUnlock() + +#else /* XTHREADS */ + +#define _DtPrintWidgetToAppContext(w) +#define _DtPrintDisplayToAppContext(d) +#define _DtPrintAppLock(app) +#define _DtPrintAppUnlock(app) +#define _DtPrintProcessLock() +#define _DtPrintProcessUnlock() + +#endif /* XTHREADS */ + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPrintI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PrintMsgsP.h b/cde/include/Dt/PrintMsgsP.h new file mode 100644 index 00000000..c4ae5ff6 --- /dev/null +++ b/cde/include/Dt/PrintMsgsP.h @@ -0,0 +1,203 @@ +/* + * 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: PrintMsgsP.h /main/9 1996/08/19 17:12:12 cde-hp $ */ +/* + * DtPrint/PrintMsgsP.h + */ +/* + * (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 _DtPrintMsgsP_h +#define _DtPrintMsgsP_h + +#ifdef I18N_MSG +#include +#define DTPRINT_GETMESSAGE(set, number, string) \ + _DtPrintGetMessage(set, number, string) + +#else /* I18N_MSG */ +#define DTPRINT_GETMESSAGE(set, number, string) string +#endif /* I18N_MSG */ + +/*** const causes the HP compiler to complain. Remove reference until *** + *** the build and integration people can figure out how to get this to *** + *** work. ***/ + +/* #define CONST const */ +#define CONST + + +/* + * extern declarations for PrintSetupBox widget messages + */ +extern CONST char _DtPrMsgPrintSetupBox_0000[]; +extern CONST char _DtPrMsgPrintSetupBox_0001[]; +extern CONST char _DtPrMsgPrintSetupBox_0002[]; +extern CONST char _DtPrMsgPrintSetupBox_0003[]; +extern CONST char _DtPrMsgPrintSetupBox_0004[]; +extern CONST char _DtPrMsgPrintSetupBox_0005[]; +extern CONST char _DtPrMsgPrintSetupBox_0006[]; +extern CONST char _DtPrMsgPrintSetupBox_0007[]; +extern CONST char _DtPrMsgPrintSetupBox_0008[]; +extern CONST char _DtPrMsgPrintSetupBox_0009[]; +extern CONST char _DtPrMsgPrintSetupBox_0010[]; +extern CONST char _DtPrMsgPrintSetupBox_0011[]; +extern CONST char _DtPrMsgPrintSetupBox_0012[]; +extern CONST char _DtPrMsgPrintSetupBox_0013[]; +extern CONST char _DtPrMsgPrintSetupBox_0014[]; +extern CONST char _DtPrMsgPrintSetupBox_0015[]; +extern CONST char _DtPrMsgPrintSetupBox_0016[]; +extern CONST char _DtPrMsgPrintSetupBox_0017[]; +extern CONST char _DtPrMsgPrintSetupBox_0018[]; +extern CONST char _DtPrMsgPrintSetupBox_0019[]; +extern CONST char _DtPrMsgPrintSetupBox_0020[]; +extern CONST char _DtPrMsgPrintSetupBox_0021[]; +extern CONST char _DtPrMsgPrintSetupBox_0022[]; +extern CONST char _DtPrMsgPrintSetupBox_0023[]; +extern CONST char _DtPrMsgPrintSetupBox_0024[]; +extern CONST char _DtPrMsgPrintSetupBox_0025[]; +extern CONST char _DtPrMsgPrintSetupBox_0026[]; +extern CONST char _DtPrMsgPrintSetupBox_0027[]; +extern CONST char _DtPrMsgPrintSetupBox_0028[]; +extern CONST char _DtPrMsgPrintSetupBox_0029[]; +extern CONST char _DtPrMsgPrintSetupBox_0030[]; +extern CONST char _DtPrMsgPrintSetupBox_0031[]; +extern CONST char _DtPrMsgPrintSetupBox_0032[]; +extern CONST char _DtPrMsgPrintSetupBox_0033[]; +extern CONST char _DtPrMsgPrintSetupBox_0034[]; +extern CONST char _DtPrMsgPrintSetupBox_0035[]; +extern CONST char _DtPrMsgPrintSetupBox_0036[]; + +/* + * Message set for PrintSetupBox widget + */ +#define MS_PrintSetupBox 1 + +/* Message IDs for PrintSetupBox */ +#define PSUB_WARN_WA_LOCATION 1 +#define PSUB_SELECT_PRINTER 2 +#define PSUB_PRINT_TO_FILE 3 +#define PSUB_SELECT_FILE 4 +#define PSUB_CANCEL 5 +#define PSUB_COPIES 6 +#define PSUB_HELP 7 +#define PSUB_PRINT 8 +#define PSUB_PRINTER_NAME 9 +#define PSUB_SETUP 10 +#define PSUB_DESCRIPTION 11 +#define PSUB_WARN_COPY_COUNT 12 +#define PSUB_WARN_SETUP_MODE 13 +#define PSUB_WARN_SETUP_MODE_CHANGE 14 +#define PSUB_PRINTER_INFO 15 +#define PSUB_INVALID_PRINTER_TITLE 16 +#define PSUB_INVALID_PRINTER_MESSAGE 17 +#define PSUB_INVALID_DISPLAY_MESSAGE 18 +#define PSUB_NOT_XP_DISPLAY_MESSAGE 19 +#define PSUB_NO_DEFAULT_MESSAGE 20 +#define PSUB_NO_DEFAULT_DISPLAY_MESSAGE 21 +#define PSUB_PRINTER_MISSING_MESSAGE 22 +#define PSUB_WARN_PRINT_DESTINATION 23 +#define PSUB_WARN_CT_CONVERSION 24 +#define PSUB_WARN_CONVERSION_ARGS 25 +#define PSUB_PRLIST_ERROR_TITLE 26 +#define PSUB_NO_PRINTERS_MESSAGE 27 +#define PSUB_DESC_UNAVAILABLE 28 +#define PSUB_SELECT_FILE_TITLE 29 +#define PSUB_PRINTER_INFO_TITLE 30 +#define PSUB_FORMAT_LABEL 31 +#define PSUB_MODEL_LABEL 32 +#define PSUB_PRINTER_LIST_LABEL 33 +#define PSUB_MORE_PRINTERS_TITLE 34 +#define PSUB_PRINT_TO_PRINTER 35 +#define PSUB_FILE_NAME 36 +#define PSUB_HELP_DLG_TITLE 37 + +/* + * extern declarations for _DtPrint frame widgets + */ +extern CONST char _DtPrMsgPrintOption_0000[]; +extern CONST char _DtPrMsgPrintOption_0001[]; +extern CONST char _DtPrMsgPrintOption_0002[]; +extern CONST char _DtPrMsgPrintOption_0003[]; +extern CONST char _DtPrMsgPrintOption_0004[]; +extern CONST char _DtPrMsgPrintOption_0005[]; +extern CONST char _DtPrMsgPrintOption_0006[]; +extern CONST char _DtPrMsgPrintOption_0007[]; +extern CONST char _DtPrMsgPrintOption_0008[]; +extern CONST char _DtPrMsgPrintOption_0009[]; + +/* + * Message set for _DtPrint frame widgets + */ +#define MS_PrintOptionsSet 2 + +/* + * Message IDs for _DtPrint frame widgets + */ +#define DTPO_MARGINS 1 +#define DTPO_TOP 2 +#define DTPO_RIGHT 3 +#define DTPO_BOTTOM 4 +#define DTPO_LEFT 5 + +#define DTPO_HEADERS_N_FOOTERS 6 +#define DTPO_TOP_LEFT 7 +#define DTPO_TOP_RIGHT 8 +#define DTPO_BOTTOM_LEFT 9 +#define DTPO_BOTTOM_RIGHT 10 + +/* + * extern declarations for PrintDlgMgr module + */ +extern CONST char _DtPrMsgPrintDlgMgr_0000[]; +extern CONST char _DtPrMsgPrintDlgMgr_0001[]; +extern CONST char _DtPrMsgPrintDlgMgr_0002[]; + +/* + * Message set for PrintDlgMgr module + */ +#define MS_PrintDlgMgrSet 3 + +/* + * Message IDs for PrintDlgMgr module + */ +#define DTPDM_SEND_MAIL_LABEL 1 +#define DTPDM_BANNER_LABEL 2 +#define DTPDM_SPOOL_OPTS_LABEL 3 + + +#ifdef I18N_MSG +extern char * _DtPrintGetMessage( + int set, + int n, + char * s); + +#endif /* I18N_MSG */ + +#endif /* _DtPrintMsgsP_h */ diff --git a/cde/include/Dt/PrintOptionsP.h b/cde/include/Dt/PrintOptionsP.h new file mode 100644 index 00000000..6a172268 --- /dev/null +++ b/cde/include/Dt/PrintOptionsP.h @@ -0,0 +1,199 @@ +/* + * 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: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */ + +#ifndef _DT_PRINT_OPTIONSP_H +#define _DT_PRINT_OPTIONSP_H + +/* + *+SNOTICE + * + * $:$ + * + * 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. + * + *+ENOTICE + */ +/* + + Common Desktop Environment + + (c) Copyright 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 Digital Equipment Corp. + (c) Copyright 1995 Fujitsu Limited + (c) Copyright 1995 Hitachi, Ltd. + + + RESTRICTED RIGHTS LEGEND + +Use, duplication, or disclosure by the U.S. Government is subject to +restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in +Technical Data and Computer Software clause in DFARS 252.227-7013. Rights +for non-DOD U.S. Government Departments and Agencies are as set forth in +FAR 52.227-19(c)(1,2). + +Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A. +International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. +Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A. +Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A. +Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A. +Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan +Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan + */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Message Catalog Lookup + */ +#define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000) +#define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001) +#define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002) +#define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003) +#define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004) + +#define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005) +#define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006) +#define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007) +#define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008) +#define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009) + + +/* + * Header/Footer Frame API + */ +typedef enum { + DTPRINT_OPTION_HEADER_LEFT, + DTPRINT_OPTION_HEADER_RIGHT, + DTPRINT_OPTION_FOOTER_LEFT, + DTPRINT_OPTION_FOOTER_RIGHT +} _DtPrintHdrFtrEnum; + +extern Widget _DtPrintCreateHdrFtrFrame( + Widget parent, + int nspecs, + char **spec_strings, + void **spec_data + ); + +extern Widget _DtPrintHdrFtrFrameEnumToWidget( + Widget frame, + _DtPrintHdrFtrEnum which + ); + +extern void _DtPrintHdrFtrFrameMenuWidgets( + Widget frame, + Widget *menu, + int *nmenu_buttons, + Widget **menu_buttons + ); + +extern void *_DtPrintGetHdrFtrData( + Widget widget + ); + +extern int _DtPrintGetHdrFtrIndex( + Widget widget + ); + +extern char *_DtPrintGetHdrFtrString( + Widget widget + ); + +extern void _DtPrintSetHdrFtrByData( + Widget widget, + void *data + ); + +extern void _DtPrintSetHdrFtrByIndex( + Widget widget, + int index + ); + +extern void _DtPrintSetHdrFtrByString( + Widget widget, + char *string + ); + + +/* + * Margin Frame API + */ +typedef enum { + DTPRINT_OPTION_MARGIN_TOP, + DTPRINT_OPTION_MARGIN_RIGHT, + DTPRINT_OPTION_MARGIN_BOTTOM, + DTPRINT_OPTION_MARGIN_LEFT +} _DtPrintMarginEnum; + +extern Widget _DtPrintCreateMarginFrame( + Widget parent + ); + +extern Widget _DtPrintMarginFrameEnumToWidget( + Widget frame, + _DtPrintMarginEnum which + ); + +extern char* _DtPrintGetMarginSpec( + Widget margin + ); + +extern void _DtPrintSetMarginSpec( + Widget margin, + char *spec + ); + + + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DT_PRINT_OPTIONSP_H */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PrintSetupBP.h b/cde/include/Dt/PrintSetupBP.h new file mode 100644 index 00000000..b6ff5305 --- /dev/null +++ b/cde/include/Dt/PrintSetupBP.h @@ -0,0 +1,536 @@ +/* + * 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: PrintSetupBP.h /main/16 1996/11/01 15:00:02 cde-hp $ */ +/* + * DtPrint/PrintSetupBP.h + */ +/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC. + * ALL RIGHTS RESERVED + * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. + * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 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 _DtPrintSetupBP_h +#define _DtPrintSetupBP_h + +#include +#include
+#include
+ +#ifdef __cplusplus +extern "C" { +#endif + +/* + * ------------------------------------------------------------------------ + * Constant Definitions + * + */ +/* + * Message Catalog Lookup + */ +#define WARN_WORK_AREA_LOCATION DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_WA_LOCATION, _DtPrMsgPrintSetupBox_0000) +#define SELECT_PRINTER_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_SELECT_PRINTER, _DtPrMsgPrintSetupBox_0001) +#define PRINT_TO_FILE_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINT_TO_FILE, _DtPrMsgPrintSetupBox_0002) +#define SELECT_FILE_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_SELECT_FILE, _DtPrMsgPrintSetupBox_0003) +#define CANCEL_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_CANCEL, _DtPrMsgPrintSetupBox_0004) +#define COPIES_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_COPIES, _DtPrMsgPrintSetupBox_0005) +#define HELP_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_HELP, _DtPrMsgPrintSetupBox_0006) +#define PRINT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINT, _DtPrMsgPrintSetupBox_0007) +#define PRINTER_NAME_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINTER_NAME, _DtPrMsgPrintSetupBox_0008) +#define SETUP_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_SETUP, _DtPrMsgPrintSetupBox_0009) +#define DESCRIPTION_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_DESCRIPTION, _DtPrMsgPrintSetupBox_0010) +#define WARN_COPY_COUNT DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_COPY_COUNT, _DtPrMsgPrintSetupBox_0011) +#define WARN_SETUP_MODE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_SETUP_MODE, _DtPrMsgPrintSetupBox_0012) +#define WARN_SETUP_MODE_CHANGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_SETUP_MODE_CHANGE, _DtPrMsgPrintSetupBox_0013) +#define PRINTER_INFO_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINTER_INFO, _DtPrMsgPrintSetupBox_0014) +#define INVALID_PRINTER_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_INVALID_PRINTER_TITLE, _DtPrMsgPrintSetupBox_0015) +#define INVALID_PRINTER_MESSAGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_INVALID_PRINTER_MESSAGE, _DtPrMsgPrintSetupBox_0016) +#define INVALID_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_INVALID_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0017) +#define NOT_XP_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_NOT_XP_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0018) +#define NO_DEFAULT_MESSAGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_NO_DEFAULT_MESSAGE, _DtPrMsgPrintSetupBox_0019) +#define NO_DEFAULT_DISPLAY_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \ + PSUB_NO_DEFAULT_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0020) +#define PRINTER_MISSING_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \ + PSUB_PRINTER_MISSING_MESSAGE, _DtPrMsgPrintSetupBox_0021) +#define WARN_PRINT_DESTINATION DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_PRINT_DESTINATION, _DtPrMsgPrintSetupBox_0022) +#define WARN_CT_CONVERSION DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_CT_CONVERSION, _DtPrMsgPrintSetupBox_0023) +#define WARN_CONVERSION_ARGS DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_WARN_CONVERSION_ARGS, _DtPrMsgPrintSetupBox_0024) +#define PRLIST_ERROR_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRLIST_ERROR_TITLE, _DtPrMsgPrintSetupBox_0025) +#define NO_PRINTERS_MESSAGE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_NO_PRINTERS_MESSAGE, _DtPrMsgPrintSetupBox_0026) +#define DESC_UNAVAILABLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_DESC_UNAVAILABLE, _DtPrMsgPrintSetupBox_0027) +#define SELECT_FILE_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_SELECT_FILE_TITLE, _DtPrMsgPrintSetupBox_0028) +#define PRINTER_INFO_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINTER_INFO_TITLE, _DtPrMsgPrintSetupBox_0029) +#define FORMAT_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_FORMAT_LABEL, _DtPrMsgPrintSetupBox_0030) +#define MODEL_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_MODEL_LABEL, _DtPrMsgPrintSetupBox_0031) +#define PRINTER_LIST_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINTER_LIST_LABEL, _DtPrMsgPrintSetupBox_0032) +#define MORE_PRINTERS_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_MORE_PRINTERS_TITLE, _DtPrMsgPrintSetupBox_0033) +#define PRINT_TO_PRINTER_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_PRINT_TO_PRINTER, _DtPrMsgPrintSetupBox_0034) +#define FILE_NAME_LABEL DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_FILE_NAME, _DtPrMsgPrintSetupBox_0035) +#define HELP_DLG_TITLE DTPRINT_GETMESSAGE( \ + MS_PrintSetupBox, PSUB_HELP_DLG_TITLE, _DtPrMsgPrintSetupBox_0036) +# +/* + * Constants for Use in Allocation Geometry Matrix. + */ +#define DtPSUB_MAX_WIDGETS_VERT 12 + +/* + * ------------------------------------------------------------------------ + * Type Definitions + * + */ +/* + * data private to default resource procedures + */ +typedef struct +{ + String printer_name_ct; + String printer_name; + String description; +} DtPrintSelectPrinterRec, *DtPrintSelectPrinterList; + +typedef struct _DtPrintDefaultProcData +{ + /* + * common data + */ + Widget error_message_box; + XtEnum messages_hint; + Widget help_dialog; + /* + * select file proc + */ + Widget file_selection_box; + /* + * select printer proc + */ + Widget printer_selection_box; + Widget printer_list_box; + String* xp_server_list; + int xp_server_count; + DtPrintSelectPrinterList* printer_lists; + int* printer_counts; + int selected_printer; + Display* select_printer_info_display; +#if 0 && defined(PRINTING_SUPPORTED) + XPContext select_printer_info_context; +#endif /* PRINTING_SUPPORT */ + /* + * printer info proc + */ + Widget printer_info_box; + +} DtPrintDefaultProcData; + +/* + * verify state + */ +typedef enum { + DtPRINT_VERIFIED, + DtPRINT_IN_VERIFY, + DtPRINT_NOT_VERIFIED +} DtPrintVerifyState; + +/* + * Constraint part record for PrintSetupBox widget + */ +typedef struct _DtPrintSetupBoxConstraintPart +{ + char unused; +} DtPrintSetupBoxConstraintPart, * DtPrintSetupBoxConstraint; +/* + * New fields for the PrintSetupBox widget class record + */ +typedef struct +{ + XtCallbackProc list_callback ; + XtPointer extension; /* Pointer to extension record */ +} DtPrintSetupBoxClassPart; +/* + * Full class record declaration + */ +typedef struct _DtPrintSetupBoxClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + DtPrintSetupBoxClassPart print_setup_box_class; +} DtPrintSetupBoxClassRec; + +externalref DtPrintSetupBoxClassRec dtPrintSetupBoxClassRec; + +/* + * New fields for the PrintSetupBox widget record + */ +typedef struct +{ + /* + * synthetic resources + */ + String file_name; + String printer_name; + XmString description_string; + int copies; + /* + * flag resources + */ + Boolean minimize_buttons; + XtEnum print_destination; + XtEnum print_setup_mode; + XtEnum work_area_location; + /* + * procedure resources + */ + DtPrintSetupProc printer_info_proc; + DtPrintSetupProc select_file_proc; + DtPrintSetupProc select_printer_proc; + DtPrintSetupProc verify_printer_proc; + /* + * callback resources + */ + XtCallbackList cancel_callback; + XtCallbackList close_display_callback; + XtCallbackList print_callback; + XtCallbackList setup_callback; + /* + * other resources + */ + XrmOptionDescList options; + Cardinal option_count; + /* + * Xp standard resources + */ + XtEnum xp_printer_name_mode; + /* + * internal flags + */ + Boolean adding_sel_widgets; + DtPrintVerifyState verify_printer_state; + Boolean copy_count_supported; + /* + * internal data + */ + String modal_printer_spec; + Display* print_display; +#if 0 && defined(PRINTING_SUPPORTED) + XPContext print_context; +#endif /* PRINTING_SUPPORTED */ + XtIntervalId timeout_id; + /* + * descendents + */ + Widget bottom_separator; + Widget bottom_work_area; + Widget button_separator; + Widget copies_control; + Widget copies_spin_box; + Widget description; + Widget description_label; + Widget destination_radio_box; + Widget file_name_label; + Widget file_name_text; + Widget help_button; + Widget print_button; + Widget printer_info_button; + Widget printer_name_label; + Widget printer_name_text; + Widget printer_name_combo; + Widget select_file_button; + Widget select_printer_button; + Widget setup_button; + Widget top_separator; + Widget top_work_area; + /* + * data private to the default resource procedures + */ + DtPrintDefaultProcData default_proc_data; + +} DtPrintSetupBoxPart; + +/* + * Full instance record declaration + */ +typedef struct _DtPrintSetupBoxRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + DtPrintSetupBoxPart print_setup_box; +} DtPrintSetupBoxRec; + +/* + * ------------------------------------------------------------------------ + * Macro Definitions + * + */ +/* + * Instance Record Access + */ +#define PSUB_AddingSelWidgets(w) \ + (((DtPrintSetupBoxWidget) w)->print_setup_box.adding_sel_widgets) +#define PSUB_AutoUnmanage(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.auto_unmanage) +#define PSUB_BottomSeparator(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_separator) +#define PSUB_BottomWorkArea(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_work_area) +#define PSUB_ButtonSeparator(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.button_separator) +#define PSUB_ButtonFontList(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.button_font_list) +#define PSUB_CancelButton(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.cancel_button) +#define PSUB_CancelCallback(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.cancel_callback) +#define PSUB_CloseDisplayCallback(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.close_display_callback) +#if 0 && defined(PRINTING_SUPPORTED) +#define PSUB_Context(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_context) +#endif /* PRINTING_SUPPORTED */ +#define PSUB_Copies(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies) +#define PSUB_CopiesControl(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_control) +#define PSUB_CopiesSpinBox(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_spin_box) +#define PSUB_CopyCountSupported(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.copy_count_supported) +#define PSUB_DefaultButton(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.default_button) +#define PSUB_DefaultProcData(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.default_proc_data) +#define PSUB_Description(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.description) +#define PSUB_DescriptionLabel(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_label) +#define PSUB_DescriptionString(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_string) +#define PSUB_DestinationRadioBox(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.destination_radio_box) +#define PSUB_Display(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_display) +#define PSUB_FileName(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name) +#define PSUB_FileNameLabel(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_label) +#define PSUB_FileNameText(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_text) +#define PSUB_HelpButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.help_button) +#define PSUB_LabelFontList(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.label_font_list) +#define PSUB_MarginHeight(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_height) +#define PSUB_MarginWidth(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_width) +#define PSUB_MinimizeButtons(w) \ + (((DtPrintSetupBoxWidget) w)->print_setup_box.minimize_buttons) +#define PSUB_ModalPrinterSpec(w) \ + (((DtPrintSetupBoxWidget) w)->print_setup_box.modal_printer_spec) +#define PSUB_MustMatch(w) \ + (((DtPrintSetupBoxWidget) w)->print_setup_box.must_match) +#define PSUB_OptionCount(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.option_count) +#define PSUB_Options(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.options) +#define PSUB_PrintButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_button) +#define PSUB_PrintCallback(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_callback) +#define PSUB_PrintDestination(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_destination) +#define PSUB_PrinterInfoButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_button) +#define PSUB_PrinterInfoProc(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_proc) +#define PSUB_PrinterName(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name) +#define PSUB_PrinterNameText(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_text) +#define PSUB_PrinterNameCombo(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_combo) +#define PSUB_PrinterNameLabel(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_label) +#define PSUB_PrintSetupMode(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_setup_mode) +#define PSUB_SelectFileButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_button) +#define PSUB_SelectFileProc(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_proc) +#define PSUB_SelectPrinterButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_button) +#define PSUB_SelectPrinterProc(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_proc) +#define PSUB_SetupButton(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_button) +#define PSUB_SetupCallback(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_callback) +#define PSUB_Shell(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.shell) +#define PSUB_StringDirection(w) \ + (((DtPrintSetupBoxWidget)(w))->manager.string_direction) +#define PSUB_Text(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.text) +#define PSUB_TextColumns(w) \ + (((DtPrintSetupBoxWidget) w)->print_setup_box.text_columns) +#define PSUB_TextFontList(w) \ + (((DtPrintSetupBoxWidget) (w))->bulletin_board.text_font_list) +#define PSUB_TimeoutId(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.timeout_id) +#define PSUB_TopSeparator(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_separator) +#define PSUB_TopWorkArea(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_work_area) +#define PSUB_VerifyPrinterProc(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_proc) +#define PSUB_VerifyPrinterState(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_state) +#define PSUB_WorkAreaLocation(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.work_area_location) +#define PSUB_XpPrinterNameMode(w) \ + (((DtPrintSetupBoxWidget) (w))->print_setup_box.xp_printer_name_mode) + +/* + * ------------------------------------------------------------------------ + * Private Function Declarations + * + */ +/* + * Child Widget Creation Functions + */ +extern void _DtPrintSetupBoxCreateButtonSeparator( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateBottomSeparator( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateCancelButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateCopiesControl( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateDescription( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateDescriptionLabel( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateDestinationRadioBox( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateFileNameLabel( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateFileNameText( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateHelpButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreatePrintButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreatePrinterInfoButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreatePrinterNameLabel( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreatePrinterNameCombo( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateSelectFileButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateSelectPrinterButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateSetupButton( + DtPrintSetupBoxWidget psub); +extern void _DtPrintSetupBoxCreateTopSeparator( + DtPrintSetupBoxWidget psub); +/* + * Synthetic resource internal->external conversion functions + */ +extern void _DtPrintSetupBoxGetCopies( + Widget wid, + int resource_offset, + XtArgVal *value); +extern void _DtPrintSetupBoxGetDescription( + Widget wid, + int resource_offset, + XtArgVal *value); +extern void _DtPrintSetupBoxGetFileName( + Widget wid, + int resource_offset, + XtArgVal *value); +extern void _DtPrintSetupBoxGetPrinterName( + Widget wid, + int resource_offset, + XtArgVal *value); +/* + * Geometry Management + */ +extern XmGeoMatrix _DtPrintSetupBoxGeoMatrixCreate( + Widget wid, + Widget instigator, + XtWidgetGeometry *desired); +extern Boolean _DtPrintSetupBoxNoGeoRequest( + XmGeoMatrix geoSpec); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPrintSetupBP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PsubDefProcI.h b/cde/include/Dt/PsubDefProcI.h new file mode 100644 index 00000000..22248ada --- /dev/null +++ b/cde/include/Dt/PsubDefProcI.h @@ -0,0 +1,75 @@ +/* + * 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: PsubDefProcI.h /main/10 1996/11/01 15:00:46 cde-hp $ */ +/* + * DtPrint/PsubDefProcI.h + */ +/* + * (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 _DtPsubDefProcI_h +#define _DtPsubDefProcI_h + +#include
+#include
+ +#ifdef __cplusplus +extern "C" { +#endif + +/* + * ------------------------------------------------------------------------ + * Private Function Declarations + * + */ +extern void _DtPrintDefProcInitialize(Widget w); +extern void _DtPrintDefProcManageErrorBox(DtPrintDefaultProcData* dpd); + +/* + * Procedure Resource Defaults + */ +extern XtEnum _DtPrintSetupBoxXPrinterInfoProc( + Widget w, + DtPrintSetupData* print_data); +extern XtEnum _DtPrintSetupBoxSelectFileProc( + Widget w, + DtPrintSetupData* print_data); +extern XtEnum _DtPrintSetupBoxSelectXPrinterProc( + Widget w, + DtPrintSetupData* print_data); +extern XtEnum _DtPrintSetupBoxVerifyXPrinterProc( + Widget w, + DtPrintSetupData* print_data); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPsubDefProcI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/PsubUtilI.h b/cde/include/Dt/PsubUtilI.h new file mode 100644 index 00000000..05a16e95 --- /dev/null +++ b/cde/include/Dt/PsubUtilI.h @@ -0,0 +1,102 @@ +/* + * 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: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */ +/* + * DtPrint/PsubUtilI.h + */ +/* + * (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 _DtPsubUtilI_h +#define _DtPsubUtilI_h + +#include
+ +#ifdef __cplusplus +extern "C" { +#endif + +/* + * ------------------------------------------------------------------------ + * Type Definitions + * + */ +typedef enum { + DtPRINT_DEC_NET, + DtPRINT_TCP_IPC, + DtPRINT_NET_UNSPECIFIED +} DtPrintSpecNet; + +/* + * ------------------------------------------------------------------------ + * Private Function Declarations + * + */ +String _DtPrintCreateXPrinterSpecifier( + String printer_name, + String host_name, + DtPrintSpecNet spec_net, + int display_num, + int screen_num); +void _DtPrintFreeStringList( + String* string_list); +String _DtPrintGetDefaultXPrinterName( + Widget w); +String* _DtPrintGetXpPrinterList( + Widget w); +String* _DtPrintGetXpServerList( + Widget w); +void _DtPrintParseXDisplaySpecifier( + const String display_spec, + String* host_name, + DtPrintSpecNet* spec_net, + int* display_num, + int* screen_num); +void _DtPrintParseXPrinterSpecifier( + const String specifier, + String* printer_name, + String* display_spec); +XtEnum _DtPrintVerifyXPrinter( + Widget w, + String printer_spec, + String* new_printer_spec, + Display** new_display +#if 0 && defined(PRINTING_SUPPORTED) + ,XPContext* new_context +#endif /* PRINTING_SUPPORTED */ + ); + + + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtPsubUtilI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Qualify.h b/cde/include/Dt/Qualify.h new file mode 100644 index 00000000..c500a7f3 --- /dev/null +++ b/cde/include/Dt/Qualify.h @@ -0,0 +1,78 @@ +/* + * 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: Qualify.h + * RCS: $XConsortium: Qualify.h /main/3 1995/10/26 15:10:03 rswiston $ + * Description: Public header file for the Qualify routine + * Project: DT Runtime Library + * Language: C + * Package: N/A + * + * (c) Copyright 1993 by Hewlett-Packard Company + * + *****************************************************************************/ + +/********************************************************************* + * _DtQualifyWithFirst + * + * takes: an unqualified filename like foo.txt, and + * a colon-separated list of pathnames, such as + * /etc/dt:/usr/dt/config + * + * returns: a fully qualified filename. Space for the filename + * has been allocated off the heap using malloc. It is + * the responsibility of the calling function to dispose + * of the space using free. + * + * example: ... + * char * filename; + * ... + * filename = _DtQualifyWithFirst("configFile", + * "/foo/first/location:/foo/second/choice"); + * < use filename > + * free(filename); + * + **********************************************************************/ + +#ifndef _Dt_Qualify_h +#define _Dt_Qualify_h + + +# ifdef __cplusplus +extern "C" { +# endif + +extern char * _DtQualifyWithFirst + ( + char *, /* file to locate */ + char * /* list of colon-separated paths in which to look */ + ); + +# ifdef __cplusplus +} +# endif + +#endif /* _Dt_Qualify_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Saver.h b/cde/include/Dt/Saver.h new file mode 100644 index 00000000..d37d7e14 --- /dev/null +++ b/cde/include/Dt/Saver.h @@ -0,0 +1,52 @@ +/* + * 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: Saver.h /main/3 1995/10/26 15:10:29 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. + */ + +#ifndef _dtsaver_h +#define _dtsaver_h + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Functions + */ + +extern Boolean DtSaverGetWindows( + Display *display, + Window **window, + int *count); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /*_dtsaver_h*/ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/SaverP.h b/cde/include/Dt/SaverP.h new file mode 100644 index 00000000..bb645d5e --- /dev/null +++ b/cde/include/Dt/SaverP.h @@ -0,0 +1,112 @@ +/* + * 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: SaverP.h /main/4 1995/10/26 15:10:42 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: Saver.h + ** + ** Description + ** ----------- + ** Variables and declarations needed for + ** managing external screen savers + ** + **************************************************************************** + ************************************<+>*************************************/ +#ifndef _dtsaverp_h +#define _dtsaverp_h + +/*************************************<->************************************* + * + * _DtSaverStart() + * + * + * Description: + * ----------- + * Store provided array of windows on root window property + * _DT_SAVER_WINDOWS and launch specified screen saver. Screen savers + * will attempt to use these windows as drawables. + * + * Inputs: + * ------ + * display - display structure + * drawArea - array of widgets to be drawn upon by screen saver + * count - number of elements in drawArea array + * saverAction - screen saver action to invoke + * wAction - action UI widget + * + * Outputs: + * ------- + * + * Return: + * ------- + * state - pointer to opaque state structure + * + * Comments: + * -------- + * This function uses _DtActionInvoke() to launch an action. As a result, + * the caller is responsible for loading and maintaining the action database + * using the DtDbLoad() function and procedures. The caller + * must call _DtSaverStop() to terminate screen saver + * + *************************************<->***********************************/ + +extern void * _DtSaverStart(Display *, Widget *, int, char *, Widget); + +/*************************************<->************************************* + * + * _DtSaverStop() + * + * + * Description: + * ----------- + * Stop an external screen saver started with DtStartSaver(). Deletes + * _DT_SAVER_WINDOWS property from root window. + * + * Inputs: + * ------ + * display - display structure + * state - state returned from _DtSaverStart() + * + * Outputs: + * ------- + * + * Return: + * ------- + * + * Comments: + * -------- + * + *************************************<->***********************************/ + +extern void _DtSaverStop(Display *, void *); + + +#endif /*_dtsaverp_h*/ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Search.h b/cde/include/Dt/Search.h new file mode 100644 index 00000000..57c35dee --- /dev/null +++ b/cde/include/Dt/Search.h @@ -0,0 +1,285 @@ +/* + * 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: Search.h /main/12 1998/04/03 17:10:35 mgreess $ + * + * (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. + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 27 + * + * + * (C) COPYRIGHT International Business Machines Corp. 1994,1995 + * All Rights Reserved + * Licensed Materials - Property of IBM + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +#ifndef _Search_h +#define _Search_h +/********************** Search.h *********************** + * $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $ + * Jan 1994. + * Public header file for DtSearch/AusText API. + * Formerly named ausapi.h. Externals renamed + * from ausapi_... or aa_... to DtSearch conventions. + * Documentation in dtsearch.doc. + * + */ +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 1 +#endif +#include +#include +#include + +#if defined(__linux__) +# define __SVR4_I386_ABI_L1__ +#endif +#include +#if defined(__linux__) +# undef __SVR4_I386_ABI_L1__ +# ifndef WORD_BIT +# define WORD_BIT 32 +# endif +# ifndef LONG_BIT +# define LONG_BIT 32 +# endif +#endif + +#define DtSrVERSION "0.6" +#define DtSrMAXHITS 20 +#define DtSrMAX_KTNAME 13 +#define DtSrMAX_DB_KEYSIZE 32 +#define DtSrMAXWIDTH_HWORD 134 +#define DtSrMAX_STEMCOUNT 8 + +/****************************************/ +/* */ +/* RETURN CODES */ +/* */ +/****************************************/ +#define DtSrOK 0 /* normal, successful response */ +#define DtSrPASSWD 1 /* failed communications authentication */ +#define DtSrNOTAVAIL 2 /* no hits on search, no such rec, etc */ +#define DtSrFAIL 3 /* misc unsuccessful engine returns */ +#define DtSrREINIT 4 /* engine reinitialized, request canceled */ +#define DtSrERROR 5 /* fatal caller (client) program error */ +#define DtSrABORT 6 /* fatal engine failure, caller must abort */ +#define DtSrCOMM 7 /* fatal communications failure */ + +/* In order to share databases among heterogenous machines, + * certain integer types must be defined that are invariably + * 2 and 4 bytes on all architectures. + * Note WORD_BIT == 32 does not guarantee short == 16. + */ +#if (WORD_BIT == 16) + typedef int DtSrINT16; + typedef unsigned int DtSrUINT16; +#elif (WORD_BIT == 32) + typedef short DtSrINT16; + typedef unsigned short DtSrUINT16; +#else +#error Unable to typedef DtSrINT16 and DtSrUINT16 +#endif + +#if (WORD_BIT == 32) + typedef int DtSrINT32; + typedef unsigned int DtSrUINT32; +#elif (LONG_BIT == 32) + typedef long DtSrINT32; + typedef unsigned long DtSrUINT32; +#else +#error Unable to typedef DtSrINT32 and DtSrUINT32 +#endif + +#ifndef DB_ADDR + typedef DtSrINT32 DB_ADDR; /* vista.h: must be 4 bytes */ +#endif + +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + +typedef DtSrUINT32 DtSrObjdate; + + +/****************************************/ +/* */ +/* DtSrKeytype */ +/* */ +/****************************************/ +typedef struct { + char is_selected; /* TRUE: user has selected this keytype */ + char ktchar; /* first char of opera record key */ + char name [DtSrMAX_KTNAME+1]; /* label string used in UI */ +} DtSrKeytype; + +/****************************************/ +/* */ +/* DtSrResult */ +/* */ +/****************************************/ +/* DtSrResult ormerly DITTO. DtSrObj types formerly ORT_. */ +typedef struct _DtSrResult { + struct _DtSrResult *link; /* ptr to next list node */ + DtSrUINT32 flags; /* (reserved) */ + DtSrINT32 objflags; /* flags from object record */ +#define DtSrFlDELETE (1<<0) /* (reserved) */ +#define DtSrFlOLDNOTES (1<<1) /* (reserved) */ +#define DtSrFlNOTAVAIL (1<<2) /* object not retrievable from engine */ + DtSrUINT32 objuflags; /* user flags from database rec */ + DtSrINT32 objsize; /* in uncompressed bytes */ + DtSrObjdate objdate; /* zero means object 'undated' */ + DtSrINT16 objtype; /* from database record */ +#define DtSrObjUNKNOWN 0 /* object type unknown or not applicable */ +#define DtSrObjTEXT 1 /* generic, unformatted flat text */ +#define DtSrObjBINARY 2 /* generic binary object */ +#define DtSrObjSGML 3 /* generic SGML formatted document */ +#define DtSrObjHTML 4 /* HTML formatted document */ +#define DtSrObjPOSTSCR 6 /* Postscript document */ +#define DtSrObjINTERLF 7 /* Interleaf document */ +#define DtSrObjDTINFO 8 /* DtInfo document */ + DtSrINT16 objcost; /* (reserved) */ + int dbn; /* dbnamesv index */ + DB_ADDR dba; /* data base addr within database */ + DtSrINT16 language; /* language of the database */ +#define DtSrLaENG 0 /* English, ASCII char set (default) */ +#define DtSrLaENG2 1 /* English, ISO Latin-1 char set */ +#define DtSrLaESP 2 /* Spanish, ISO Latin-1 char set */ +#define DtSrLaFRA 3 /* French, ISO Latin-1 char set */ +#define DtSrLaITA 4 /* Italian, ISO Latin-1 char set */ +#define DtSrLaDEU 5 /* German, ISO Latin-1 char set */ +#define DtSrLaJPN 6 /* Japanese, EUC, auto kanji compounds */ +#define DtSrLaJPN2 7 /* Japanese, EUC, listed kanji compounds */ +#define DtSrLaLAST 7 /* Last supported DtSrLa constant */ + char reckey [DtSrMAX_DB_KEYSIZE]; /* object's db key */ + int proximity; /* 'distance' of object from query */ + char *abstractp; /* object's abstract from db*/ +} DtSrResult; + +/****************************************/ +/* */ +/* DtSrHitword */ +/* */ +/****************************************/ +typedef struct { + long offset; /* word location in cleartext */ + long length; /* length of word */ +} DtSrHitword; + + +/************************************************/ +/* */ +/* Functions */ +/* */ +/************************************************/ +extern void DtSearchAddMessage (char *msg); +extern int DtSearchHasMessages (void); +extern char *DtSearchGetMessages (void); +extern void DtSearchFreeMessages (void); +extern int DtSearchGetMaxResults (void); +extern void DtSearchSetMaxResults (int new_max_results); +extern char *DtSearchFormatObjdate (DtSrObjdate objdate); +extern void DtSearchExit (int return_code); +extern void DtSearchAddUserExit (void (*user_exit)(int)); +extern void DtSearchRemoveUserExit (void); + +extern int DtSearchSortResults (DtSrResult **list, int sort_type); + #define DtSrSORT_PROX 1 /* sort on proximity */ + #define DtSrSORT_DATE 2 /* sort on objdate */ +extern int DtSearchMergeResults (DtSrResult **targ, DtSrResult **src); +extern int DtSearchFreeResults (DtSrResult **list); +extern DtSrObjdate + DtSearchValidDateString (char *date_string); +extern int DtSearchInit ( + char *argv0, + char *userid, + long switches, + char *config_file, + FILE *err_file, + char ***dbnames, + int *dbcount); + /* Bit values valid for switches argument: */ + #define DtSrInNOLOCALE 0x0001L /* do not exec setlocale() */ + #define DtSrInSIGNAL 0x0002L /* register abort signal handlers */ + #define DtSrInUSEROCF 0x0004L /* (reserved) */ + #define DtSrInENAB_NOHUP 0x0008L /* enab nohup for backgnd progms */ + #define DtSrInIDEBUG 0x0010L /* set initialization debugging */ + #define DtSrInSDEBUG 0x0020L /* set search debugging */ + #define DtSrInRDEBUG 0x0040L /* set retrieval debugging */ + #define DtSrInCDEBUG 0x0080L /* set communications debugging */ + #define DtSrInANY_DEBUG \ + (DtSrInIDEBUG | DtSrInSDEBUG | DtSrInRDEBUG | DtSrInCDEBUG) + #define DtSrInRDWR 0x0100L /* open db files for read and write */ + +extern int DtSearchReinit ( + char ***dbnames, + int *dbcount); + +extern int DtSearchGetKeytypes ( + char *dbname, + int *ktcount, + DtSrKeytype **keytypes); + +extern int DtSearchQuery ( + void *qry, + char *dbname, + int search_type, + char *date1, + char *date2, + DtSrResult **results, + long *resultscount, + char *stems, + int *stemcount); + +extern int DtSearchRetrieve ( + char *dbname, + DB_ADDR dba, + char **cleartext, + long *clearlen, + int *fzkeyi); + +extern int DtSearchHighlight ( + char *dbname, + char *cleartext, + DtSrHitword **hitwptr, + long *hitwcount, + int search_type, + char *stems, + int stemcount); + +/********************** Search.h ***********************/ +#endif /* _Search_h */ diff --git a/cde/include/Dt/SearchE.h b/cde/include/Dt/SearchE.h new file mode 100644 index 00000000..d9e7a1d3 --- /dev/null +++ b/cde/include/Dt/SearchE.h @@ -0,0 +1,639 @@ +/* + * 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 + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 27 + * + * + * (C) COPYRIGHT International Business Machines Corp. 1991,1995 + * All Rights Reserved + * Licensed Materials - Property of IBM + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +#ifndef _SearchE_h +#define _SearchE_h +/***************************** SearchE.h ****************************** + * $XConsortium: SearchE.h /main/5 1996/08/12 13:16:47 cde-ibm $ + * August 1991. + * Header file for online DtSearch Engine (OE.C etc). + * SearchE.h was formerly called oe.h (Opera Engine). + * The old OE engine is pretty much invisible now, having + * been surrounded by the ausapi/DtSearch interface. + * + * The main data structure for passing and receiving arguments + * between the callers and the engine is USRBLK which is + * the only argument in the Opera_Engine() call. + * The actual input and output arguments in the USRBLK for each + * function are described below with the function description. + * + * All OE_functions pass a return code + * to the caller. OE_OK = successful completion, + * anything else may be partial completion/success or failure. + * Return code mnemonics are also defined below. + * + * $Log$ + * Revision 2.7 1996/03/20 19:11:21 miker + * Changed prototype of hilite_cleartext(). + * + * Revision 2.6 1996/03/13 22:34:53 miker + * Changed char to UCHAR several places. + * + * Revision 2.5 1996/03/05 19:17:50 miker + * oe_unblob no longer converts to uppercase. + * + * Revision 2.4 1996/03/05 15:54:06 miker + * Minor changes to support yacc-based boolean search. + * + * Revision 2.3 1996/02/01 16:14:38 miker + * Obsoleted requests OE_DITTO2KWIC, OE_VALIDATE_PWD, OE_CHANGE_PWD, + * OE_FINDSTR_REC, OE_FINDSTR_HITL, OE_ASSIST, OE_KILL. + * Restored OE_PING as the official "null" function. + * Added USRDBG_HILITE and USRDBG_PARSE. + * Replaced STRKIND, OE_kind_of_stems, and oe_stems_to_hitwords + * with hilite_cleartext. Deleted oe_ditto2kwic, oe_findstr_hitl. + * Deleted usrblk.kwiclen. + * + * Revision 2.2 1995/10/25 22:35:45 miker + * Added prolog. + * + * Revision 2.1 1995/09/22 22:39:39 miker + * Freeze DtSearch 0.1, AusText 2.1.8 + * + * Revision 1.1 1995/08/31 20:42:33 miker + * Initial revision + * + * The DtSearch return codes wrap around the OE return codes. + */ +#include "SearchP.h" + +#define AUDIT_FORMAT "UID=%-8s TIME=%s ELAP=%-3ld DB=%-8s HITS=%-5ld " +#define AUDIT_WHOWHEN "UID=%-8s TIME=%s" +#define DISCARD_FORMAT "%s\t\"%s\"\t%s\t%s\n" +#define HARDCOPY_SCRIPT "opprt.bat" +#define MAX_HITWCOUNT 200 /* max number hitwords that can be hilited */ +#define WORDS_HITLIMIT 300000L + + +/*-------------------- Request Codes ------------------------ + * All Engine requests, in addition to input below, require valid + * usrblk.userid + * usrblk.request. + * All Engine requests, in addition to output below, + * may return ausapi_msglist. + * There is no zero request code. + * See list of return codes for the ones that are marked 'common retncodes'. + */ + +#define OE_INITIALIZE 1 +/* does lotsa stuff--see the function. + * input: + * .query = AUSAPI_VERSION of UI code + * .dblist = data from user config file + * .dblk = data from user config file + * output: + * .dblist = modified after load of site config file + * .dblk = modified after load of site config file + * .retncode = OE_OK, OE_NOTAVAIL, OE_ABORT + */ + +#define OE_TEXT2FZKEY 2 +/* converts problem description text to fzkey. + * input: + * .query = problem description text + * .dblk = desired database and db parameters + * output: + * .fzkey = inference from query text analysis + * .retncode = common retncodes + OE_BAD_QUERY + */ + +#define OE_SRCH_FZKEY 3 +/* Converts fzkey to hitlist of dba's. + * Not available for databases without semantic dictionaries. + * input: + * .fzkey = database search vector + * .dblk = desired database and db parameters + * output: + * .workproc = function to be called until !OE_SEARCHING + * .dittolist = hitlist sorted by proximity + * .dittocount = # of nodes on dittolist + * .retncode = common retncodes + OE_SEARCHING, OE_NOTAVAIL, + * OE_USER_STOP, OE_SYSTEM_STOP, OE_BAD_QUERY + */ + +#define OE_SRCH_STEMS 4 +/* converts string of wordstems and booleans to + * hitlist of dba's and stems array. + * input: + * .query = text string of wordstems and booleans + * .dblk = desired database and db parameters + * output: + * .fzkey = (value undefined) + * .workproc = function to be called until !OE_SEARCHING + * .dittolist = hitlist + * .dittocount = # of nodes on dittolist + * .stems = array of stems for hiliting in text of hits + * .stemcount = size of 'stems' array + * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, + * OE_NOTAVAIL, OE_USER_STOP + */ + +#define OE_SRCH_WORDS 5 +/* converts string of exact words and booleans to + * hitlist of dba's and stems array. + * input: + * .query = text string of exact words and booleans + * .dblk = desired database and db parameters + * output: + * .fzkey = (value undefined) + * .workproc = function to be called until !OE_SEARCHING + * .dittolist = hitlist + * .dittocount = # of nodes on dittolist + * .stems = array of words for hiliting in text of hits + * .stemcount = size of 'stems' array + * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, + * OE_NOTAVAIL, OE_USER_STOP + */ + +#define OE_STOP_SRCH 6 +/* sets global switch to cancel search work procedure. + * workproc actually cancels itself after reading switch. + * input: .request = OE_STOP_SEARCH + * output: .retncode = 'common retncodes' only + */ + +#define OE_APPEND_NOTES 7 +/* appends user's notes to record at current dba. + * input: + * .query = freeform text of append + * .dba = address of record to append + * .dblk = desired database and db parameters + * output: + * .retncode = common retncodes + OE_TIMEOUT, OE_DISABLED + */ + +#define OE_GETREC 8 +/* retrieves record, cleartext, and notes for specified dba. + * Clears hitwords array, does not use or change stems array. + * input: + * .dba = address of record to retrieve + * .dblk = desired database and db parameters + * output: + * .objrec = austext record itself, as is from vista + * .cleartext = NULL or uncompressed text string + * .clearlen = 0 or size of cleartext + * .hitwords = array pointer cleared to NULL + * .hitwcount = size of hitwords array set to 0 + * .notes = NULL, or list of notes records, as is + * .retncode = common retncodes + OE_NOTAVAIL + */ + +#define OE_GETREC_STEMS 9 +/* retrieves record, cleartext, notes, and hitwords + * array for specified dba and stems (from OE_SRCH_STEMS). + * If no text in repository, equivalent to OE_GETREC. + * input: + * .dba = address of record to retrieve + * .stems = array of word stems to hilite + * .stemcount = size of stems array + * .dblk = desired database and db parameters + * output: + * .objrec = austext record itself, as is from vista + * .cleartext = NULL or uncompressed text string + * .clearlen = 0 or size of cleartext + * .hitwords = NULL or array of words in cleartext to hilite + * .hitwcount = 0 or size of hitwords array + * .notes = NULL, or list of notes records, as is + * .retncode = common retncodes + OE_NOTAVAIL + */ + +#define OE_GETREC_WORDS 10 +/* retrieves record, cleartext, notes, and hitwords + * array for specified dba and stems array (from OE_SRCH_WORDS). + * If no text in repository, equivalent to OE_GETREC. + * input: + * .dba = address of record to retrieve + * .stems = array of exact words to hilite + * .stemcount = size of stems array + * .dblk = desired database and db parameters + * output: + * .objrec = austext record itself, as is from vista + * .cleartext = NULL or uncompressed text string + * .clearlen = 0 or size of cleartext + * .hitwords = NULL or array of words in cleartext to hilite + * .hitwcount = 0 or size of hitwords array + * .notes = NULL, or list of notes records, as is + * .retncode = common retncodes + OE_NOTAVAIL + */ + +#define OE_NEXT_DBA 11 +/* advances dba to next valid b-tree address. Wraps if necessary. + * input: + * .dba = current address of record + * .dblk = desired database and db parameters + * output: + * .dba = address of next record in b-tree + * .retncode = common retncodes + OE_WRAPPED + */ + +#define OE_PREV_DBA 12 +/* retreats dba to previous valid b-tree address. + * Wraps if necessary. + * input: + * .dba = current address of record + * .dblk = desired database and db parameters + * output: + * .dba = address of previous record in b-tree + * .retncode = common retncodes + OE_WRAPPED + */ + +#define OE_RECKEY2DBA 13 +/* converts an austext record key into a dba. Wraps if not found. + * input: + * .query = desired record key + * .dblk = desired database and db parameters + * output: + * .dba = address of record found, + * or next avail address if not found + * .retncode = common retncodes + OE_WRAPPED + */ + +#define OE_MARK_DELETION 14 +/* writes record id to an external file for + * possible later deletion by external program. + * input: + * .query = record key to be marked for deletion + * .dblk = database where record is located + * output: + * .retncode = common retncodes + OE_NOTAVAIL, OE_DISABLED + */ + +#define OE_GETREC_DIC 15 +/* THIS FUNCTION IS NO LONGER SUPPORTED. + * IF RECEIVED BY ENGINE, IT IS TREATED EXACTLY AS OE_GETREC. + * Retrieves record, cleartext, notes, and hitwords + * array for specified dba. Hitwords are not derived from the + * stems array; they are all the cleartext words that are in + * the dictionary. (Compare to OE_GETREC_WORDS and OE_GETREC_STEMS). + * If no text in repository, equivalent to OE_GETREC. + * input: + * .dba = address of record to retrieve + * .dblk = desired database and db parameters + * output: + * .objrec = austext record itself, as is from vista + * .cleartext = NULL or uncompressed text string + * .clearlen = 0 or size of cleartext + * .hitwords = NULL or array of words in cleartext to hilite + * .hitwcount = 0 or size of hitwords array + * .notes = NULL, or list of notes records, as is + * .retncode = common retncodes + OE_NOTAVAIL + */ + +#define OE_DITTO2KWIC 16 +#define OE_VALIDATE_PWD 17 +#define OE_CHANGE_PWD 18 +/* (These functions are obsolete) */ + +#define OE_DELETE_RECID 19 +/* Deletes header record, all text, user notes, + * and word/stems references for specified record. + * Currently can only be called from offline program + * when all online austext users have been logged off. + * THIS FUNCTION IS <<>> SLOW (about 15 min on large dbase)! + * input: + * .query = desired record key + * .dblk = desired database and db parameters + * output: + * .dba = address of record deleted + * THIS ADDRESS IS NO LONGER VALID! + * .dbatab = (undefined) + * .dbacount = 1 + * .retncode = common retncodes + OE_NOTAVAIL + */ + +#define OE_DELETE_BATCH 20 +/* Deletes header records, all text, user notes, + * and word/stems references for all records in a + * datbase address table. Currently can only be called + * from offline program when all online austext users + * have been logged off. This function is the preferred + * deletion method because it is faster than deleting + * single records at a time. Addresses not found are ignored. + * input: + * .dblk = desired database and db parameters + * .dbatab = table of valid addresses to be deleted + * .dbacount = number of addresses on the table + * output: + * .retncode = common retncodes only + */ + +#define OE_ASSIST 21 +#define OE_FINDSTR_REC 22 +#define OE_FINDSTR_HITL 23 +/* (These functions are obsolete) */ + +#define OE_SRCH_STATISTICAL 24 +/* Converts string of natural language text to + * hitlist of dba's and stems array. Uses stems only, + * no booleans, all words are ORed together. Hitlist sorted + * based on statistics of included word stems. + * input: + * .query = natural language text string + * .dblk = desired database and db parameters + * output: + * .stems = array of stems for hiliting in text of hits + * .stemcount = size of 'stems' array (up to max allowed) + * .workproc = function to be called until !OE_SEARCHING + * .dittolist = hitlist + * .dittocount = # of nodes on dittolist + * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, + * OE_NOTAVAIL, OE_USER_STOP + */ + +#define OE_HILITE_STEMS 25 +/* Creates a hitwords array for hiliting using the text + * in cleartext (however it may have been obtained), + * and the stems array from the last search. + * input: + * .cleartext = text to be hilited + * .clearlen = size of cleartext + * .stems = array of words or stems to hilite + * .stemcount = size of stems array + * .search_type = 'W', 'P' or 'S', indicating type of + * search that generated stems array. + * output: + * .hitwords = array of words in cleartext to hilite + * .hitwcount = size of hitwords array + * .retncode = common retncodes + OE_NOTAVAIL, OE_BAD_QUERY + */ + +#define OE_GET_EXPIRE 26 +/* Returns in 'dba' field the expiration date of OE as a timestamp. + * Zero means no expiration date. Overlays previous value in dba. + * input: .request = OE_GET_EXPIRE + * output: .dba = unix timestamp of expiration date or 0 + * .retncode = common retncodes only + */ + +#define OE_KILL 9997 +#define OE_PING 9998 +#define OE_SHUTDOWN 9999 +/* (These functions are obsolete) */ + +/*-------------------- Return Codes ------------------------ + * The return codes marked 'common retncodes' are OE_OK, OE_NOOP, OE_REINIT, + * and OE_ABORT, and can be returned by almost all functions. + * OE_BAD_QUERY will be returned for any unknown function request. + * There is no zero return code. + */ +#define OE_OK 1 /* normal successful completion */ +#define OE_REINIT 2 /* request canceled: OE reinitialized + * databases so UI's dba's may be bad */ +#define OE_SEARCHING 3 /* keep calling workproc */ +#define OE_BAD_DBLK 4 +#define OE_BAD_REQUEST 5 /* invalid request field */ +#define OE_BAD_QUERY 6 /* invalid query or other input fld */ +#define OE_NOTAVAIL 7 /* no record, hits, function disabled */ +#define OE_TIMEOUT 8 +#define OE_WRAPPED 9 /* got next item instead of reqstd item */ +#define OE_SYSTEM_STOP 10 /* error: search canceled by OE */ +#define OE_BAD_PASSWD 11 /* invalid password */ +#define OE_BAD_HITLIST 12 /* invalid hitlist */ +#define OE_DISABLED 13 /* requested function disabled at this site */ +#define OE_USER_STOP 14 /* search canceled by user */ +#define OE_BAD_COMM 15 /* request canceled by comm layer */ +#define OE_NOOP 888 /* No Operation, nothing done */ +#define OE_ABORT 999 /* fatal OE error, OE permanently disabled */ + + +/****************************************/ +/* */ +/* OEFTAB */ +/* */ +/****************************************/ +/* Table used in load_ocf() oe_uninitialize() to allow overriding default + * locations of various files. Complete discussion in .ocf documentation. + */ +typedef struct + { + char *id; /* keyword identifier */ + char **OEFptr; /* addr of variable to change */ + char previously_specified; /* bool ensures only one spec */ + } OEFTAB; + +/****************************************/ +/* */ +/* USRBLK */ +/* */ +/****************************************/ +typedef struct + { + char userid [10]; /* 1 - 8 alphanumeric char */ + int search_type; /* single char = curr search type. + * 'T' = Semantic Text search + * 'W' = Exact Words search + * 'S' = Stems search + * 'Z' = Fzkey search + * 'N' = Navigator string (unpacked fzk) srch + * 'P' = Statistical (Probabilistic) search + */ + + long flags; /* bit switches... */ +#define USR_BIT_1 0x0001L /* (reserved) */ +#define USR_NO_ITERATE 0x0002L /* override iterations in workprocs */ +#define USR_STOPSRCH 0x0004L /* the "stop" button, cancels workproc */ +#define USR_MAXMIN 0x0008L /* symdif() algorithm = fuzzy max min */ +#define USR_OBJDATES 0x0010L /* restrict hitlists to objdate ranges */ +#define USR_KWIC_ABSTR 0x0020L /* retn KeyWord In Context for abstract */ +#define USR_NO_INFOMSGS 0x0040L /* do not retn information-only msgs to UI */ +#define USR_MAXHITS_MSG 0x0080L /* show # hits each keytype if sum > maxhits */ +#define USR_SORT_WHITL 0x0100L /* sort word/stem hitlists by semantics */ + + long debug; /* Nonproduction bit switches */ +#define USRDBG_RARE 0x0001L /* 1 Misc initialzatn trace msgs */ +#define USRDBG_SRCHCMPL 0x0002L /* 2 trace ui search_completed functions */ +#define USRDBG_RETRVL 0x0004L /* 4 trace record retrieval funcs */ +#define USRDBG_ITERATE 0x0008L /* 8 forces iteration on all iterable cmds */ +#define USRDBG_UTIL 0x0010L /* 16 trace misc utility functions */ +#define USRDBG_MEDPRMPT 0x0020L /* 32 Prints prompt of medley sockets cmds */ +#define USRDBG_HITLIST 0x0040L /* 64 print hitlists after searches */ +#define USRDBG_SYMP 0x0080L /* 128 trace symptom search funcs */ +#define USRDBG_DELETE 0x0100L /* 256 trace record deletion functions */ +#define USRDBG_RPC 0x0200L /* 512 trace RPC communications funcs */ +#define USRDBG_VERBOSE 0x0400L /* 1024 verbose debugging: iterative details */ +#define USRDBG_HILITE 0x0800L /* 2048 trace hiliting functions */ +#define USRDBG_PARSE 0x1000L /* 4096 trace linguistic parse/stem funcs */ +#define USRDBG_BOOL 0x2000L /* 8192 trace boolean parse funcs */ + + int request; + int retncode; + char *query; /* input data for text searches */ + DtSrObjdate objdate1; /* only retn hit objects >= (after) date1 */ + DtSrObjdate objdate2; /* only retn hit objects <= (before) date2 */ + DB_ADDR dba; /* for direct dba reads */ + DB_ADDR *dbatab; /* array of dba's for batch deletes */ + int dbacount; /* # of dba's in dbatab */ + void (*workproc) (void); + /* (1) If single tasking (iterative), OE places ptr to work + procedure. (2) If multitasking (no iterations), UI places + ptr of func to call when OE's spawned subtask is done. */ + + DBLK *dblist; /* linked list of all databases */ + DBLK *dblk; /* users curr database selection */ + + DtSrResult *dittolist; /* hitlist retnd from various searches */ + long dittocount; /* # of items on hitlist */ + int stemcount; /* # of wordstems in 'stems' array */ + char stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD]; + /* for hiliting words in text records */ + + struct or_objrec objrec; /* austext record buffer */ + char *abstrbuf; /* buf to hold abstracts */ + int abstrbufsz; /* maximum abstract size all databases */ + char *cleartext; /* decompressed austext record text */ + long clearlen; /* size of cleartext in bytes */ + LLIST *notes; /* uncompressed, right out of vista */ + DtSrHitword *hitwords; /* array of hit words inside cleartext */ + long hitwcount; /* number of elements in hitwords array */ + + } USRBLK; + + + +/****************************************/ +/* */ +/* SAVEUSR */ +/* */ +/****************************************/ +/* The following data is saved between calls of the workprocs. + * In a future msg passing protocol where there may be multiple UIs + * per OE, this data would be maintained in a list of structures, + * one for each currently active search (UI only passes user id name + * in iterative calls, OE searches list to match curr status). + * But for now, this will have to do. + */ +typedef struct + { + time_t start_time; + int iterations; + int vistano; + DtSrResult *dittolist; + long dittocount; + int stemcount; + char stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD]; + char ktchars [MAX_KTCOUNT + 2]; + char *lastqry; + long ktsum [MAX_KTCOUNT + 1]; + } SAVEUSR; + + +/*--------------- GLOBALS in oe.c, loadocf.c -------------------*/ +extern char **ausapi_dbnamesv; +extern int ausapi_dbnamesc; +extern USRBLK usrblk; + +extern char *global_memory_ptr; +extern OEFTAB oef_table[]; +extern SAVEUSR saveusr; /* (only one for now) */ +extern int shm_id; + +extern int OE_bmhtab_strlen [DtSrMAX_STEMCOUNT]; +extern size_t OE_bmhtables [DtSrMAX_STEMCOUNT] [MAX_BMHTAB]; +extern int OE_dbn; +extern int OE_enable_markdel; +extern int OE_enable_usernotes; +extern time_t *OE_expiration; +extern int OE_fastdecode; +extern char *OE_fileio; +extern long OE_flags; +#define OE_AUDIT 1L /* enables audit file logging */ +#define OE_INITOK (1L<<1) /* ensures first reqst was INITIALIZE */ +#define OE_PERMERR (1L<<2) /* disables engine on fatal errors */ +#define OE_NO_ITERATE (1L<<3) /* override iterations in workprocs */ +extern char *OE_inittab_dir; /* local dir of server daemon */ +extern long OE_objsize; +extern char *OE_prodname; +extern int OE_search_type; +extern char *OE_server_dir; /* local dir of server daemon */ +extern char *OE_sitecnfg_fname; +extern time_t OE_sitecnfg_mtime; +extern int OE_uppercase_keys; +extern long OE_words_hitlimit; + +/* Global pointers to formerly hardcoded path/file names. + * The comment names the #define constant under which the + * filename is/was specified in either fuzzy.h or oe.h. + */ +extern char *OEF_audit; /* FNAME_AUDIT */ +extern char *OEF_discard; /* FNAME_DISCARD_DATA */ +extern char *OEF_news; /* FNAME_SITENEWS */ +extern char *OEF_notesnot; /* FNAME_NOTES_BAC */ +extern char *OEF_notessem; /* FNAME_NOTES_SEM */ +extern char *OEF_readme; /* FNAME_README */ + +/*---------------- FUNCTION PROTOTYPES ----------------------*/ +extern char *calloe_getrec (char *dbname, DB_ADDR dba, + LLIST **global_msglist); +extern long calloe_hilite (char *cleartext, DtSrHitword *hitwords, + LLIST **global_msglist); +extern DtSrResult + *calloe_search (char *qry, char *dbname, + int search_type, LLIST **global_msglist); +extern int call_output_script (char *shellcmd, char *text); +extern void clear_hitwords (void); +extern void clear_usrblk_record (void); +extern void dummy_workproc (void); +extern char *ensure_end_slash (char *charbuf); +extern void fasthuf (UCHAR *input_bitstring, UCHAR *output_charbuf, + int outbuf_size, time_t encode_id); +extern char *get_hitlist_text (int maxlen); +extern long hilite_cleartext (int parse_type, char *stems, int stemcount); +extern int load_ocf (void); +extern char *nowstring (time_t *now); +extern void oe_initialize (void); +extern int oe_unblob (LLIST *bloblist); +extern void oe_write_audit_rec (long numhits); +extern void Opera_Engine (void); +extern void print_dittolist (DtSrResult *dittolist, char *label); +extern void print_stems (int stemcount, void *stems, char *locstr); +extern void print_usrblk_record (char *label); +extern void release_shm_mem (void); +extern char *retncode_str (int num); +extern void symptom_search (void); +extern int ve_append_notes (void); +extern void ve_browse_dba (int direction); +extern LLIST *ve_getblobs (DtSrINT32 dba, int vistano); +extern int ve_getrec_dba (LLIST **bloblist); +extern int ve_initialize (void); +extern void ve_ditto (void); +extern DtSrINT32 ve_reckey2dba (void); +extern void ve_statistical (void); +extern void ve_stem_search (void); +extern void ve_word_search (void); +extern void ve_shutdown (void); + +/***************************** SearchE.h ******************************/ +#endif /* _SearchE_h */ diff --git a/cde/include/Dt/SearchP.h b/cde/include/Dt/SearchP.h new file mode 100644 index 00000000..f6f7cea7 --- /dev/null +++ b/cde/include/Dt/SearchP.h @@ -0,0 +1,887 @@ +/* + * 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 + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: + * + * ORIGINS: 27 + * + * + * (C) COPYRIGHT International Business Machines Corp. 1990,1995 + * All Rights Reserved + * Licensed Materials - Property of IBM + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +#ifndef _SearchP_h +#define _SearchP_h +/************************ SearchP.h ******************************** + * $XConsortium: SearchP.h /main/9 1996/10/12 16:10:00 cde-ibm $ + * June 1990. + * Private header file for DtSearch/AusText used by + * both build tools and search engine. + * Derived from original IBM fuzzy.h. + * + * Hierarchies of DtSearch/AusText Search*.h #includes: + * Search.h is Dt/Aus public header, defines _XOPEN_SOURCE. + * SearchP.h is private Dt/Aus, includes Search.h. + * semantic.h is private Aus only, defines _ALL_SOURCE, + * includes SearchP.h. + * (Should be specified in place of SearchP.h). + * SearchE.h is private engine header Dt/Aus. Invokes either + * SearchP.h or semantic.h depending on whether DTSEARCH defined. + * Only one of the above should be specified. They should always + * be first include to get the _SOURCE defines right. + * DTSEARCH should be defined on compiler cmd line. + * + * $Log$ + * Revision 2.11 1996/04/10 19:44:43 miker + * AusText 2.1.13, DtSearch 0.5. Documentation cleanup. + * + * Revision 2.10 1996/03/13 22:35:14 miker + * Added UCHAR definition. Changed char to UCHAR several places. + * + * Revision 2.9 1996/03/05 16:48:56 miker + * Add COMMENT_CHARS from lang.c. + * + * Revision 2.8 1996/03/05 15:58:57 miker + * Replace vewords with yacc-based boolean search. + * + * Revision 2.7 1996/02/01 16:26:06 miker + * AUSAPI_VERSION 2.1.11, DtSearch 0.3: + * Changed parsers to use character reading cofunctions. + * + * Revision 2.6 1995/12/27 15:51:36 miker + * Version 2.1.10: First GA release of AusBuild. + * + * Revision 2.5 1995/12/07 23:24:38 miker + * Version 2.1.9e: Freezing AusBuild version with + * everything except multiple source files dialog box. + * + * Revision 2.4 1995/10/25 22:29:29 miker + * Added prolog. + * + * Revision 2.3 1995/10/19 19:07:42 miker + * Changed AUSAPI_VERSION to 2.1.9 (but not yet released). + * + * Revision 2.2 1995/10/03 21:36:13 miker + * Added 'const' to strdup prototype for greater portability. + * + * Revision 2.1 1995/09/22 22:39:41 miker + * Freeze DtSearch 0.1, AusText 2.1.8 + * + * Revision 1.3 1995/09/19 21:38:59 miker + * Removed debugging #defines. + */ +#include "Search.h" /* the "public" header file */ +#include /* for nl_catd below and all cat...() funcs */ +#include +#include + +#define AUSAPI_VERSION "2.1.13" + /* Format: "v.r.m", where v,r,m are integer substrings + * meaning version, revision, and mod respectively. + * Complete new version austomatically sets revision=1, mod=0. + * New revision within a version just sets mod=0. + * When mod=0, full string may be abbreviated to "v.r". + * Full string will contain no whitespace. + * AUSAPI_VERSION is compared to current versions of database + * schemas and client/server protocols by ausapi_init(). + * By convention, AusText programs display AUSAPI_VERSION + * at the top of the main gui window and in usage statements. + */ +#define SCHEMA_VERSION "2.0" + /* Identifies when schema last changed. + * Same format as AUSAPI_VERSION, except only "v.r" substring used. + * To ensure compatibility, database programs must have v.r integers + * within the range between SCHEMA_VERSION and AUSAPI_VERSION. + * The 3rd integer, the 'mod' number, never matters. + */ +#define PROTOCOL_VERSION "2.1" + /* Identifies when protocol between ui and engine/ausapi + * last changed. Typical changes would be changes to major + * structures like usrblk, dblk, and socblk, or changes to + * the arguments for either ausapi or Opera_Engine calls. + * Only meaningful for client/server systems. + * Same format as AUSAPI_VERSION, except only "v.r" substring used. + * To ensure compatibility, clients must have v.r integers + * within the range between PROTOCOL_VERSION and AUSAPI_VERSION + * of the engine. The 3rd integer, the 'mod' number, never matters. + */ + +/*------------- #define Compiler and related #defines ------------------ + * #define TURBO_COMPILER... + * #define PS2AIX_COMPILER... + * #define AIX370_COMPILER... + * #define HP_COMPILER... + * #define _AIX... + * ... define one of the above at top of Search.h to provide + * structures and functions that are compiler dependent. + * Since the compiler definition must precede all other headers, + * the #include for Search.h must be the first statement of all source + * files. + * + * UCHAR corrects for compilers whose default char is signed. + */ +#define UCHAR unsigned char +#ifdef TURBO_COMPILER +#define LINT_ARGS /* establishes strong prototyping in vista */ +#define ANSI /* allow multiple databases in vista */ + +#else +#define SINGLE_USER /* eliminate vista lockmgr */ +#define UNIX /* used in vista.h and elsewhere */ +#endif + +#ifdef HP_COMPILER +#define _INCLUDE_HPUX_SOURCE +#define _INCLUDE_POSIX_SOURCE +#define _INCLUDE_XOPEN_SOURCE +#endif + + +/*----------------------- AUSTEXT.H --------------------- + * DBMS record/key structure and constant declarations. + * These represent the database schema formerly in austext.h + * and derived from austext.sch. + */ +typedef struct or_dbrec { + DtSrUINT32 or_dbflags; + DtSrUINT32 or_dbuflags; + DtSrINT32 or_reccount; + DtSrINT32 or_maxdba; + DtSrINT32 or_availd99; + DtSrINT32 or_unavaild99; + DtSrINT32 or_hufid; + DtSrINT32 or_dbsecmask; + char or_version[8]; + char or_dbfill[50]; + DtSrINT16 or_dbotype; + DtSrINT16 or_compflags; + DtSrINT16 or_dbaccess; + DtSrINT16 or_minwordsz; + DtSrINT16 or_maxwordsz; + DtSrINT16 or_recslots; + DtSrINT16 or_fzkeysz; + DtSrINT16 or_abstrsz; + DtSrINT16 or_language; +} DBREC; + +struct or_dbmiscrec { + DtSrINT16 or_dbmisctype; + char or_dbmisc[1][106]; +}; +struct or_objrec { + DtSrUINT32 or_objflags; + DtSrUINT32 or_objuflags; + DtSrINT32 or_objsize; + DtSrINT32 or_objdate; + DtSrINT32 or_objsecmask; + char or_objkey[32]; + char or_objfill[34]; + DtSrINT16 or_objaccess; + DtSrINT16 or_objtype; + DtSrINT16 or_objcost; + DtSrINT16 or_objhdroffset; + DtSrINT16 or_objeureka; +}; +struct or_miscrec { + DtSrINT16 or_misctype; + char or_misc[1][105]; +}; +struct or_blobrec { + DtSrINT16 or_bloblen; + char or_blob[234][1]; +}; +struct or_swordrec { + char or_swordkey[16]; + DtSrINT32 or_swoffset; + DtSrINT32 or_swfree; + DtSrINT32 or_swaddrs; +}; +struct or_lwordrec { + char or_lwordkey[40]; + DtSrINT32 or_lwoffset; + DtSrINT32 or_lwfree; + DtSrINT32 or_lwaddrs; +}; +struct or_hwordrec { + char or_hwordkey[134]; + DtSrINT32 or_hwoffset; + DtSrINT32 or_hwfree; + DtSrINT32 or_hwaddrs; +}; + +/* File Id Constants */ +#define OR_D00 0 +#define OR_D01 1 +#define OR_D21 2 +#define OR_D22 3 +#define OR_D23 4 +#define OR_K00 5 +#define OR_K01 6 +#define OR_K21 7 +#define OR_K22 8 +#define OR_K23 9 + +/* Record Name Constants */ +#define OR_DBREC 10000 +#define OR_DBMISCREC 10001 +#define OR_OBJREC 10002 +#define OR_MISCREC 10003 +#define OR_BLOBREC 10004 +#define OR_SWORDREC 10005 +#define OR_LWORDREC 10006 +#define OR_HWORDREC 10007 + +/* Field Name Constants */ +#define OR_DBFLAGS 0L +#define OR_DBUFLAGS 1L +#define OR_RECCOUNT 2L +#define OR_MAXDBA 3L +#define OR_AVAILD99 4L +#define OR_UNAVAILD99 5L +#define OR_HUFID 6L +#define OR_DBSECMASK 7L +#define OR_VERSION 8L +#define OR_DBFILL 9L +#define OR_DBOTYPE 10L +#define OR_COMPFLAGS 11L +#define OR_DBACCESS 12L +#define OR_MINWORDSZ 13L +#define OR_MAXWORDSZ 14L +#define OR_RECSLOTS 15L +#define OR_FZKEYSZ 16L +#define OR_ABSTRSZ 17L +#define OR_LANGUAGE 18L +#define OR_DBMISCTYPE 1000L +#define OR_DBMISC 1001L +#define OR_OBJFLAGS 2000L +#define OR_OBJUFLAGS 2001L +#define OR_OBJSIZE 2002L +#define OR_OBJDATE 2003L +#define OR_OBJSECMASK 2004L +#define OR_OBJKEY 2005L +#define OR_OBJFILL 2006L +#define OR_OBJACCESS 2007L +#define OR_OBJTYPE 2008L +#define OR_OBJCOST 2009L +#define OR_OBJHDROFFSET 2010L +#define OR_OBJEUREKA 2011L +#define OR_MISCTYPE 3000L +#define OR_MISC 3001L +#define OR_BLOBLEN 4000L +#define OR_BLOB 4001L +#define OR_SWORDKEY 5000L +#define OR_SWOFFSET 5001L +#define OR_SWFREE 5002L +#define OR_SWADDRS 5003L +#define OR_LWORDKEY 6000L +#define OR_LWOFFSET 6001L +#define OR_LWFREE 6002L +#define OR_LWADDRS 6003L +#define OR_HWORDKEY 7000L +#define OR_HWOFFSET 7001L +#define OR_HWFREE 7002L +#define OR_HWADDRS 7003L + +/* Set Name Constants */ +#define OR_DB_MISCS 20000 +#define OR_OBJ_BLOBS 20001 +#define OR_OBJ_MISCS 20002 +/*----------------------- end AUSTEXT.H ---------------------*/ + + + +/*------------- DMACROS.H ------------------- + * The following were formerly in dmacros.h. + * They provide macro enhancements to the + * DBMS function prototypes in vista.h. + * Each DBMS function is coded in a macro which includes + * a location string (usually module name + line number). + * The location string is printed whenever there is + * a user or system failure. + * Warning: These should not be coded naked within 'if-else' statements + * because the 'if' in the macros will interfere with the outside else. + */ +#define CMSTAT(s,a,b) if(d_cmstat(a,b) < S_OKAY) vista_abort(s) +#define CMTYPE(s,a,b,c) if(d_cmtype(a,b,c) < S_OKAY) vista_abort(s) +#define CONNECT(s,a,b) if(d_connect(a,b) < S_OKAY) vista_abort(s) +#define COSTAT(s,a,b) if(d_costat(a,b) < S_OKAY) vista_abort(s) +#define COTYPE(s,a,b,c) if(d_cotype(a,b,c) < S_OKAY) vista_abort(s) +#define CRGET(s,a,b) if(d_crget(a,b) < S_OKAY) vista_abort(s) +#define CRREAD(s,a,b,c) if(d_crread(a,b,c) < S_OKAY) vista_abort(s) +#define CRSET(s,a,b) if(d_crset(a,b) < S_OKAY) vista_abort(s) +#define CRSTAT(s,a) if(d_crstat(a) < S_OKAY) vista_abort(s) +#define CRTYPE(s,a,b) if(d_crtype(a,b) < S_OKAY) vista_abort(s) +#define CRWRITE(s,a,b,c) if(d_crwrite(a,b,c) < S_OKAY) vista_abort(s) +#define CSMGET(s,a,b,c) if(d_csmget(a,b,c) < S_OKAY) vista_abort(s) +#define CSMREAD(s,a,b,c,d) if(d_csmread(a,b,c,d) < S_OKAY) vista_abort(s) +#define CSMSET(s,a,b,c) if(d_csmset(a,b,c) < S_OKAY) vista_abort(s) +#define CSMWRITE(s,a,b,c,d) if(d_csmwrite(a,b,c,d) < S_OKAY) vista_abort(s) +#define CSOGET(s,a,b,c) if(d_csoget(a,b,c) < S_OKAY) vista_abort(s) +#define CSOREAD(s,a,b,c,d) if(d_csoread(a,b,c,d) < S_OKAY) vista_abort(s) +#define CSOSET(s,a,b,c) if(d_csoset(a,b,c) < S_OKAY) vista_abort(s) +#define CSOWRITE(s,a,b,c,d) if(d_csowrite(a,b,c,d) < S_OKAY) vista_abort(s) +#define CSSTAT(s,a,b) if(d_csstat(a,b) < S_OKAY) vista_abort(s) +#define CTBPATH(s,a) if(d_ctbpath(a) < S_OKAY) vista_abort(s) +#define CTSCM(s,a,b,c) if(d_ctscm(a,b,c) < S_OKAY) vista_abort(s) +#define CTSCO(s,a,b,c) if(d_ctsco(a,b,c) < S_OKAY) vista_abort(s) +#define CTSCR(s,a,b) if(d_ctscr(a,b) < S_OKAY) vista_abort(s) +#define DBDPATH(s,a) if(d_dbdpath(a) < S_OKAY) vista_abort(s) +#define DBFPATH(s,a) if(d_dbfpath(a) < S_OKAY) vista_abort(s) +#define DBLOG(s,a) if(d_dblog(a) < S_OKAY) vista_abort(s) +#define DBTAF(s,a) if(d_dbtaf(a) < S_OKAY) vista_abort(s) +#define DBUSERID(s,a) if(d_dbuserid(a) < S_OKAY) vista_abort(s) +#define DECODE_DBA(s,a,b,c) if(d_decode_dba(a,b,c) < S_OKAY) vista_abort(s) +#define DELETE(s,a) if(d_delete(a) < S_OKAY) vista_abort(s) +#define DESTROY(s,a) if(d_desoy(a) < S_OKAY) vista_abort(s) +#define DISCON(s,a,b) if(d_discon(a,b) < S_OKAY) vista_abort(s) +#define DISDEL(s,a) if(d_disdel(a) < S_OKAY) vista_abort(s) +#define ENCODE_DBA(s,a,b,c) if(d_encode_dba(a,b,c) < S_OKAY) vista_abort(s) +#define FILLNEW(s,a,b,c) if(d_fillnew(a,b,c) < S_OKAY) vista_abort(s) +#define FINDCO(s,a,b) if(d_findco(a,b) < S_OKAY) vista_abort(s) +#define FINDFM(s,a,b) if(d_findfm(a,b) < S_OKAY) vista_abort(s) +#define FINDLM(s,a,b) if(d_findlm(a,b) < S_OKAY) vista_abort(s) +#define FINDNM(s,a,b) if(d_findnm(a,b) < S_OKAY) vista_abort(s) +#define FINDPM(s,a,b) if(d_findpm(a,b) < S_OKAY) vista_abort(s) +#define FREEALL(s) if(d_freeall() < S_OKAY) vista_abort(s) +#define GTSCM(s,a,b,c) if(d_gtscm(a,b,c) < S_OKAY) vista_abort(s) +#define GTSCO(s,a,b,c) if(d_gtsco(a,b,c) < S_OKAY) vista_abort(s) +#define GTSCR(s,a,b) if(d_gtscr(a,b) < S_OKAY) vista_abort(s) +#define GTSCS(s,a,b,c) if(d_gtscs(a,b,c) < S_OKAY) vista_abort(s) +#define INITFILE(s,a,b) if(d_initfile(a,b) < S_OKAY) vista_abort(s) +#define INITIALIZE(s,a) if(d_initialize(a) < S_OKAY) vista_abort(s) +#define ISMEMBER(s,a,b) if(d_ismember(a,b) < S_OKAY) vista_abort(s) +#define ISOWNER(s,a,b) if(d_isowner(a,b) < S_OKAY) vista_abort(s) +#define KEYDEL(s,a,b) if(d_keydel(a,b) < S_OKAY) vista_abort(s) +#define KEYEXIST(s,a,b) if(d_keyexist(a,b) < S_OKAY) vista_abort(s) +#define KEYFIND(s,a,b,c) if(d_keyfind(a,b,c) < S_OKAY) vista_abort(s) +#define KEYFREE(s,a,b) if(d_keyfree(a,b) < S_OKAY) vista_abort(s) +#define KEYFRST(s,a,b) if(d_keyfrst(a,b) < S_OKAY) vista_abort(s) +#define KEYLAST(s,a,b) if(d_keylast(a,b) < S_OKAY) vista_abort(s) +#define KEYLOCK(s,a,b,c) if(d_keylock(a,b,c) < S_OKAY) vista_abort(s) +#define KEYLSTAT(s,a,b,c) if(d_keylstat(a,b,c) < S_OKAY) vista_abort(s) +#define KEYNEXT(s,a,b) if(d_keynext(a,b) < S_OKAY) vista_abort(s) +#define KEYPREV(s,a,b) if(d_keyprev(a,b) < S_OKAY) vista_abort(s) +#define KEYREAD(s,a) if(d_keyread(a) < S_OKAY) vista_abort(s) +#define KEYSTORE(s,a,b) if(d_keystore(a,b) < S_OKAY) vista_abort(s) +#define LOCK(s,a,b,c) if(d_lock(a,b,c) < S_OKAY) vista_abort(s) +#define MAKENEW(s,a,b) if(d_makenew(a,b) < S_OKAY) vista_abort(s) +#define MAPCHAR(s,a,b,c,d) if(d_mapchar(a,b,c,d) < S_OKAY) vista_abort(s) +#define MEMBERS(s,a,b,c) if(d_members(a,b,c) < S_OKAY) vista_abort(s) +#define OFF_OPT(s,a) if(d_off_opt(a) < S_OKAY) vista_abort(s) +#define ON_OPT(s,a) if(d_on_opt(a) < S_OKAY) vista_abort(s) +#define OPEN(s,a,b) if(d_open(a,b) < S_OKAY) vista_abort(s) +#define RDCURR(s,a,b) if(d_rdcurr(a,b) < S_OKAY) vista_abort(s) +#define RECFREE(s,a,b) if(d_recfree(a,b) < S_OKAY) vista_abort(s) +#define RECFRST(s,a,b) if(d_recfrst(a,b) < S_OKAY) vista_abort(s) +#define RECLAST(s,a,b) if(d_reclast(a,b) < S_OKAY) vista_abort(s) +#define RECLOCK(s,a,b,c) if(d_reclock(a,b,c) < S_OKAY) vista_abort(s) +#define RECLSTAT(s,a,b,c) if(d_reclstat(a,b,c) < S_OKAY) vista_abort(s) +#define RECNEXT(s,a) if(d_recnext(a) < S_OKAY) vista_abort(s) +#define RECOVER(s,a) if(d_recover(a) < S_OKAY) vista_abort(s) +#define RECPREV(s,a) if(d_recprev(a) < S_OKAY) vista_abort(s) +#define RECREAD(s,a,b) if(d_recread(a,b) < S_OKAY) vista_abort(s) +#define RECSET(s,a,b) if(d_recset(a,b) < S_OKAY) vista_abort(s) +#define RECSTAT(s,a,b,c) if(d_recstat(a,b,c) < S_OKAY) vista_abort(s) +#define RECWRITE(s,a,b) if(d_recwrite(a,b) < S_OKAY) vista_abort(s) +#define RENFILE(s,a,b,c) if(d_renfile(a,b,c) < S_OKAY) vista_abort(s) +#define RLBCLR(s,a) if(d_rlbclr(a) < S_OKAY) vista_abort(s) +#define RLBSET(s,a) if(d_rlbset(a) < S_OKAY) vista_abort(s) +#define RLBTST(s,a) if(d_rlbtst(a) < S_OKAY) vista_abort(s) +#define SETDB(s,a) if(d_setdb(a) < S_OKAY) vista_abort(s) +#define SETFILES(s,a) if(d_setfiles(a) < S_OKAY) vista_abort(s) +#define SETFREE(s,a,b) if(d_setfree(a,b) < S_OKAY) vista_abort(s) +#define SETLOCK(s,a,b,c) if(d_setlock(a,b,c) < S_OKAY) vista_abort(s) +#define SETLSTAT(s,a,b,c) if(d_setlstat(a,b,c) < S_OKAY) vista_abort(s) +#define SETMM(s,a,b,c) if(d_setmm(a,b,c) < S_OKAY) vista_abort(s) +#define SETMO(s,a,b,c) if(d_setmo(a,b,c) < S_OKAY) vista_abort(s) +#define SETMR(s,a,b) if(d_setmr(a,b) < S_OKAY) vista_abort(s) +#define SETOM(s,a,b,c) if(d_setom(a,b,c) < S_OKAY) vista_abort(s) +#define SETOO(s,a,b,c) if(d_setoo(a,b,c) < S_OKAY) vista_abort(s) +#define SETOR(s,a,b) if(d_setor(a,b) < S_OKAY) vista_abort(s) +#define SETPAGES(s,a,b) if(d_setpages(a,b) < S_OKAY) vista_abort(s) +#define SETRM(s,a,b) if(d_setrm(a,b) < S_OKAY) vista_abort(s) +#define SETRO(s,a,b) if(d_setro(a,b) < S_OKAY) vista_abort(s) +#define STSCM(s,a,b,c) if(d_stscm(a,b,c) < S_OKAY) vista_abort(s) +#define STSCO(s,a,b,c) if(d_stsco(a,b,c) < S_OKAY) vista_abort(s) +#define STSCR(s,a,b) if(d_stscr(a,b) < S_OKAY) vista_abort(s) +#define STSCS(s,a,b,c) if(d_stscs(a,b,c) < S_OKAY) vista_abort(s) +#define TIMEOUT(s,a) if(d_timeout(a) < S_OKAY) vista_abort(s) +#define TRABORT(s) if(d_trabort() < S_OKAY) vista_abort(s) +#define TRBEGIN(s,a) if(d_trbegin(a) < S_OKAY) vista_abort(s) +#define TREND(s) if(d_trend() < S_OKAY) vista_abort(s) +#define UTSCM(s,a,b,c) if(d_utscm(a,b,c) < S_OKAY) vista_abort(s) +#define UTSCO(s,a,b,c) if(d_utsco(a,b,c) < S_OKAY) vista_abort(s) +#define UTSCR(s,a,b) if(d_utscr(a,b) < S_OKAY) vista_abort(s) +#define UTSCS(s,a,b,c) if(d_utscs(a,b,c) < S_OKAY) vista_abort(s) +#define WRCURR(s,a) if(d_wrcurr(a) < S_OKAY) vista_abort(s) +/*------------- end DMACROS.H -------------------*/ + + +/*------------- COMPILER DEPENDENT CONSTANTS -------------------*/ +#ifdef TURBO_COMPILER + #define FNAME_NULL "nul" + #define LOCAL_SLASH 92 /* ascii back slash char (\) */ +#endif + +#ifdef UNIX + #define FNAME_NULL "/dev/null" + #define LOCAL_SLASH 47 /* ascii forward slash char (/) */ +#endif + +/*------------ COMPILER INDEPENDENT CONSTANTS -------------------*/ + +#define CACHE_SIZE 64 /* used in vista d_setpages() function */ +#define COMMENT_CHARS "#*$!\n" /* identify comment lines in AusText files */ +#define CTRL_Z 26 +#define DIT_FINDSTR 1L /* DITTO.flags: retained aft FINDSTR srch */ +#define DIT_STOP 2L /* DITTO.flags: node where user pushed stop */ +#define END_RETAIN_PAGE 11 /* VT = marks end of RETAIN page */ +/***#define END_RETAIN_REC '\f'****/ +#define EXT_CHARTYPE ".chr" /* user definable wildcards (from LOADCHR) */ +#define EXT_CANDI ".can" /* candidate dictionary words format */ +#define EXT_CONFIG ".ocf" /* standard opera configuration file */ +#define EXT_DTBS ".d99" /* inverted index file for dbase addrs */ +#define EXT_FZKEY ".fzk" /* output of all opera text anal pgms */ +#define EXT_HANDEL ".han" /* standard handel profile file format */ +#define EXT_HUFFCODE ".huf" /* huffman encode tree (from HUFFCODE) */ +#define EXT_HDECODE ".c" /* huffman decode tree (from HUFFCODE) */ +#define EXT_INCLIST ".inc" /* "include" list file name extension */ +#define EXT_LIST ".lst" /* standard wordlist format: 1 word/line */ +#define EXT_SCHEMA ".sch" /* vista database schema format */ +#define EXT_STOPLIST ".stp" /* standard stop list format */ +#define EXT_SURVEY ".sur" /* standard survey file format */ +#define EXT_TEMP ".tmp" /* any kind of temporary file */ +#define EXT_TEXT ".txt" /* freeform ascii text format */ +#define EXT_USRNOTES ".not" /* user notes flatfile format */ +#define ETXDELIM "\f\n" /* default end-of-text (ETX) delim str */ +#define FNAME_AUDIT "opaudit.lst" +#define FNAME_AUSCAT "austools.cat" /* Austools msgs catalog */ +#define FNAME_AUSTEXT_TUTORIAL "austext.tut" +#define FNAME_CONFIRM_LIST "todscrd.lst" /* Shankar/Tomita files */ +#define FNAME_DISCARD_DATA "shdscrd.lst" /* OEF_discard */ +#define FNAME_DTSRCAT "dtsearch" /* DtSearch msgs catalog */ +#define FNAME_HUFFCODE_TAB "ophuf.huf" /* huffman encode table */ +#define FNAME_MUIRES "mui.res" /* motif class resources file */ +#define FNAME_NOTES_BAC "usrnotes.not" +#define FNAME_NOTES_SEM "usrnotes.sem" +#define FNAME_ORIGSTOP "orig.stp" +#define FNAME_README "readme.txt" +#define FNAME_SITECONFIG "dtsearch.ocf" +#define FNAME_SITENEWS "sitenews.txt" +#define MINWIDTH_TOKEN 2 /* default smallest word/stem allowed */ +#define MAX_BMHTAB 256 /* max alphabet size in bmstrstr tables */ +#define MAX_ETXDELIM 100 /* max size of ETX delim string */ +#define MAX_KTCOUNT 64 /* max number of keytypes */ +#define MAXWIDTH_LWORD 40 /* = sizeof(or_lwordrec.or_lwordkey) */ +#define MAXWIDTH_SWORD 16 /* = sizeof(or_swordrec.or_swordkey) */ +#define NULLDATESTR "0/0/0~0:0" +#define NUM_HOLES 256 /* array size for defragmentation */ +#define OBJDATESTR "%02d/%02d/%02d~%02d:%02d" +#define PRODNAME "DtSearch" +#define PWDMASKSZ 20 +#define SCREEN_WIDTH 80 /* max len text line in online OPERA pgms */ +#define STEM_CH 15 /* Ctrl-O stemmed word prefix character */ + +/*--------------- BYTE SWAP DECLARATIONS ------------ + * The default database record format is the data ordering + * for big endian machines (most significant byte first), + * also known as "network" order. For non big_endian platforms, + * all compiles should include the BYTE_SWAP define. + * SWABDIR is direction of io to indicate correct byte swap function. + * HTON is host to network, internal memory to external database file. + * NTOH is network to host, file to memory. + * Actual host_to_network functions defined in + * which is not yet standardized. + */ +typedef enum {HTON=1, NTOH} SWABDIR; + +extern void swab_dbrec (struct or_dbrec *rec, SWABDIR direction); +extern void swab_objrec (struct or_objrec *rec, SWABDIR direction); + +#ifdef BYTE_SWAP /* ie (BYTE_ORDER != BIG_ENDIAN) */ + +#define HTONL(x) x = htonl(x) +#define HTONS(x) x = htons(x) +#define NTOHL(x) x = ntohl(x) +#define NTOHS(x) x = ntohs(x) + +#else /* !BYTE_SWAP, ie (BYTE_ORDER == BIG_ENDIAN) */ + +#define HTONL(x) +#define HTONS(x) +#define NTOHL(x) +#define NTOHS(x) + +#endif /* BYTE_SWAP */ + + +/*--------------- TESKEY PARSE CHARACTER TYPES ------------ + * Used in langmap.c for linguistic parsing modules. + * Low order byte reserved for uppercase image of character + * as locale independent replacement for toupper() and strupr(). + */ +#define CONCORDABLE 0x4000 /* alpha, numeric: inside word */ +#define OPT_CONCORD 0x2000 /* "./-": maybe inside word, maybe outside */ +#define NON_CONCORD 0x1000 /* space, punctuation, etc: outside word */ + +#define VOWEL 0x0800 /* concordable subtype: aeiou */ +#define CONSONANT 0x0400 /* concordable subtype: all alpha - vowels */ +#define NUMERAL 0x0200 /* concordable subtype: 0-9 */ +#define WHITESPACE 0x0100 /* locale indep replacement for isspace() */ + + +/*--------------- SCHEMA CONSTANTS ---------------- + * Associated with fields in database schema (austext.h) + * and in DITTO structures. + * Values 20000 - 29999 reserved for custom user applic in all cardinal ints. + * ORA_ retrieval access location cardinal integers in or_access. + * ORC_ compression id bit switches in or_compflags. + * ORD_ bit switches in or_dbflags. + * (ORO_ bit switches in or_objflags + * renamed to DtSrFlxxx and moved to Search.h) + * ORM_ type cardinal integers in or_misctype. + * (ORT_ object type (or_objtype, or_dbotype, DITTO) + * renamed to DtSrObj... and moved to Search.h) + * (ORL_ language id cardinal integers in or_language + * renamed to DtSrLa... and moved to Search.h) + */ +#define ORA_VARIES 0 /* object accessibility unspec at curr lvl */ +#define ORA_NOTAVAIL 1 /* obj not directly accessible from engine */ +#define ORA_BLOB 2 /* obj stored in blob recs */ +#define ORA_REFBLOB 3 /* svr ref (filename of object) in blob */ +#define ORA_REFKEY 4 /* svr ref in or_objkey */ +#define ORA_REFHUGEKEY 5 /* svr ref in 'huge' key (misc) rec */ +#define ORA_REFABSTR 6 /* svr ref in abstract (misc rec) */ +#define ORA_CREFBLOB 13 /* clt ref (filename of object) in blob */ +#define ORA_CREFKEY 14 /* clt ref in or_objkey */ +#define ORA_CREFABSTR 16 /* clt ref in abstract (misc rec) */ + +#define ORC_COMPBLOB (1<<0) /* blobs are compressed */ +#define ORC_COMPABSTR (1<<1) /* abstracts are compressed */ + +#define ORD_XWORDS (1L<<0) /* inverted index includes exact words */ +#define ORD_XSTEMS (1L<<1) /* inverted index includes word stems */ +#define ORD_USEHUGEKEYS (1L<<4) /* all direct user access via huge keys */ +#define ORD_NOMARKDEL (1L<<8) /* permanently disables mark-for-deletion */ +#define ORD_NONOTES (1L<<9) /* permanently disables user notes */ +#define ORD_WIDECHAR (1L<<10) /* text is multibyte or wide chars */ + +#define ORO_DELETE (1L<<0) /* obj is marked for deletion */ +#define ORO_OLDNOTES (1L<<1) /* obj has old style usernotes in misc rec */ + +#define ORM_FZKABS 1 /* fzkey[fzkeysz] + abstract[abstrsz] */ +#define ORM_HUGEKEY 2 /* optional 'huge' key */ +#define ORM_OLDNOTES 3 /* old style user notes */ +#define ORM_KEYTYPE 4 /* database keytype rec (KEYTYPE struct) */ + +/*------------------------- MACROS ---------------------------*/ +/* (Use offsetof() in stddef.h to replace my old OFFSET macro) */ +#define NULLORSTR(str) ((str)?str:catgets(dtsearch_catd,1,1,"")) +#define NUMARRAY(arr) ((sizeof(arr) / sizeof(arr[0]))) + +/****************************************/ +/* */ +/* LLIST */ +/* */ +/****************************************/ +typedef struct llist_tag { + struct llist_tag *link; + void *data; +} LLIST; + +/****************************************/ +/* */ +/* FREE_SPACE_STR */ +/* */ +/****************************************/ +/* 'holes' structure used for dynamic defragmentation */ +typedef struct holes_str { + DtSrINT32 hole_size; + DtSrINT32 offset; + } FREE_SPACE_STR; + +/****************************************/ +/* */ +/* FILE_HEADER */ +/* */ +/****************************************/ +/* 'holes' structure used for dynamic defragmentation */ +typedef struct fl_head { + DtSrINT32 hole_count [2]; + FREE_SPACE_STR hole_array [2] [NUM_HOLES]; + } FILE_HEADER; + +/****************************************/ +/* */ +/* CMPLL, sort_llist, compare_llist */ +/* */ +/****************************************/ +/* Generic LLIST structure typically used for 'lines' of text, + * as in ausapi.msglist and usrblk.msgs, and binary blobs. + * See structure typedef below for blob list structure. + * LLISTs can be sorted by calling sort_llist(). + * The compare function is stored in global pointer 'compare_llist' + * prior to calling the sort function. + */ +typedef int (*CMPLL) (LLIST *left, LLIST *right); + +/****************************************/ +/* */ +/* READCFP */ +/* */ +/****************************************/ +/* Pointer to a function that takes a void + * pointer and returns a C char (1 octet). + * Used by linguistic parsers as a character reading cofunction. + * When parser is reading from a file stream as in dtsrindex, + * usual cofunction is readchar_ftext(). When parser is reading + * from a text string as in queries, the usual cofunction + * is readchar_string() which just accesses next char in string. + */ +typedef UCHAR (*READCFP) (void *); + +/********************************************************/ +/* */ +/* WORDTREE */ +/* */ +/********************************************************/ +/* A generic structure for creating binary trees of words + * from stoplists, include-lists, etc. + */ +typedef struct _bintree_tag { + struct _bintree_tag *rlink; /* ptr to right node */ + struct _bintree_tag *llink; /* ptr to left node */ + int len; /* length of word */ + void *word; + } WORDTREE; + + +/************************************************/ +/* */ +/* PARG */ +/* */ +/************************************************/ +/* Single argument for first parser call for a text block */ +typedef struct { + void *dblk; /* dblk is (DBLK *) */ + FILE *ftext; /* Text file being parsed in dtsrindex */ + void *string; /* Query or other string being parsed */ + void *etxdelim; /* End of text (ETX) delimiter string */ + long *offsetp; /* where parser stores word offset */ + long flags; +#define PA_INDEXING 0x0001 /* parse for indexing purposes (dtsrindex) */ +#define PA_HILITING 0x0002 /* parse for hiliting purposes */ +#define PA_MSGS 0x0004 /* explain parse failures with msgs */ + void *extra; /* reserved for generic use by parsers */ + } PARG; + + +/********************************************************/ +/* */ +/* DBLK */ +/* */ +/********************************************************/ +/* One element of a linked list of universal information + * about all databases accessible, + * to an online search engine instance, chained off of + * the global OE_dblist. It is also used individually + * by offline build tools to store database data. + * It contains pointers to linguistic processors and data structures, + * data derived from the site configuration file, + * data derived and used by the DBMS, + * and some fields reflecting recommended initial user choices. + * Changes here should also be reflected in initblks.c, + * austext.sch, initausd.c, and in oeinit.c. + */ +typedef struct dblk_tag + { + struct dblk_tag *link; /* ptr to next dblk in list */ + char name [11]; /* 1 - 8 char dictionary name */ + char is_selected; /* bool: initial gui selection status */ + char *label; /* database description/label string for UI */ + long flags; + char *path; /* where to find all database files */ + FILE *syofile; /* symptom offset (ranges) d97 file */ + FILE *syifile; /* symptom index d98 file */ + void *ranges; /* contents of syofile read into ram */ + FILE *iifile; /* inverted words index d99 file */ + time_t iimtime; /* last time d99 was modified */ + int vistano; /* vista database number */ + int ktcount; /* number of nodes in keytypes array */ + DtSrKeytype *keytypes; /* record types in this database */ + DBREC dbrec; /* copy of database's dbrec record */ + void *zblk; /* used only for semantic processing */ + + /*----- Huffman Compression -----*/ + time_t hufid; /* tree identification atom */ + int hufroot; /* index to inverted tree root (array bottom) */ + int *huftree; /* beginning of huffman tree array */ + + /*----- Language Fields -----*/ + char *fname_stp; /* name of stoplist file */ + char *fname_inc; /* name of include-list file */ + char *fname_sfx; /* name of suffixes file */ + int *charmap; /* parse/stem table for char set */ + WORDTREE *stoplist; /* root of stoplist tree */ + WORDTREE *inclist; /* root of include-list tree */ + char *(*lstrupr) (char *string, struct dblk_tag *dblk); + char *(*parser) (PARG *parg); + void *parse_extra; /* eg additional word trees */ + char *(*stemmer) (char *wordin, struct dblk_tag *dblk); + long stem_flags; /* stemmer options */ + void *stem_extra; /* eg suffix tables */ + void *lang_extra; /* additional language dependent data */ + long lang_flags; /* language dependent switches */ +#define LF_DUP_STP 0x0001 /* duplicate stop list */ +#define LF_DUP_INC 0x0002 /* duplicate include list */ +#define LF_DUP_SFX 0x0004 /* duplicate suffixes list */ + + /*----- User Search Parameters -----*/ + int maxhits; /* max # hits to be returned from searches */ + void *resuser; /* reserved for private use by users */ + } DBLK; + + +/*------------------------- GLOBALS -------------------------*/ +/* DtSearchExit (austext_exit) and DtSearchExitUser (austext_exit_user) + * are in ausexit.c too but are "public" in DtSearch (defined in Search.h). + */ +extern char *aa_argv0; /* globals.c */ +extern int aa_maxhits; /* aajoint.c */ +extern FILE *aa_stderr; /* globals.c */ +extern int ascii_charmap[]; /* langmap.c */ +extern LLIST *ausapi_msglist; /* globals.c */ +extern void (*austext_exit_first) (int); /* ausexit.c */ +extern void (*austext_exit_dbms) (int); /* ausexit.c */ +extern void (*austext_exit_comm) (int); /* ausexit.c */ +extern void (*austext_exit_endwin) (int); /* ausexit.c */ +extern void (*austext_exit_mem) (int); /* ausexit.c */ +extern void (*austext_exit_last) (int); /* ausexit.c */ +extern void (*austext_exit_user) (int); /* ausexit.c */ +extern nl_catd austools_catd; /* globals.c */ +extern CMPLL compare_llist; +extern nl_catd dtsearch_catd; /* globals.c */ +extern unsigned long + duprec_hashsize; /* isduprec.c */ +extern int latin_charmap[]; /* langmap.c */ + + +/*------------------------ FUNCTION PROTOTYPES ------------------------*/ +extern void add_free_space(FREE_SPACE_STR *del_rec, FILE_HEADER *flh); +extern void append_ext (char *buffer, int buflen, + char *fname, char *fext); +extern int austext_dopen ( + char *dbname, + char *dbpath, + char *d2xpath, + int cache_size, + DBREC *bufptr); +extern void *austext_malloc (size_t size, char *location, void *ignored); +extern char *bmhcore ( + UCHAR *text, + size_t txtlen, + UCHAR *pattern, + size_t patlen, + size_t *bmhtable); +extern void bmhtable_build ( + UCHAR *pattern, + size_t patlen, + size_t *bmhtable); +extern char *bmstrstr ( + UCHAR *text, + size_t txtlen, + UCHAR *pattern, + size_t patlen); +extern int clean_wrap (char *string, int linelen); +extern LLIST *cutnode_llist (LLIST *node, LLIST **llistp); +extern void (*dberr_exit)(int exitcode); /* defaults to exit() */ +extern void delete_whitespace (char *linebuf); +extern void discard_to_ETX (PARG *parg); +extern int endstroke (int c); +extern void put_new_word(struct or_hwordrec *recbuf, int vistano); +extern FREE_SPACE_STR + *find_free_space (DtSrINT32 req_size, FILE_HEADER *flh); +extern void free_llist (LLIST **llhead); +extern int fread_d99_header (FILE_HEADER *flh, FILE *fp); +extern int fwrite_d99_header (FILE_HEADER *flh, FILE *fp); +extern char *get_email_addr (void); +extern char *getnews (char *fname, int use_copyr); +extern void hc_decode (UCHAR *input_bitstring, UCHAR *output_charbuf, + int outbuf_size, time_t encode_id); +extern int hc_encode (struct or_blobrec *targ, UCHAR *src, + int srclen, int force_flush); +extern void init_header (FILE *fp, FILE_HEADER *flh); +extern int is_compatible_version (char *callers_vers, char *local_vers); +extern int is_concordable (char *word, int *charmap); +extern int is_duprec (char *recid); +extern int is_objdatestr (char *string, DtSrObjdate *objdptr); +extern int is_objdatetm (struct tm *objdatetm); +extern void join_llists (LLIST **mainlist, LLIST **sublist); +extern char *jpn_parser (PARG *parg); +extern int load_custom_language (DBLK *dblk, DBLK *dblist); +extern int load_jpn_language (DBLK *dblk, DBLK *dblist); +extern int load_language (DBLK *dblk, DBLK *dblist); +extern int load_wordtree ( + WORDTREE **treetop, + DBLK *dblk, + char *fname, + int do_teskey_test); +extern char *null_stemmer (char *word, DBLK *dblk); +extern char *null_lstrupr (char *string, DBLK *dblk); +extern char *objdate2fzkstr (DtSrObjdate objdate); +extern struct tm + *objdate2tm (DtSrObjdate objdate); +extern int objdate_in_range (DtSrObjdate recdate, + DtSrObjdate date1, DtSrObjdate date2); +extern int offline_kbhit (void); +extern int open_dblk (DBLK **dblist, int numpages, int debugging); +extern LLIST *pop_llist (LLIST **llistp); +extern void print_dbrec (char *dbname, struct or_dbrec *dbrec); +extern int quit_escape(void); +extern UCHAR readchar_ftext (PARG *parg); +extern UCHAR readchar_string (UCHAR *string); +extern char *remove_spaces (char *string); +extern void replace_ext (char *buffer, int buflen, + char *fname, char *fext); +extern LLIST *sort_llist (LLIST *list_header); +extern char *teskey_parser (PARG *parg); +extern DtSrObjdate + tm2objdate (struct tm *tmptr); +#if !defined(__linux__) +#ifndef _ALL_SOURCE +extern char *strdup (const char *s); +#endif +#endif +extern void toggle_insert (void); +extern void unload_custom_language (DBLK *dblk); +extern void unload_language (DBLK *dblk); +extern void vista_abort (char *location); +extern char *vista_msg (char *location); + +/************************ SearchP.h ********************************/ +#endif /* _SearchP_h */ + diff --git a/cde/include/Dt/Service.h b/cde/include/Dt/Service.h new file mode 100644 index 00000000..4d6b8dec --- /dev/null +++ b/cde/include/Dt/Service.h @@ -0,0 +1,152 @@ +/* + * 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
+ +/* Built on ICCC-based messaging library */ +#include
+ +/* 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. */ diff --git a/cde/include/Dt/Session.h b/cde/include/Dt/Session.h new file mode 100644 index 00000000..7256140d --- /dev/null +++ b/cde/include/Dt/Session.h @@ -0,0 +1,59 @@ +/* + * 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: Session.h /main/3 1995/10/26 15:10:56 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. + */ + +#ifndef _Dt_Session_h +#define _Dt_Session_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Functions + */ + +extern Boolean DtSessionSavePath( + Widget widget, + char **save_path, + char **save_file); + +extern Boolean DtSessionRestorePath( + Widget widget, + char **restore_path, + char *restore_file); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Session_h */ diff --git a/cde/include/Dt/SessionM.h b/cde/include/Dt/SessionM.h new file mode 100644 index 00000000..934a93de --- /dev/null +++ b/cde/include/Dt/SessionM.h @@ -0,0 +1,250 @@ +/* + * 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: SessionM.h /main/8 1998/07/30 12:10:49 mgreess $ */ +/* + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company + * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. + * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. + * (c) Copyright 1993, 1994, 1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: SessionM.h + ** + ** Description: + ** ----------- + ** Contains all variables needed for SM messaging. All messages serviced, + ** and the tool class name for the session manager + ** + ** + ** + ******************************************************************* + ** (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 _SessionM_h +#define _SessionM_h + +/* + * Include files + */ +/* If is included along with this file, + MUST be included first due to "typedef Boolean ..." problems. The following + conditional #define is also part of the solution to this problem. */ +#include +#include + +/* + * Tool class for the session manager + */ +#define DtSM_TOOL_CLASS "SESSIONMGR" + +/* + * SM_STARTUP_CHANGE an SM_STATE parameters + */ +#define DtSM_VERBOSE_MODE 1 +#define DtSM_QUIET_MODE 2 +#define DtSM_ASK_STATE 0 +#define DtSM_HOME_STATE 3 +#define DtSM_CURRENT_STATE 4 + + +/* + * Atoms for session manager/style manager communication + */ +#define _XA_DT_SM_STM_PROTOCOL "_DT_SM_STM_PROTOCOL" +#define _XA_DT_SM_SAVE_TO_HOME "_DT_SM_SAVE_TO_HOME" +#define _XA_DT_SM_STATE_CHANGE "_DT_SM_STATE_CHANGE" +#define _XA_DT_SM_RESTORE_DEFAULT "_DT_SM_RESTORE_DEFAULT" +#define _XA_DT_SM_PREFERENCES "_DT_SM_PREFERENCES" + +/* + * Atoms for lock changes + */ +#define _XA_DT_SM_LOCK_CHANGE "_DT_SM_LOCK_CHANGE" +#define CoverScreenMask (1L<<0) +#define LockOnTimeoutMask (1L<<1) + +/* + * Parameters to be sent into session manager + */ + +/* + * Atoms for communicating configuration changes and state + */ +/* + * Defines needed for getting/setting the sm window property on the root + */ +#define PROP_DT_SM_WINDOW_INFO_ELEMENTS 2 +#define _XA_DT_SM_WINDOW_INFO "_DT_SM_WINDOW_INFO" + +/* + * Defines needed for getting the session manager state off it's window + */ +#define PROP_DT_SM_STATE_INFO_ELEMENTS 13 +#define _XA_DT_SM_STATE_INFO "_DT_SM_STATE_INFO" + +/* + * Defines needed for the screen saver list property. + */ +#define _XA_DT_SM_SAVER_INFO "_DT_SM_SAVER_INFO" + +/* + * Defines needed for the screen saver property + */ +#define PROP_DT_SM_SCREEN_INFO_ELEMENTS 5 +#define _XA_DT_SM_SCREEN_INFO "_DT_SM_SCREEN_INFO" + +/* + * Defines needed for the audio property + */ +#define PROP_DT_SM_AUDIO_INFO_ELEMENTS 4 +#define _XA_DT_SM_AUDIO_INFO "_DT_SM_AUDIO_INFO" + +/* + * Defines needed for the keyboard property + */ +#define PROP_DT_SM_KEYBOARD_INFO_ELEMENTS 3 +#define _XA_DT_SM_KEYBOARD_INFO "_DT_SM_KEYBOARD_INFO" + +/* + * Define needed for the font info property + */ +#define _XA_DT_SM_FONT_INFO "_DT_SM_FONT_INFO" + +/* + * Define needed for the font info property + */ +#define _XA_DT_SM_POINTER_INFO "_DT_SM_POINTER_INFO" + +/* + * Define needed for the preeditType info property + */ +#define _XA_DT_SM_PREEDIT_INFO "_DT_SM_PREEDIT_INFO" + +/* bit definitions for SmStateInfo.flags */ +#define SM_STATE_NONE 0 +#define SM_STATE_START (1L << 0) +#define SM_STATE_CONFIRM (1L << 1) +#define SM_STATE_COMPAT (1L << 2) +#define SM_STATE_SEND (1L << 3) +#define SM_STATE_COVER (1L << 4) /* Obsolete */ +#define SM_STATE_LOTOUT (1L << 5) /* Obsolete */ +#define SM_STATE_LOTOUTSTAT (1L << 6) + +#define SM_STATE_CYCLETIMEOUT (1L << 7) +#define SM_STATE_LOCKTIMEOUT (1L << 8) +#define SM_STATE_SAVERTIMEOUT (1L << 9) +#define SM_STATE_RANDOM (1L << 10) +#define SM_STATE_DISP_SESSION (1L << 11) + + +#define SM_STATE_ALL (SM_STATE_START | SM_STATE_CONFIRM |\ + SM_STATE_COMPAT | SM_STATE_SEND |\ + SM_STATE_COVER | SM_STATE_LOTOUT |\ + SM_STATE_LOTOUTSTAT | SM_STATE_CYCLETIMEOUT |\ + SM_STATE_LOCKTIMEOUT | SM_STATE_SAVERTIMEOUT |\ + SM_STATE_RANDOM | SM_STATE_DISP_SESSION) + + +/* + * typedef statements for structures to be returned + */ +typedef struct +{ + int flags; + int smStartState; + int smConfirmMode; + Boolean smCompatMode; + Boolean smSendSettings; + Boolean smCoverScreen; /* Obsolete */ + Boolean smLockOnTimeout; /* Obsolete */ + Boolean smLockOnTimeoutStatus; + int smCycleTimeout; + int smLockTimeout; + int smSaverTimeout; + Boolean smRandom; + Boolean smDisplaySpecific; /* If True, the currently running + session is for a specific display */ + +} SmStateInfo; + +typedef struct +{ + char *saverList; +} SmSaverInfo; + +typedef struct +{ + int flags; + int smTimeout; + int smInterval; + int smPreferBlank; + int smAllowExp; +} SmScreenInfo; + +typedef struct +{ + int flags; + int smBellPercent; + unsigned int smBellPitch; + unsigned int smBellDuration; +} SmAudioInfo; + + +typedef struct +{ + int flags; + int smKeyClickPercent; + int smGlobalAutoRepeat; +} SmKeyboardInfo; + +/* + * Function definitions + */ +extern Status _DtGetSmWindow(Display *, Window, Window *) ; +extern Status _DtGetSmState(Display *, Window, SmStateInfo *); +extern Status _DtSetSmState(Display *, Window, SmStateInfo *); +extern Status _DtGetSmSaver(Display *, Window, SmSaverInfo *); +extern void _DtSetSmSaver(Display *, Window, SmSaverInfo *); +extern Status _DtGetSmScreen(Display *, Window, Atom, SmScreenInfo *); +extern Status _DtGetSmAudio(Display *, Window, Atom, SmAudioInfo *); +extern Status _DtGetSmKeyboard(Display *, Window, Atom, SmKeyboardInfo *); +extern Status _DtGetSmFont(Display *, Window, Atom, char **); +extern Status _DtGetSmPointer(Display *, Window, Atom, char **); +extern Status _DtGetSmPreedit(Display *, Window, Atom, char **); + +#endif /* _SessionM_h */ + + + diff --git a/cde/include/Dt/SessionP.h b/cde/include/Dt/SessionP.h new file mode 100644 index 00000000..e685dc57 --- /dev/null +++ b/cde/include/Dt/SessionP.h @@ -0,0 +1,130 @@ +/* + * 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: SessionP.h /main/5 1998/07/30 12:11:06 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. * + */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: SessionP.h + ** + ** Description: Private header for Session Management routines + ** ----------- + ** + ******************************************************************* + ** (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 _SessionP_h +#define _SessionP_h + +/* + * include statements + */ + +/* + * define statements + */ + +/* + * typedef statements + */ + +/* + * Definition for the _DT_SM_WINDOW_INFO property. + */ +typedef struct +{ + unsigned long flags; + unsigned long smWindow; +} PropDtSmWindowInfo; + +/* + * Definition for the _DT_SM_STATE_INFO property + */ +typedef struct +{ + unsigned long flags; + unsigned long smStartState; + unsigned long smConfirmMode; + unsigned long smCompatMode; + unsigned long smSendSettings; + unsigned long smCoverScreen; + unsigned long smLockOnTimeout; + unsigned long smLockOnTimeoutStatus; + unsigned long smCycleTimeout; + unsigned long smLockTimeout; + unsigned long smSaverTimeout; + unsigned long smRandom; + unsigned long smDisplaySpecific; +} PropDtSmStateInfo; + +/* + * Definition for the _DT_SM_SCREEN_INFO property + */ +typedef struct +{ + unsigned long flags; + unsigned long smTimeout; + unsigned long smInterval; + unsigned long smPreferBlank; + unsigned long smAllowExp; +} PropDtSmScreenInfo; + +/* + * Definition for the _DT_SM_AUDIO_INFO property + */ +typedef struct +{ + unsigned long flags; + unsigned long smBellPercent; + unsigned long smBellPitch; + unsigned long smBellDuration; +} PropDtSmAudioInfo; + + +/* + * Definition for the _DT_SM_KEYBOARD_INFO property + */ +typedef struct +{ + unsigned long flags; + unsigned long smKeyClickPercent; + unsigned long smGlobalAutoRepeat; +} PropDtSmKeyboardInfo; + + +#endif /* _SessionP_h */ +/* Do not add anything after this endif. */ diff --git a/cde/include/Dt/Setlocale.h b/cde/include/Dt/Setlocale.h new file mode 100644 index 00000000..fd935888 --- /dev/null +++ b/cde/include/Dt/Setlocale.h @@ -0,0 +1,363 @@ +/* + * 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 +#include +#include +#include +#include
+ +#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 */ diff --git a/cde/include/Dt/SharedProcs.h b/cde/include/Dt/SharedProcs.h new file mode 100644 index 00000000..0e9e520e --- /dev/null +++ b/cde/include/Dt/SharedProcs.h @@ -0,0 +1,102 @@ +/* + * 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 */ diff --git a/cde/include/Dt/SmCreateDirs.h b/cde/include/Dt/SmCreateDirs.h new file mode 100644 index 00000000..f637c1fb --- /dev/null +++ b/cde/include/Dt/SmCreateDirs.h @@ -0,0 +1,73 @@ +/* + * 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. */ diff --git a/cde/include/Dt/Spc.h b/cde/include/Dt/Spc.h new file mode 100644 index 00000000..770ef4e3 --- /dev/null +++ b/cde/include/Dt/Spc.h @@ -0,0 +1,51 @@ +/* + * 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 + +/* + * For definitions of any of the following, look in . + */ + +#define DtSPCOpen XeSPCOpen +#define DtSPCClose XeSPCClose +#define DtSPCSpawn XeSPCSpawn +#define DtSPCAddInput XeSPCAddInput +#define DtSPCRegisterTerminator XeSPCRegisterTerminator +#define DtSPCErrorNumber XeSPCErrorNumber + +#endif /* #ifdef _Dt_SPC_h */ diff --git a/cde/include/Dt/SpinBox.h b/cde/include/Dt/SpinBox.h new file mode 100644 index 00000000..3d1515dd --- /dev/null +++ b/cde/include/Dt/SpinBox.h @@ -0,0 +1,566 @@ +/* + * 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: SpinBox.h /main/4 1995/10/26 09:34:23 rswiston $ */ +/* + * (c) Copyright 1993, 1994 Hewlett-Packard Company + * (c) Copyright 1993, 1994 International Business Machines Corp. + * (c) Copyright 1993, 1994 Novell, Inc. + * (c) Copyright 1993, 1994 Sun Microsystems, Inc. + */ +/*********************************************************** +Copyright 1993 Interleaf, Inc. + +Permission to use, copy, modify, and distribute this software +and its documentation for any purpose without fee is granted, +provided that the above copyright notice appear in all copies +and that both copyright notice and this permission notice appear +in supporting documentation, and that the name of Interleaf not +be used in advertising or publicly pertaining to distribution of +the software without specific written prior permission. + +Interleaf makes no representation about the suitability of this +software for any purpose. It is provided "AS IS" without any +express or implied warranty. +******************************************************************/ + +#ifndef _Dt_SpinBox_h +#define _Dt_SpinBox_h + +#include +#if defined(DT_USE_XM_SSPINBOX) +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Resources */ + +#ifndef DtNarrowLayout +# if defined(DT_USE_XM_SSPINBOX) +# define DtNarrowLayout XmNarrowLayout +# else +# define DtNarrowLayout "arrowLayout" +# endif +#endif +#ifndef DtNarrowSensitivity +# if defined(DT_USE_XM_SSPINBOX) +# define DtNarrowSensitivity XmNarrowSensitivity +# else +# define DtNarrowSensitivity "arrowSensitivity" +# endif +#endif +#ifndef DtNarrowSize +# if defined(DT_USE_XM_SSPINBOX) +# define DtNarrowSize XmNarrowSize +# else +# define DtNarrowSize "arrowSize" +# endif +#endif +#ifndef DtNspinBoxChildType +# if defined(DT_USE_XM_SSPINBOX) +# define DtNspinBoxChildType XmNspinBoxChildType +# else +# define DtNspinBoxChildType "spinBoxChildType" +# endif +#endif +#ifndef DtNposition +# if defined(DT_USE_XM_SSPINBOX) +# define DtNposition XmNposition +# else +# define DtNposition "position" +# endif +#endif +#ifndef DtNtextField +# if defined(DT_USE_XM_SSPINBOX) +# define DtNtextField XmNtextField +# else +# define DtNtextField "textField" +# endif +#endif +#ifndef DtNwrap +# if defined(DT_USE_XM_SSPINBOX) +# define DtNwrap "wrap" +# else +# define DtNwrap "wrap" +# endif +#endif +#ifndef DtNincrementValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtNincrementValue XmNincrementValue +# else +# define DtNincrementValue "incrementValue" +# endif +#endif +#ifndef DtNmaximumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtNmaximumValue XmNmaximumValue +# else +# define DtNmaximumValue "maximumValue" +# endif +#endif +#ifndef DtNminimumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtNminimumValue XmNminimumValue +# else +# define DtNminimumValue "minimumValue" +# endif +#endif +#ifndef DtNnumValues +# if defined(DT_USE_XM_SSPINBOX) +# define DtNnumValues XmNnumValues +# else +# define DtNnumValues "numValues" +# endif +#endif +#ifndef DtNvalues +# if defined(DT_USE_XM_SSPINBOX) +# define DtNvalues XmNvalues +# else +# define DtNvalues "values" +# endif +#endif + +#ifndef DtNactivateCallback +#define DtNactivateCallback XmNactivateCallback +#endif +#ifndef DtNalignment +#define DtNalignment XmNalignment +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNdecimalPoints +#define DtNdecimalPoints XmNdecimalPoints +#endif +#ifndef DtNeditable +#define DtNeditable XmNeditable +#endif +#ifndef DtNfocusCallback +#define DtNfocusCallback XmNfocusCallback +#endif +#ifndef DtNinitialDelay +#define DtNinitialDelay XmNinitialDelay +#endif +#ifndef DtNlosingFocusCallback +#define DtNlosingFocusCallback XmNlosingFocusCallback +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +#ifndef DtNmaxLength +#define DtNmaxLength XmNmaxLength +#endif +#ifndef DtNmodifyVerifyCallback +#define DtNmodifyVerifyCallback XmNmodifyVerifyCallback +#endif +#ifndef DtNrecomputeSize +#define DtNrecomputeSize XmNrecomputeSize +#endif +#ifndef DtNrepeatDelay +#define DtNrepeatDelay XmNrepeatDelay +#endif +#ifndef DtNvalueChangedCallback +#define DtNvalueChangedCallback XmNvalueChangedCallback +#endif + +#ifndef DtCArrowLayout +# if defined(DT_USE_XM_SSPINBOX) +# define DtCArrowLayout XmCArrowLayout +# else +# define DtCArrowLayout "ArrowLayout" +# endif +#endif +#ifndef DtCArrowSensitivity +# if defined(DT_USE_XM_SSPINBOX) +# define DtCArrowSensitivity XmCArrowSensitivity +# else +# define DtCArrowSensitivity "ArrowSensitivity" +# endif +#endif +#ifndef DtCArrowSize +# if defined(DT_USE_XM_SSPINBOX) +# define DtCArrowSize XmCArrowSize +# else +# define DtCArrowSize "ArrowSize" +# endif +#endif +#ifndef DtCSpinBoxChildType +# if defined(DT_USE_XM_SSPINBOX) +# define DtCSpinBoxChildType XmCSpinBoxChildType +# else +# define DtCSpinBoxChildType "SpinBoxChildType" +# endif +#endif +#ifndef DtCPosition +# if defined(DT_USE_XM_SSPINBOX) +# define DtCPosition XmCPosition +# else +# define DtCPosition "Position" +# endif +#endif +#ifndef DtCTextField +# if defined(DT_USE_XM_SSPINBOX) +# define DtCTextField XmCTextField +# else +# define DtCTextField "TextField" +# endif +#endif +#ifndef DtCWrap +# define DtCWrap "Wrap" +#endif +#ifndef DtCIncrementValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtCIncrementValue XmCIncrementValue +# else +# define DtCIncrementValue "incrementValue" +# endif +#endif +#ifndef DtCMaximumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtCMaximumValue XmCMaximumValue +# else +# define DtCMaximumValue "maximumValue" +# endif +#endif +#ifndef DtCMinimumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtCMinimumValue XmCMinimumValue +# else +# define DtCMinimumValue "minimumValue" +# endif +#endif +#ifndef DtCNumValues +# if defined(DT_USE_XM_SSPINBOX) +# define DtCNumValues XmCNumValues +# else +# define DtCNumValues "numValues" +# endif +#endif +#ifndef DtCValues +# if defined(DT_USE_XM_SSPINBOX) +# define DtCValues XmCValues +# else +# define DtCValues "values" +# endif +#endif + +#ifndef DtCAlignment +#define DtCAlignment XmCAlignment +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCDecimalPoints +#define DtCDecimalPoints XmCDecimalPoints +#endif +#ifndef DtCEditable +#define DtCEditable XmCEditable +#endif +#ifndef DtCInitialDelay +#define DtCInitialDelay XmCInitialDelay +#endif +#ifndef DtCItems +#define DtCItems XmCItems +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCMaxLength +#define DtCMaxLength XmCMaxLength +#endif +#ifndef DtCPosition +#define DtCPosition XmCPosition +#endif +#ifndef DtCRecomputeSize +#define DtCRecomputeSize XmCRecomputeSize +#endif +#ifndef DtCRepeatDelay +#define DtCRepeatDelay XmCRepeatDelay +#endif + +/* Representation types */ + +#ifndef DtRIncrementValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtRIncrementValue XmRint +# else +# define DtRIncrementValue "IncrementValue" +# endif +#endif +#ifndef DtRMaximumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtRMaximumValue XmRint +# else +# define DtRMaximumValue "MaximumValue" +# endif +#endif +#ifndef DtRMinimumValue +# if defined(DT_USE_XM_SSPINBOX) +# define DtRMinimumValue XmRint +# else +# define DtRMinimumValue "MinimumValue" +# endif +#endif +#ifndef DtRNumValues +# if defined(DT_USE_XM_SSPINBOX) +# define DtRNumValues XmRint +# else +# define DtRNumValues "NumValues" +# endif +#endif +#ifndef DtRValues +# if defined(DT_USE_XM_SSPINBOX) +# define DtRValues XmRXmStringTable +# else +# define DtRValues "Values" +# endif +#endif +#ifndef DtRArrowSensitivity +# if defined(DT_USE_XM_SSPINBOX) +# define DtRArrowSensitivity XmRArrowSensitivity +# else +# define DtRArrowSensitivity "ArrowSensitivity" +# endif +#endif +#ifndef DtRArrowLayout +# if defined(DT_USE_XM_SSPINBOX) +# define DtRArrowLayout XmRArrowLayout +# else +# define DtRArrowLayout "ArrowLayout" +# endif +#endif +#ifndef DtRSpinBoxChildType +# if defined(DT_USE_XM_SSPINBOX) +# define DtRSpinBoxChildType XmRSpinBoxChildType +# else +# define DtRSpinBoxChildType "SpinBoxChildType" +# endif +#endif + +/* DtNarrowLayout values */ + +#ifndef DtARROWS_FLAT_BEGINNING +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_FLAT_BEGINNING XmARROWS_FLAT_BEGINNING +# else +# define DtARROWS_FLAT_BEGINNING 4 +# endif +#endif +#ifndef DtARROWS_FLAT_END +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_FLAT_END XmARROWS_FLAT_END +# else +# define DtARROWS_FLAT_END 3 +# endif +#endif +#ifndef DtARROWS_SPLIT +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_SPLIT XmARROWS_SPLIT +# else +# define DtARROWS_SPLIT 2 +# endif +#endif +#ifndef DtARROWS_BEGINNING +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_BEGINNING XmARROWS_BEGINNING +# else +# define DtARROWS_BEGINNING 1 +# endif +#endif +#ifndef DtARROWS_END +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_END XmARROWS_END +# else +# define DtARROWS_END 0 +# endif +#endif + +/* DtNarrowSensitivity values */ + +#ifndef DtARROWS_SENSITIVE +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_SENSITIVE XmARROWS_SENSITIVE +# else +# define DtARROWS_SENSITIVE 3 +# endif +#endif +#ifndef DtARROWS_DECREMENT_SENSITIVE +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_DECREMENT_SENSITIVE XmARROWS_DECREMENT_SENSITIVE +# else +# define DtARROWS_DECREMENT_SENSITIVE 2 +# endif +#endif +#ifndef DtARROWS_INCREMENT_SENSITIVE +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_INCREMENT_SENSITIVE XmARROWS_INCREMENT_SENSITIVE +# else +# define DtARROWS_INCREMENT_SENSITIVE 1 +# endif +#endif +#ifndef DtARROWS_INSENSITIVE +# if defined(DT_USE_XM_SSPINBOX) +# define DtARROWS_INSENSITIVE XmARROWS_INSENSITIVE +# else +# define DtARROWS_INSENSITIVE 0 +# endif +#endif + +/* DtNspinBoxChildType values */ + +#ifndef DtNUMERIC +# if defined(DT_USE_XM_SSPINBOX) +# define DtNUMERIC XmNUMERIC +# else +# define DtNUMERIC 3 +# endif +#endif + +#ifndef DtSTRING +# define DtSTRING XmSTRING +#endif + +/* DtNalignment values */ + +#ifndef DtALIGNMENT_BEGINNING +#define DtALIGNMENT_BEGINNING XmALIGNMENT_BEGINNING +#endif +#ifndef DtALIGNMENT_CENTER +#define DtALIGNMENT_CENTER XmALIGNMENT_CENTER +#endif +#ifndef DtALIGNMENT_END +#define DtALIGNMENT_END XmALIGNMENT_END +#endif + +/* Callback reasons */ + +#ifndef DtCR_OK +# define DtCR_OK XmCR_OK +#endif +#ifndef DtCR_SPIN_NEXT +# if defined(DT_USE_XM_SSPINBOX) +# define DtCR_SPIN_NEXT XmCR_SPIN_NEXT +# else +# define DtCR_SPIN_NEXT 62 +# endif +#endif +#ifndef DtCR_SPIN_PRIOR +# if defined(DT_USE_XM_SSPINBOX) +# define DtCR_SPIN_PRIOR XmCR_SPIN_PRIOR +# else +# define DtCR_SPIN_PRIOR 63 +# endif +#endif + + +/* + * Types + */ +#if defined(DT_USE_XM_SSPINBOX) +# define DtSpinBoxCallbackStruct XmSpinBoxCallbackStruct +#else +typedef struct { + int reason; + XEvent *event; + Widget widget; + Boolean doit; + int position; + XmString value; + Boolean crossed_boundary; +} DtSpinBoxCallbackStruct; +#endif + +/* Widget class and instance */ +#if defined(DT_USE_XM_SSPINBOX) +# define _DtSpinBoxClassRec _XmSimpleSpinBoxClassRec +# define _DtSpinBoxRec _XmSimpleSpinBoxRec +# define DtSpinBoxWidgetClass XmSimpleSpinBoxWidgetClass +# define DtSpinBoxWidget XmSimpleSpinBoxWidget +#else +typedef struct _DtSpinBoxClassRec *DtSpinBoxWidgetClass; +typedef struct _DtSpinBoxRec *DtSpinBoxWidget; +#endif + +/* + * Data + */ + +/* Widget class record */ +#if defined(DT_USE_XM_SSPINBOX) +# define dtSpinBoxWidgetClass xmSimpleSpinBoxWidgetClass +#else +externalref WidgetClass dtSpinBoxWidgetClass; +#endif + + +/* + * Functions + */ + +#if defined(DT_USE_XM_SSPINBOX) +# define DtCreateSpinBox XmCreateSimpleSpinBox +# define DtSpinBoxAddItem XmSimpleSpinBoxAddItem +# define DtSpinBoxDeletePos XmSimpleSpinBoxDeletePos +# define DtSpinBoxSetItem XmSimpleSpinBoxSetItem +#else +extern Widget DtCreateSpinBox( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern void DtSpinBoxAddItem( + Widget widget, + XmString item, + int pos); + +extern void DtSpinBoxDeletePos( + Widget widget, + int pos); + +extern void DtSpinBoxSetItem( + Widget widget, + XmString item); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_SpinBox_h */ diff --git a/cde/include/Dt/SpinBoxP.h b/cde/include/Dt/SpinBoxP.h new file mode 100644 index 00000000..f7d993b0 --- /dev/null +++ b/cde/include/Dt/SpinBoxP.h @@ -0,0 +1,223 @@ +/* + * 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: SpinBoxP.h /main/4 1996/03/26 19:54:14 drk $ */ +/* + * SpinBoxP.h, Interleaf, 16aug93 2:37pm Version 1.1. + */ + +/*********************************************************** +Copyright 1993 Interleaf, Inc. + +Permission to use, copy, modify, and distribute this software +and its documentation for any purpose without fee is granted, +provided that the above copyright notice appear in all copies +and that both copyright notice and this permission notice appear +in supporting documentation, and that the name of Interleaf not +be used in advertising or publicly pertaining to distribution of +the software without specific written prior permission. + +Interleaf makes no representation about the suitability of this +software for any purpose. It is provided "AS IS" without any +express or implied warranty. +******************************************************************/ + +/* + * (C) Copyright 1991,1992, 1993 + * Interleaf, Inc. + * 9 Hillside Avenue, Waltham, MA 02154 + * + * SpinBoxP.h: + * + * Private header file for DtSpinBoxWidget. + */ +#ifndef _SpinBoxP_h +#define _SpinBoxP_h + +#include +#include +#include +#include +#include "SpinBox.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * External definitions of syn_resources for our list widget. + */ +#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value) +extern void _DtSpinBoxGetArrowSize SYN_RESOURCE_AA; + +#define ARROW_MULT .45 +#define ARROW_MIN 13 +#define MAX_FLOAT_DECIMALS 6 +#define NUMERIC_LENGTH 128 +#define MARGIN 2 +#define LABEL_PADDING 2 +#define LABEL_SHADOW 2 +#define TEXT_FIELD_SHADOW 1 +#define TEXT_CONTEXT_MARGIN 4 + +/**************************************************************** + * + * Message Defines + * + ****************************************************************/ + +#define SB_ARROW_SENSITIVE DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_ARROW_SENSITIVE, _DtMsgSpinBox_0000) + +#define SB_ALIGNMENT DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_ALIGNMENT, _DtMsgSpinBox_0001) + +#define SB_INIT_DELAY DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_INIT_DELAY, _DtMsgSpinBox_0002) + +#define SB_MARGIN_HEIGHT DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_MARGIN_HEIGHT, _DtMsgSpinBox_0003) + +#define SB_MARGIN_WIDTH DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_MARGIN_WIDTH, _DtMsgSpinBox_0004) + +#define SB_ARROW_LAYOUT DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_ARROW_LAYOUT, _DtMsgSpinBox_0005) + +#define SB_REPEAT_DELAY DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_REPEAT_DELAY, _DtMsgSpinBox_0006) + +#define SB_ITEM_COUNT DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_ITEM_COUNT, _DtMsgSpinBox_0007) + +#define SB_POSITION_STRING DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_POSITION_STRING, _DtMsgSpinBox_0008) + +#define SB_POSITION_NUMERIC DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_POSITION_NUMERIC, _DtMsgSpinBox_0009) + +#define SB_DECIMAL_POINTS DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_DECIMAL_POINTS, _DtMsgSpinBox_0010) + +#define SB_MIN_MAX DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_MIN_MAX, _DtMsgSpinBox_0011) + +#define SB_TEXT DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_TEXT, _DtMsgSpinBox_0012) + +#define SB_SET_ITEM DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_SET_ITEM, _DtMsgSpinBox_0013) + +#define SB_LABEL DTWIDGET_GETMESSAGE( \ + MS_SpinBox, SPIN_LABEL, _DtMsgSpinBox_0014) +/* + * Class Records + */ +typedef struct { + Boolean junk; +} DtSpinBoxClassPart; + +typedef struct _DtSpinBoxClassRec { + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + DtSpinBoxClassPart spin_box_class; +} DtSpinBoxClassRec; + +extern DtSpinBoxClassRec dtSpinBoxClassRec; + + +/* + * Instance Record. + */ +typedef struct _DtSpinBoxPart { + /* Private data */ + Widget label; + Widget up_arrow; + Widget down_arrow; + unsigned char which_arrow; + Boolean init_cb; + Boolean grabbed; + int base; + float min, max; + float increment, current; + char float_format[10]; + Dimension old_width; + Dimension old_height; + Dimension label_max_length; + Dimension label_max_height; + + /* Resource-related data */ + unsigned char arrow_sensitivity; + short decimal_points; + int numeric_increment; + int maximum; + int minimum; + int item_count; + int position; + unsigned char child_type; + XmStringTable items; + XtCallbackList activate_callback; + unsigned char alignment; + unsigned char arrow_layout; + Dimension arrow_size; + short text_columns; + Boolean editable; + XtCallbackList focus_callback; + unsigned int initial_delay; + XtCallbackList losing_focus_callback; + Dimension margin_height; + Dimension margin_width; + int text_max_length; + XtCallbackList modify_verify_callback; + Boolean recompute_size; + unsigned int repeat_delay; + Widget text; + XtCallbackList value_changed_callback; + Boolean wrap; + + /* Spin timer. */ + XtIntervalId timer; + + /* String list related resources */ + + /* Numeric related resources */ + + /* TextField resources */ +} DtSpinBoxPart; + + +/* Full instance record declaration */ +typedef struct _DtSpinBoxRec { + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + DtSpinBoxPart spin_box; +} DtSpinBoxRec; + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _SpinBoxP_h */ diff --git a/cde/include/Dt/SvcTT.h b/cde/include/Dt/SvcTT.h new file mode 100644 index 00000000..d4d3b1a4 --- /dev/null +++ b/cde/include/Dt/SvcTT.h @@ -0,0 +1,46 @@ +/* + * 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 + +extern Tt_status _DtSvcInitToolTalk( + Widget widget + ); + +#endif diff --git a/cde/include/Dt/Term.h b/cde/include/Dt/Term.h new file mode 100644 index 00000000..dcf0ff55 --- /dev/null +++ b/cde/include/Dt/Term.h @@ -0,0 +1,645 @@ +/* + * 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: Term.h /main/1 1996/04/21 19:15:14 drk $ */ +/* + * (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_TermPrim_h +#define _Dt_TermPrim_h + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Resources */ + +#ifndef DtNbackgroundIsSelect +#define DtNbackgroundIsSelect "backgroundIsSelect" +#endif +#ifndef DtNblinkRate +#define DtNblinkRate "blinkRate" +#endif +#ifndef DtNcharCursorStyle +#define DtNcharCursorStyle "charCursorStyle" +#endif +#ifndef DtNconsoleMode +#define DtNconsoleMode "consoleMode" +#endif +#ifndef DtNcsWidth +#define DtNcsWidth "csWidth" +#endif +#ifndef DtNemulationId +#define DtNemulationId "emulationId" +#endif +#ifndef DtNinputVerifyCallback +#define DtNinputVerifyCallback "inputVerifyCallback" +#endif +#ifndef DtNjumpScroll +#define DtNjumpScroll "jumpScroll" +#endif +#ifndef DtNkshMode +#define DtNkshMode "kshMode" +#endif +#ifndef DtNlogFile +#define DtNlogFile "logFile" +#endif +#ifndef DtNlogInhibit +#define DtNlogInhibit "logInhibit" +#endif +#ifndef DtNlogging +#define DtNlogging "logging" +#endif +#ifndef DtNloginShell +#define DtNloginShell "loginShell" +#endif +#ifndef DtNmapOnOutput +#define DtNmapOnOutput "mapOnOutput" +#endif +#ifndef DtNmapOnOutputDelay +#define DtNmapOnOutputDelay "mapOnOutputDelay" +#endif +#ifndef DtNmarginBell +#define DtNmarginBell "marginBell" +#endif +#ifndef DtNnMarginBell +#define DtNnMarginBell "nMarginBell" +#endif +#ifndef DtNoutputLogCallback +#define DtNoutputLogCallback "outputLogCallback" +#endif +#ifndef DtNpointerBlank +#define DtNpointerBlank "pointerBlank" +#endif +#ifndef DtNpointerBlankDelay +#define DtNpointerBlankDelay "pointerBlankDelay" +#endif +#ifndef DtNpointerColor +#define DtNpointerColor "pointerColor" +#endif +#ifndef DtNpointerColorBackground +#define DtNpointerColorBackground "pointerColorBackground" +#endif +#ifndef DtNpointerShape +#define DtNpointerShape "pointerShape" +#endif +#ifndef DtNreverseVideo +#define DtNreverseVideo "reverseVideo" +#endif +#ifndef DtNsaveLines +#define DtNsaveLines "saveLines" +#endif +#ifndef DtNsizeList +#define DtNsizeList "sizeList" +#endif +#ifndef DtNstatusChangeCallback +#define DtNstatusChangeCallback "statusChangeCallback" +#endif +#ifndef DtNstickyNextCursor +#define DtNstickyNextCursor "stickyNextCursor" +#endif +#ifndef DtNstickyPrevCursor +#define DtNstickyPrevCursor "stickyPrevCursor" +#endif +#ifndef DtNsubprocessLoginShell +#define DtNsubprocessLoginShell "subprocessLoginShell" +#endif +#ifndef DtNsubprocessPid +#define DtNsubprocessPid "subprocessPid" +#endif +#ifndef DtNsubprocessExec +#define DtNsubprocessExec "subprocessExec" +#endif +#ifndef DtNsubprocessTerminationCatch +#define DtNsubprocessTerminationCatch "subprocessTerminationCatch" +#endif +#ifndef DtNsubprocessCmd +#define DtNsubprocessCmd "subprocessCmd" +#endif +#ifndef DtNsubprocessArgv +#define DtNsubprocessArgv "subprocessArgv" +#endif +#ifndef DtNsubprocessTerminationCallback +#define DtNsubprocessTerminationCallback "subprocessTerminationCallback" +#endif +#ifndef DtNtermEmulationMode +#define DtNtermEmulationMode "termEmulationMode" +#endif +#ifndef DtNtermDevice +#define DtNtermDevice "termDevice" +#endif +#ifndef DtNtermDeviceAllocate +#define DtNtermDeviceAllocate "termDeviceAllocate" +#endif +#ifndef DtNtermId +#define DtNtermId "termId" +#endif +#ifndef DtNtermName +#define DtNtermName "termName" +#endif +#ifndef DtNtermSlaveName +#define DtNtermSlaveName "termSlaveName" +#endif +#ifndef DtNttyModes +#define DtNttyModes "ttyModes" +#endif +#ifndef DtNuseFontSets +#define DtNuseFontSets "useFontSets" +#endif +#ifndef DtNuseLineDraw +#define DtNuseLineDraw "useLineDraw" +#endif +#ifndef DtNuserFont +#define DtNuserFont "userFont" +#endif +#ifndef DtNuserBoldFont +#define DtNuserBoldFont "userBoldFont" +#endif +#ifndef DtNvisualBell +#define DtNvisualBell "visualBell" +#endif +#ifndef DtNallowSendEvents +#define DtNallowSendEvents "allowSendEvents" +#endif +#ifndef DtNbaseHeight +#define DtNbaseHeight XmNbaseHeight +#endif +#ifndef DtNbaseWidth +#define DtNbaseWidth XmNbaseWidth +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNheightInc +#define DtNheightInc XmNheightInc +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +#ifndef DtNrows +#define DtNrows XmNrows +#endif +#ifndef DtNshadowType +#define DtNshadowType XmNshadowType +#endif +#ifndef DtNverticalScrollBar +#define DtNverticalScrollBar XmNverticalScrollBar +#endif +#ifndef DtNwidthInc +#define DtNwidthInc XmNwidthInc +#endif + +#ifndef DtCBackground +#define DtCBackground XmCBackground +#endif +#ifndef DtCBackgroundIsSelect +#define DtCBackgroundIsSelect "BackgroundIsSelect" +#endif +#ifndef DtCBlinkRate +#define DtCBlinkRate "BlinkRate" +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCCursor +#define DtCCursor XmCCursor +#endif +#ifndef DtCConsoleMode +#define DtCConsoleMode "ConsoleMode" +#endif +#ifndef DtCCsWidth +#define DtCCsWidth "CsWidth" +#endif +#ifndef DtCCharCursorStyle +#define DtCCharCursorStyle "CharCursorStyle" +#endif +#ifndef DtCEmulationId +#define DtCEmulationId "EmulationId" +#endif +#ifndef DtCForeground +#define DtCForeground XmCForeground +#endif +#ifndef DtCJumpScroll +#define DtCJumpScroll "JumpScroll" +#endif +#ifndef DtCKshMode +#define DtCKshMode "KshMode" +#endif +#ifndef DtCLogFile +#define DtCLogFile "LogFile" +#endif +#ifndef DtCLogInhibit +#define DtCLogInhibit "LogInhibit" +#endif +#ifndef DtCLogging +#define DtCLogging "Logging" +#endif +#ifndef DtCLoginShell +#define DtCLoginShell "LoginShell" +#endif +#ifndef DtCMapOnOutput +#define DtCMapOnOutput "MapOnOutput" +#endif +#ifndef DtCMapOnOutputDelay +#define DtCMapOnOutputDelay "MapOnOutputDelay" +#endif +#ifndef DtCMarginBell +#define DtCMarginBell "MarginBell" +#endif +#ifndef DtCNMarginBell +#define DtCNMarginBell "NMarginBell" +#endif +#ifndef DtCPointerBlank +#define DtCPointerBlank "PointerBlank" +#endif +#ifndef DtCPointerBlankDelay +#define DtCPointerBlankDelay "PointerBlankDelay" +#endif +#ifndef DtCPointerColor +#define DtCPointerColor "PointerColor" +#endif +#ifndef DtCPointerColorBackground +#define DtCPointerColorBackground "PointerColorBackground" +#endif +#ifndef DtCPointerShape +#define DtCPointerShape "PointerShape" +#endif +#ifndef DtCReverseVideo +#define DtCReverseVideo "ReverseVideo" +#endif +#ifndef DtCSaveLines +#define DtCSaveLines "SaveLines" +#endif +#ifndef DtCSizeList +#define DtCSizeList "SizeList" +#endif +#ifndef DtCStickyCursor +#define DtCStickyCursor "StickyCursor" +#endif +#ifndef DtCSubprocessLoginShell +#define DtCSubprocessLoginShell "SubprocessLoginShell" +#endif +#ifndef DtCSubprocessPid +#define DtCSubprocessPid "SubprocessPid" +#endif +#ifndef DtCSubprocessExec +#define DtCSubprocessExec "SubprocessExec" +#endif +#ifndef DtCSubprocessTerminationCatch +#define DtCSubprocessTerminationCatch "SubprocessTerminationCatch" +#endif +#ifndef DtCSubprocessCmd +#define DtCSubprocessCmd "SubprocessCmd" +#endif +#ifndef DtCSubprocessArgv +#define DtCSubprocessArgv "SubprocessArgv" +#endif +#ifndef DtCTermEmulationMode +#define DtCTermEmulationMode "TermEmulationMode" +#endif +#ifndef DtCTermDevice +#define DtCTermDevice "TermDevice" +#endif +#ifndef DtCTermDeviceAllocate +#define DtCTermDeviceAllocate "TermDeviceAllocate" +#endif +#ifndef DtCTermId +#define DtCTermId "TermId" +#endif +#ifndef DtCTermName +#define DtCTermName "TermName" +#endif +#ifndef DtCTermSlaveName +#define DtCTermSlaveName "TermSlaveName" +#endif +#ifndef DtCTtyModes +#define DtCTtyModes "TtyModes" +#endif +#ifndef DtCUseFontSets +#define DtCUseFontSets "UseFontSets" +#endif +#ifndef DtCUseLineDraw +#define DtCUseLineDraw "UseLineDraw" +#endif +#ifndef DtCUserFont +#define DtCUserFont "UserFont" +#endif +#ifndef DtCUserBoldFont +#define DtCUserBoldFont "UserBoldFont" +#endif +#ifndef DtCVisualBell +#define DtCVisualBell "VisualBell" +#endif +#ifndef DtCAllowSendEvents +#define DtCAllowSendEvents "AllowSendEvents" +#endif +#ifndef DtCBaseHeight +#define DtCBaseHeight XmCBaseHeight +#endif +#ifndef DtCBaseWidth +#define DtCBaseWidth XmCBaseWidth +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCHeightInc +#define DtCHeightInc XmCHeightInc +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCRows +#define DtCRows XmCRows +#endif +#ifndef DtCShadowType +#define DtCShadowType XmCShadowType +#endif +#ifndef DtCVerticalScrollBar +#define DtCVerticalScrollBar XmCVerticalScrollBar +#endif +#ifndef DtCWidthInc +#define DtCWidthInc XmCWidthInc +#endif + +/* Representation types */ + +#define DtRDtTermCharCursorStyle "DtTermCharCursorStyle" +#define DtRDtTermEmulationMode "DtTermEmulationMode" +#define DtRDtTermTerminalSize "DtTermTerminalSize" +#define DtRDtTermTerminalSizeList "DtTermTerminalSizeList" + +/* DtNshadowType values */ + +#ifndef DtSHADOW_IN +#define DtSHADOW_IN XmSHADOW_IN +#endif +#ifndef DtSHADOW_OUT +#define DtSHADOW_OUT XmSHADOW_OUT +#endif +#ifndef DtSHADOW_ETCHED_IN +#define DtSHADOW_ETCHED_IN XmSHADOW_ETCHED_IN +#endif +#ifndef DtSHADOW_ETCHED_OUT +#define DtSHADOW_ETCHED_OUT XmSHADOW_ETCHED_OUT +#endif + +#define DtTERM_CHAR_CURSOR_BOX 0 +#define DtTERM_CHAR_CURSOR_BAR 1 +#define DtTERM_CHAR_CURSOR_INVISIBLE 2 + +#define DtTermEMULATIONHP 0 +#define DtTermEMULATIONANSI 1 + +/* Callback reasons */ + +#define DtCR_TERM_SUBPROCESS_TERMINATION 1 +#define DtCR_TERM_STATUS_CHANGE 2 +#define DtCR_TERM_INPUT_VERIFY 7 +#define DtCR_TERM_OUTPUT_LOG 8 + + +/* + * Types + */ + +/* insert char mode */ + +typedef enum { + DtTERM_INSERT_CHAR_OFF = 0, + DtTERM_INSERT_CHAR_ON, + DtTERM_INSERT_CHAR_ON_WRAP +} DtTermInsertCharMode; + +typedef struct { + int reason; + XEvent *event; + int cursorX; + int cursorY; + Boolean capsLock; + Boolean stop; + DtTermInsertCharMode insertCharMode; + Boolean locked; +} DtTermStatusChangeCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + pid_t pid; + int status; +} DtTermSubprocessTerminationCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + Boolean doit; + unsigned char *text; + int length; +} DtTermInputVerifyCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + unsigned char *text; + int length; +} DtTermOutputLogCallbackStruct; + +typedef struct _DtTermTerminalSize { + short rows; + short columns; +} DtTermTerminalSize; + +typedef struct _DtTermTerminalSizeList { + int numSizes; + DtTermTerminalSize *sizes; +} DtTermTerminalSizeList; + +/* Widget class and instance */ + +typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass; +typedef struct _DtTermPrimitiveRec *DtTermPrimitiveWidget; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtTermPrimitiveWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateTermPrimitive( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern void DtTermInitialize(void); + +extern void DtTermDisplaySend( + Widget widget, + unsigned char *buffer, + int length); + +extern void DtTermSubprocSend( + Widget widget, + unsigned char *buffer, + int length); + +extern void DtTermSubprocReap( + pid_t pid, + int *stat_loc); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_TermPrim_h */ + + + +#ifndef _Dt_Term_h +#define _Dt_Term_h + +#include
+ +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Resources */ + +#ifndef DtNfunctionKeyExecuteProc +#define DtNfunctionKeyExecuteProc "functionKeyExecuteProc" +#endif +#ifndef DtNfunctionKeyUpdateProc +#define DtNfunctionKeyUpdateProc "functionKeyUpdateProc" +#endif +#ifndef DtNautoWrap +#define DtNautoWrap "autoWrap" +#endif +#ifndef DtNreverseWrap +#define DtNreverseWrap "reverseWrap" +#endif +#ifndef DtNsunFunctionKeys +#define DtNsunFunctionKeys "sunFunctionKeys" +#endif +#ifndef DtNc132 +#define DtNc132 "c132" +#endif +#ifndef DtNappCursorDefault +#define DtNappCursorDefault "appCursorDefault" +#endif +#ifndef DtNappKeypadDefault +#define DtNappKeypadDefault "appKeypadDefault" +#endif + +#ifndef DtCFunctionKeyExecuteProc +#define DtCFunctionKeyExecuteProc "FunctionKeyExecuteProc" +#endif +#ifndef DtCFunctionKeyUpdateProc +#define DtCFunctionKeyUpdateProc "FunctionKeyUpdateProc" +#endif +#ifndef DtCFunctionKeyLast +#define DtCFunctionKeyLast "FunctionKeyLast" +#endif +#ifndef DtCAutoWrap +#define DtCAutoWrap "AutoWrap" +#endif +#ifndef DtCReverseWrap +#define DtCReverseWrap "ReverseWrap" +#endif +#ifndef DtCSunFunctionKeys +#define DtCSunFunctionKeys "SunFunctionKeys" +#endif +#ifndef DtCC132 +#define DtCC132 "C132" +#endif +#ifndef DtCAppCursorDefault +#define DtCAppCursorDefault "AppCursorDefault" +#endif +#ifndef DtCAppKeypadDefault +#define DtCAppKeypadDefault "AppKeypadDefault" +#endif + + +/* + * Types + */ + +/* Widget class and instance */ + +typedef struct _DtTermClassRec *DtTermWidgetClass; +typedef struct _DtTermRec *DtTermWidget; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtTermWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateTerm( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Term_h */ diff --git a/cde/include/Dt/TermP.h b/cde/include/Dt/TermP.h new file mode 100644 index 00000000..b2f14e09 --- /dev/null +++ b/cde/include/Dt/TermP.h @@ -0,0 +1,92 @@ +/* + * 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: TermP.h /main/1 1996/04/21 19:16:07 drk $"; + */ + +/* * + * (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_TermP_h +#define _Dt_TermP_h + +#include "TermPrimP.h" +#include "Term.h" +#include "TermData.h" +#include "TermFunctionKey.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* Vt class structure... */ + +typedef struct _DtTermClassPart +{ + int foo; +} DtTermClassPart; + +/* full clas record declaration for Vt class... */ +typedef struct _DtTermClassRec { + CoreClassPart core_class; + XmPrimitiveClassPart primitive_class; + DtTermPrimitiveClassPart term_primitive_class; + DtTermClassPart term_class; +} DtTermClassRec; + +externalref DtTermClassRec dtTermClassRec; + +/* vt instance record... */ +typedef struct _DtTermPart +{ + DtTermData td; /* non-widget terminal data */ + Boolean autoWrap; + Boolean reverseWrap; + Boolean sunFunctionKeys; + Boolean c132; + Boolean appKeypadMode; + Boolean appCursorMode; +} DtTermPart; + +/* full instance record declaration... */ + +typedef struct _DtTermRec { + CorePart core; + XmPrimitivePart primitive; + DtTermPrimitivePart term; + DtTermPart vt; +} DtTermRec; + +/* private function declarations... */ +/* end private function declarations... */ + +#ifdef __cplusplus +} /* close scope of 'extern "C"'... */ +#endif /* __cplusplus */ + +#endif /* _Dt_TermP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif... */ diff --git a/cde/include/Dt/TermPrim.h b/cde/include/Dt/TermPrim.h new file mode 100644 index 00000000..8fef485c --- /dev/null +++ b/cde/include/Dt/TermPrim.h @@ -0,0 +1,538 @@ +/* + * 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: TermPrim.h /main/1 1996/04/21 19:16:41 drk $ */ +/* + * (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_TermPrim_h +#define _Dt_TermPrim_h + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +/* Resources */ + +#ifndef DtNbackgroundIsSelect +#define DtNbackgroundIsSelect "backgroundIsSelect" +#endif +#ifndef DtNblinkRate +#define DtNblinkRate "blinkRate" +#endif +#ifndef DtNcharCursorStyle +#define DtNcharCursorStyle "charCursorStyle" +#endif +#ifndef DtNconsoleMode +#define DtNconsoleMode "consoleMode" +#endif +#ifndef DtNcsWidth +#define DtNcsWidth "csWidth" +#endif +#ifndef DtNemulationId +#define DtNemulationId "emulationId" +#endif +#ifndef DtNinputVerifyCallback +#define DtNinputVerifyCallback "inputVerifyCallback" +#endif +#ifndef DtNjumpScroll +#define DtNjumpScroll "jumpScroll" +#endif +#ifndef DtNkshMode +#define DtNkshMode "kshMode" +#endif +#ifndef DtNlogFile +#define DtNlogFile "logFile" +#endif +#ifndef DtNlogInhibit +#define DtNlogInhibit "logInhibit" +#endif +#ifndef DtNlogging +#define DtNlogging "logging" +#endif +#ifndef DtNloginShell +#define DtNloginShell "loginShell" +#endif +#ifndef DtNmapOnOutput +#define DtNmapOnOutput "mapOnOutput" +#endif +#ifndef DtNmapOnOutputDelay +#define DtNmapOnOutputDelay "mapOnOutputDelay" +#endif +#ifndef DtNmarginBell +#define DtNmarginBell "marginBell" +#endif +#ifndef DtNnMarginBell +#define DtNnMarginBell "nMarginBell" +#endif +#ifndef DtNoutputLogCallback +#define DtNoutputLogCallback "outputLogCallback" +#endif +#ifndef DtNpointerBlank +#define DtNpointerBlank "pointerBlank" +#endif +#ifndef DtNpointerBlankDelay +#define DtNpointerBlankDelay "pointerBlankDelay" +#endif +#ifndef DtNpointerColor +#define DtNpointerColor "pointerColor" +#endif +#ifndef DtNpointerColorBackground +#define DtNpointerColorBackground "pointerColorBackground" +#endif +#ifndef DtNpointerShape +#define DtNpointerShape "pointerShape" +#endif +#ifndef DtNreverseVideo +#define DtNreverseVideo "reverseVideo" +#endif +#ifndef DtNsaveLines +#define DtNsaveLines "saveLines" +#endif +#ifndef DtNsizeList +#define DtNsizeList "sizeList" +#endif +#ifndef DtNstatusChangeCallback +#define DtNstatusChangeCallback "statusChangeCallback" +#endif +#ifndef DtNstickyNextCursor +#define DtNstickyNextCursor "stickyNextCursor" +#endif +#ifndef DtNstickyPrevCursor +#define DtNstickyPrevCursor "stickyPrevCursor" +#endif +#ifndef DtNsubprocessLoginShell +#define DtNsubprocessLoginShell "subprocessLoginShell" +#endif +#ifndef DtNsubprocessPid +#define DtNsubprocessPid "subprocessPid" +#endif +#ifndef DtNsubprocessExec +#define DtNsubprocessExec "subprocessExec" +#endif +#ifndef DtNsubprocessTerminationCatch +#define DtNsubprocessTerminationCatch "subprocessTerminationCatch" +#endif +#ifndef DtNsubprocessCmd +#define DtNsubprocessCmd "subprocessCmd" +#endif +#ifndef DtNsubprocessArgv +#define DtNsubprocessArgv "subprocessArgv" +#endif +#ifndef DtNsubprocessTerminationCallback +#define DtNsubprocessTerminationCallback "subprocessTerminationCallback" +#endif +#ifndef DtNtermEmulationMode +#define DtNtermEmulationMode "termEmulationMode" +#endif +#ifndef DtNtermDevice +#define DtNtermDevice "termDevice" +#endif +#ifndef DtNtermDeviceAllocate +#define DtNtermDeviceAllocate "termDeviceAllocate" +#endif +#ifndef DtNtermId +#define DtNtermId "termId" +#endif +#ifndef DtNtermName +#define DtNtermName "termName" +#endif +#ifndef DtNtermSlaveName +#define DtNtermSlaveName "termSlaveName" +#endif +#ifndef DtNttyModes +#define DtNttyModes "ttyModes" +#endif +#ifndef DtNuseFontSets +#define DtNuseFontSets "useFontSets" +#endif +#ifndef DtNuseLineDraw +#define DtNuseLineDraw "useLineDraw" +#endif +#ifndef DtNuserFont +#define DtNuserFont "userFont" +#endif +#ifndef DtNuserBoldFont +#define DtNuserBoldFont "userBoldFont" +#endif +#ifndef DtNvisualBell +#define DtNvisualBell "visualBell" +#endif +#ifndef DtNallowSendEvents +#define DtNallowSendEvents "allowSendEvents" +#endif +#ifndef DtNbaseHeight +#define DtNbaseHeight XmNbaseHeight +#endif +#ifndef DtNbaseWidth +#define DtNbaseWidth XmNbaseWidth +#endif +#ifndef DtNcolumns +#define DtNcolumns XmNcolumns +#endif +#ifndef DtNheightInc +#define DtNheightInc XmNheightInc +#endif +#ifndef DtNmarginHeight +#define DtNmarginHeight XmNmarginHeight +#endif +#ifndef DtNmarginWidth +#define DtNmarginWidth XmNmarginWidth +#endif +#ifndef DtNrows +#define DtNrows XmNrows +#endif +#ifndef DtNshadowType +#define DtNshadowType XmNshadowType +#endif +#ifndef DtNverticalScrollBar +#define DtNverticalScrollBar XmNverticalScrollBar +#endif +#ifndef DtNwidthInc +#define DtNwidthInc XmNwidthInc +#endif + +#ifndef DtCBackground +#define DtCBackground XmCBackground +#endif +#ifndef DtCBackgroundIsSelect +#define DtCBackgroundIsSelect "BackgroundIsSelect" +#endif +#ifndef DtCBlinkRate +#define DtCBlinkRate "BlinkRate" +#endif +#ifndef DtCCallback +#define DtCCallback XmCCallback +#endif +#ifndef DtCCursor +#define DtCCursor XmCCursor +#endif +#ifndef DtCConsoleMode +#define DtCConsoleMode "ConsoleMode" +#endif +#ifndef DtCCsWidth +#define DtCCsWidth "CsWidth" +#endif +#ifndef DtCCharCursorStyle +#define DtCCharCursorStyle "CharCursorStyle" +#endif +#ifndef DtCEmulationId +#define DtCEmulationId "EmulationId" +#endif +#ifndef DtCForeground +#define DtCForeground XmCForeground +#endif +#ifndef DtCJumpScroll +#define DtCJumpScroll "JumpScroll" +#endif +#ifndef DtCKshMode +#define DtCKshMode "KshMode" +#endif +#ifndef DtCLogFile +#define DtCLogFile "LogFile" +#endif +#ifndef DtCLogInhibit +#define DtCLogInhibit "LogInhibit" +#endif +#ifndef DtCLogging +#define DtCLogging "Logging" +#endif +#ifndef DtCLoginShell +#define DtCLoginShell "LoginShell" +#endif +#ifndef DtCMapOnOutput +#define DtCMapOnOutput "MapOnOutput" +#endif +#ifndef DtCMapOnOutputDelay +#define DtCMapOnOutputDelay "MapOnOutputDelay" +#endif +#ifndef DtCMarginBell +#define DtCMarginBell "MarginBell" +#endif +#ifndef DtCNMarginBell +#define DtCNMarginBell "NMarginBell" +#endif +#ifndef DtCPointerBlank +#define DtCPointerBlank "PointerBlank" +#endif +#ifndef DtCPointerBlankDelay +#define DtCPointerBlankDelay "PointerBlankDelay" +#endif +#ifndef DtCPointerColor +#define DtCPointerColor "PointerColor" +#endif +#ifndef DtCPointerColorBackground +#define DtCPointerColorBackground "PointerColorBackground" +#endif +#ifndef DtCPointerShape +#define DtCPointerShape "PointerShape" +#endif +#ifndef DtCReverseVideo +#define DtCReverseVideo "ReverseVideo" +#endif +#ifndef DtCSaveLines +#define DtCSaveLines "SaveLines" +#endif +#ifndef DtCSizeList +#define DtCSizeList "SizeList" +#endif +#ifndef DtCStickyCursor +#define DtCStickyCursor "StickyCursor" +#endif +#ifndef DtCSubprocessLoginShell +#define DtCSubprocessLoginShell "SubprocessLoginShell" +#endif +#ifndef DtCSubprocessPid +#define DtCSubprocessPid "SubprocessPid" +#endif +#ifndef DtCSubprocessExec +#define DtCSubprocessExec "SubprocessExec" +#endif +#ifndef DtCSubprocessTerminationCatch +#define DtCSubprocessTerminationCatch "SubprocessTerminationCatch" +#endif +#ifndef DtCSubprocessCmd +#define DtCSubprocessCmd "SubprocessCmd" +#endif +#ifndef DtCSubprocessArgv +#define DtCSubprocessArgv "SubprocessArgv" +#endif +#ifndef DtCTermEmulationMode +#define DtCTermEmulationMode "TermEmulationMode" +#endif +#ifndef DtCTermDevice +#define DtCTermDevice "TermDevice" +#endif +#ifndef DtCTermDeviceAllocate +#define DtCTermDeviceAllocate "TermDeviceAllocate" +#endif +#ifndef DtCTermId +#define DtCTermId "TermId" +#endif +#ifndef DtCTermName +#define DtCTermName "TermName" +#endif +#ifndef DtCTermSlaveName +#define DtCTermSlaveName "TermSlaveName" +#endif +#ifndef DtCTtyModes +#define DtCTtyModes "TtyModes" +#endif +#ifndef DtCUseFontSets +#define DtCUseFontSets "UseFontSets" +#endif +#ifndef DtCUseLineDraw +#define DtCUseLineDraw "UseLineDraw" +#endif +#ifndef DtCUserFont +#define DtCUserFont "UserFont" +#endif +#ifndef DtCUserBoldFont +#define DtCUserBoldFont "UserBoldFont" +#endif +#ifndef DtCVisualBell +#define DtCVisualBell "VisualBell" +#endif +#ifndef DtCAllowSendEvents +#define DtCAllowSendEvents "AllowSendEvents" +#endif +#ifndef DtCBaseHeight +#define DtCBaseHeight XmCBaseHeight +#endif +#ifndef DtCBaseWidth +#define DtCBaseWidth XmCBaseWidth +#endif +#ifndef DtCColumns +#define DtCColumns XmCColumns +#endif +#ifndef DtCHeightInc +#define DtCHeightInc XmCHeightInc +#endif +#ifndef DtCMarginHeight +#define DtCMarginHeight XmCMarginHeight +#endif +#ifndef DtCMarginWidth +#define DtCMarginWidth XmCMarginWidth +#endif +#ifndef DtCRows +#define DtCRows XmCRows +#endif +#ifndef DtCShadowType +#define DtCShadowType XmCShadowType +#endif +#ifndef DtCVerticalScrollBar +#define DtCVerticalScrollBar XmCVerticalScrollBar +#endif +#ifndef DtCWidthInc +#define DtCWidthInc XmCWidthInc +#endif + +/* Representation types */ + +#define DtRDtTermCharCursorStyle "DtTermCharCursorStyle" +#define DtRDtTermEmulationMode "DtTermEmulationMode" +#define DtRDtTermTerminalSize "DtTermTerminalSize" +#define DtRDtTermTerminalSizeList "DtTermTerminalSizeList" + +/* DtNshadowType values */ + +#ifndef DtSHADOW_IN +#define DtSHADOW_IN XmSHADOW_IN +#endif +#ifndef DtSHADOW_OUT +#define DtSHADOW_OUT XmSHADOW_OUT +#endif +#ifndef DtSHADOW_ETCHED_IN +#define DtSHADOW_ETCHED_IN XmSHADOW_ETCHED_IN +#endif +#ifndef DtSHADOW_ETCHED_OUT +#define DtSHADOW_ETCHED_OUT XmSHADOW_ETCHED_OUT +#endif + +#define DtTERM_CHAR_CURSOR_BOX 0 +#define DtTERM_CHAR_CURSOR_BAR 1 +#define DtTERM_CHAR_CURSOR_INVISIBLE 2 + +#define DtTermEMULATIONHP 0 +#define DtTermEMULATIONANSI 1 + +/* Callback reasons */ + +#define DtCR_TERM_SUBPROCESS_TERMINATION 1 +#define DtCR_TERM_STATUS_CHANGE 2 +#define DtCR_TERM_INPUT_VERIFY 7 +#define DtCR_TERM_OUTPUT_LOG 8 + + +/* + * Types + */ + +/* insert char mode */ + +typedef enum { + DtTERM_INSERT_CHAR_OFF = 0, + DtTERM_INSERT_CHAR_ON, + DtTERM_INSERT_CHAR_ON_WRAP +} DtTermInsertCharMode; + +typedef struct { + int reason; + XEvent *event; + int cursorX; + int cursorY; + Boolean capsLock; + Boolean stop; + DtTermInsertCharMode insertCharMode; + Boolean locked; +} DtTermStatusChangeCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + pid_t pid; + int status; +} DtTermSubprocessTerminationCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + Boolean doit; + unsigned char *text; + int length; +} DtTermInputVerifyCallbackStruct; + +typedef struct { + int reason; + XEvent *event; + unsigned char *text; + int length; +} DtTermOutputLogCallbackStruct; + +typedef struct _DtTermTerminalSize { + short rows; + short columns; +} DtTermTerminalSize; + +typedef struct _DtTermTerminalSizeList { + int numSizes; + DtTermTerminalSize *sizes; +} DtTermTerminalSizeList; + +/* Widget class and instance */ + +typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass; +typedef struct _DtTermPrimitiveRec *DtTermPrimitiveWidget; + + +/* + * Data + */ + +/* Widget class record */ + +externalref WidgetClass dtTermPrimitiveWidgetClass; + + +/* + * Functions + */ + +extern Widget DtCreateTermPrimitive( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount); + +extern void DtTermInitialize(void); + +extern void DtTermDisplaySend( + Widget widget, + unsigned char *buffer, + int length); + +extern void DtTermSubprocSend( + Widget widget, + unsigned char *buffer, + int length); + +extern void DtTermSubprocReap( + pid_t pid, + int *stat_loc); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_TermPrim_h */ diff --git a/cde/include/Dt/TermPrimP.h b/cde/include/Dt/TermPrimP.h new file mode 100644 index 00000000..6da67cac --- /dev/null +++ b/cde/include/Dt/TermPrimP.h @@ -0,0 +1,229 @@ +/* + * 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: TermPrimP.h /main/1 1996/04/21 19:18:08 drk $"; + */ +/* * + * (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_TermPrimP_h +#define _Dt_TermPrimP_h + +#include +#include "TermPrim.h" +#include "TermPrimData.h" + +/* include the other internal Term include files... + */ +#include "TermPrimScroll.h" +#include "TermPrimRender.h" +#include "TermPrimCursor.h" +#include "TermPrimLineFont.h" +#include "TermPrimBuffer.h" +#include "TermPrimSubproc.h" + +/* +** Now we can choose what shell we want +** NOTE: +** (is it worth making resources for defaultShell +** and defaultShellArgv0?) JRM +*/ +#ifdef hpV4 +# define DEFAULT_SHELL "/usr/bin/sh" +# define DEFAULT_SHELL_ARGV0 "sh" +#else /* hpV4 */ +# define DEFAULT_SHELL "/bin/sh" +# define DEFAULT_SHELL_ARGV0 "sh" +#endif /* hpV4 */ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* term class structure... */ + +typedef int +(*TermInsertProc) +( + Widget w, + unsigned char *buffer, + int length +); + +typedef struct _DtTermPrimitiveClassPart +{ + StateTable *parser_start_state; + Boolean use_history_buffer; + Boolean allow_scroll_below_buffer; + Boolean wrap_right_after_insert; + BufferCreateProc buffer_create_proc; + BufferFreeProc buffer_free_proc; + TermInsertProc term_insert_proc; + short sizeOfBuffer; + short sizeOfLine; + short sizeOfEnh; +} DtTermPrimitiveClassPart; + +/* full class record declaration for Term class... */ +typedef struct _DtTermPrimitiveClassRec { + CoreClassPart core_class; + XmPrimitiveClassPart primitive_class; + DtTermPrimitiveClassPart term_primitive_class; +} DtTermPrimitiveClassRec; + +externalref DtTermPrimitiveClassRec dtTermPrimitiveClassRec; + +/* term instance record... */ +typedef struct _DtTermPrimitivePart +{ + struct termData *tpd; /* non-widget terminal data */ + Widget verticalScrollBar; /* vertical sb to update/track */ + short verticalScrollBarValue; /* cached sb value */ + short verticalScrollBarMaximum; /* cached sb maximum */ + short verticalScrollBarSliderSize; /* cached sb size */ + short verticalScrollBarPageIncrement; + /* cached sb page inc */ + unsigned char charCursorStyle; /* cursor style: bar or box */ + int blinkRate; /* cursor blink rate (0 == no + * blink + */ + Boolean consoleMode; /* true == get console output */ + Boolean backgroundIsSelect; /* true == background is select + * color + */ + Boolean visualBell; /* true == visual bell */ + Boolean marginBell; /* true == rt margin waring bell*/ + int nMarginBell; /* warning bell distance */ + Boolean jumpScroll; /* true == jumpscroll, + * false == line by line scroll + */ + Boolean hasFocus; /* true == window has focus + * (and the cursor blinks) + */ + char *emulationId; /* $TERMINAL_EMULATOR variable */ + char *termId; /* term ID string for esc seq */ + char *termName; /* $TERM string */ + char *ttyModes; /* ttyModes string */ + char *csWidth; /* csWidth string */ + unsigned char shadowType; /* shadow type for term window */ + XmFontList fontList; /* fontList for base font */ + XmFontList boldFontList; /* fontList for bold font */ + XFontStruct *font; /* font for base font */ + XFontStruct *boldFont; /* font for bold font */ + XFontSet fontSet; /* fontSet generated from either + * the fontList or the font above + */ + XFontSet boldFontSet; /* fontSet generated from either + * the boldFontList or the boldFont + * above + */ + Boolean haveFontSet; /* true == we have a valid fontSet + */ + char *saveLines; /* save lines or screens */ + short rows; /* rows of displayed term win */ + short columns; /* columns of term win & memory */ + Dimension marginHeight; /* width of window's margin */ + Dimension marginWidth; /* height of window's margin */ + int baseWidth; /* base width for size hints */ + int baseHeight; /* base height for size hints */ + int widthInc; /* width inc for size hints */ + int heightInc; /* height inc for size hints */ + int ascent; /* ascent for font */ + int pty; /* file descriptor of pty */ + Boolean ptyAllocate; /* true, allocate a pty */ + char *ptySlaveName; /* name of pty slave device */ + int subprocessPid; /* process id of child (shell) + * process + */ + char *subprocessCWD; /* subprocess working directory */ + char *subprocessCmd; /* subprocess cmd to exec */ + char **subprocessArgv; /* argv to pass to above cmd */ + Boolean subprocessLoginShell; /* if true, prepend argv[0] with + * a '-' + */ + Boolean subprocessTerminationCatch; /* if true, catch child exit() */ + Boolean subprocessExec; /* if true, exec subprocess */ + _termSubprocId subprocessId; /* id of subprocess as returned + * by the subprocess code. + */ + XtCallbackList inputVerifyCallback; /* callback invoked when keyboard + * input or selection input is + * received. + */ + XtCallbackList outputLogCallback; /* callback invoked when pty output + * is received. + */ + XtCallbackList statusChangeCallback;/* callback invoked when there is + * some sort of status change + * (cursor motion, capsLockChange, + * outputStopped, etc). Reason + * indicates which has changed. + */ + XtCallbackList subprocessTerminationCallback; + /* callback invoked by subprocess + * termination (exit()) + */ + Boolean kshMode; /* use meta for escape */ + Boolean pointerBlank; /* blank pointer after */ + int pointerBlankDelay; /* pointerBlankDelay secs */ + Cursor pointerShape; /* pointer pixmap */ + Pixel pointerColor; /* pointer color */ + Pixel pointerColorBackground; /* pointer background color */ + Boolean mapOnOutput; /* map term on pty output after */ + int mapOnOutputDelay; /* mapOnOutputDelay secs */ + Boolean logging; /* copy tty output to file/pipe */ + Boolean log_on; /* is log file (pipe) open? */ + char * logFile; /* named logFile (default "logFile"*/ + Boolean logInhibit; /* don't allow logging */ + Boolean reverseVideo; /* true, reverse video on */ + uid_t euid_root; /* suid */ + uid_t euid_user; /* user id */ + Boolean allowSendEvents; /* allow key, button presses */ + Boolean allowOsfKeysyms; /* allow osfKeysyms through */ +} DtTermPrimitivePart; + +/* full instance record declaration... */ + +typedef struct _DtTermPrimitiveRec { + CorePart core; + XmPrimitivePart primitive; + DtTermPrimitivePart term; +} DtTermPrimitiveRec; + +/* private function declarations... */ +/* end private function declarations... */ + +#ifdef __cplusplus +} /* close scope of 'extern "C"'... */ +#endif /* __cplusplus */ +/* +** Some handy macros. +*/ +#define GetParserContext(w) (((DtTermPrimitiveWidget)w)->term.tpd->context) + + +#endif /* _Dt_TermPrimP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif... */ diff --git a/cde/include/Dt/TitleBox.h b/cde/include/Dt/TitleBox.h new file mode 100644 index 00000000..d0fd37b1 --- /dev/null +++ b/cde/include/Dt/TitleBox.h @@ -0,0 +1,76 @@ +/* + * 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: TitleBox.h /main/4 1995/10/26 09:34:50 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: TitleBox.h +*** +*** project: MotifPlus Widgets +*** +*** description: Public include file for DtTitleBox class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtTitleBox_h +#define _DtTitleBox_h + +#include +#include
+ +#ifndef DtIsTitleBox +#define DtIsTitleBox(w) XtIsSubclass(w, DtTitleBoxClass) +#endif /* DtIsTitleBox */ + + +/******** Public Function Declarations ********/ + +extern Widget _DtCreateTitleBox( + Widget parent, + char *name, + ArgList arglist, + Cardinal argcount) ; +extern Widget _DtTitleBoxGetTitleArea( + Widget w) ; +extern Widget _DtTitleBoxGetWorkArea( + Widget w) ; + + +extern WidgetClass dtTitleBoxWidgetClass; + +typedef struct _DtTitleBoxClassRec * DtTitleBoxWidgetClass; +typedef struct _DtTitleBoxRec * DtTitleBoxWidget; + + +#define XmTITLE_TOP 0 +#define XmTITLE_BOTTOM 1 + +#define XmTITLE_AREA 1 + + +#endif /* _DtTitleBox_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/TitleBoxP.h b/cde/include/Dt/TitleBoxP.h new file mode 100644 index 00000000..6d42be59 --- /dev/null +++ b/cde/include/Dt/TitleBoxP.h @@ -0,0 +1,159 @@ +/* + * 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: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: TitleBoxP.h +*** +*** project: MotifPlus Widgets +*** +*** description: Private include file for DtTitleBox class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtTitleBoxP_h +#define _DtTitleBoxP_h + +#include +#include
+ + + +/*------------------------------------------------------------- +** Class Structure +*/ + +/* Class Part +*/ +typedef struct _DtTitleBoxClassPart +{ + caddr_t extension; +} DtTitleBoxClassPart; + +/* Full Class Record +*/ +typedef struct _DtTitleBoxClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + DtTitleBoxClassPart title_box_class; +} DtTitleBoxClassRec; + +/* Actual Class +*/ +extern DtTitleBoxClassRec dtTitleBoxClassRec; + + + + +/*------------------------------------------------------------- +** Instance Structure +*/ + +/* Instance Part +*/ +typedef struct _DtTitleBoxPart +{ + Widget work_area; + Widget title_area; + XmString title_string; + XmFontList font_list; + Dimension margin_width; + Dimension margin_height; + Dimension old_width; + Dimension old_height; + Dimension old_shadow_thickness; + Dimension title_spacing; + unsigned char title_position; + unsigned char title_alignment; + unsigned char shadow_type; +} DtTitleBoxPart; + +/* Full Instance Record +*/ +typedef struct _DtTitleBoxRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + DtTitleBoxPart title_box; +} DtTitleBoxRec; + + + +/*------------------------------------------------------------- +** Constraint Structure +*/ + +/* Constraint Part +*/ +typedef struct _DtTitleBoxConstraintPart +{ + unsigned char child_type; +} DtTitleBoxConstraintPart, * DtTitleBoxConstraint; + +/* Full Constraint Record +*/ +typedef struct _DtTitleBoxConstraintRec +{ + XmManagerConstraintPart manager_constraint; + DtTitleBoxConstraintPart title_box_constraint; +} DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr; + + +/*------------------------------------------------------------- +** Class and Instance Macros +*/ + +/* DtTitleBox Class Macros +*/ + +/* DtTitleBox Instance Macros +*/ +#define M_TitleBoxConstraint(w) \ + (&((DtTitleBoxConstraintPtr) (w)->core.constraints)->title_box_constraint) +#define M_WorkArea(m) (m -> title_box.work_area) +#define M_TitleArea(m) (m -> title_box.title_area) +#define M_TitleString(m) (m -> title_box.title_string) +#define M_TitleSpacing(m) (m -> title_box.title_spacing) +#define M_TitlePosition(m) (m -> title_box.title_position) +#define M_TitleAlignment(m) (m -> title_box.title_alignment) +#define M_FontList(m) (m -> title_box.font_list) +#define M_ShadowType(m) (m -> title_box.shadow_type) +#define M_MarginWidth(m) (m -> title_box.margin_width) +#define M_MarginHeight(m) (m -> title_box.margin_height) +#define M_OldWidth(m) (m -> title_box.old_width) +#define M_OldHeight(m) (m -> title_box.old_height) +#define M_OldShadowThickness(m) (m -> title_box.old_shadow_thickness) + + +#endif /* _DtTitleBoxP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Unistd.h b/cde/include/Dt/Unistd.h new file mode 100644 index 00000000..941f8f5d --- /dev/null +++ b/cde/include/Dt/Unistd.h @@ -0,0 +1,39 @@ +/* + * 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 */ diff --git a/cde/include/Dt/UserMsg.h b/cde/include/Dt/UserMsg.h new file mode 100644 index 00000000..619e53b4 --- /dev/null +++ b/cde/include/Dt/UserMsg.h @@ -0,0 +1,129 @@ +/* + * 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 + +#ifndef __STDC__ +# ifndef const +# define const +# endif +#endif + +#include + +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, "> + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +/* Temporary location for resource definition. Need to */ +/* move into the string defs file. */ + +#define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect" +#define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect" +#define XmNsubpanelTorn "subpanelTorn" +#define XmCSubpanelTorn "SubpanelTorn" + +/* These macros are also defined in DtStrDefs.h */ +/* Control->View.h */ +/* Control.c->Control.h->Icon.h->DtStrDefs.h */ + +#ifndef XmNleftInset +#define XmNleftInset "leftInset" +#endif /* XmNleftInset */ + +#ifndef XmNrightInset +#define XmNrightInset "rightInset" +#endif /* XmNrightInset */ + +#ifndef XmNtopInset +#define XmNtopInset "topInset" +#endif /* XmNtopInset */ + +#ifndef XmNbottomInset +#define XmNbottomInset "bottomInset" +#endif /* XmNbottomInset */ + +#ifndef XmNwidthIncrement +#define XmNwidthIncrement "widthIncrement" +#endif /* XmNwidthIncrement */ + +#ifndef XmNheightIncrement +#define XmNheightIncrement "heightIncrement" +#endif /* XmNheightIncrement */ + +#ifndef XmNboxType +#define XmNboxType "boxType" +#endif /* XmNboxType */ + +#ifndef XmCBoxType +#define XmCBoxType "BoxType" +#endif /* XmCBoxType */ + +#ifndef XmRBoxType +#define XmRBoxType "BoxType" +#endif /* XmRBoxType */ + +#define XmBOX_NONE 0 +#define XmBOX_PRIMARY 1 +#define XmBOX_SECONDARY 2 +#define XmBOX_SUBPANEL 3 +#define XmBOX_SWITCH 4 + +#ifndef DtIsView +#define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass) +#endif /* XmIsView */ + + +extern Widget _DtCreateView(); + +extern WidgetClass dtViewWidgetClass; + +typedef struct _DtViewClassRec * DtViewWidgetClass; +typedef struct _DtViewRec * DtViewWidget; + + +typedef struct +{ + int reason; + XEvent * event; + int category_index; + XmString category; + int item_index; + XmString item; +} DtViewCallbackStruct; + +#define XmCR_SELECT XmCR_SINGLE_SELECT + +#if defined(__cplusplus) || defined(c_plusplus) +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtView_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/ViewP.h b/cde/include/Dt/ViewP.h new file mode 100644 index 00000000..b3a1b4ce --- /dev/null +++ b/cde/include/Dt/ViewP.h @@ -0,0 +1,158 @@ +/* + * 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: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */ +/**--------------------------------------------------------------------- +*** +*** file: ViewP.h +*** +*** project: MotifPlus Widgets +*** +*** description: Private include file for DtView class. +*** +*** +*** (c) Copyright 1990 by Hewlett-Packard Company. +*** +*** +***-------------------------------------------------------------------*/ + + +#ifndef _DtViewP_h +#define _DtViewP_h + +#include +#include +#include +#include
+ + + +/*------------------------------------------------------------- +** Class Structure +*/ + +/* Class Part +*/ +typedef struct _DtViewClassPart +{ + caddr_t extension; +} DtViewClassPart; + +/* Full Class Record +*/ +typedef struct _DtViewClassRec +{ + CoreClassPart core_class; + CompositeClassPart composite_class; + ConstraintClassPart constraint_class; + XmManagerClassPart manager_class; + XmBulletinBoardClassPart bulletin_board_class; + XmFormClassPart form_class; + DtViewClassPart view_class; +} DtViewClassRec; + +/* Actual Class +*/ +extern DtViewClassRec dtViewClassRec; + + + + +/*------------------------------------------------------------- +** Instance Structure +*/ + +/* Instance Part +*/ +typedef struct _DtViewPart +{ + Dimension width_increment; + Dimension height_increment; + Dimension left_inset; + Dimension right_inset; + Dimension top_inset; + Dimension bottom_inset; + unsigned char box_type; + Boolean subpanel_unpost_on_select; + Boolean subpanel_torn; +} DtViewPart; + +/* Full Instance Record +*/ +typedef struct _DtViewRec +{ + CorePart core; + CompositePart composite; + ConstraintPart constraint; + XmManagerPart manager; + XmBulletinBoardPart bulletin_board; + XmFormPart form; + DtViewPart view; +} DtViewRec; + + +/*------------------------------------------------------------- +** Constraint Structure +*/ + +/* Constraint Part +*/ +typedef struct _DtViewConstraintPart +{ + unsigned char foo_bar; +} DtViewConstraintPart, * DtViewConstraint; + +/* Full Constraint Record +*/ +typedef struct _DtViewConstraintRec +{ + XmManagerConstraintPart manager_constraint; + XmFormConstraintPart form_constraint; + DtViewConstraintPart view_constraint; +} DtViewConstraintRec, * DtViewConstraintPtr; + + +/*------------------------------------------------------------- +** Class and Instance Macros +*/ + +/* DtView Class Macros +*/ + +/* DtView Instance Macros +*/ +#define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color) +#define M_TopShadowColor(m) (m -> manager.top_shadow_color) +#define M_HighlightColor(m) (m -> manager.highlight_color) +#define M_BackgroundPixmap(m) (m -> core.background_pixmap) +#define M_LeftInset(m) (m -> view.left_inset) +#define M_RightInset(m) (m -> view.right_inset) +#define M_TopInset(m) (m -> view.top_inset) +#define M_BottomInset(m) (m -> view.bottom_inset) +#define M_BoxType(m) (m -> view.box_type) +#define M_WidthIncrement(m) (m -> view.width_increment) +#define M_HeightIncrement(m) (m -> view.height_increment) + + +#endif /* _DtViewP_h */ + +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/Dt/Wsm.h b/cde/include/Dt/Wsm.h new file mode 100644 index 00000000..7e37b3a8 --- /dev/null +++ b/cde/include/Dt/Wsm.h @@ -0,0 +1,189 @@ +/* + * 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: Wsm.h /main/5 1996/05/20 16:08:50 drk $ + * + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. + * (c) Copyright 1993,1994,1996 International Business Machines Corp. + * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. + * (c) Copyright 1993,1994,1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef _Dt_Wsm_h +#define _Dt_Wsm_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* + * Constants + */ + +#define DtWSM_REASON_ADD 0 +#define DtWSM_REASON_DELETE 1 +#define DtWSM_REASON_BACKDROP 2 +#define DtWSM_REASON_TITLE 3 +#define DtWSM_REASON_CURRENT 4 + + +/* + * Types + */ + +/* Workspace property information */ + +typedef struct _DtWsmWorkspaceInfo { + Atom workspace; + unsigned long bg; + unsigned long fg; + Atom backdropName; + int colorSetId; + char *pchTitle; + Window *backdropWindows; + int numBackdropWindows; +} DtWsmWorkspaceInfo; + + +/* Workspace modified callback reasons */ + +typedef int DtWsmWsReason; + +/* Workspace callback context (opaque) */ + +typedef struct _DtWsmCBContext * DtWsmCBContext; + +/* Workspace callback prototype */ + +typedef void (*DtWsmWsChangeProc)( + Widget widget, + Atom aWs, + XtPointer client_data); + +/* Workspace modified callback prototype */ + +typedef void (*DtWsmWsModifiedProc)( + Widget widget, + Atom aWs, + DtWsmWsReason reason, + XtPointer client_data); + + +/* + * Functions + */ + +extern void DtWsmAddWorkspaceFunctions( + Display *display, + Window client); + +extern void DtWsmRemoveWorkspaceFunctions( + Display *display, + Window client); + +extern int DtWsmGetWorkspaceInfo( + Display *display, + Window root, + Atom aWS, + DtWsmWorkspaceInfo **ppWsInfo); + +extern void DtWsmFreeWorkspaceInfo( + DtWsmWorkspaceInfo *pWsInfo); + +extern int DtWsmGetWorkspaceList( + Display *display, + Window root, + Atom **ppWorkspaceList, + int *pNumWorkspaces); + +extern int DtWsmGetCurrentWorkspace( + Display *display, + Window root, + Atom *paWorkspace); + +extern DtWsmCBContext DtWsmAddCurrentWorkspaceCallback( + Widget widget, + DtWsmWsChangeProc ws_change, + XtPointer client_data); + +extern void DtWsmRemoveWorkspaceCallback( + DtWsmCBContext pCbCtx); + +extern int DtWsmSetCurrentWorkspace( + Widget widget, + Atom aWs); + +extern int DtWsmGetWorkspacesOccupied( + Display *display, + Window window, + Atom **ppaWs, + unsigned long *pNumWs); + +extern void DtWsmSetWorkspacesOccupied( + Display *display, + Window window, + Atom *pWsHints, + unsigned long numHints); + +extern void DtWsmOccupyAllWorkspaces( + Display *display, + Window window); + +extern DtWsmCBContext DtWsmAddWorkspaceModifiedCallback( + Widget widget, + DtWsmWsModifiedProc ws_modified, + XtPointer client_data); + +extern Window DtWsmGetCurrentBackdropWindow( + Display *display, + Window root); + +extern int DtWsmSetWorkspaceTitle( + Widget widget, + Atom aWs, + char *title); + +extern int DtWsmChangeBackdrop( + Display *display, + Window root, + char *path, + Pixmap pixmap); + +extern int DtWsmAddWorkspace( + Widget widget, + char *title); + +extern int DtWsmDeleteWorkspace( + Widget widget, + Atom aWs); + +#ifdef __cplusplus +} +#endif + +#endif /* _Dt_Wsm_h */ diff --git a/cde/include/Dt/WsmM.h b/cde/include/Dt/WsmM.h new file mode 100644 index 00000000..a9bd9ee0 --- /dev/null +++ b/cde/include/Dt/WsmM.h @@ -0,0 +1,133 @@ +/* + * 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: WsmM.h + ** + ** RCS: $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $ + ** Project: DT Workspace Manager + ** + ** Description: Defines parameters necessary for messaging with + ** the workspace 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 _Dt_WsmM_h +#define _Dt_WsmM_h + +/* + * Messaging definitions + */ + +/* Workspace manager tool class (for old messages) */ +#define DtWM_TOOL_CLASS "WORKSPACEMGR" + +/* Workspace manager tool class (for new messages) */ +#define DtWSM_TOOL_CLASS "WORKSPACE_MANAGER" + +/* Workspace manager tool class (for front panel messages) */ +#define DtFP_TOOL_CLASS "FRONTPANEL" + +/* Request from dtstyle to change backdrop */ +#define DtWM_BACKDROP_CHANGE "BACKDROP_CHANGE" + +/* Request from session manager to unlock the display (depress button) */ +#define DtWM_UNLOCK_DISPLAY "UNLOCK_DISPLAY" + +/* Request from session manager to cancel an exit (depress button) */ +#define DtWM_CANCEL_EXIT "CANCEL_EXIT" + +/* Request from session manager to retore the front panel to default state */ +#define DtWM_RESTORE_PANEL "RESTORE_PANEL" + +/* Notification from Workspace manager of a new workspace */ +#define DtWSM_NEW_WORKSPACE "ACTIVE_WORKSPACE" + +#define DtWSM_NEW_WORKSPACE_ARG_NAME 0 +#define DtWSM_NEW_WORKSPACE_ARG_ATOM 1 + +/* Request to set the current workspace */ +#define DtWSM_SET_WORKSPACE "SET_WORKSPACE" + +#define DtWSM_SET_WORKSPACE_ARG_ATOM 0 + +/* Request to change the title of a workspace */ +#define DtWSM_SET_WORKSPACE_TITLE "SET_WORKSPACE_TITLE" + +#define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM 0 +#define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE 1 + +/* Request to add a workspace */ +#define DtWSM_ADD_WORKSPACE "ADD_WORKSPACE" + +#define DtWSM_ADD_WORKSPACE_ARG_TITLE 0 + +/* Request to delete a workspace */ +#define DtWSM_DELETE_WORKSPACE "DELETE_WORKSPACE" + +#define DtWSM_DELETE_WORKSPACE_ARG_ATOM 0 + +/* Notification from Workspace manager of a modified workspace */ +#define DtWSM_MODIFY_WORKSPACE "MODIFY_WORKSPACE" + +#define DtWSM_MODIFY_WORKSPACE_ARG_ATOM 0 +#define DtWSM_MODIFY_WORKSPACE_ARG_TYPE 1 + +#define DtWSM_MODIFY_WORKSPACE_TYPE_ADD 0 +#define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE 1 +#define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP 2 +#define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE 3 +#define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE 4 + +/* Notification from Workspace manager of a modified workspace */ +#define DtWSM_MARQUEE_SELECTION "MARQUEE_SELECTION" + +#define DtWSM_MARQUEE_SELECTION_ARG_TYPE 0 +#define DtWSM_MARQUEE_SELECTION_ARG_X 1 +#define DtWSM_MARQUEE_SELECTION_ARG_Y 2 +#define DtWSM_MARQUEE_SELECTION_ARG_WIDTH 3 +#define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT 4 + +#define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN 1 +#define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE 2 +#define DtWSM_MARQUEE_SELECTION_TYPE_END 3 +#define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL 4 + +/* + * Macros to set and fetch argument fields into a message + * + * (NOTE: Since sending the request breaks out the zero'th + * field, there is a difference of one in these two macros.) + */ +#define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value)) +#define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)]) + + +#endif /* _Dt_WsmM_h */ +/* Do not add anything after this endif. */ diff --git a/cde/include/Dt/WsmP.h b/cde/include/Dt/WsmP.h new file mode 100644 index 00000000..9d32e116 --- /dev/null +++ b/cde/include/Dt/WsmP.h @@ -0,0 +1,848 @@ +/* + * 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: WsmP.h /main/8 1996/05/20 16:08:59 drk $ */ + +/************************************<+>************************************* + **************************************************************************** + ** + ** File: WsmP.h + ** + ** Project: DT Workspace Manager + ** + ** Description: Defines PRIVATE properties, structures, and + ** parameters used for communication with the + ** workspace manager. + ** + ** (c) Copyright 1996 Digital Equipment Corporation. + ** (c) Copyright 1993,1994,1996 Hewlett-Packard Company. + ** (c) Copyright 1993,1994,1996 International Business Machines Corp. + ** (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. + ** (c) Copyright 1993,1994,1996 Novell, Inc. + ** (c) Copyright 1996 FUJITSU LIMITED. + ** (c) Copyright 1996 Hitachi. + ** + **************************************************************************** + ************************************<+>*************************************/ +#ifndef _Dt_WsmP_h +#define _Dt_WsmP_h +#include
+#include +#include
+#include + +/********************************************************************** + * Workspace atom names + **********************************************************************/ +#define _XA_DT_MARQUEE_SELECTION "_DT_MARQUEE_SELECTION" +#define _XA_DT_WORKSPACE_EMBEDDED_CLIENTS \ + "_DT_WORKSPACE_EMBEDDED_CLIENTS" +#define _XA_DT_WM_REQUEST "_DT_WM_REQUEST" +#define _XA_DT_WORKSPACE_HINTS "_DT_WORKSPACE_HINTS" +#define _XA_DT_WORKSPACE_PRESENCE "_DT_WORKSPACE_PRESENCE" +#define _XA_DT_WORKSPACE_INFO "_DT_WORKSPACE_INFO" +#define _XA_DT_WM_HINTS "_DT_WM_HINTS" +#define _XA_DT_WORKSPACE_LIST "_DT_WORKSPACE_LIST" +#define _XA_DT_WORKSPACE_CURRENT "_DT_WORKSPACE_CURRENT" + + +/********************************************************************** + * Name to request ``all'' workspaces (for a persistent window) + **********************************************************************/ + +#define _XA_DT_WORKSPACE_ALL "all" + + +/********************************************************************** + * Workspace function definitions + **********************************************************************/ +#define DtWM_FUNC_OCCUPY_WS DtWM_FUNCTION_OCCUPY_WS +#define DtWM_FUNC_ALL DtWM_FUNC_OCCUPY_WS + +/********************************************************************** + * Workspace property information + **********************************************************************/ + +/* + * + * NOTE: The "(client -> dtwm)" indication calls out the direction + * of information flow. In this case, the client writes the + * property and dtwm reads the property. + * + * + * _DT_WORKSPACE_HINTS (client -> dtwm) + * + * This property is a list of atoms placed by a client on its + * top level window(s). Each atom is an "interned" string name + * for a workspace. The workspace manager looks at this property + * when it manages the window (e.g. when the window is mapped) + * and will place the window in the workspaces listed. + * + * _DT_WORKSPACE_PRESENCE (dtwm -> client) + * + * This property is a list of atoms placed on a client by dtwm. + * Each atom is an "interned" string name for a workspace. This + * property lists the workspaces that this client lives in. + * + * _DT_WORKSPACE_LIST (dtwm -> clients) + * + * This property is a list of atoms. Each atom represents a + * name of a workspace. The list is in "order" such that + * the first element is for the first workspace and so on. + * This proeprty is placed on the mwm ("wmWindow") window. + * + * _DT_WORKSPACE_CURRENT (dtwm -> clients) + * + * This property is a single atom, representing the current + * workspace. It is updated each time the workspace changes. + * This proeprty is placed on the mwm window. + * + * _DT_WORKSPACE_INFO_ (dtwm -> clients) + * + * There is one property of this form for each workspace in + * _DT_WORKSPACE_LIST. This property is a sequence of ISO-LATIN1 + * NULL-terminated strings representing the elements in a + * structure. This information was formerly in _DT_WORKSPACE_INFO + * but was broken out to allow for extensibility. + * This proeprty is placed on the mwm window. + * + * _DT_WM_HINTS (client -> dtwm) + * + * This property requests specific window/workspace management behavior. + * The functions member of the property allows a client to enable or + * disable workspace management functions. The behavior member is + * used to indicate front panels and slide-ups. + * + */ + + +/********************************************************************** + * Property structures + **********************************************************************/ + +typedef struct _DtWmHints +{ + long flags; /* marks valid fields */ + long functions; /* special dtwm functions */ + long behaviors; /* special dtwm behaviors */ + Window attachWindow; /* (reserved) */ +} DtWmHints; + +/* DtWmHints "flags" definitions */ +#define DtWM_HINTS_FUNCTIONS (1L << 0) +#define DtWM_HINTS_BEHAVIORS (1L << 1) +#define DtWM_HINTS_ATTACH_WINDOW (1L << 2) /* (reserved) */ + +/* DtWmHints "functions" definitions */ +#define DtWM_FUNCTION_ALL (1L << 0) +#define DtWM_FUNCTION_OCCUPY_WS (1L << 16) + +/* DtWmHints "behaviors" definitions */ +#define DtWM_BEHAVIOR_PANEL (1L << 1) +#define DtWM_BEHAVIOR_SUBPANEL (1L << 2) +#define DtWM_BEHAVIOR_SUB_RESTORED (1L << 3) + +/********************************************************************** + * Session atom names + **********************************************************************/ +#define _XA_DT_SESSION_HINTS "_DT_SESSION_HINTS" +#define _XA_DT_SAVE_MODE "_DT_SAVE_MODE" +#define _XA_DT_RESTORE_MODE "_DT_RESTORE_MODE" +#define _XA_DT_RESTORE_DIR "_DT_RESTORE_DIR" +#define _XA_DT_SM_WM_PROTOCOL "_DT_SM_WM_PROTOCOL" +#define _XA_DT_SM_START_ACK_WINDOWS "_DT_SM_START_ACK_WINDOWS" +#define _XA_DT_SM_STOP_ACK_WINDOWS "_DT_SM_STOP_ACK_WINDOWS" +#define _XA_DT_WM_WINDOW_ACK "_DT_WM_WINDOW_ACK" +#define _XA_DT_WM_EXIT_SESSION "_DT_WM_EXIT_SESSION" +#define _XA_DT_WM_LOCK_DISPLAY "_DT_WM_LOCK_DISPLAY" +#define _XA_DT_WM_READY "_DT_WM_READY" + +/********************************************************************** + * Workspace special character definitions + **********************************************************************/ +#define DTWM_CH_ESC_NEXT "\\" + +/********************************************************************** + * Marquee selection callback prototype + **********************************************************************/ +typedef void (*DtWsmMarqueeSelectionProc) (); +/* + Widget widget; + int type; + Position x, y; + Dimension width, height; + XtPointer client_data; +*/ + +/********************************************************************** + * Marquee Select + **********************************************************************/ + +#define DT_WSM_MARQUEE_SELECTION_TYPE_BEGIN 1 +#define DT_WSM_MARQUEE_SELECTION_TYPE_CONTINUE 2 +#define DT_WSM_MARQUEE_SELECTION_TYPE_END 3 +#define DT_WSM_MARQUEE_SELECTION_TYPE_CANCEL 4 + +/********************************************************************** + * Workspace request definitions + * + * NOTE: These functions do not necessarily match the other + * window manager f.* functions! + **********************************************************************/ +#define DTWM_REQ_CHANGE_BACKDROP "f.change_backdrop" +#define DTWM_REQ_RESTART "f.restart" + +/********************************************************************** + * Workspace request parameter definitions + **********************************************************************/ +#define DTWM_REQP_BACKDROP_NONE "NoBackdrop" +#define DTWM_REQP_NO_CONFIRM "-noconfirm" + +/********************************************************************** + * Resource converter definitions + * + * NOTE: This has been lifted from mwm. + * Please keep syncronized with the current version of mwm/dtwm. + * (See WmGlobal.h) + **********************************************************************/ + +/* icon placement values (iconPlacement, ...): */ +#define ICON_PLACE_LEFT_PRIMARY (1L << 0) +#define ICON_PLACE_RIGHT_PRIMARY (1L << 1) +#define ICON_PLACE_TOP_PRIMARY (1L << 2) +#define ICON_PLACE_BOTTOM_PRIMARY (1L << 3) +#define ICON_PLACE_LEFT_SECONDARY (1L << 4) +#define ICON_PLACE_RIGHT_SECONDARY (1L << 5) +#define ICON_PLACE_TOP_SECONDARY (1L << 6) +#define ICON_PLACE_BOTTOM_SECONDARY (1L << 7) +#define ICON_PLACE_EDGE (1L << 8) +#define ICON_PLACE_TIGHT (1L << 9) +#define ICON_PLACE_RESERVE (1L << 10) + +/********************************************************************** + * Workspace property information + **********************************************************************/ + +/* + * + * NOTE: The "(client -> dtwm)" indication calls out the direction + * of information flow. In this case, the client writes the + * property and dtwm reads the property. + * + * _DT_WM_REQUEST (client -> dtwm) + * + * This property of type string that is used to communication + * function requests to dtwm. This property is placed on the mwm + * window. Dtwm listens for changes to this property and dequeues + * requests off the top of the list. Requests are NULL-terminated + * strings in the format: + * + * + * + * Each request ends with a literal '\0' character to insure + * separation from the next request. + * + * Clients must always add requests to the end of the property + * (mode=PropModeAppend). Use of convenience routines is + * recommended since they take care of proper formatting of the + * requests. + * + */ + + +/********************************************************************** + * Property structures + **********************************************************************/ + +/* Internal form of this property */ +typedef struct _DtWorkspaceHints +{ + long version; /* indicates structure changes */ + long flags; /* marks valid fields */ + long wsflags; /* special workspace information */ + long numWorkspaces; /* number of workspaces */ + Atom * pWorkspaces; /* list of atoms for workspaces */ +} DtWorkspaceHints; + +/* DtWorkspaceHints "flags" definitions */ +#define DT_WORKSPACE_HINTS_WSFLAGS (1L << 0) + /* The following definitions enables both the numWorkspaces + and pWorkspaces fields */ +#define DT_WORKSPACE_HINTS_WORKSPACES (1L << 1) + +/* DtWorkspaceHints "wsflags" definitions */ +#define DT_WORKSPACE_FLAGS_OCCUPY_ALL (1L << 0) + +/********************************************************************** + * Marquee Selection Structures + **********************************************************************/ +typedef struct _DtMarqueeSelectData +{ + long state; /* current property state */ + Position x; /* NW corner of select area */ + Position y; /* NW corner of select area */ + Dimension width; /* size of select area */ + Dimension height; /* size of select area */ +} DtMarqueeSelectData; + +typedef struct _DtMarqueeSelectProp +{ + long state; /* current property state */ + long x; /* NW corner of select area */ + long y; /* NW corner of select area */ + long width; /* size of select area */ + long height; /* size of select area */ +} DtMarqueeSelectProperty; + +/********************************************************************** + * Marquee Selection Definitions + **********************************************************************/ +#define DT_MARQUEE_SELECT_BEGIN 1 +#define DT_MARQUEE_SELECT_CONTINUE 2 +#define DT_MARQUEE_SELECT_END 3 +#define DT_MARQUEE_SELECT_CANCEL 4 + +/********************************************************************** + * Workspace change callback context (opaque) + **********************************************************************/ +typedef void (*DtWsmCBProc) (); +struct _DtWsmCBContext +{ + Tt_pattern pattern; + Widget widget; + DtWsmCBProc ws_cb; + XtPointer client_data; + XtPointer nested_context; +}; + +/********************************************************************** + * Convenience Routines + **********************************************************************/ + +/*************************************<->************************************* + * + * int _DtGetMwmWindow (display, root, pMwmWindow) + * + * + * Description: + * ----------- + * Get the Motif Window manager window + * + * + * Inputs: + * ------ + * display - display + * root - root window of screen + * pMwmWindow - pointer to a window (to be returned) + * + * Outputs: + * -------- + * *pMwmWindow - mwm window id, if successful + * Return - status from XGetWindowProperty + * + * Comments: + * -------- + * This can fail if mwm is not managing the screen for the root window + * passed in. + * + *************************************<->***********************************/ +extern int +_DtGetMwmWindow( + Display *display, + Window root, + Window *pMwmWindow) ; + + +/*************************************<->************************************* + * + * int _DtGetEmbeddedClients (display, root, ppEmbeddedClients, + * pNumEmbeddedClients) + * + * + * Description: + * ----------- + * Get the contents of the _DT_WORKSPACE_EMBEDDED_CLIENTS property + * from a root window. This is a list (array) of top-level windows that + * are embedded in the front panel of the window manager. They would + * not be picked up ordinarily by a session manager in a normal + * search for top-level windows because they are reparented to + * the front panel which itself is a top-level window. + * + * + * Inputs: + * ------ + * display - display + * root - root window to get info from + * ppEmbeddedClients - pointer to a pointer (to be returned) + * pNumEmbeddedClients - pointer to a number (to be returned) + * + * Outputs: + * ------- + * *ppEmbeddedClients - pointer to a array of window IDs (top-level + * windows for embedded clients) + * (NOTE: This should be freed using XFree) + * *pNumEmbeddedClients- number of window IDs in array + * Return - Success if property fetched ok. + * Failure returns are from XGetWindowProperty + * + * Comments: + * -------- + * Use XFree to free the returned data. + * + *************************************<->***********************************/ +extern int +_DtGetEmbeddedClients( + Display *display, + Window root, + Atom **ppEmbeddedClients, + unsigned long *pNumEmbeddedClients ); + + +/*************************************<->************************************* + * + * int _DtWmRestart (display, root) + * + * + * Description: + * ----------- + * Requests the window manager to restart itself + * + * + * Inputs: + * ------ + * display - display + * root - root window for screen + * + * Returns: + * -------- + * Success if request was sent + * + * Comments: + * --------- + * + *************************************<->***********************************/ +extern int +_DtWmRestart( + Display *display, + Window root) ; + +/*************************************<->************************************* + * + * int _DtWsmChangeBackdrop (display, root, path, pixmap) + * + * + * Description: + * ----------- + * Request the HP DT workspace manager to change the backdrop + * + * + * Inputs: + * ------ + * display - display + * root - root window of screen + * path - file path to bitmap file + * pixmap - pixmap id of backdrop pixmap + * + * Returns: + * -------- + * Success if request sent + * + *************************************<->***********************************/ +extern int +_DtWsmChangeBackdrop ( + Display *display, + Window root, + char *path, + Pixmap pixmap); + +/*************************************<->************************************* + * + * _DtWmCvtStringToIPlace (args, numArgs, fromVal, toVal) + * + * + * Description: + * ----------- + * This function converts a string to an icon placement scheme description. + * + * + * Inputs: + * ------ + * args = NULL (don't care) + * + * numArgs = 0 (don't care) + * + * fromVal = resource value to convert + * + * + * Outputs: + * ------- + * toVal = descriptor to use to return converted value + * + *************************************<->***********************************/ + +extern void +_DtWmCvtStringToIPlace ( + XrmValue *args, + Cardinal numArgs, + XrmValue *fromVal, + XrmValue *toVal); + + +/*************************************<->************************************* + * + * Boolean _DtWsmIsBackdropWindow (display, screen_num, window) + * + * + * Description: + * ----------- + * Returns true if the window passed in is a backdrop window. + * + * + * Inputs: + * ------ + * display - display + * screen_num - number of screen we're interested in + * window - window we want to test + * + * Outputs: + * ------- + * Return - True if window is a backdrop window + * False otherwise. + * + * Comments: + * -------- + * + *************************************<->***********************************/ +Boolean +_DtWsmIsBackdropWindow( + Display *display, + int screen_num, + Window window ); + +/*************************************<->************************************* + * + * int DtWsmSetWorkspaceTitle (widget, aWs, pchNewName) + * + * + * Description: + * ----------- + * Rename a workspace + * + * + * Inputs: + * ------ + * widget - a widget + * aWs - atom of workspace + * pchNewName - new name for the workspace + * + * Outputs: + * -------- + * Return - 1 (*not* Success) if communication to workspace manager + * was successful. + * + * Comments: + * --------- + * The odd-ball successful return value is a CDE 1.0 bug being + * preserved for backward compatibility. + * + *************************************<->***********************************/ +int +_DtWsmSetWorkspaceTitle ( + Widget widget, + Atom aWs, + char * pchNewName); + +/*************************************<->************************************* + * + * int _DtWsmDeleteWorkspace (widget, aWs) + * + * + * Description: + * ----------- + * Delete a workspace + * + * + * Inputs: + * ------ + * widget - a widget (with a window!) + * aWs - atom of workspace to delete + * + * Outputs: + * -------- + * Return - 1 (*not* Success) if communication to workspace manager + * was successful. + * + * Comments: + * --------- + * The odd-ball successful return value is a CDE 1.0 bug being + * preserved for backward compatibility. + * + *************************************<->***********************************/ +int +_DtWsmDeleteWorkspace ( + Widget widget, + Atom aWs); + + +/*************************************<->************************************* + * + * int _DtWsmCreateWorkspace (widget, pchTitle) + * + * + * Description: + * ----------- + * Add a workspace + * + * + * Inputs: + * ------ + * widget - a widget (with a window!) + * pchTitle - user-visible title of the workspace + * + * Outputs: + * -------- + * Return - 1 (*not* Success) if communication to workspace manager + * was successful. + * + * Comments: + * --------- + * The odd-ball successful return value is a CDE 1.0 bug being + * preserved for backward compatibility. + * + *************************************<->***********************************/ +int +_DtWsmCreateWorkspace (Widget widget, char * pchTitle); + +/*************************************<->************************************* + * + * _DtWsmSetWorkspaceHints (display, window, pWsHints) + * + * + * Description: + * ----------- + * Set the contents of the _DT_WORKSPACE_HINTS property on a window + * + * + * Inputs: + * ------ + * display - display + * window - window to get hints from + * pWsHints - pointer to workspace hints + * + * Comments: + * --------- + * The internal form of the property is a structure. The structure + * must be unwound and turned into a simple array of "long"s before + * being written out. + * + * This function currently only deals with version 1 of the property + * structure. The passed in pWsHints->version is ignored. + * + *************************************<->***********************************/ +extern void +_DtWsmSetWorkspaceHints( + Display *display, + Window window, + DtWorkspaceHints *pWsHints); + + +/*************************************<->************************************* + * + * int _DtWsmGetWorkspaceHints (display, window, ppWsHints) + * + * + * Description: + * ----------- + * Get the contents of the _DT_WORKSPACE_HINTS property from a window + * + * + * Inputs: + * ------ + * display - display + * window - window to get hints from + * ppWsHints - pointer to pointer to workspace hints + * + * Outputs: + * *ppWsHints - allocated workspace hints data. + * + * Comments: + * --------- + * The internal form of the property is a structure. The property + * is read in and packed into data allocated for the structure. + * Free the workspace hints by calling _DtWsmFreeWorkspaceHints. + * + * This function currently only deals with version 1 of the property + * structure. + * + *************************************<->***********************************/ +extern int +_DtWsmGetWorkspaceHints( + Display *display, + Window window, + DtWorkspaceHints **ppWsHints); + +/*************************************<->************************************* + * + * _DtWsmFreeWorkspaceHints (pWsHints) + * + * + * Description: + * ----------- + * Free a workspace hints structure returned from _DtWsmGetWorkspaceHints + * + * Inputs: + * ------ + * pWsHints - pointer to workspace hints + * + * Outputs: + * + * Comments: + * --------- + *************************************<->***********************************/ +extern void +_DtWsmFreeWorkspaceHints( + DtWorkspaceHints *pWsHints); + +/*************************************<->************************************* + * + * DtWsmCBContext * _DtWsmAddMarqueeSelectionCallback (widget, + * marquee_select, + * client_data) + * + * + * Description: + * ----------- + * Register a function to be called when a marquee selection is made + * + * + * Inputs: + * ------ + * widget - widget for this client + * marquee_select - function to call for marquee select + * client_data - additional data to pass back to client when called. + * + * Outputs: + * -------- + * Return - ptr to callback context data (opaque) + * + * Comments: + * --------- + * The callback context data ptr should be saved if you intend to + * removed this callback at some point in the future. + * + *************************************<->***********************************/ +DtWsmCBContext +_DtWsmAddMarqueeSelectionCallback ( + Widget widget, + DtWsmMarqueeSelectionProc marquee_select, + XtPointer client_data); + +/*************************************<->************************************* + * + * _DtWsmSetDtWmHints (display, window, pHints) + * + * + * Description: + * ----------- + * Set the contents of the _DT_WM_HINTS property on a window + * + * + * Inputs: + * ------ + * display - display + * window - window to set hints on + * pHints - pointer the hints to set + * + * Comments: + * --------- + * No error checking + * + *************************************<->***********************************/ +extern void +_DtWsmSetDtWmHints( Display *display, + Window window, + DtWmHints *pHints); + +/*************************************<->************************************* + * + * int _DtWsmGetDtWmHints (display, window, ppDtWmHints) + * + * + * Description: + * ----------- + * Get the contents of the _DT_WM_HINTS property on a window + * + * + * Inputs: + * ------ + * display - display + * window - window to get hints from + * ppDtWmHints - pointer to a pointer to return + * + * Outputs: + * -------- + * *ppDtWmHints-points to the DtWmHints structure retrieved from + * the window (NOTE: This should be freed using XFree) + * + * Comments: + * --------- + * + *************************************<->***********************************/ +extern int +_DtWsmGetDtWmHints( + Display *display, + Window window, + DtWmHints **ppDtWmHints); + +/*************************************<->************************************* + * + * _DtWsmSelectionNameForScreen (scr) + * + * Description: + * ----------- + * Returns a string containing the selection name used for + * communication with the workspace manager on this screen + * + * + * Inputs: + * ------ + * scr - number of screen + * + * Outputs: + * -------- + * Return - ptr to string with selection name (free with XtFree) + * + * Comments: + * --------- + * Assumes the screen number is < 1000. + * + *************************************<->***********************************/ +extern String +_DtWsmSelectionNameForScreen (int scr); + +extern Tt_callback_action +_DtWsmConsumeReply ( + Tt_message msg, + Tt_pattern pat ); + +#endif /* _Dt_WsmP_h */ +/* Do not add anything after this endif. */ diff --git a/cde/include/Dt/XlationSvc.h b/cde/include/Dt/XlationSvc.h new file mode 100644 index 00000000..ab2763e5 --- /dev/null +++ b/cde/include/Dt/XlationSvc.h @@ -0,0 +1,196 @@ +/* + * 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 /* for UTSLEN, SYS_NMLN */ + +#ifdef __cplusplus +extern "C" { +#endif + +/*================================================================= +$SHAREDBEG$: This header appears in all appropriate DtXlate topics +$INCLUDE$ +#include +=$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 ********/ diff --git a/cde/include/Dt/boolpars.h b/cde/include/Dt/boolpars.h new file mode 100644 index 00000000..ef21f96b --- /dev/null +++ b/cde/include/Dt/boolpars.h @@ -0,0 +1,137 @@ +/* + * 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: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $ + * + * (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. + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 27 + * + * + * (C) COPYRIGHT International Business Machines Corp. 1996 + * All Rights Reserved + * Licensed Materials - Property of IBM + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +#ifndef _boolpars_h +#define _boolpars_h +/******************** BOOLPARS.H ******************** + * $Id: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $ + * February 1996. + * Header for boolpars.c AusText/DtSearch yacc-based boolean query parser. + * + * FORMAT OF TRUTH TABLE: + * Pointer to TRUTHTAB struct is main yacc stack value. + * Represents 256 unsigned chars, every possible permutation of 8 (max) + * query stems. The unsigned chars ("permutes") are bit vectors. + * Bit #0 (lowest order) is for first word in stemsarray stems[0], + * bit #1 is stems[1], etc. + * Example: truthtab for query consisting of a single word, + * call it 'A' (assigned bit #0), is the 128 chars 1, 3, 5, 7, ..., + * ie all bitvector permutations with low order bit turned on. + * B: (bit #1) is the 128 chars 2, 3, 6, 7, ..., ie all permutations + * with 2nd bit turned on. + * A & B: Intersection of truth tables: the 64 chars 3, 7, ..., + * all the bit vector permutations they have in common. + * A | B: Union of truth tables: the 192 permutes 1,2,3, 5,6,7, 9,10,11... + * ~B: Complement of truth table, U - B: the 128 chars 0, 1, 4, 5, ..., + * ie every bitvector permutation NOT in B. + * + * The zero permute (all bits zero) refers to the entire + * balance of the database containing none of the query stems. + * Needless to say searches with the zero permute in their + * truth table will take an incredibly long time! + * + * The 'universal set' U is all 256 possible permutes. + * The 'empty set' is indicated by truthtab.pmsz == 0; + * + * The permutes in a truth table are maintained in + * ascending order for ease of comparisons. + * + * Truth table manipulations require and depend on + * DtSrMAX_STEMCOUNT being defined only as 8. + * + * Newly allocated truth tables are maintained on the 'ttlist' + * using the 'next' field. This is to ensure they are eventually + * freed to prevent memory leaks. + * + * If 'stemno' >= 0 it points to the word in usrblk.stems to which + * it applies. Stemno == -1 means truth table is not directly + * associated with a word in usrblk.stems. + * + * $Log$ + * Revision 1.1 1996/03/05 15:52:06 miker + * Initial revision + * + */ + +#define COLLOC_STEM_FORMAT "@%02d%02d%d" + +/****************************************/ +/* */ +/* TRUTHTAB */ +/* */ +/****************************************/ +/* Truth table returned from boolean_parse() */ +typedef struct tttag { + struct tttag *next; + int stemno; /* -1 means not assoc with stems[] array */ + int pmsz; /* number of bytes in permutes array */ + unsigned char *permutes; /* array of bit vector permutations */ + } TRUTHTAB; + +/****************************************/ +/* */ +/* Globals */ +/* */ +/****************************************/ +extern int qry_has_no_NOTs; +extern int qry_is_all_ANDs; +extern int parser_invalid_wordcount; +extern TRUTHTAB final_truthtab; + +/****************************************/ +/* */ +/* Function Prototypes */ +/* */ +/****************************************/ +extern void add_syntax_errmsg (int msgno); +extern TRUTHTAB *boolyac_AND (TRUTHTAB *tt1, TRUTHTAB *tt2); +extern TRUTHTAB *boolyac_COLLOC (TRUTHTAB *tt1, int colval, TRUTHTAB *tt2); +extern TRUTHTAB *boolyac_NOT (TRUTHTAB *tt1); +extern TRUTHTAB *boolyac_OR (TRUTHTAB *tt1, TRUTHTAB *tt2); +extern TRUTHTAB *copy_final_truthtab (TRUTHTAB *tt); + +/******************** BOOLPARS.H *********************/ +#endif /* _boolpars_h */ diff --git a/cde/include/Dt/dberr.h b/cde/include/Dt/dberr.h new file mode 100644 index 00000000..dedb3f87 --- /dev/null +++ b/cde/include/Dt/dberr.h @@ -0,0 +1,117 @@ +/* + * 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: dberr.h /main/5 1996/09/23 21:00:53 cde-ibm $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 27 + * + * (C) COPYRIGHT International Business Machines Corp. 1995 + * All Rights Reserved + * Licensed Materials - Property of IBM + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +/* $Log$ + * Revision 2.2 1995/10/24 21:37:15 miker + * Add prolog. + * */ +/* dberr error/status codes */ +static char *user_error[] = { + "database not opened", + "invalid set", + "invalid record", + "invalid database", + "invalid field name", + "invalid db_address", + "no current record", + "set has no current owner", + "set has no current member", + "key value required", + "invalid lock value", + "record is owner of non-empty set(s)", + "record is member of set(s)", + "member already owned", + "field is a compound key", + "record not connected to set", + "field is not a valid key", + "record not legal owner of set", + "record not legal member of set", + "error in d_setpages (database open or bad param)", + "incompatible dictionary file", + "illegal attempt to delete system record", + "illegal attempt to lock locked set/record", + "attempt to access unlocked set/record", + "transaction id not supplied", + "transaction already active", + "transaction not active", + "transaction cannot begin due to locked files", + "cannot free locks within a transaction", + "too many changed database pages", + "cannot update database outside a transaction", + "exclusive access required", + "write locks not allowed on static files", + "unspecified or duplicate user id", + "database, path or file name too long", + "invalid file number was passed to d_renfile", + "field is not an optional key field", + "field is not defined in current record type", + "record/field has/in a compound key", + "invalid record or set number", + "record/set not timestamped", + "bad DBUSERID (contains non-alphanumeric)", + "NetBIOS has not been installed on machine", + "wrong number of elements in DBDPATH", + "wrong number of elements in DBFPATH", + "no current record type", + "invalid country table sort string", + "database not closed" +}; +static char *system_error[] = { + "no more space on file", + "system error", + "page fault", + "no working file in dio", + "unable to allocate sufficient memory", + "error opening file", + "unable to get access to database taf file", + "database taf/log file error", + "inconsistent database locks", + "file record limit exceeded", + "key file inconsistency", + "maximum concurrent user limit exceeded", + "error seeking in database file", + "invalid file specified", + "error reading from a database/overflow file", + "lock manager synchronization error", + "debug check interrupt", + "network communications error", + "auto-recovery in process", + "error writing to a database/overflow file", + "no lock manager is installed", + "DBUSERID is already being used", + "the lock manager is busy" +}; +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dberr.h */ diff --git a/cde/include/Dt/dblock.h b/cde/include/Dt/dblock.h new file mode 100644 index 00000000..3614eae8 --- /dev/null +++ b/cde/include/Dt/dblock.h @@ -0,0 +1,194 @@ +/* + * 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: dblock.h /main/2 1996/05/09 04:02:57 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: FCNINIT + * + * ORIGINS: 157 + * + */ +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 368 28-Jul-88 RSC Integrate BSD changes into code + 115 16-Aug-88 RSC Integrate VAX/VMS changes into source code + 423 09-Sep-88 RSC Change variables to be compatible with MULTI_TASK + 420 07-Oct-88 RSC Unoptimized use of fl_list (full of bugs) + 441 09-Dec-88 RSC Modified defn of FCNPID for general lockmgr +*/ + +/* Lock Manager/Runtime function interaction */ + +/* Network Bios Status codes */ +#define N_BUSY 0xff +#define N_OKAY 0x00 +#define N_TIMEOUT 0x05 +#define N_SESCLOSED 0x0a +#define N_DUPNAME 0x0d +#define N_TABFULL 0x11 +#define N_OPENREJ 0x12 +#define N_CALLNAME 0x14 +#define N_NAMEUSED 0x16 +#define N_NAMEDEL 0x17 +#define N_SESABORT 0x18 +#define N_INTFBUSY 0x21 +#define N_COMMANDS 0x22 + +/* Function/Status codes */ +#define L_RECOVER -5 +#define L_QUEUEFULL -4 +#define L_TIMEOUT -3 +#define L_UNAVAIL -2 +#define L_SYSERR -1 + +#define L_OKAY 0 + +#define L_DBOPEN 1 +#define L_DBCLOSE 2 +#define L_LOCK 3 +#define L_FREE 4 +#define L_TRCOMMIT 5 +#define L_TREND 6 +#define L_SETTIME 7 +#define L_RECDONE 8 +#define L_LOGIN 9 +#define L_DELETE 10 + +#ifndef LOGFILELEN +#define LOGFILELEN 48 +#endif + +/* Macros for VMS mailbox usage */ + + +typedef struct LM_LOCKREQ_S { + INT fref; + INT type; +} LM_LOCKREQ; + +/* Message packets, Runtime to Lock Manager */ + +/* Some macro / typdefs to make this file much more readable */ + +#define PERMISSION 0666 + +#ifdef GENERAL + +/* Defines for GENERAL LOCKMGR */ + +#define FCNPID INT fcn; +#define FCNDEF INT fcn; +#define FCNINIT() 0 +typedef char LM_FILEID; + +#else /* GENERAL */ + + +/* Defines for UNIX SYS-V */ + +#define FCNPID LONG fcn;\ + int pid; +#define FCNDEF LONG fcn; +#define FCNINIT() 0 + +/* Defines for both UNIX SYS-V and BSD */ + +typedef struct LM_FILEID_S { + ino_t inode; + dev_t device; +} LM_FILEID; + +#endif /* GENERAL */ + +typedef struct LM_LOGIN_S { + FCNPID + char dbusrid[80]; +} LM_LOGIN; + +typedef struct LM_DBOPEN_S { + FCNPID + INT nfiles; + INT type; + LM_FILEID fnames[1]; +} LM_DBOPEN; + +typedef struct LM_DBCLOSE_S { + FCNPID + INT nfiles; + INT frefs[1]; +} LM_DBCLOSE; + +typedef struct LM_LOCK_S { + FCNPID + INT nfiles; + LM_LOCKREQ locks[1]; +} LM_LOCK; + +typedef struct LM_RECOVERED_S { + FCNPID +} LM_RECOVERED; + +typedef struct LM_FREE_S { + FCNPID + INT nfiles; + INT frefs[1]; +} LM_FREE; + +typedef struct LM_TRCOMMIT_S { + FCNPID + char logfile[LOGFILELEN]; +} LM_TRCOMMIT; + +typedef struct LM_TREND_S { + FCNPID +} LM_TREND; + +typedef struct LM_SETTIME_S { + FCNPID + INT secs; +} LM_SETTIME; + + +/* Message packets, Lock Manager to Runtime */ + + +typedef struct LR_DBOPEN_S { + FCNDEF + INT status; + char logfile[LOGFILELEN]; + INT nusers; + INT nfiles; + INT frefs[1]; +} LR_DBOPEN; + +typedef struct LR_LOCK_S { + FCNDEF + INT status; + char logfile[LOGFILELEN]; +} LR_LOCK; + +#define DBLOCK_H +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dblock.h */ diff --git a/cde/include/Dt/dbtype.h b/cde/include/Dt/dbtype.h new file mode 100644 index 00000000..5c7eea81 --- /dev/null +++ b/cde/include/Dt/dbtype.h @@ -0,0 +1,534 @@ +/* + * 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 + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: ALLOC + * BITS + * CALLOC + * DB_ENTER + * DB_REF + * FREE + * LOCK_SET + * MEM_LOCK + * MEM_UNLOCK + * NUM2EXT + * NUM2INT + * ORIGIN + * RETURN + * RN_REF + * TABLE_SIZE + * arraysize + * bytecmp + * bytecpy + * byteset + * + * ORIGINS: 27,157 + * + * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 + * All Rights Reserved + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +/*---------------------------------------------------------------------------- + $TOG: dbtype.h /main/6 1998/03/19 19:00:38 mgreess $ + dbtype.h: Standard db_VISTA header file containing: + + - DDL dictionary type definitions + - Machine dependent constant definitions + - Miscellaneous constants used by runtime functions + - Virtual memory page table type definitions + + (An #include "vista.h" must precede this include) + + (C) Copyright 1984, 1985, 1986 by Raima Corporation. +----------------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 101 21-Jun-88 RSC Added rn_type and rn_dba to database table + 344 06-Jul-88 RSC LOGFILELEN also defined in dblock.h - add ifndef + 115 18-Jul-88 RSC Integrate VAX VMS changes + 21-Jul-88 RSC Fix bugaboo in VAX integration + 368 28-Jul-88 RSC Integrate BSD changes into code + 310 10-Aug-88 RSC Cleanup function prototype + 19-Aug-88 RSC Moved rn_type,rn_dba to separate table for compatibility + with db_QUERY and db_REVISE + 423 10-Sep-88 RSC Add dbpush names for netunix.c + 423 22-Sep-88 RSC Modify/simplify DB_ENTER macro for Lattice compiler + 368 23-Sep-88 RSC Change type of pid from INT to int and + corrected defn of MESSAGE + 423 26-Sep-88 RSC Moved INIT_PAGE_P defn to initial.c + 11-Oct-88 RSC Fix for ONE_DB compile + 441 06-Dec-88 RSC Move defn of MESSAGE from netgen.h to here + 532 06-Jan-89 RSC Fixed defn of DB_ID for ONE_DB + + $Log$ + * Revision 1.2 1995/10/13 18:29:38 miker + * Added #define DtSrFILENMLEN to expand max filename len. + * Changed FILENMLEN from 48 to DtSrFILENMLEN (240: 256 - 16). + */ + +/* Compiler dependencies are handled with ifdef macros: +NOTE: One of these macros should be defined on the compile command, +for example + cc -c -DUNIX fillnew.c +Failure to do so will produce compilation errors. + + UNIX = Unix C compiler + LAT = Lattice + MSC = Microsoft + AZ = Aztec + C86 = CI C86 + DS = DeSmet + VMS = Vax/VMS + HHS = Harris H-series +*/ + + +#define PGHOLD 1 +#define NOPGHOLD 0 +#define PGFREE 1 +#define NOPGFREE 0 + +#define KEYFIND 0 +#define KEYNEXT 1 +#define KEYPREV 2 +#define KEYFRST 3 +#define KEYLAST 4 + +/* dictionary attribute flags */ +#define SORTFLD 0x0001 /* field is a set sort field */ +#define STRUCTFLD 0x0002 /* field is sub-field of struct */ +#define UNSIGNEDFLD 0x0004 /* field is unsigned */ +#define STATIC 0x0002 /* file/record is static */ +#define LOCAL 0x0004 /* file/record is local */ +#define COMKEYED 0x0010 /* record/field contains/included in compound key */ +#define TIMESTAMPED 0x0001 /* record/set is timestamped */ + +#define TRUE 1 +#define FALSE 0 +#define YES 1 +#define NO 0 + +#define BITS_PER_BYTE 8 + +/* Number of bits in a "type" */ +#define BITS( type ) (BITS_PER_BYTE * sizeof( type )) + +/* Number of elements in a vector */ +#define arraysize(v) (sizeof(v)/sizeof(*(v))) + +/* Number of bytes in a disk block */ +#define D_BLKSZ 512 + +#define DBD_COMPAT_LEN 6 +#define INT_SIZE sizeof(int) +#define SHORT_SIZE sizeof(short) +#define LONG_SIZE sizeof(long) +#ifndef NO_FLOAT +#define FLOAT_SIZE sizeof(float) +#define DOUBLE_SIZE sizeof(double) +#endif +#define CHAR_SIZE sizeof(char) +#define DB_ADDR_SIZE sizeof(LONG) +#define PGHDRSIZE 4 +#define CTBNAME "vista.ctb" + +#define RECHDRSIZE 6 +#define NONE -1 + +/* FILEMASK, ADDRMASK, FILESHIFT always operate on 4-byte variables */ +#define FILEMASK 0x000000FF +#define ADDRMASK 0x00FFFFFF +#define FILESHIFT 24 + +#define OPTKEYSHIFT 10 +#define OPTKEYMASK 0xFC00 +#define OPTKEYNDX 0x003F +#define OPTKEY_LIMIT 63 +#define RLBMASK 0x4000 + +/* The following constants all depend on the size of INT and DB_ADDR */ + +/* creation timestamp in rec hdr = sizeof(INT) + DB_ADDR_SIZE */ +#define RECCRTIME 6 +/* update timestamp in rec hdr = RECCRTIME + sizeof(LONG) */ +#define RECUPTIME 10 + +/* member count prior + next timestamp (opt) */ +/* max size of set pointer = sizeof(LONG) + 2*DB_ADDR_SIZE + sizeof(ULONG) */ +#define SETPSIZE 16 +/* Offset to total members in set ptr */ +#define SP_MEMBERS 0 +/* Offset to first member ptr in set ptr */ +#define SP_FIRST 4 +/* Offset to last member ptr in set ptr = 2+DB_ADDR_SIZE */ +#define SP_LAST 8 +/* Size of member pointer = 3*DB_ADDR_SIZE */ +#define MEMPSIZE 12 +/* Offset to owner ptr in member ptr */ +#define MP_OWNER 0 +/* Offset to previous member ptr in member ptr = DB_ADDR_SIZE */ +#define MP_PREV 4 +/* Offset to next member ptr in member ptr = 2*DB_ADDR_SIZE */ +#define MP_NEXT 8 + +/* maximum length of a database file name */ +#define DtSrFILENMLEN 240 /* expand max filename len from 48 */ +#ifndef FILENMLEN +#define FILENMLEN DtSrFILENMLEN +#endif +#ifndef LOGFILELEN +#define LOGFILELEN 48 +#endif +/* maximum length of a database name */ +#define DBNMLEN 12 +/* maximum length of a database path */ +#define PATHLEN FILENMLEN-15 + +#define MAXDIMS 3 + +#define OPEN 'o' +#define CLOSED 'c' +#define DATA 'd' +#define KEY 'k' +#define OVERFLOW 'o' + +typedef struct FILE_ENTRY_S { + char ft_name[FILENMLEN]; /* name of file */ + INT ft_desc; /* file descriptor */ + char ft_status; /* 'o'=opened, 'c'=closed */ + char ft_type; /* 'd'=data, 'k'=key, 'o'=overflow */ + INT ft_slots; /* record slots per page */ + INT ft_slsize; /* size of record slots in bytes */ + INT ft_pgsize; /* size of page */ + INT ft_flags; /* 0x0002 is set if file is static */ +} FILE_ENTRY; + +typedef struct RECORD_ENTRY_S { + INT rt_file; /* file table entry of file containing record */ + INT rt_len; /* total length of record */ + INT rt_data; /* offset to start of data in record */ + INT rt_fields; /* first field def in field_table */ + INT rt_fdtot; /* total number of fields in record */ + INT rt_flags; /* 0x0001 is set if record is timestamped + 0x0002 is set if record is static */ +} RECORD_ENTRY; + + +#define FIRST 'f' +#define LAST 'l' +#define ASCENDING 'a' +#define DESCENDING 'd' +#define NOORDER 'n' +#define NEXT 'n' +typedef struct SET_ENTRY_S { + INT st_order; /* 'f'=first, 'l'=last, 'a'=ascending, + 'd'=descending, 'n'=no order */ + INT st_own_rt; /* record table entry of owner */ + INT st_own_ptr; /* offset to set pointers in record */ + INT st_members; /* index of first member record in member table */ + INT st_memtot; /* total number of members of set */ + INT st_flags; /* 0x0001 is set if record is timestamped */ +} SET_ENTRY; + + +typedef struct MEMBER_ENTRY_S { + INT mt_record; /* record table entry for this member */ + INT mt_mem_ptr; /* offset to member ptrs in record */ + INT mt_sort_fld; /* sort table entry of first sort field */ + INT mt_totsf; /* total number of sort fields */ +} MEMBER_ENTRY; + + +typedef struct SORT_ENTRY_S { + INT se_fld; /* field table entry of sort field */ + INT se_set; /* set table entry of sorted set */ +} SORT_ENTRY; + + +#define NOKEY 'n' +#define DUPLICATES 'd' +#define UNIQUE 'u' +#define CHARACTER 'c' +#define SHORTINT 's' +#define REGINT 'i' +#define LONGINT 'l' +#ifndef NO_FLOAT +#define FLOAT 'f' +#define DOUBLE 'F' +#endif +#define DBADDR 'd' +#define GROUPED 'g' +#define COMKEY 'k' +typedef struct FIELD_ENTRY_S { + char fd_key; /* 'n'=none, 'd'=duplicates, 'u'=unique */ + char fd_type; /* 'c'=char, 's'=short, 'i'=int, 'l'=long, 'd'=DB_ADDR, + 'f' = float, 'D' = double, 'g'=grouped field, + 'k' = compound key */ + INT fd_len; /* length of field in bytes */ + INT fd_dim[MAXDIMS]; /* size of each array dimension */ + INT fd_keyfile; /* file_table entry for key file */ + INT fd_keyno; /* key prefix number */ + INT fd_ptr; /* offset to field in record or + 1st compound key field in key_table */ + INT fd_rec; /* record table entry of record containing field */ + INT fd_flags; /* 0x0001 is set if field in "by" clause of set spec + 0x0002 is set if field member of struct field + 0x0004 is set if field is unsigned data type + 0x0008 is set if field is an optional key */ +} FIELD_ENTRY; + +/* compound key table entry declaration */ +typedef struct KEY_ENTRY_S { + INT kt_key; /* compound key field number */ + INT kt_field; /* field number of included field */ + INT kt_ptr; /* offset to start of field data in key */ + INT kt_sort; /* 'a' = ascending, 'd' = descending */ +} KEY_ENTRY; + +/* database table entry declaration */ +typedef struct DB_ENTRY_S { + char db_name[DBNMLEN]; /* name of this database */ + char db_path[PATHLEN]; /* name of path to this database */ + DB_ADDR sysdba; /* database address of system record */ + DB_ADDR curr_dbt_rec;/* this db's current record */ + INT Page_size; /* size of this db's page */ + INT Size_ft; /* size of this db's file_table */ + INT ft_offset; /* offset to start of this db's file_table entries */ + INT Size_rt; /* size of this db's record_table */ + INT rt_offset; /* offset to start of this db's record_table entries */ + INT Size_fd; /* size of this db's field_table */ + INT fd_offset; /* offset to start of this db's field_table entries */ + INT Size_st; /* size of this db's set_table */ + INT st_offset; /* offset to start of this db's set_table entries */ + INT Size_mt; /* size of this db's member_table */ + INT mt_offset; /* offset to start of this db's member_table entries */ + INT Size_srt; /* size of this db's sort_table */ + INT srt_offset; /* offset to start of this db's sort_table entries */ + INT Size_kt; /* size of this db's key_table */ + INT kt_offset; /* offset to strary of this db's key table entries */ + INT key_offset; /* key prefix offset for this db */ +} DB_ENTRY; + +/* Structure containing current record type & address for recfrst/set/next..*/ +typedef struct RN_ENTRY_S { + INT rn_type; /* Last record type supplied to recfrst/recset */ + DB_ADDR rn_dba; /* Last db addr computed by recfrst/recset/recnext */ +} RN_ENTRY; +#define DB_REF(item) (db_global.Curr_db_table->item) +#define RN_REF(item) (curr_rn_table->item) +#define NUM2INT(num, offset) ((num) + db_global.Curr_db_table->offset) +#define NUM2EXT(num, offset) ((num) - db_global.Curr_db_table->offset) +#define ORIGIN(offset) (curr_db_table->offset) +#define TABLE_SIZE(size) DB_REF(size) + +/* Country code table definition */ +typedef struct CNTRY_TBL_S { + unsigned char out_chr; + unsigned char sort_as1; + unsigned char sort_as2; + unsigned char sub_sort; +} CNTRY_TBL; + +/* names lists structure declaration */ +typedef struct OBJNAMES_S { + char **recs; + char **flds; + char **sets; +} OBJNAMES; + + +/* directory separator character: + MS-DOS: '\' + UNIX: '/' +*/ +#ifdef HHS +#define DIRCHAR '*' +#else +#define DIRCHAR '/' +#endif + +/* The following define aid in the use of a set of routines which use RMS + directly to do the i/o to database files. */ + +#define DB_OPEN open_b +#define DB_CLOSE close +#define DB_LSEEK lseek +#define DB_WRITE write +#define DB_READ read + +typedef struct {FILE_NO *ptr; LOCK_DESC} FILE_NO_P; +typedef struct {int *ptr; LOCK_DESC} INT_P; +typedef struct {struct NODE_PATH_S *ptr; LOCK_DESC} NODE_PATH_P; +typedef struct {struct KEY_INFO_S *ptr; LOCK_DESC} KEY_INFO_P; +typedef struct {struct ren_entry *ptr; LOCK_DESC} REN_ENTRY_P; +typedef struct {struct RN_ENTRY_S *ptr; LOCK_DESC} RN_ENTRY_P; +typedef struct {struct LOOKUP_ENTRY_S *ptr; LOCK_DESC} LOOKUP_ENTRY_P; +typedef struct {struct page_entry *ptr; LOCK_DESC} PAGE_ENTRY_P; +typedef struct {struct DB_ENTRY_S *ptr; LOCK_DESC} DB_ENTRY_P; +typedef struct {struct FILE_ENTRY_S *ptr; LOCK_DESC} FILE_ENTRY_P; +typedef struct {struct RECORD_ENTRY_S *ptr; LOCK_DESC} RECORD_ENTRY_P; +typedef struct {struct SET_ENTRY_S *ptr; LOCK_DESC} SET_ENTRY_P; +typedef struct {struct MEMBER_ENTRY_S *ptr; LOCK_DESC} MEMBER_ENTRY_P; +typedef struct {struct SORT_ENTRY_S *ptr; LOCK_DESC} SORT_ENTRY_P; +typedef struct {struct FIELD_ENTRY_S *ptr; LOCK_DESC} FIELD_ENTRY_P; +typedef struct {struct KEY_ENTRY_S *ptr; LOCK_DESC} KEY_ENTRY_P; +typedef struct {struct PGZERO_S *ptr; LOCK_DESC} PGZERO_P; +typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P; +typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P; +typedef struct {LONG *ptr; LOCK_DESC} LONG_P; +typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P; +struct sk { + INT sk_fld; + CHAR_P sk_val; +} __SK__; +typedef struct { struct sk *ptr; LOCK_DESC } SK_P; + +/* node key search path stack entry: one per level per key field */ +typedef struct NODE_PATH_S { + F_ADDR node; /* node (page) number */ + INT slot; /* slot number of key */ +} NODE_PATH; + +/* index key information: one entry per key field */ +typedef struct KEY_INFO_S { + NODE_PATH_P Node_path; /* stack of node #s in search path */ + INT level; /* current level # in node path */ + INT max_lvls; /* maximum possible levels for key */ + INT lstat; /* last key function status */ + INT fldno; /* field number of key */ + FILE_NO keyfile; /* key file containing this key */ + CHAR_P Keyval; /* ptr to last key value */ + DB_ADDR dba; /* db address of last key */ +} KEY_INFO; +#define node_path Node_path.ptr +#define keyval Keyval.ptr + +/* key slot structure */ +typedef struct key_slot { + F_ADDR child; /* child node pointer */ + INT keyno; /* key number */ + char data[1]; /* start of key data */ +} KEY_SLOT; + +typedef union key_type { + char kd[256]; + struct key_slot ks; +} KEY_TYPE; + +/* file rename table entry declarations */ +typedef struct ren_entry { + CHAR_P Ren_db_name; + CHAR_P File_name; + FILE_NO file_no; +} REN_ENTRY; + +#define bytecpy(s1, s2, n) memcpy((char *)(s1), (char *)(s2), (unsigned)(n)) +#define bytecmp(s1, s2, n) memcmp((char *)(s1), (char *)(s2), (unsigned)(n)) +#define byteset(s, c, n) memset((char *)(s), (char)(c), (unsigned)(n)) + +typedef struct MESSAGE_S { +#ifdef GENERAL + INT mtype; + char mtext[1]; +#else /* GENERAL */ + LONG mtype; + int pid; + char mtext[1]; +#endif /* GENERAL */ +} MESSAGE; + +#ifdef COMMA /* COMMA */ +#define DB_ID , dbn +#define NO_DB_ID , -1 +#else /* COMMA */ +#define DB_ID dbn +#define NO_DB_ID -1 +#define COMMA +#endif /* COMMA */ + +#define TASK_ID /**/ + +#define LOCK_SET(a) /**/ + +#define TDTL_PARAM + +#define DB_ENTER(TDTL_PARAM) if ( startup(TDTL_PARAM) != S_OKAY ) { return( db_status ); } else + +#define RETURN(x) return( x ) +#define ALLOC(l, b, v) d_alloc(b) +#define CALLOC(l, i, s, v) d_calloc(i, s) +#define MEM_LOCK(cp) d_memlock((CHAR_P *)(cp)) +#define MEM_UNLOCK(cp) d_memunlock((CHAR_P *)(cp)) +#define FREE(cp) d_free((CHAR_P *)(cp)) + +/* Lock sets are defined in dblfcns.c */ +#define LOCK_NONE -1 +#define LOCK_ALL 0 +#define LOCK_IO 1 +#define LOCK_NOIO 2 +#define RECORD_IO 3 +#define RECORD_NOIO 4 +#define SET_IO 5 +#define SET_NOIO 6 + +#ifdef GENERAL +#define TIMEOUT_DEF 20 +#else +#define TIMEOUT_DEF 10 +#endif + +#include +#include +#include "trxlog.h" +#include "dblock.h" +#include "ll.h" +#include "dbxtrn.h" + +typedef struct LOOKUP_ENTRY_S { + FILE_NO file; /* file table entry number (0..size_ft-1) */ + F_ADDR pageno; /* database page number */ + short pg_slot; /* page table slot pointing to this entry */ +} LOOKUP_ENTRY; + +/* virtual page table entry */ +typedef struct page_entry { + BOOLEAN recently_used; /* LRU flag */ + BOOLEAN modified; /* TRUE if page has been modified */ + INT holdcnt; /* "hold-in-cache" counter */ + short lu_slot; /* lookup table slot pointing to this entry */ + CHAR_P Buff; /* page buffer pointer */ +} PAGE_ENTRY; +#define buff Buff.ptr + +#include +#include +#include +#include +#include "proto.h" + +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dbtype.h */ diff --git a/cde/include/Dt/dbxtrn.h b/cde/include/Dt/dbxtrn.h new file mode 100644 index 00000000..8ab04110 --- /dev/null +++ b/cde/include/Dt/dbxtrn.h @@ -0,0 +1,208 @@ +/* + * 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: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 157 + * + */ +/*---------------------------------------------------------------------------- + dbxtrn.h: db_VISTA external data header file + + (This file is included by dbtype.h) + + (C) Copyright 1984 by Raima Corporation. +----------------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 423 22-Sep-88 RSC Cleanup file to compile under Lattice + 368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h + 439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main + 440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM + 532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB + 05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking + +*/ + +/* Database Dictionary Tables */ +extern INT largest_page; + +extern INT old_size_ft; +extern INT old_size_fd; +extern INT old_size_st; +extern INT old_size_mt; +extern INT old_size_srt; +extern INT old_size_kt; +extern INT old_size_rt; +extern INT old_no_of_dbs; + +extern char *crloc; /* location in page buffer of current record */ + +typedef struct TASK_S { + /* The following global variables came from dblfcns.c */ + int Dbopen; /* dbopen = 0 */ + char Dbuserid[FILENMLEN]; /* dbuserid = "" */ + char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */ + char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */ + const char *Trans_id; /* trans_id = NULL */ + char Dblog[FILENMLEN]; /* dblog = "" */ + /* The following global variables came from dio.c */ + BOOLEAN Cache_ovfl; /* cache_ovfl = FALSE */ + PGZERO_P Pgzero; /* database file page 0 array */ + /* The following global variables came from keyfcns.c */ + int No_of_keys; /* no_of_keys = 0 */ + KEY_INFO_P Key_info; /* key_info = NULL */ + KEY_TYPE Key_type; + /* The following global variables came from netwdos.c */ + int Net_status; + LONG Last_mtype; + /* The following global variables came from options.c */ + int Dboptions; /* ifdef NO_TRANS: dboptions = + DCHAINUSE | TRLOGGING + else: dboptions = DCHAINUSE */ + /* The following global variables came from ovfcns.c */ + long Ov_initaddr; /* ov_initaddr = 0L */ + long Ov_rootaddr; /* ov_rootaddr = 0L */ + long Ov_nextaddr; /* ov_nextaddr = 0L */ + RI_ENTRY_P Root_ix; + /* The following global variables came from renfiles.c */ + llist Ren_list; /* Ren_list = LLIST_INIT() */ + /* The following global variables came from inittab.h */ + INT Page_size; + int Curr_db; + DB_ENTRY *Curr_db_table; + DB_ADDR Curr_rec; /* current record address */ + DB_ADDR_P Curr_own; /* current set owners array */ + DB_ADDR_P Curr_mem; /* current set members array */ + FILE_NO Ov_file; + BOOLEAN Setdb_on; + INT No_of_dbs; + RN_ENTRY_P Rn_table; + RN_ENTRY *Curr_rn_table; + DB_ENTRY_P Db_table; + FILE_ENTRY_P File_table; + INT Size_ft; + RECORD_ENTRY_P Record_table; + INT Size_rt; + SET_ENTRY_P Set_table; + INT Size_st; + MEMBER_ENTRY_P Member_table; + INT Size_mt; + SORT_ENTRY_P Sort_table; + INT Size_srt; + FIELD_ENTRY_P Field_table; + INT Size_fd; + KEY_ENTRY_P Key_table; + INT Size_kt; + int Lock_lvl; +#define LOCK_STACK_SIZE 10 + int Lock_stack[LOCK_STACK_SIZE]; + CNTRY_TBL_P country_tbl; + int ctbl_activ; + char ctbpath[FILENMLEN]; + llist Sk_list; +} TASK; + +/* Dynamically allocated global variables */ +#define app_locks db_global.App_locks.ptr +#define excl_locks db_global.Excl_locks.ptr +#define kept_locks db_global.Kept_locks.ptr +#define rec_locks db_global.Rec_locks.ptr +#define set_locks db_global.Set_locks.ptr +#define key_locks db_global.Key_locks.ptr +#define lock_pkt db_global.Lock_pkt.ptr +#define free_pkt db_global.Free_pkt.ptr +#define file_refs db_global.File_refs.ptr +#define key_info db_global.Key_info.ptr +#define curr_own db_global.Curr_own.ptr +#define curr_mem db_global.Curr_mem.ptr +#define rn_table db_global.Rn_table.ptr +#define db_table db_global.Db_table.ptr +#define file_table db_global.File_table.ptr +#define record_table db_global.Record_table.ptr +#define set_table db_global.Set_table.ptr +#define member_table db_global.Member_table.ptr +#define sort_table db_global.Sort_table.ptr +#define field_table db_global.Field_table.ptr +#define key_table db_global.Key_table.ptr +#define pgzero db_global.Pgzero.ptr +#define root_ix db_global.Root_ix.ptr +/* Used in DIO.C and OVFCNS.C */ +#define ixpg_table Ixpg_table.ptr +#define dbpgbuff Dbpgbuff.ptr +#define ix_lookup Ix_lookup.ptr + +/* Non-dynamically allocated global variables */ +#define lock_tries db_global.Lock_tries +#define dbwait_time db_global.Dbwait_time +#define db_timeout db_global.Db_timeout +#define dbopen db_global.Dbopen +#define db_lockmgr db_global.Db_lockmgr +#define dbuserid db_global.Dbuserid +#define dbdpath db_global.Dbdpath +#define dbfpath db_global.Dbfpath +#define trans_id db_global.Trans_id +#define dblog db_global.Dblog +#define keyl_cnt db_global.Keyl_cnt +#define lp_size db_global.Lp_size +#define fp_size db_global.Fp_size +#define session_active db_global.Session_active +#define cache_ovfl db_global.Cache_ovfl +#define no_of_keys db_global.No_of_keys +#define key_type db_global.Key_type +#define net_status db_global.Net_status +#define last_mtype db_global.Last_mtype +#define dboptions db_global.Dboptions +#define ov_initaddr db_global.Ov_initaddr +#define ov_rootaddr db_global.Ov_rootaddr +#define ov_nextaddr db_global.Ov_nextaddr +#define page_size db_global.Page_size +#define curr_db db_global.Curr_db +#define curr_db_table db_global.Curr_db_table +#define curr_rec db_global.Curr_rec +#define ov_file db_global.Ov_file +#define setdb_on db_global.Setdb_on +#define no_of_dbs db_global.No_of_dbs +#define curr_rn_table db_global.Curr_rn_table +#define size_ft db_global.Size_ft +#define size_rt db_global.Size_rt +#define size_st db_global.Size_st +#define size_mt db_global.Size_mt +#define size_srt db_global.Size_srt +#define size_fd db_global.Size_fd +#define size_kt db_global.Size_kt +#define lock_lvl db_global.Lock_lvl +#define lock_stack db_global.Lock_stack +#define ren_list db_global.Ren_list +#define sk_list db_global.Sk_list + +extern TASK db_global; +extern int db_glob_init; + +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */ diff --git a/cde/include/Dt/dproto.h b/cde/include/Dt/dproto.h new file mode 100644 index 00000000..e0fd4530 --- /dev/null +++ b/cde/include/Dt/dproto.h @@ -0,0 +1,209 @@ +/* + * 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: dproto.h /main/2 1996/05/09 03:55:20 drk $ */ +/*---------------------------------------------------------------------------- + dproto.h: db_VISTA (user) function declaration header file + + (C) Copyright 1988 by Raima Corporation. +----------------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP +*/ + + +int d_setfiles(P1(int)); /* dio.c */ +int d_setpages(P1(int) Pi(int)); /* dio.c */ +int d_trbound(P0); /* trlog.c */ +int d_trlog(P1(int) Pi(int) Pi(CONST char FAR *) Pi(int)); + /* trlog.c */ +int d_trmark(P0); /* trlog.c */ +int d_tron(P0); /* trlog.c */ +int d_troff(P0); /* trlog.c */ +int d_decode_dba(P1(DB_ADDR) Pi(int FAR *) Pi(long FAR *)); + /* dbacode.c */ +int d_encode_dba(P1(int) Pi(long) Pi(DB_ADDR FAR *)); + /* dbacode.c */ + +#define d_memlock(p) /**/ +#define d_memlock_group(lg) S_OKAY +#define d_memunlock(p) /**/ +#define d_memunlock_group(lg) /**/ +char FAR * d_alloc(P1(unsigned)); /* alloc.c */ +char FAR * d_calloc(P1(unsigned) Pi(unsigned)); /* alloc.c */ +void d_free(P1(CHAR_P FAR *)); /* alloc.c */ + +#ifndef MULTI_TASK /* MULTI_TASK */ +#define dt_opentask(a) S_OKAY +#define dt_closetask(a) S_OKAY + +int d_close(P0); /* dblfcns.c */ +int d_cmstat(P1(int) DBN_Dn); /* cmstat.c */ +int d_cmtype(P1(int) Pi(int FAR *) DBN_Dn); /* cmtype.c */ +int d_connect(P1(int) DBN_Dn); /* connect.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_costat(P1(int) DBN_Dn); /* costat.c */ +#endif /* NO_TIMESTAMP */ +int d_cotype(P1(int) Pi(int FAR *) DBN_Dn); /* cotype.c */ +int d_crget(P1(DB_ADDR FAR *) DBN_Dn); /* crget.c */ +int d_crread(P1(long) Pi(char FAR *) DBN_Dn); /* crread.c */ +int d_crset(P1(DB_ADDR FAR *) DBN_Dn); /* crset.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_crstat(P0); /* crstat.c */ +#endif /* NO_TIMESTAMP */ +int d_crtype(P1(int FAR *) DBN_Dn); /* crtype.c */ +int d_crwrite(P1(long) Pi(char FAR *) DBN_Dn); /* crwrite.c */ +int d_csmget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csmget.c */ +int d_csmread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); + /* csmread.c */ +int d_csmset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csmset.c */ +int d_csmwrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); + /* csmwrite.c */ +int d_csoget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csoget.c */ +int d_csoread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); + /* csoread.c */ +int d_csoset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csoset.c */ +int d_csowrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); + /* csowrite.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_csstat(P1(int) DBN_Dn); /* csstat.c */ +int d_ctscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* ctscm.c */ +int d_ctsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* ctsco.c */ +int d_ctscr(P1(ULONG FAR *)); /* ctscr.c */ +#endif /* NO_TIMESTAMP */ +#ifndef NO_COUNTRY +int d_ctbpath(P1(CONST char FAR *)); /* pathfcns.c */ +#endif /* NO_COUNTRY */ +int d_dbdpath(P1(CONST char FAR *)); /* dbdpath.c */ +int d_dbfpath(P1(CONST char FAR *)); /* dbfpath.c */ +int d_dblog(P1(CONST char FAR *)); /* dblog.c */ +int d_dbtaf(P1(CONST char FAR *)); /* dbtaf.c */ +int d_dbuserid(P1(CONST char FAR *)); /* dbuserid.c */ +int d_delete(DBN_D1); /* delete.c */ +int d_disdel(DBN_D1); /* disdel.c */ +int d_recnext(DBN_D1); /* recnext.c */ +int d_recprev(DBN_D1); /* recprev.c */ +int d_destroy(P1(CONST char FAR *)); /* destroy.c */ +int d_discon(P1(int) DBN_Dn); /* discon.c */ +int d_fillnew(P1(int) Pi(CONST char FAR *) DBN_Dn); /* fillnew.c */ +int d_findco(P1(int) DBN_Dn); /* findco.c */ +int d_findfm(P1(int) DBN_Dn); /* findfm.c */ +int d_findlm(P1(int) DBN_Dn); /* findlm.c */ +int d_findnm(P1(int) DBN_Dn); /* findnm.c */ +int d_findpm(P1(int) DBN_Dn); /* findpm.c */ +int d_freeall(P0); /* dblfcns.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_gtscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtscm.c */ +int d_gtsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtsco.c */ +int d_gtscr(P1(ULONG FAR *)); /* gtscr.c */ +int d_gtscs(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtscs.c */ +#endif /* NO_TIMESTAMP */ +int d_initialize(DBN_D1); /* initial.c */ +int d_initfile(P1(FILE_NO) DBN_Dn); /* initial.c */ +int d_ismember(P1(int) DBN_Dn); /* ismember.c */ +int d_isowner(P1(int) DBN_Dn); /* isowner.c */ +int d_keydel(P1(long) DBN_Dn); /* keydel.c */ +int d_keyexist(P1(long) DBN_Dn); /* keyexist.c */ +int d_keyfind(P1(long) Pi(CONST char FAR *) DBN_Dn); + /* keyfind.c */ +int d_keyfree(P1(long) DBN_Dn); /* dblfcns.c */ +int d_keyfrst(P1(long) DBN_Dn); /* keyfrst.c */ +int d_keylast(P1(long) DBN_Dn); /* keylast.c */ +int d_keylock(P1(long) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_keylstat(P1(long) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_keynext(P1(long) DBN_Dn); /* keynext.c */ +int d_keyprev(P1(long) DBN_Dn); /* keyprev.c */ +int d_keyread(P1(char FAR *)); /* keyfcns.c */ +int d_keystore(P1(long) DBN_Dn); /* keystore.c */ +int d_lock(P1(int) Pi(LOCK_REQUEST FAR *) DBN_Dn); /* dblfcns.c */ +int d_makenew(P1(int) DBN_Dn); /* makenew.c */ +int d_mapchar(P1(unsigned char) Pi(unsigned char) + Pi(CONST char FAR *) Pi(unsigned char)); /* mapchar.c */ +int d_members(P1(int) Pi(LONG FAR *) DBN_Dn); /* members.c */ +int d_off_opt(P1(int)); /* options.c */ +int d_on_opt(P1(int)); /* options.c */ +int d_open(P1(CONST char FAR *) Pi(CONST char FAR *)); + /* dblfcns.c */ +int d_rerdcurr(P1(DB_ADDR FAR **)); /* rwcurr.c */ +int d_rdcurr(P1(DB_ADDR FAR **) Pi(int FAR *)); /* rwcurr.c */ +int d_wrcurr(P1(DB_ADDR FAR *)); /* rwcurr.c */ +int d_recfree(P1(int) DBN_Dn); /* dblfcns.c */ +int d_recfrst(P1(int) DBN_Dn); /* recfrst.c */ +int d_reclast(P1(int) DBN_Dn); /* reclast.c */ +int d_reclock(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_reclstat(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_recover(P1(CONST char FAR *)); /* recover.c */ +int d_recread(P1(char FAR *) DBN_Dn); /* recread.c */ +int d_recset(P1(int) DBN_Dn); /* recset.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_recstat(P1(DB_ADDR) Pi(ULONG)); /* recstat.c */ +#endif /* NO_TIMESTAMP */ +int d_recwrite(P1(CONST char FAR *) DBN_Dn); /* recwrite.c */ +int d_renfile(P1(CONST char FAR *) Pi(FILE_NO) + Pi(CONST char FAR *)); /* renfile.c */ +int d_retries(P1(int)); /* dblfcns.c */ +int d_rlbclr(P0); /* dblfcns.c */ +int d_rlbset(P0); /* dblfcns.c */ +int d_rlbtst(P0); /* dblfcns.c */ +int d_set_dberr(P1(FARPROC)); /* dberr.c */ +#ifndef ONE_DB /* ONE_DB */ +int d_setdb(P1(int)); /* setdb.c */ +#endif /* ONE_DB */ +int d_setfree(P1(int) DBN_Dn); /* dblfcns.c */ +int d_setkey(P1(long) Pi(CONST char FAR *) DBN_Dn); /* makenew.c */ +int d_setlock(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_setlstat(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ +int d_setmm(P1(int) Pi(int) DBN_Dn); /* setmm.c */ +int d_setmo(P1(int) Pi(int) DBN_Dn); /* setmo.c */ +int d_setmr(P1(int) DBN_Dn); /* setmr.c */ +int d_setom(P1(int) Pi(int) DBN_Dn); /* setom.c */ +int d_setoo(P1(int) Pi(int) DBN_Dn); /* setoo.c */ +int d_setor(P1(int) DBN_Dn); /* setor.c */ +int d_setrm(P1(int) DBN_Dn); /* setrm.c */ +int d_setro(P1(int) DBN_Dn); /* setro.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_stscm(P1(int) Pi(ULONG) DBN_Dn); /* stscm.c */ +int d_stsco(P1(int) Pi(ULONG) DBN_Dn); /* stsco.c */ +int d_stscr(P1(ULONG)); /* stscr.c */ +int d_stscs(P1(int) Pi(ULONG) DBN_Dn); /* stscs.c */ +#endif /* NO_TIMESTAMP */ +int d_timeout(P1(int)); /* dblfcns.c */ +int d_trabort(P0); /* dblfcns.c */ +int d_trbegin(P1(CONST char FAR *)); /* dblfcns.c */ +int d_trend(P0); /* dblfcns.c */ +#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ +int d_utscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utscm.c */ +int d_utsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utsco.c */ +int d_utscr(P1(ULONG FAR *)); /* utscr.c */ +int d_utscs(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utscs.c */ +#endif /* NO_TIMESTAMP */ + +#endif /* MULTI_TASK */ + +int dberr(P1(int)); /* dberr.c */ + +#define D_FUNCTIONS_H +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */ diff --git a/cde/include/Dt/dtcover.h b/cde/include/Dt/dtcover.h new file mode 100644 index 00000000..f28a25a3 --- /dev/null +++ b/cde/include/Dt/dtcover.h @@ -0,0 +1,140 @@ +/* + * 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: dtcover.h /main/2 1996/05/09 04:05:27 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 157 + * + */ +/*---------------------------------------------------------------------------- + dtcover.h: converts d_* calls to dt_* for MULTI_TASKing + + (C) Copyright 1988 by Raima Corporation. +----------------------------------------------------------------------------*/ +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP +*/ + + +#define d_close dt_close +#define d_cmstat dt_cmstat +#define d_cmtype dt_cmtype +#define d_connect dt_connect +#define d_cotype dt_cotype +#define d_crget dt_crget +#define d_crread dt_crread +#define d_crset dt_crset +#define d_crtype dt_crtype +#define d_crwrite dt_crwrite +#define d_csmget dt_csmget +#define d_csmread dt_csmread +#define d_csmset dt_csmset +#define d_csmwrite dt_csmwrite +#define d_csoget dt_csoget +#define d_csoread dt_csoread +#define d_csoset dt_csoset +#define d_csowrite dt_csowrite +#define d_ctbpath dt_ctbpath +#define d_dbdpath dt_dbdpath +#define d_dbfpath dt_dbfpath +#define d_dblog dt_dblog +#define d_dbtaf dt_dbtaf +#define d_dbuserid dt_dbuserid +#define d_delete dt_delete +#define d_disdel dt_disdel +#define d_recnext dt_recnext +#define d_recprev dt_recprev +#define d_destroy dt_destroy +#define d_discon dt_discon +#define d_fillnew dt_fillnew +#define d_findco dt_findco +#define d_findfm dt_findfm +#define d_findlm dt_findlm +#define d_findnm dt_findnm +#define d_findpm dt_findpm +#define d_freeall dt_freeall +#define d_initialize dt_initialize +#define d_initfile dt_initfile +#define d_ismember dt_ismember +#define d_isowner dt_isowner +#define d_keydel dt_keydel +#define d_keyexist dt_keyexist +#define d_keyfind dt_keyfind +#define d_keyfree dt_keyfree +#define d_keyfrst dt_keyfrst +#define d_keylast dt_keylast +#define d_keylock dt_keylock +#define d_keylstat dt_keylstat +#define d_keynext dt_keynext +#define d_keyprev dt_keyprev +#define d_keyread dt_keyread +#define d_keystore dt_keystore +#define d_lock dt_lock +#define d_makenew dt_makenew +#define d_mapchar dt_mapchar +#define d_members dt_members +#define d_off_opt dt_off_opt +#define d_on_opt dt_on_opt +#define d_open dt_open +#define d_rdcurr dt_rdcurr +#define d_rerdcurr dt_rerdcurr +#define d_recfree dt_recfree +#define d_recfrst dt_recfrst +#define d_reclast dt_reclast +#define d_reclock dt_reclock +#define d_reclstat dt_reclstat +#define d_recover dt_recover +#define d_recread dt_recread +#define d_recset dt_recset +#define d_recwrite dt_recwrite +#define d_renfile dt_renfile +#define d_retries dt_retries +#define d_rlbclr dt_rlbclr +#define d_rlbset dt_rlbset +#define d_rlbtst dt_rlbtst +#define d_set_dberr dt_set_dberr +#define d_setdb dt_setdb +#define d_setfree dt_setfree +#define d_setkey dt_setkey +#define d_setlock dt_setlock +#define d_setlstat dt_setlstat +#define d_setmm dt_setmm +#define d_setmo dt_setmo +#define d_setmr dt_setmr +#define d_setom dt_setom +#define d_setoo dt_setoo +#define d_setor dt_setor +#define d_setrm dt_setrm +#define d_setro dt_setro +#define d_timeout dt_timeout +#define d_trabort dt_trabort +#define d_trbegin dt_trbegin +#define d_trend dt_trend +#define d_wrcurr dt_wrcurr +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dtcover.h */ diff --git a/cde/include/Dt/dtpdmd.h b/cde/include/Dt/dtpdmd.h new file mode 100644 index 00000000..360eb4f9 --- /dev/null +++ b/cde/include/Dt/dtpdmd.h @@ -0,0 +1,82 @@ +/* + * 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: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */ +/****************************************************************************** + ****************************************************************************** + ** + ** File: dtpdmd.h + ** + ** Description: Header file for the "dtpdmd/dtpdm protocol" which + ** consists of a standard command line dtpdmd->dtpdm + ** and starndard exit codes dtpdm->dtpdmd. + ** + ** Other dtpdmd header stuff lives here too. + ** + ** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved. + ** + ****************************************************************************** + *****************************************************************************/ + +/* + * (c) Copyright 1996 Digital Equipment Corporation. + * (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. + */ + +/****************************************************************************** + * + * Standard command line parameters for any PDM which + * will become a child of dtpdmd via fork/exec. + * + * generic_pdm [dt-pdm-command options] [dtpdmd options] + * + * where [dt-pdm-command options] is: + * - any additional options that were specified along with + * the dt-pdm-command attribute from the X Print Server. + * + * where [dtpdmd options] is any of: + * -display dpy Specified the display connection to the Video X-Server. + * -window vwid Specified the window id on dpy. + * -pdisplay pdpy Specified the display connection to the Print X-Server. + * -pcontext pcid Specified the print context id on pdpy. + */ + +/****************************************************************************** + * + * Standard exit() codes for any PDM which is a child of dtpdmd. + */ +#define PDM_EXIT_NONE None +#define PDM_EXIT_OK 191 /* "OK" */ +#define PDM_EXIT_CANCEL 192 /* "CANCEL" */ +#define PDM_EXIT_VXAUTH 193 /* no print display authorization */ +#define PDM_EXIT_PXAUTH 194 /* no video display authorization */ +#define PDM_EXIT_ERROR 195 /* all other error reasons */ + +/* + * Misc information. + */ +#define DEFAULT_PDM_EXECUTABLE "dtpdm" + diff --git a/cde/include/Dt/inittab.h b/cde/include/Dt/inittab.h new file mode 100644 index 00000000..f1aa1eb1 --- /dev/null +++ b/cde/include/Dt/inittab.h @@ -0,0 +1,86 @@ +/* + * 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 + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: sizeof + * + * ORIGINS: 27,157 + * + * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 + * All Rights Reserved + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +/*---------------------------------------------------------------------------- + $XConsortium: inittab.h /main/5 1996/11/25 18:48:42 drk $ + inittab.h: db_VISTA header file containing: + + - Compatible dictionary file versions + + This file is intended to be included in inittab.c only. There are + multiple versions of inittab.c which share this header. + + (An #include "vista.h" must precede this include) + + (C) Copyright 1987 by Raima Corporation. +----------------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 101 21-Jun-88 RSC Added decl for rn_type and rn_dba for ONE_DB + 08-Aug-88 RTK Moved rn_dba and rn_type to vista.h - needed in rec*.c + 18-Aug-88 RSC Moved rn_type/dba to separate table, add curr_rn_table.. + + $Log$ + * Revision 1.2 1995/10/13 18:36:46 miker + * Changed compat_dbd[] from hardcoded str to dbd_VERSION. + * (dbd_VERSION in vista.h changed bcs expanded max file name length.) + * +*/ + + +int db_status = 0; + +/* database dictionary tables */ +INT largest_page = 0; + +char *crloc = NULL; + +INT old_size_ft = 0; +INT old_size_fd = 0; +INT old_size_st = 0; +INT old_size_mt = 0; +INT old_size_srt = 0; +INT old_size_kt = 0; +INT old_size_rt = 0; +INT old_no_of_dbs = 0; + +/* Compatible dictionary versions */ +char *compat_dbd[] = { + dbd_VERSION +}; +int size_compat = sizeof(compat_dbd)/sizeof(*compat_dbd); +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin inittab.h */ diff --git a/cde/include/Dt/ll.h b/cde/include/Dt/ll.h new file mode 100644 index 00000000..49e71c41 --- /dev/null +++ b/cde/include/Dt/ll.h @@ -0,0 +1,66 @@ +/* + * 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: ll.h /main/2 1996/05/09 04:11:29 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: LLIST_INIT + * LL_ELEM_INIT + * ll_access + * ll_append + * ll_deaccess + * ll_first + * ll_free + * ll_next + * ll_prepend + * + * ORIGINS: 157 + * + */ +/* The functions in this file are defined in alloc.c */ + +typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P; + +typedef struct ll_elem { + LL_P next; + CHAR_P data; +} ll_elem; + +#define LL_ELEM_INIT() { POINTER_INIT(), POINTER_INIT() } + +typedef struct { + LL_P head; + LL_P tail; + LL_P *curr; +} llist; + +#define LLIST_INIT() { POINTER_INIT(), POINTER_INIT(), NULL } + +BOOLEAN ll_access(P1(llist *)); +int ll_append(P1(llist *) Pi(CHAR_P *)); +#define ll_deaccess(ll) /**/ +CHAR_P *ll_first(P1(llist *)); +void ll_free(P1(llist *)); +CHAR_P *ll_next(P1(llist *)); +int ll_prepend(P1(llist *) Pi(CHAR_P *)); +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */ diff --git a/cde/include/Dt/ncb.h b/cde/include/Dt/ncb.h new file mode 100644 index 00000000..e985ae82 --- /dev/null +++ b/cde/include/Dt/ncb.h @@ -0,0 +1,125 @@ +/* + * 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: ncb.h /main/2 1996/05/09 04:12:28 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: none + * + * ORIGINS: 157 + * + */ +#define NETNAME_LEN 16 +#ifndef NULL +#define NULL (char *)0 +#endif + +#define NETBIOS_INT 0x5c + +#define ADDNAME 0x30 +#define DELNAME 0x31 +#define RESET 0x32 +#define STATUS 0x33 +#define SESSTAT 0x34 +#define CALL 0x10 +#define LISTEN 0x11 +#define HANGUP 0x12 +#define SEND 0x14 +#define RECEIVE 0x15 +#define ADDNAIT 0xB0 +#define DELNAIT 0xB1 +#define CALNAIT 0x90 +#define LISNAIT 0x91 +#define HANNAIT 0x92 +#define SENNAIT 0x94 +#define RECNAIT 0x95 +#define ARENAIT 0x96 +#define ANY 0xFF +#define PENDING 0xFFFF +#define NCBSIZE 64 + +#ifdef TURBO +#ifdef __SMALL__ +#define SMALL_DATA +#endif +#ifdef __MEDIUM__ +#define SMALL_DATA +#endif +#endif + +#ifdef MSC +#ifdef M_I86SM +#define SMALL_DATA +#endif +#ifdef M_I86MM +#define SMALL_DATA +#endif +#endif + +#ifdef LAT +#ifdef SPTR +#define SMALL_DATA +#endif +#endif + +/***** NCB Commands parameter block *****/ +typedef struct { + char command; /* NETBIOS Command */ + char retcode; /* Return value (some enumerated below) */ + char lsn; /* Local session number */ + char num; /* Name number */ + char *buffer_off; /* Message buffer offset */ +#ifdef SMALL_DATA + int buffer_seg; /* Message buffer segment */ +#endif + int length; /* Length of message buffer */ + char callname[NETNAME_LEN]; /* Name of user being called */ + char name[NETNAME_LEN]; /* My name */ + char rto; /* Receive timeout (500ms units) */ + char sto; /* Send timeout (500ms units) */ + char *post_off; /* Post function offset */ +#ifdef SMALL_DATA + int post_seg; /* Post function segment */ +#endif + char lana_num; /* Local area network adapter number (use 0) */ + char cmd_cplt; /* Command complete return value, used when posting */ + char reserve[14]; /* reserved for Net BIOS */ +} NCB; + +typedef struct { + char rep_sess; + char name_sess; + char gram; + char rcvany; + struct { + char lsn; + char state_sess; + char loc_name[16]; + char rem_name[16]; + char rcvs; + char sends; + } s[32]; +} SESSION; + +#define NCB_H +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ncb.h */ diff --git a/cde/include/Dt/proto.h b/cde/include/Dt/proto.h new file mode 100644 index 00000000..1148aaae --- /dev/null +++ b/cde/include/Dt/proto.h @@ -0,0 +1,281 @@ +/* + * 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: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: ADDRcmp + * ALLOC_TABLE + * INTcmp + * Pi + * alloc_table + * check_dba + * close + * con_dbd + * con_dbf + * dbn_check + * dio_close + * dio_clrfile + * dio_findpg + * dio_get + * dio_open + * dio_out + * dio_pzalloc + * dio_pzdel + * dio_pzgetts + * dio_pznext + * dio_pzread + * dio_pzsetts + * dio_read + * dio_release + * dio_rrlb + * dio_setdef + * dio_touch + * dio_write + * dio_wrlb + * exit + * fldcmp + * free + * get_element + * getenv + * initdbt + * key_bldcom + * key_boundary + * key_cmpcpy + * key_delete + * key_init + * key_insert + * key_locpos + * key_reset + * key_scan + * locking + * lseek + * memcmp + * memcpy + * memset + * nfld_check + * nrec_check + * nset_check + * null_dba + * nw_addnm + * nw_call + * nw_cleanup + * nw_delnm + * nw_hangup + * nw_rcvmsg + * nw_reset + * nw_send + * o_fileinit + * o_pages + * o_pzwrite + * o_search + * o_write + * open_b + * r_chkfld + * r_clropt + * r_delrec + * r_gfld + * r_gmem + * r_gset + * r_pfld + * r_pmem + * r_pset + * r_setopt + * r_smem + * r_tstopt + * read + * startup + * strcat + * strchr + * strcmp + * strcpy + * strlen + * strncmp + * strncpy + * strrchr + * taf_add + * taf_del + * task_switch + * taskinit + * time + * unlink + * write + * + * ORIGINS: 157 + * + */ +/*---------------------------------------------------------------------------- + proto.h: db_VISTA function declaration header file + + (This file must be included after dbtype.h) + + (C) Copyright 1988 by Raima Corporation. +----------------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 03-AUG-88 RTK Added internal MULTI_TASKing function prototypes + 310 10-Aug-88 RSC Cleanup of function prototypes + +*/ + +/* From dberr.c: */ +void dbautorec(void); + +/* From dblfcns.c: */ +int taskinit(TASK *); +int initdbt(const char *); +int alloc_table(CHAR_P *, unsigned, unsigned); +#define ALLOC_TABLE(t, n, o, v) alloc_table((CHAR_P *)(t), n, o) +void termfree(void); + +/* From dio.c: */ +int dio_open(FILE_NO); +int dio_close(FILE_NO); +int dio_init(void); +void dio_free(void); +int dio_clrfile(FILE_NO); +int dio_clear(void); +int dio_flush(void); +void dio_setdef(FILE_NO); +int dio_get(F_ADDR, char **, int); +int dio_touch(F_ADDR); +int dio_read(DB_ADDR, char **, int); +int dio_write(DB_ADDR, const char *, int); +int dio_release(DB_ADDR); +int dio_rrlb(DB_ADDR, INT *); +int dio_wrlb(DB_ADDR, INT); +int dio_findpg(FILE_NO, F_ADDR, PAGE_ENTRY *, PAGE_ENTRY **, LOOKUP_ENTRY **); +int dio_out(PAGE_ENTRY *, LOOKUP_ENTRY *); +int dio_pzread(FILE_NO); +int dio_pzalloc(FILE_NO, F_ADDR *); +int dio_pzdel(FILE_NO, F_ADDR); +F_ADDR dio_pznext(FILE_NO); +void dio_pzclr(void); + +/* From initenv.c: */ +int initenv(void); + +/* From inittab.c: */ +int inittab(void); + +/* From keyfcns.c: */ +int key_open(void); +void key_close(void); +int key_init(int); +int key_reset(FILE_NO); +int key_locpos(const char *, DB_ADDR *); +int key_scan(int, DB_ADDR *); +int key_boundary(int, DB_ADDR *); +int key_insert(int, const char *, DB_ADDR); +int key_delete(int, const char *, DB_ADDR); +/* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm + of key_bldcom as const (see keyfcns.c) */ +int key_bldcom(int, char *, char *, int); +/* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare + the second argument to key_cmpcpy with a const attribute. Hence we + were not able to define the 2nd argument of key_bldcom as const. */ +void key_cmpcpy(char *, char *, INT); + +/* From libfcns.c: */ +int dbn_check(int); +int nset_check(int, int *, SET_ENTRY **); +int nfld_check(long, int *, int *, RECORD_ENTRY **, FIELD_ENTRY **); +int nrec_check(int, int *, RECORD_ENTRY **); +int fldcmp(FIELD_ENTRY *, const char *, const char *); +int INTcmp(const char *, const char *); +int ADDRcmp(const DB_ADDR *, const DB_ADDR *); +int null_dba(const char *); +int check_dba(DB_ADDR); + +/* From makenew.c: */ +int sk_free(void); + +/* From netwdos.c: */ +int netbios_chk(void); +int nw_reset(int, int); +int nw_addnm(char *, int *); +int nw_cleanup(char *); +int nw_sestat(void); +int nw_delnm(char *); +int nw_call(char *, char *, int *); +int nw_hangup(int); +int nw_send(int, MESSAGE *, int); +int nw_rcvmsg(int, MESSAGE *, int, int *); + +/* From opens.c: */ +int open_b(const char *, int); + +/* From ovfcns.c: */ +int o_setup(void); +int o_init(void); +int o_fileinit(FILE_NO); +int o_search(FILE_NO, F_ADDR, F_ADDR *); +int o_write(PAGE_ENTRY *, LOOKUP_ENTRY *); +int o_pzwrite(FILE_NO); +int o_flush(void); +int o_update(void); +long o_pages(FILE_NO); +void o_free(void); + +/* From recfcns.c: */ +int r_chkfld(INT, FIELD_ENTRY *, char *, const char *); +int r_delrec(INT, DB_ADDR); +int r_gfld(FIELD_ENTRY *, char *, char *); +int r_gmem(int, char *, char *); +int r_gset(int, char *, char *); +int r_pfld(INT, FIELD_ENTRY *, char *, const char *, DB_ADDR *); +int r_pmem(int, char *, char *); +int r_pset(int, char *, char *); +int r_smem(DB_ADDR *, INT); +int r_setopt(FIELD_ENTRY *, char *); +int r_clropt(FIELD_ENTRY *, char *); +int r_tstopt(FIELD_ENTRY *, char *); + +/* From pathfcns.c */ +int con_dbd(char *, char *, char *); +int con_dbf(char *, char *, char *, char *); +char * get_element(char *, int); + +/* From renfile.c: */ +int renfiles(void); + +/* From startup.c: */ +int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di); + +/* From taffcns.c: */ +int taf_open(void); +int taf_close(void); +int taf_access(void); +int taf_release(void); +int taf_add(const char *); +int taf_del(const char *); + +/* From mapchar.c */ +int ctb_init(void); +int ctbl_alloc(void); +void ctbl_free(void); + +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */ diff --git a/cde/include/Dt/task.h b/cde/include/Dt/task.h new file mode 100644 index 00000000..1567fb9a --- /dev/null +++ b/cde/include/Dt/task.h @@ -0,0 +1,479 @@ +/* + * 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: task.h /main/2 1996/05/09 04:20:28 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: Pi + * d_close + * d_cmstat + * d_cmtype + * d_connect + * d_costat + * d_cotype + * d_crget + * d_crread + * d_crset + * d_crstat + * d_crtype + * d_crwrite + * d_csmget + * d_csmread + * d_csmset + * d_csmwrite + * d_csoget + * d_csoread + * d_csoset + * d_csowrite + * d_csstat + * d_ctscm + * d_ctsco + * d_ctscr + * d_dbdpath + * d_dbfpath + * d_dblog + * d_dbuserid + * d_delete + * d_destroy + * d_discon + * d_disdel + * d_fillnew + * d_findco + * d_findfm + * d_findlm + * d_findnm + * d_findpm + * d_freeall + * d_gtscm + * d_gtsco + * d_gtscr + * d_gtscs + * d_initfile + * d_initialize + * d_ismember + * d_isowner + * d_keydel + * d_keyexist + * d_keyfind + * d_keyfree + * d_keyfrst + * d_keylast + * d_keylock + * d_keylstat + * d_keynext + * d_keyprev + * d_keyread + * d_keystore + * d_lock + * d_makenew + * d_members + * d_off_opt + * d_on_opt + * d_open + * d_rdcurr + * d_recfree + * d_recfrst + * d_reclast + * d_reclock + * d_reclstat + * d_recnext + * d_recover + * d_recprev + * d_recread + * d_recset + * d_recstat + * d_recwrite + * d_renfile + * d_rerdcurr + * d_retries + * d_rlbclr + * d_rlbset + * d_rlbtst + * d_set_dberr + * d_setdb + * d_setfree + * d_setkey + * d_setlock + * d_setlstat + * d_setmm + * d_setmo + * d_setmr + * d_setom + * d_setoo + * d_setor + * d_setrm + * d_setro + * d_stscm + * d_stsco + * d_stscr + * d_stscs + * d_timeout + * d_trabort + * d_trbegin + * d_trend + * d_utscm + * d_utsco + * d_utscr + * d_utscs + * d_wrcurr + * dt_closetask + * dt_cmstat + * dt_cmtype + * dt_connect + * dt_costat + * dt_cotype + * dt_crget + * dt_crread + * dt_crset + * dt_crtype + * dt_crwrite + * dt_csmget + * dt_csmread + * dt_csmset + * dt_csmwrite + * dt_csoget + * dt_csoread + * dt_csoset + * dt_csowrite + * dt_csstat + * dt_ctbpath + * dt_ctscm + * dt_ctsco + * dt_ctscr + * dt_dbdpath + * dt_dbfpath + * dt_dblog + * dt_dbuserid + * dt_destroy + * dt_discon + * dt_fillnew + * dt_findco + * dt_findfm + * dt_findlm + * dt_findnm + * dt_findpm + * dt_gtscm + * dt_gtsco + * dt_gtscr + * dt_gtscs + * dt_initfile + * dt_ismember + * dt_isowner + * dt_keydel + * dt_keyexist + * dt_keyfind + * dt_keyfree + * dt_keyfrst + * dt_keylast + * dt_keylock + * dt_keylstat + * dt_keynext + * dt_keyprev + * dt_keyread + * dt_keystore + * dt_lock + * dt_makenew + * dt_mapchar + * dt_members + * dt_off_opt + * dt_on_opt + * dt_open + * dt_opentask + * dt_rdcurr + * dt_recfree + * dt_recfrst + * dt_reclast + * dt_reclock + * dt_reclstat + * dt_recover + * dt_recread + * dt_recset + * dt_recstat + * dt_recwrite + * dt_renfile + * dt_rerdcurr + * dt_retries + * dt_set_dberr + * dt_setdb + * dt_setfree + * dt_setkey + * dt_setlock + * dt_setlstat + * dt_setmm + * dt_setmo + * dt_setmr + * dt_setom + * dt_setoo + * dt_setor + * dt_setrm + * dt_setro + * dt_stscm + * dt_stsco + * dt_stscr + * dt_stscs + * dt_timeout + * dt_trbegin + * dt_utscm + * dt_utsco + * dt_utscr + * dt_utscs + * dt_wrcurr + * + * ORIGINS: 157 + * + */ +/*---------------------------------------------------------------------------- + task.h: db_VISTA task cover function declaration header file + + (C) Copyright 1988 by Raima Corporation. +----------------------------------------------------------------------------*/ +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP +*/ + + +int EXTERNAL_FIXED dt_opentask(P1(DB_TASK *)); +int EXTERNAL_FIXED dt_closetask(P1(DB_TASK)); + +int EXTERNAL_FIXED dt_close(TASK_D1); /* dblfcns.c */ +int EXTERNAL_DBN dt_cmstat(P1(int) TASK_Di DBN_Dn); /* cmstat.c */ +int EXTERNAL_DBN dt_cmtype(P1(int) Pi(int *) TASK_Di DBN_Dn); + /* cmtype.c */ +int EXTERNAL_DBN dt_connect(P1(int) TASK_Di DBN_Dn); /* connect.c */ +int EXTERNAL_DBN dt_cotype(P1(int) Pi(int *) TASK_Di DBN_Dn); + /* cotype.c */ +int EXTERNAL_DBN dt_crget(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crget.c */ +int EXTERNAL_DBN dt_crread(P1(long) Pi(char *) TASK_Di DBN_Dn); + /* crread.c */ +int EXTERNAL_DBN dt_crset(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crset.c */ +int EXTERNAL_DBN dt_crtype(P1(int *) TASK_Di DBN_Dn); /* crtype.c */ +int EXTERNAL_DBN dt_crwrite(P1(long) Pi(char *) TASK_Di DBN_Dn); + /* crwrite.c */ +int EXTERNAL_DBN dt_csmget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); + /* csmget.c */ +int EXTERNAL_DBN dt_csmread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); + /* csmread.c */ +int EXTERNAL_DBN dt_csmset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); + /* csmset.c */ +int EXTERNAL_DBN dt_csmwrite(P1(int) Pi(long) Pi(const char *) TASK_Di + DBN_Dn); /* csmwrite.c */ +int EXTERNAL_DBN dt_csoget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); + /* csoget.c */ +int EXTERNAL_DBN dt_csoread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); + /* csoread.c */ +int EXTERNAL_DBN dt_csoset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); + /* csoset.c */ +int EXTERNAL_DBN dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di + DBN_Dn); /* csowrite.c */ +int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di); /* pathfcns.c */ +int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di ); /* dbdpath.c */ +int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di ); /* dbfpath.c */ +int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di ); /* dblog.c */ +int EXTERNAL_FIXED dt_dbuserid(P1(const char *) TASK_Di ); /* dbuserid.c */ +int EXTERNAL_DBN dt_delete(TASK_D1 DBN_Dn); /* delete.c */ +int EXTERNAL_DBN dt_disdel(TASK_D1 DBN_Dn); /* disdel.c */ +int EXTERNAL_DBN dt_recnext(TASK_D1 DBN_Dn); /* recnext.c */ +int EXTERNAL_DBN dt_recprev(TASK_D1 DBN_Dn); /* recprev.c */ +int EXTERNAL_FIXED dt_destroy(P1(const char *) TASK_Di ); /* destroy.c */ +int EXTERNAL_DBN dt_discon(P1(int) TASK_Di DBN_Dn); /* discon.c */ +int EXTERNAL_DBN dt_fillnew(P1(int) Pi(const char *) TASK_Di DBN_Dn); + /* fillnew.c */ +int EXTERNAL_DBN dt_findco(P1(int) TASK_Di DBN_Dn); /* findco.c */ +int EXTERNAL_DBN dt_findfm(P1(int) TASK_Di DBN_Dn); /* findfm.c */ +int EXTERNAL_DBN dt_findlm(P1(int) TASK_Di DBN_Dn); /* findlm.c */ +int EXTERNAL_DBN dt_findnm(P1(int) TASK_Di DBN_Dn); /* findnm.c */ +int EXTERNAL_DBN dt_findpm(P1(int) TASK_Di DBN_Dn); /* findpm.c */ +int EXTERNAL_FIXED dt_freeall(TASK_D1); /* dblfcns.c */ +int EXTERNAL_DBN dt_initialize(TASK_D1 DBN_Dn); /* initial.c */ +int EXTERNAL_DBN dt_initfile(P1(FILE_NO) TASK_Di DBN_Dn); /* initial.c */ +int EXTERNAL_DBN dt_ismember(P1(int) TASK_Di DBN_Dn); /* ismember.c */ +int EXTERNAL_DBN dt_isowner(P1(int) TASK_Di DBN_Dn); /* isowner.c */ +int EXTERNAL_DBN dt_keydel(P1(long) TASK_Di DBN_Dn); /* keydel.c */ +int EXTERNAL_DBN dt_keyexist(P1(long) TASK_Di DBN_Dn); /* keyexist.c */ +int EXTERNAL_DBN dt_keyfind(P1(long) Pi(const char *) TASK_Di DBN_Dn); + /* keyfind.c */ +int EXTERNAL_DBN dt_keyfree(P1(long) TASK_Di DBN_Dn); /* dblfcns.c */ +int EXTERNAL_DBN dt_keyfrst(P1(long) TASK_Di DBN_Dn); /* keyfrst.c */ +int EXTERNAL_DBN dt_keylast(P1(long) TASK_Di DBN_Dn); /* keylast.c */ +int EXTERNAL_DBN dt_keylock(P1(long) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_keylstat(P1(long) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_keynext(P1(long) TASK_Di DBN_Dn); /* keynext.c */ +int EXTERNAL_DBN dt_keyprev(P1(long) TASK_Di DBN_Dn); /* keyprev.c */ +int EXTERNAL_FIXED dt_keyread(P1(char *) TASK_Di ); /* keyfcns.c */ +int EXTERNAL_DBN dt_keystore(P1(long) TASK_Di DBN_Dn); /* keystore.c */ +int EXTERNAL_DBN dt_lock(P1(int) Pi(LOCK_REQUEST *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_makenew(P1(int) TASK_Di DBN_Dn); /* makenew.c */ +int EXTERNAL_FIXED dt_mapchar(P1(unsigned char) Pi(unsigned char) + Pi(const char *) Pi(unsigned char) TASK_Di); + /* mapchar.c */ +int EXTERNAL_DBN dt_members(P1(int) Pi(LONG *) TASK_Di DBN_Dn); + /* members.c */ +int EXTERNAL_FIXED dt_off_opt(P1(int) TASK_Di ); /* options.c */ +int EXTERNAL_FIXED dt_on_opt(P1(int) TASK_Di ); /* options.c */ +int EXTERNAL_FIXED dt_open(P1(const char *) Pi(const char *) TASK_Di); + /* dblfcns.c */ +int EXTERNAL_FIXED dt_rdcurr(P1(DB_ADDR **) Pi(int *) TASK_Di); + /* rwcurr.c */ +int EXTERNAL_FIXED dt_rerdcurr(P1(DB_ADDR **) TASK_Di); /* rwcurr.c */ +int EXTERNAL_FIXED dt_wrcurr(P1(DB_ADDR *) TASK_Di); /* rwcurr.c */ +int EXTERNAL_DBN dt_recfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */ +int EXTERNAL_DBN dt_recfrst(P1(int) TASK_Di DBN_Dn); /* recfrst.c */ +int EXTERNAL_DBN dt_reclast(P1(int) TASK_Di DBN_Dn); /* reclast.c */ +int EXTERNAL_DBN dt_reclock(P1(int) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_reclstat(P1(int) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_FIXED dt_recover(P1(const char *) TASK_Di ); /* recover.c */ +int EXTERNAL_DBN dt_recread(P1(char *) TASK_Di DBN_Dn); /* recread.c */ +int EXTERNAL_DBN dt_recset(P1(int) TASK_Di DBN_Dn); /* recset.c */ +int EXTERNAL_DBN dt_recwrite(P1(const char *) TASK_Di DBN_Dn); + /* recwrite.c */ +int EXTERNAL_FIXED dt_renfile(P1(const char *) Pi(FILE_NO) + Pi(const char *) TASK_Di); /* renfile.c */ +int EXTERNAL_FIXED dt_retries(P1(int) TASK_Di ); /* dblfcns.c */ +int EXTERNAL_FIXED dt_rlbclr(TASK_D1); /* dblfcns.c */ +int EXTERNAL_FIXED dt_rlbset(TASK_D1); /* dblfcns.c */ +int EXTERNAL_FIXED dt_rlbtst(TASK_D1); /* dblfcns.c */ +int EXTERNAL_FIXED dt_set_dberr(P1(FARPROC) TASK_Di); /* dberr.c */ +int EXTERNAL_FIXED dt_setdb(P1(int) TASK_Di); /* setdb.c */ +int EXTERNAL_DBN dt_setfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */ +int EXTERNAL_DBN dt_setkey(P1(long) Pi(const char *) TASK_Di DBN_Dn); + /* makenew.c */ +int EXTERNAL_DBN dt_setlock(P1(int) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_setlstat(P1(int) Pi(char *) TASK_Di DBN_Dn); + /* dblfcns.c */ +int EXTERNAL_DBN dt_setmm(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmm.c */ +int EXTERNAL_DBN dt_setmo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmo.c */ +int EXTERNAL_DBN dt_setmr(P1(int) TASK_Di DBN_Dn); /* setmr.c */ +int EXTERNAL_DBN dt_setom(P1(int) Pi(int) TASK_Di DBN_Dn); /* setom.c */ +int EXTERNAL_DBN dt_setoo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setoo.c */ +int EXTERNAL_DBN dt_setor(P1(int) TASK_Di DBN_Dn); /* setor.c */ +int EXTERNAL_DBN dt_setrm(P1(int) TASK_Di DBN_Dn); /* setrm.c */ +int EXTERNAL_DBN dt_setro(P1(int) TASK_Di DBN_Dn); /* setro.c */ +int EXTERNAL_FIXED dt_timeout(P1(int) TASK_Di ); /* dblfcns.c */ +int EXTERNAL_FIXED dt_trabort(TASK_D1); /* dblfcns.c */ +int EXTERNAL_FIXED dt_trbegin(P1(const char *) TASK_Di); /* dblfcns.c */ +int EXTERNAL_FIXED dt_trend(TASK_D1); /* dblfcns.c */ + +#ifndef NO_DT_COVER + +#define d_close() dt_close(CURRTASK_ONLY) +#define d_dbdpath(a) dt_dbdpath(a CURRTASK_PARM) +#define d_dbfpath(a) dt_dbfpath(a CURRTASK_PARM) +#define d_dblog(a) dt_dblog(a CURRTASK_PARM) +#define d_dbuserid(a) dt_dbuserid(a CURRTASK_PARM) +#define d_destroy(a) dt_destroy(a CURRTASK_PARM) +#define d_freeall() dt_freeall(CURRTASK_ONLY) +#define d_off_opt(a) dt_off_opt(a CURRTASK_PARM) +#define d_on_opt(a) dt_on_opt(a CURRTASK_PARM) +#define d_open(a, b) dt_open(a, b CURRTASK_PARM) +#define d_rdcurr(a, b) dt_rdcurr(a, b CURRTASK_PARM) +#define d_rerdcurr(a, b) dt_rerdcurr(a, b CURRTASK_PARM) +#define d_recover(a) dt_recover(a CURRTASK_PARM) +#define d_renfile(a, b, c) dt_renfile(a, b, c CURRTASK_PARM) +#define d_retries(a) dt_retries(a CURRTASK_PARM) +#define d_set_dberr(a, b) dt_set_dberr(a, b, CURRTASK_PARM) +#define d_setdb(a) dt_setdb(a CURRTASK_PARM) +#define d_timeout(a) dt_timeout(a CURRTASK_PARM) +#define d_trabort() dt_trabort(CURRTASK_ONLY) +#define d_trbegin(a) dt_trbegin(a CURRTASK_PARM) +#define d_trend() dt_trend(CURRTASK_ONLY) +#define d_wrcurr(a) dt_wrcurr(a CURRTASK_PARM) + +#define d_cmstat(a , dbn) dt_cmstat(a CURRTASK_PARM , dbn) +#define d_cmtype(a, b , dbn) dt_cmtype(a, b CURRTASK_PARM , dbn) +#define d_connect(a , dbn) dt_connect(a CURRTASK_PARM , dbn) +#define d_cotype(a, b , dbn) dt_cotype(a, b CURRTASK_PARM , dbn) +#define d_crget(a , dbn) dt_crget(a CURRTASK_PARM , dbn) +#define d_crread(a, b , dbn) dt_crread(a, b CURRTASK_PARM , dbn) +#define d_crset(a , dbn) dt_crset(a CURRTASK_PARM , dbn) +#define d_crtype(a , dbn) dt_crtype(a CURRTASK_PARM , dbn) +#define d_crwrite(a, b , dbn) dt_crwrite(a, b CURRTASK_PARM , dbn) +#define d_csmget(a, b , dbn) dt_csmget(a, b CURRTASK_PARM , dbn) +#define d_csmread(a, b, c , dbn) dt_csmread(a, b, c CURRTASK_PARM , dbn) +#define d_csmset(a, b , dbn) dt_csmset(a, b CURRTASK_PARM , dbn) +#define d_csmwrite(a, b, c , dbn) dt_csmwrite(a, b, c CURRTASK_PARM , dbn) +#define d_csoget(a, b , dbn) dt_csoget(a, b CURRTASK_PARM , dbn) +#define d_csoread(a, b, c , dbn) dt_csoread(a, b, c CURRTASK_PARM , dbn) +#define d_csoset(a, b , dbn) dt_csoset(a, b CURRTASK_PARM , dbn) +#define d_csowrite(a, b, c , dbn) dt_csowrite(a, b, c CURRTASK_PARM , dbn) +#define d_delete(, dbn) dt_delete(CURRTASK_ONLY , dbn) +#define d_disdel(, dbn) dt_disdel(CURRTASK_ONLY , dbn) +#define d_recnext(, dbn) dt_recnext(CURRTASK_ONLY , dbn) +#define d_recprev(, dbn) dt_recprev(CURRTASK_ONLY , dbn) +#define d_discon(a , dbn) dt_discon(a CURRTASK_PARM , dbn) +#define d_fillnew(a, b , dbn) dt_fillnew(a, b CURRTASK_PARM , dbn) +#define d_findco(a , dbn) dt_findco(a CURRTASK_PARM , dbn) +#define d_findfm(a , dbn) dt_findfm(a CURRTASK_PARM , dbn) +#define d_findlm(a , dbn) dt_findlm(a CURRTASK_PARM , dbn) +#define d_findnm(a , dbn) dt_findnm(a CURRTASK_PARM , dbn) +#define d_findpm(a , dbn) dt_findpm(a CURRTASK_PARM , dbn) +#define d_initialize(, dbn) dt_initialize(CURRTASK_ONLY , dbn) +#define d_initfile(a , dbn) dt_initfile(a CURRTASK_PARM , dbn) +#define d_ismember(a , dbn) dt_ismember(a CURRTASK_PARM , dbn) +#define d_isowner(a , dbn) dt_isowner(a CURRTASK_PARM , dbn) +#define d_keydel(a , dbn) dt_keydel(a CURRTASK_PARM , dbn) +#define d_keyexist(a , dbn) dt_keyexist(a CURRTASK_PARM , dbn) +#define d_keyfind(a, b , dbn) dt_keyfind(a, b CURRTASK_PARM , dbn) +#define d_keyfree(a , dbn) dt_keyfree(a CURRTASK_PARM , dbn) +#define d_keyfrst(a , dbn) dt_keyfrst(a CURRTASK_PARM , dbn) +#define d_keylast(a , dbn) dt_keylast(a CURRTASK_PARM , dbn) +#define d_keylock(a, b , dbn) dt_keylock(a, b CURRTASK_PARM , dbn) +#define d_keylstat(a, b , dbn) dt_keylstat(a, b CURRTASK_PARM , dbn) +#define d_keynext(a , dbn) dt_keynext(a CURRTASK_PARM , dbn) +#define d_keyprev(a , dbn) dt_keyprev(a CURRTASK_PARM , dbn) +#define d_keyread(a , dbn) dt_keyread(a CURRTASK_PARM) +#define d_keystore(a , dbn) dt_keystore(a CURRTASK_PARM , dbn) +#define d_lock(a, b , dbn) dt_lock(a, b CURRTASK_PARM , dbn) +#define d_makenew(a , dbn) dt_makenew(a CURRTASK_PARM , dbn) +#define d_members(a, b , dbn) dt_members(a, b CURRTASK_PARM , dbn) +#define d_recfree(a , dbn) dt_recfree(a CURRTASK_PARM , dbn) +#define d_recfrst(a , dbn) dt_recfrst(a CURRTASK_PARM , dbn) +#define d_reclast(a , dbn) dt_reclast(a CURRTASK_PARM , dbn) +#define d_reclock(a, b , dbn) dt_reclock(a, b CURRTASK_PARM , dbn) +#define d_reclstat(a, b , dbn) dt_reclstat(a, b CURRTASK_PARM , dbn) +#define d_recread(a , dbn) dt_recread(a CURRTASK_PARM , dbn) +#define d_recset(a , dbn) dt_recset(a CURRTASK_PARM , dbn) +#define d_recwrite(a , dbn) dt_recwrite(a CURRTASK_PARM , dbn) +#define d_setfree(a , dbn) dt_setfree(a CURRTASK_PARM , dbn) +#define d_setkey(a, b , dbn) dt_setkey(a, b CURRTASK_PARM , dbn) +#define d_setlock(a, b , dbn) dt_setlock(a, b CURRTASK_PARM , dbn) +#define d_setlstat(a, b , dbn) dt_setlstat(a, b CURRTASK_PARM , dbn) +#define d_setmm(a, b , dbn) dt_setmm(a, b CURRTASK_PARM , dbn) +#define d_setmo(a, b , dbn) dt_setmo(a, b CURRTASK_PARM , dbn) +#define d_setmr(a , dbn) dt_setmr(a CURRTASK_PARM , dbn) +#define d_setom(a, b , dbn) dt_setom(a, b CURRTASK_PARM , dbn) +#define d_setoo(a, b , dbn) dt_setoo(a, b CURRTASK_PARM , dbn) +#define d_setor(a , dbn) dt_setor(a CURRTASK_PARM , dbn) +#define d_setrm(a , dbn) dt_setrm(a CURRTASK_PARM , dbn) +#define d_setro(a , dbn) dt_setro(a CURRTASK_PARM , dbn) + +#endif /* NO_DT_COVER */ +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC task.h */ diff --git a/cde/include/Dt/trxlog.h b/cde/include/Dt/trxlog.h new file mode 100644 index 00000000..bdc8ce1b --- /dev/null +++ b/cde/include/Dt/trxlog.h @@ -0,0 +1,87 @@ +/* + * 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: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: BITMAP_SIZE + * BM_BASE + * IX_BASE + * IX_SIZE + * PZ_BASE + * + * ORIGINS: 157 + * + */ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis +*/ + + +/* trxlog.h - header file to define structures, constants, etc. for the + memory cache overflow and transaction log file control +========================================================================== +*/ +/* + The following constants control the functioning of the cache overflow + and transaction logging processes + + BUI The number of bits in an unsigned int + IX_PAGESIZE The size (in bytes) of an index page + IX_EPP The number of entries that will fit on an index page + BITMAP_SIZE The size of the index bitmap (in unsigned int units) + IX_SIZE The number of index pages needed to control the db pages + OADDR_OF_IXP Calculates the overflow file address of an index page # + +========================================================================== +*/ +/* (BITS(unsigned int)) */ +#define BUI (8*sizeof(unsigned int)) + + +/* +========================================================================== +*/ + +/* page zero table entry */ +#define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG)) +typedef struct PGZERO_S { + F_ADDR pz_dchain; /* delete chain pointer */ + F_ADDR pz_next; /* next available record number */ + ULONG pz_timestamp; /* file's timestamp value */ + BOOLEAN pz_modified; /* TRUE if page zero has been modified */ +} PGZERO; + +/* binary search lookup table entry */ + + +/* Maximum number of transactions which can commit a time */ +#define TAFLIMIT 1 + +#define TRXLOG_H +/* End - trxlog.h */ +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */ diff --git a/cde/include/Dt/vista.h b/cde/include/Dt/vista.h new file mode 100644 index 00000000..a0ace537 --- /dev/null +++ b/cde/include/Dt/vista.h @@ -0,0 +1,342 @@ +/* + * 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 + */ +/* + * COMPONENT_NAME: austext + * + * FUNCTIONS: P1 + * POINTER_ASSIGN + * POINTER_INIT + * Pi + * Piv + * Pv + * int + * + * ORIGINS: 27,157 + * + * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 + * All Rights Reserved + * US Government Users Restricted Rights - Use, duplication or + * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. + */ +/*---------------------------------------------------------------------- + $TOG: vista.h /main/7 1998/04/03 17:10:52 mgreess $ + vista.h: db_VISTA standard header file + + This file should be included in all programs which use db_VISTA. It + contains database status/error code definitions and standard type + definitions. + + This file should only include user-oriented constructs. + + (C) Copyright 1984, 1985, 1986, 1987 by Raima Corp. + +----------------------------------------------------------------------*/ + +/* ********************** EDIT HISTORY ******************************* + + SCR DATE INI DESCRIPTION +----- --------- --- ----------------------------------------------------- + 03-AUG-88 RTK Multi-tasking support - see "#ifdef MULTI_TASK" + 08-AUG-88 RTK Declared globals rn_dba, rn_type, and ft_offset to + support recfrst, recnext, etc in ONE_DB mode. + 16-Sep-88 RSC Fixed DBN_Dx to use variable # of arg macros. + 28-Sep-88 WLW Corrected the db_VERSION to 3.10 from 3.01. + 11-Oct-88 RSC Fixed DBN_Dx to use variable # of arg macros (again) + 11-Oct-88 RSC Fixed ONE_DB to compile correctly + 17-Oct-88 RSC Replaced MSC with ANSI, moved compiler check to dbtype + 439 17-Nov-88 RSC Placed some multi-tasking stuff within MULTI_TASK + 441 06-Dec-88 RSC Modifications to make gen lockmgr work with 3.10 + 26-Jan-89 RSC Add defn for UINT (for lockmgr) + 420 13-Feb-89 WLW Removed unused prototypes of {Make,Free}ProcInstance + * + * $Log$ + * Revision 1.2 1995/10/17 18:33:01 miker + * Added global db_oflag, changed values of db_VERSION and dbd_VERSION: + * - Allow access to read-only databases. + * - Expand maximum file names from 48 to 240 chars (DtSrFILENMLEN). + * - Disable transaction processing (NO_TRANS) to obviate need + * for vista.taf and vista.log files. + * - Disregard all environment variables. + * - Replace default dberr.c with one that doesn't read stdin. + * - Rename library from libvista to prevent confusion with old code. + * - Prefix all vista utility names with "dt...", also to deconfuse. + * + */ +#if defined(__linux__) +# define __SVR4_I386_ABI_L1__ +#endif +#include /* pickup WORD_BIT, LONG_BIT */ +#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) +# undef __SVR4_I386_ABI_L1__ +# ifndef WORD_BIT +# define WORD_BIT 32 +# endif +# ifndef LONG_BIT +# define LONG_BIT 32 +# endif +#endif + +#define db_VERSION "3.dt" /* was "3.10" */ +#define dbd_VERSION "V3.dt\032" /* was "V3.00\032" */ + +/* -------------------status codes-------------------- */ +/* user errors */ +#define S_DBOPEN -1 /* database not opened */ +#define S_INVSET -2 /* invalid set */ +#define S_INVREC -3 /* invalid record */ +#define S_INVDB -4 /* invalid database */ +#define S_INVFLD -5 /* invalid field name */ +#define S_INVADDR -6 /* invalid db_address */ +#define S_NOCR -7 /* no current record */ +#define S_NOCO -8 /* set has no current owner */ +#define S_NOCM -9 /* set has no current member */ +#define S_KEYREQD -10 /* key value required */ +#define S_BADTYPE -11 /* invalid lock type */ +#define S_HASMEM -12 /* record is owner of non-empty set(s) */ +#define S_ISMEM -13 /* record is member of set(s) */ +#define S_ISOWNED -14 /* member already owned */ +#define S_ISCOMKEY -15 /* field is a compound key */ +#define S_NOTCON -16 /* record not connected to set */ +#define S_NOTKEY -17 /* field is not a valid key */ +#define S_INVOWN -18 /* record not legal owner of set */ +#define S_INVMEM -19 /* record not legal member of set */ +#define S_SETPAGES -20 /* error in d_setpages (database open or bad param) */ +#define S_INCOMPAT -21 /* incompatible dictionary file */ +#define S_DELSYS -22 /* illegal attempt to delete system record */ +#define S_NOTFREE -23 /* attempt to locked previously locked rec or set */ +#define S_NOTLOCKED -24 /* attempt to access unlocked record or set */ +#define S_TRANSID -25 /* transaction id not be supplied */ +#define S_TRACTIVE -26 /* transaction already active */ +#define S_TRNOTACT -27 /* transaction not currently active */ +#define S_TRLOCKS -28 /* transaction cannot begin due to locked files */ +#define S_TRFREE -29 /* attempt to free a lock inside a transaction */ +#define S_TRCHANGES -30 /* too many pages changed within transaction */ +#define S_NOTRANS -31 /* attempted update outside of transaction */ +#define S_EXCLUSIVE -32 /* functions requires exclusive db access */ +#define S_STATIC -33 /* Attempted to write lock a static file */ +#define S_USERID -34 /* No user id exists */ +#define S_NAMELEN -35 /* database file/path name too long */ +#define S_RENAME -36 /* invalid file number was passed to d_renfile */ +#define S_NOTOPTKEY -37 /* field is not an optional key */ +#define S_BADFIELD -38 /* field not defined in current record type */ +#define S_COMKEY -39 /* record/field has/in a compound key */ +#define S_INVNUM -40 /* invalid record or set number */ +#define S_TIMESTAMP -41 /* record or set not timestamped */ +#define S_BADUSERID -42 /* invalid user id - not alphanumeric */ +#define S_NONETBIOS -43 /* NetBIOS is not installed on machine */ +#define S_BADBDPATH -44 /* bad # of elements in DBDPATH */ +#define S_BADBFPATH -45 /* bad # of elements in DBFPATH */ +#define S_NOTYPE -46 /* No current record type */ +#define S_INVSORT -47 /* Invalid country table sort string */ +#define S_DBCLOSE -48 /* database not closed */ + +/* system errors */ +#define S_NOSPACE -900 /* no more space on file */ +#define S_SYSERR -901 /* system error */ +#define S_FAULT -902 /* page fault -- changed during usage */ +#define S_NOWORK -903 /* no working file set in dio */ +#define S_NOMEMORY -904 /* unable to allocate sufficient memory */ +#define S_NOFILE -905 /* unable to locate a file */ +#define S_DBLACCESS -906 /* unable to access db lock file */ +#define S_DBLERR -907 /* db lock file open/access error */ +#define S_BADLOCKS -908 /* inconsistent database locks */ +#define S_RECLIMIT -909 /* file record limit reached */ +#define S_KEYERR -910 /* key file inconsistency detected */ +#define S_USERLIMIT -911 /* Max concurrent user limit reached */ +#define S_FSEEK -912 /* Bad seek on database file */ +#define S_INVFILE -913 /* Invalid file specified */ +#define S_BADREAD -914 /* Bad read on database/overflow file */ +#define S_NETSYNC -915 /* Network synchronization error */ +#define S_DEBUG -916 /* Debugging check interrupt */ +#define S_NETERR -917 /* Network communications error */ +#define S_RECOVERY -918 /* Auto-recovery is in process */ +#define S_BADWRITE -919 /* Bad write on database/overflow file */ +#define S_NOLOCKMGR -920 /* Unable to open lockmgr session */ +#define S_DUPUSERID -921 /* DBUSERID is already used by another user */ +#define S_LMBUSY -922 /* The lock manager is busy */ + +/* function statuses */ +#define S_OKAY 0 /* normal return, okay */ +#define S_EOS 1 /* end of set */ +#define S_NOTFOUND 2 /* record not found */ +#define S_DUPLICATE 3 /* duplicate key */ +#define S_KEYSEQ 4 /* field type used out of sequence in d_keynext */ +#define S_UNAVAIL 5 /* database file currently unavailable */ +#define S_DELETED 6 /* record/set deleted since last accessed */ +#define S_UPDATED 7 /* record/set updated since last accessed */ +#define S_LOCKED 8 /* current record's lock bit is set */ +#define S_UNLOCKED 9 /* current record's lock bit is clear */ + +/* In order to share databases among heterogenous machines, + * certain integer types must be defined that are invariably + * 2 and 4 bytes on all architectures. + * Note WORD_BIT == 32 does not guarantee short == 16. + */ + +#ifdef LONG +#undef LONG +#endif + +#if (WORD_BIT == 16) + typedef int INT; + typedef unsigned int UINT; +#elif (WORD_BIT == 32) + typedef short INT; + typedef unsigned short UINT; +#else +#error Unable to typedef INT and UINT +#endif + +#if (LONG_BIT == 32) + typedef long LONG; + typedef unsigned long ULONG; +#elif (WORD_BIT == 32) + typedef int LONG; + typedef unsigned int ULONG; +#else +#error Unable to typedef LONG and ULONG +#endif + +typedef LONG BOOLEAN; + +#define MAXRECORDS 16777215 +#define NULL_DBA 0 + +/* db_VISTA database address */ +#define DB_ADDR LONG + +/* db_VISTA file number */ +#define FILE_NO INT + +/* file address: page or record number */ +#define F_ADDR LONG + +/* record number indicator */ +#define RECMARK 10000 +/* field number indicator = rec * FLDMARK + fld_in_rec */ +#define FLDMARK 1000 +/* set number indicator - must be greater than RECMARK */ +#define SETMARK 20000 + +/* runtime option flags */ +#define DCHAINUSE 0x01 +#define TRLOGGING 0x02 +#define ARCLOGGING 0x04 +#define IGNORECASE 0x08 + +/* grouped lock request packet */ +extern int db_status; + +/* Mike Russell's custom open() flag. Default is O_RDWR. + * Change to O_RDONLY prior to d_open() if not updating + * the databases, if their permissions do not allow + * writing, if they're on cd-roms, etc. + * Not used internally for open functions that are known + * to require write permissions (eg initializations), + * or known to be read-only. + */ +extern int db_oflag; + +#ifndef GENERAL /* GENERAL lockmgr */ +#ifdef MSC /* MSC */ +#ifndef NO_EXT_KEYWORDS /* NO_EXT_KEYWORDS */ +#ifndef PASCAL /* PASCAL */ +#define PASCAL pascal +#endif /* PASCAL */ +#ifndef CDECL /* CDECL */ +#define CDECL cdecl +#endif /* CDECL */ +#endif /* NO_EXT_KEYWORDS */ +#endif /* MSC */ +#endif /* GENERAL lockmgr */ + +#ifndef PASCAL +#define PASCAL /**/ +#endif + +#ifndef CDECL +#define CDECL /**/ +#endif + +#define EXTERNAL_FIXED PASCAL +#define EXTERNAL_VARIABLE CDECL +#define INTERNAL_FIXED PASCAL +#define INTERNAL_VARIABLE CDECL + +typedef int (PASCAL *FARPROC)(); +typedef char *HANDLE; + +#define LOCK_DESC /**/ +#define POINTER_INIT() { NULL } +#define POINTER_ASSIGN(a) { a } + +typedef struct {char *ptr; LOCK_DESC} CHAR_P; +typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P; + + +/* Allow for function prototyping */ +#ifdef LINT_ARGS +#define P0 void /* parameterless function */ +#define P1(t) t /* first (or only) parameter in function */ +#define Pi(t) ,t /* subsequent (2,3,...) parameter in function */ +#ifdef ANSI +#define Piv(t) ,... /* begining of variable number of parameters */ +#define Pv(t) /**/ /* function has 0 or more parameters */ +#else +#define Piv(t) , /* [XENIX] begining of variable number of parameters */ +#define Pv(t) , /* [XENIX] function has 0 or more parameters */ +#endif +#else +#define P0 /**/ +#define P1(t) /**/ +#define Pi(t) /**/ +#define Piv(t) /**/ +#define Pv(t) /**/ +#endif + + + +#define DBN_D1 Pv(int) +#define DBN_FIX_D1 P1(int) +#define DBN_Dn Piv(int) + +#define TASK_DBN_D1 DBN_D1 +#define TASK_D1 P0 +#define TASK_Di /**/ +#define TASK_PTR_D1 P0 +#define TASK_PTR_Di /**/ +#define CURRTASK_PARM /**/ +#define CURRTASK_ONLY /**/ + +#define LOCK_D1 /**/ +#define LOCK_Di /**/ + +typedef struct { + int item; /* record or set number */ + char type; /* lock type: 'r', 'w', 'x', 'k' */ +} LOCK_REQUEST; + + +#include "dproto.h" + +/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC vista.h */ diff --git a/cde/include/Dt/xpm.h b/cde/include/Dt/xpm.h new file mode 100644 index 00000000..33bacf01 --- /dev/null +++ b/cde/include/Dt/xpm.h @@ -0,0 +1,90 @@ +/* + * 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: xpm.h /main/4 1996/02/19 16:42:00 lehors $ */ +/* + * (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. + */ + +/*****************************************************************************\ +* * +* This is only a wrapper around the Xpm functions which now come as part of * +* Motif. This is provided for backward compatibility only and therefore only * +* supports symbols declared as private in the elist and none of the internal * +* ones. * +* * +\*****************************************************************************/ + +#ifndef xpm_h +#define xpm_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern int _DtXpmCreatePixmapFromData(Display *display, + Drawable d, + char **data, + Pixmap *pixmap_return, + Pixmap *shapemask_return, + XpmAttributes *attributes); + +extern int _DtXpmReadFileToPixmap(Display *display, + Drawable d, + char *filename, + Pixmap *pixmap_return, + Pixmap *shapemask_return, + XpmAttributes *attributes); + +extern int _DtXpmWriteFileFromPixmap(Display *display, + char *filename, + Pixmap pixmap, + Pixmap shapemask, + XpmAttributes *attributes); + +extern int _DtXpmReadFileToImage(Display *display, + char *filename, + XImage **image_return, + XImage **shapeimage_return, + XpmAttributes *attributes); + +extern int _DtXpmWriteFileFromImage(Display *display, + char *filename, + XImage *image, + XImage *shapeimage, + XpmAttributes *attributes); + +extern void _DtXpmFreeAttributes(XpmAttributes *attributes); + +#ifdef __cplusplus +} /* for C++ V2.0 */ +#endif + +#endif diff --git a/cde/include/DtI/Access.h b/cde/include/DtI/Access.h new file mode 100644 index 00000000..b6939b85 --- /dev/null +++ b/cde/include/DtI/Access.h @@ -0,0 +1,102 @@ +/* + * 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: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: Access.h + ** + ** Project: Run Time Project File Access + ** + ** Description: Header file for Access.h + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpAccess_h +#define _DtHelpAccess_h + +/**************************************************************************** + * Public Defines + ****************************************************************************/ +#ifndef True +#define True 1 +#endif +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef False +#define False 0 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + +typedef void* _DtHelpVolumeHdl; + +/**************************************************************************** + * Semi-Private Externals + ****************************************************************************/ +extern int _DtHelpCeCompressPathname ( char *basePath ); +extern char *_DtHelpCeTraceFilenamePath ( char *file_path ); +extern char *_DtHelpCeTracePathName ( char *path ); + +/**************************************************************************** + * Semi-Public Externals + ****************************************************************************/ +extern int _DtHelpCloseVolume ( + _DtHelpVolumeHdl vol ); +extern int _DtHelpCeFindId ( + _DtHelpVolumeHdl vol, + char *target_id, + int fd, + char **ret_name, + int *ret_offset ); +extern int _DtHelpCeFindKeyword ( + _DtHelpVolumeHdl vol, + char *target, + char ***ret_ids ); +extern int _DtHelpCeGetKeywordList ( + _DtHelpVolumeHdl vol, + char ***ret_keywords ); +extern int _DtHelpCeGetTopTopicId ( + _DtHelpVolumeHdl vol, + char **ret_idString ); +extern char *_DtHelpCeGetVolumeName( + _DtHelpVolumeHdl vol); +extern char *_DtHelpGetVolumeLocale ( + _DtHelpVolumeHdl volume); +extern int _DtHelpOpenVolume ( + char *volFile, + _DtHelpVolumeHdl*retVol ); +extern int _DtHelpCeUpVolumeOpenCnt ( + _DtHelpVolumeHdl volume); +#endif /* _DtHelpAccess_h */ diff --git a/cde/include/DtI/AccessI.h b/cde/include/DtI/AccessI.h new file mode 100644 index 00000000..4dcc6270 --- /dev/null +++ b/cde/include/DtI/AccessI.h @@ -0,0 +1,139 @@ +/* + * 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: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: AccessI.h + ** + ** Project: Run Time Project File Access + ** + ** Description: Header file for Access.h + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpAccessI_h +#define _DtHelpAccessI_h + + +#ifndef _XtIntrinsic_h +/* + * typedef Boolean + */ +#ifdef CRAY +typedef long Boolean; +#else +typedef char Boolean; +#endif +#endif + +#ifndef _XLIB_H_ +#ifndef True +#define True 1 +#endif +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef False +#define False 0 +#endif +#ifndef FALSE +#define FALSE 0 +#endif +#endif + +/****************************************************************************** + * Semi-Public Structures + ******************************************************************************/ +typedef struct { + char match; + char *substitution; +} _DtSubstitutionRec; + +typedef struct _dtHelpCeLockInfo { + int fd; + _DtHelpVolumeHdl volume; +} _DtHelpCeLockInfo; + +/****************************************************************************** + * Semi-Public Access Functions + ******************************************************************************/ +extern char *_DtHelpCeExpandPathname ( + char *spec, + char *filename, + char *type, + char *suffix, + char *lang, + _DtSubstitutionRec *subs, + int num ); +extern int _DtHelpCeFileOpenAndSeek( + char *filename, + int offset, + int fd, + BufFilePtr *ret_file, + time_t *ret_time); +extern int _DtHelpCeGetDocStamp ( + _DtHelpVolumeHdl volume, + char **ret_doc, + char **ret_time); +extern int _DtHelpCeGetLangSubParts ( + char *lang, + char **subLang, + char **subTer, + char **subCodeSet ); +extern int _DtHelpCeGetTopicChildren( + _DtHelpVolumeHdl volume, + char *topic_id, + char ***ret_childs); +extern int _DtHelpGetTopicTitle( + _DtHelpVolumeHdl volume, + char *target_id, + char **ret_title); +extern int _DtHelpCeGetUncompressedFileName ( + char *name, + char **ret_name); +extern const char *_DtHelpCeGetVolumeCharSet ( + _DtHelpVolumeHdl volume); +extern int _DtHelpCeGetVolumeFlag ( + _DtHelpVolumeHdl volume); +extern int _DtHelpCeIsTopTopic( + _DtHelpVolumeHdl volume, + const char *id); +extern int _DtHelpCeLockVolume( + _DtHelpVolumeHdl volume, + _DtHelpCeLockInfo *ret_info); +extern int _DtHelpCeMapTargetToId ( + _DtHelpVolumeHdl volume, + char *target_id, + char **ret_id); +extern int _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info); +#endif /* _DtHelpAccessI_h */ diff --git a/cde/include/DtI/AccessP.h b/cde/include/DtI/AccessP.h new file mode 100644 index 00000000..20e6a2aa --- /dev/null +++ b/cde/include/DtI/AccessP.h @@ -0,0 +1,89 @@ +/* + * 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: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: AccessP.h + ** + ** Project: Run Time Project File Access + ** + ** + ** Description: Private header file for Access.h + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtAccessP_h +#define _DtAccessP_h + +#include +typedef void* SdlVolumeHandle; +typedef void* CcdfVolumeHandle; + +typedef union _dthelpVolumes { + SdlVolumeHandle sdl_vol; + CcdfVolumeHandle ccdf_vol; +} DtHelpVols; + +/* + * The following structure holds loaded volumes. The fields of this + * structure should not be accessed by any code outside of the volume + * module. + */ +struct _DtHelpVolumeRec { + short sdl_flag; /* The type of volume */ + char *volFile; /* The name of the volume file in the */ + /* form it was passed to _DtVolumeOpen. */ + + char **keywords; /* A pointer to a string array */ + /* containing all of the keywords in */ + /* sorted order. This field is not loaded */ + /* until it is needed. */ + + char ***keywordTopics; /* A pointer to an array of string */ + /* arrays. Each string array specifies */ + /* the list of topics which contain the */ + /* corresponding keyword. This field is */ + /* not loaded until it is needed. */ + + DtHelpVols vols; /* Handles to format specific volume info */ + int openCount; /* A count of the number of times this */ + /* volume has been opened. */ + + time_t check_time; /* Time this volume was last modified */ + struct _DtHelpVolumeRec *nextVol; + /* A pointer to the next volume, used to */ + /* chain all of the open volumes together. */ +}; + +typedef struct _DtHelpVolumeRec *_DtHelpVolume; + +#endif /* _DtAccessP_h */ diff --git a/cde/include/DtI/ActionsI.h b/cde/include/DtI/ActionsI.h new file mode 100644 index 00000000..d18c10bf --- /dev/null +++ b/cde/include/DtI/ActionsI.h @@ -0,0 +1,90 @@ +/* + * 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: ActionsI.h /main/5 1995/12/08 13:00:31 cde-hal $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: ActionsI.h + ** + ** Project: Display area routines + ** + ** Description: Header file for Actions.c + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpActionsI_h +#define _DtHelpActionsI_h + +#ifdef __cplusplus +extern "C" { +#endif +/***************************************************************************** + * Semi Public Routines + *****************************************************************************/ +extern void _DtHelpActivateLink ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpCopyAction ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpDeSelectAll ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpNextLink ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpPageLeftOrRight ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpPageUpOrDown ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); +extern void _DtHelpSelectAll ( + Widget widget, + XEvent *event, + String *params, + Cardinal *num_params); + +#ifdef __cplusplus +} +#endif +#endif /* _DtHelpActionsI_h */ diff --git a/cde/include/DtI/CallbacksI.h b/cde/include/DtI/CallbacksI.h new file mode 100644 index 00000000..6f2e31a0 --- /dev/null +++ b/cde/include/DtI/CallbacksI.h @@ -0,0 +1,123 @@ +/* + * 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: CallbacksI.h /main/7 1996/02/27 20:06:41 cde-hal $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: CallbacksTG.h + ** + ** Project: TextGraphic Display routines + ** + ** + ** Description: Header file for CallbacksTG.h + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpCallbacksI_h +#define _DtHelpCallbacksI_h + +#ifdef __cplusplus +extern "C" { +#endif +/***************************************************************************** + * Semi Public Routines + *****************************************************************************/ +extern Boolean _DtHelpCancelSelection( + XtPointer client_data); +extern void _DtHelpCleanAndDrawWholeCanvas( + XtPointer client_data); +extern void _DtHelpSearchMoveTraversal( + XtPointer client_data, + int search_hit_index); + +/***************************************************************************** + * Public Routines + *****************************************************************************/ +extern void _DtHelpClearSelection ( + XtPointer client_data ); +extern void _DtHelpClickOrSelectCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpEndSelectionCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpEnterLeaveCB ( + Widget widget, + XtPointer client_data, + XEvent *event ); +extern void _DtHelpExposeCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpFocusCB ( + Widget widget, + XtPointer client_data, + XEvent *event ); +extern void _DtHelpGetClearSelection ( + Widget widget, + XtPointer client_data); +extern void _DtHelpHorzScrollCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpInitiateClipboard ( + XtPointer client_data ); +extern void _DtHelpLoseSelectionCB ( + Widget widget, + Atom *selection ); +extern void _DtHelpMoveBtnFocusCB ( + Widget widget, + XtPointer client_data, + XEvent *event ); +extern void _DtHelpMouseMoveCB ( + Widget widget, + XtPointer client_data, + XEvent *event ); +extern void _DtHelpResizeCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpVertScrollCB ( + Widget widget, + XtPointer client_data, + XtPointer call_data ); +extern void _DtHelpVisibilityCB ( + Widget widget, + XtPointer client_data, + XEvent *event ); + +#ifdef __cplusplus +} +#endif +#endif /* _DtHelpCallbacksI_h */ diff --git a/cde/include/DtI/CanvasI.h b/cde/include/DtI/CanvasI.h new file mode 100644 index 00000000..cf687c89 --- /dev/null +++ b/cde/include/DtI/CanvasI.h @@ -0,0 +1,320 @@ +/* + * 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: CanvasI.h /main/18 1996/10/21 13:59:51 cde-hp $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: CanvasI.h + ** + ** Project: + ** + ** Description: Public Header file for Canvas.c + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtCanvasI_h +#define _DtCanvasI_h + + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +/******** Internal Defines Declarations ********/ +#define _DtCvLINE_HORZ 0 +#define _DtCvLINE_VERT 1 + +/******** Internal Enum Declarations ********/ +enum _dtCvTraversalType + { + _DtCvTraversalNone, + _DtCvTraversalLink, + _DtCvTraversalMark + }; + +/******** Internal Typedef Declarations ********/ + +#if !defined(_DtCvLinkMgrP_h) && !defined(_DtCvLinkMgrI_h) +typedef struct _dtCvLinkDb* _DtCvLinkDb; +#endif + +typedef enum _dtCvTraversalType _DtCvTraversalType; + +/* adding this typedef so that debugging can access the structure */ +typedef struct _dtCvSegment _DtCvSegmentI; +typedef struct _dtCvSegPts _DtCvSegPtsI; + +/******** Internal Structures Declarations ********/ + +typedef struct _dtCvDspLine { + _DtCvValue processed; + _DtCvUnit text_x; + _DtCvUnit max_x; + _DtCvUnit baseline; + _DtCvUnit descent; + _DtCvUnit ascent; + int byte_index; + int length; + _DtCvSegmentI *seg_ptr; +} _DtCvDspLine; + +typedef struct _dtCvLineSeg { + _DtCvValue processed; + short dir; + _DtCvUnit pos_x; + _DtCvUnit max_x; + _DtCvUnit pos_y; + _DtCvUnit max_y; + _DtCvUnit width; + _DtCvPointer data; +} _DtCvLineSeg; + +typedef struct _dtCvPointData { + _DtCvUnit x; + _DtCvUnit y; /* baseline of the line */ + int line_idx; + int char_idx; +} _DtCvPointData; + +typedef struct _dtCvMarkData { + _DtCvValue on; + _DtCvPointer client_data; + _DtCvPointData beg; + _DtCvPointData end; +} _DtCvMarkData; + +typedef struct _dtCvTraversalInfo { + _DtCvValue active; + _DtCvTraversalType type; /* the type of the traversal */ + int idx; /* the index into the approp. struct */ + /* either the txt_lst or marks */ + _DtCvUnit x_pos; /* x pos on the line. */ + _DtCvUnit y_pos; /* top y pos of bounding box */ + _DtCvUnit width; /* width of link on 1st line only */ + _DtCvUnit height; /* height of 1st line bounding box */ + _DtCvSegmentI *seg_ptr; /* ptr to first seg of link */ +} _DtCvTraversalInfo; + +typedef struct _dtCvSearchData { + int idx; /* the line index of the search hit */ + _DtCvDspLine *lst; /* pointer to the text line list */ +} _DtCvSearchData; + +typedef struct _dtCanvasStruct { + int error; + long txt_cnt; /* maximum used in txt_list */ + int txt_max; /* maximum in txt_list */ + + int line_cnt; /* maximum used in line_lst */ + int line_max; /* maximum in line_lst */ + int mark_cnt; /* mark counter */ + int mark_max; /* maximum in mark_lst */ + + int trav_cnt; /* maximum used in trav_lst */ + int trav_max; /* maximum in trav_lst */ + int cur_trav; /* traversal indicator */ + + int search_cnt; + int search_max; + + int brk_cnt; /* the number of page breaks */ + int brk_max; /* the maxium entries */ + + short mb_length; /* The maximum length of a char */ + + _DtCvUnit max_x; /* The maximum x position */ + _DtCvUnit max_y; /* The maximum y position */ + _DtCvValue constraint; /* Indicates if the right + boundary can be breached */ + _DtCvValue trav_on; /* Indicates if the traversal + is on or off. */ + _DtCvPointer client_data; + _DtCvMetrics metrics; + _DtCvSpaceMetrics link_info; + _DtCvSpaceMetrics traversal_info; + _DtCvLocale locale; + + _DtCvSegmentI *element_lst; + _DtCvDspLine *txt_lst; + _DtCvLineSeg *line_lst; + _DtCvTraversalInfo *trav_lst; + _DtCvLinkDb link_data; + _DtCvPointData select_start; + _DtCvPointData select_end; + _DtCvMarkData *marks; + _DtCvSearchData *searchs; + _DtCvUnit *pg_breaks; + _DtCvVirtualInfo virt_functions; + +} _DtCanvasStruct; + +/******** Internal Structure Typedef Declarations ********/ +typedef struct _dtCvPointData _DtCvSelectData; + +/******** Internal Macros Declarations ********/ + +#define _DtCvHasTraversal(x) ((x) & _DtCvTRAVERSAL_FLAG) + +/* + * segment type access + */ +#define _DtCvIsTypeNoop(x) \ + ((((x) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0) + +/* + * Is a flag set + */ +#define _DtCvIsSegVisibleLink(x) _DtCvIsSegHyperText(x) +#define _DtCvIsSegALink(x) \ + (_DtCvIsSegHyperText(x) || _DtCvIsSegGhostLink(x)) + +#define _DtCvIsMarkMaskOn(x) \ + (((x) & _DtCvACTIVATE_MARK_ON) ? _DtCvTRUE : _DtCvFALSE) + +/* + * remove masks + */ +#define _DtCvRemoveBeginFlags(x) x &= ~(_DtCvTRAVERSAL_BEGIN | \ + _DtCvLINK_BEGIN | \ + _DtCvMARK_BEGIN | \ + _DtCvSEARCH_BEGIN) +#define _DtCvSetSearchEnd(x,seg) x |= ((seg)->type & _DtCvSEARCH_END) +#define _DtCvSetSearchBegin(x,seg) x |= ((seg)->type & _DtCvSEARCH_BEGIN) +#define _DtCvClearSearchFlags(x) x &= ~(_DtCvSEARCH_FLAG | \ + _DtCvSEARCH_BEGIN | \ + _DtCvSEARCH_END) + +#define _DtCvClearLinkFlags(x) x &= ~(_DtCvLINK_FLAG | \ + _DtCvLINK_BEGIN | \ + _DtCvLINK_END | \ + _DtCvLINK_POP_UP | \ + _DtCvLINK_NEW_WINDOW) + +#define _DtCvClearProcessed(x) (x).processed = False +#define _DtCvSetProcessed(x) (x).processed = True +#define _DtCvIsProcessed(x) (x).processed +#define _DtCvIsNotProcessed(x) ((False == (x).processed) ? True : False) +#define _DtCvStraddlesPt(pt,min,max) ((min) <= (pt) && (pt) <= (max)) + +/******** Internal Function Declarations ********/ +extern _DtCvUnit _DtCvAdjustForSuperSub( + _DtCanvasStruct *canvas, + _DtCvSegmentI *p_seg, + _DtCvUnit start_x, + _DtCvUnit *script_x, + _DtCvUnit *super_width, + _DtCvUnit *super_y, + _DtCvUnit *sub_width, + _DtCvUnit *sub_y, + _DtCvValue *super_flag, + _DtCvValue *sub_flag); +extern _DtCvUnit _DtCvAdvanceXOfLine ( + _DtCanvasStruct *canvas, + _DtCvSegmentI *p_seg, + _DtCvUnit x_pos, + int *link_idx, + _DtCvValue *link_flag); +extern _DtCvStatus _DtCvCheckInfringement ( + _DtCvUnit tst_top, + _DtCvUnit tst_bot, + _DtCvUnit obj_top, + _DtCvUnit obj_bot); +extern void _DtCvCheckLineMarks ( + _DtCanvasStruct *canvas, + int line_idx, + int char_idx, + int length, + _DtCvUnit dst_x, + _DtCvFlags check_flags, + int *ret_len, + _DtCvFlags *ret_old, + _DtCvFlags *ret_new); +extern void _DtCvClearInternalUse ( + _DtCvSegmentI *list, + _DtCvStatus flag); +extern _DtCvUnit _DtCvDrawSegments( + _DtCanvasStruct *canvas, + _DtCvDspLine line, + _DtCvSegmentI *p_seg, + int start_char, + int count, + int *prev_lnk, + _DtCvUnit txt_x, + _DtCvUnit sel_x, + _DtCvUnit *scriptX, + _DtCvUnit *super_width, + _DtCvUnit *super_y, + _DtCvUnit *sub_width, + _DtCvUnit *sub_y, + _DtCvValue *last_was_sub, + _DtCvValue *last_was_super, + _DtCvValue *last_link_vis, + _DtCvFlags old_flag, + _DtCvFlags new_flag, + _DtCvElemType trav_flag, + _DtCvPointer trav_data); +extern int _DtCvGetCharIdx( + _DtCanvasStruct *canvas, + _DtCvDspLine line, + _DtCvUnit find_x); +extern _DtCvUnit _DtCvGetStartXOfLine( + _DtCvDspLine *line, + _DtCvSegmentI **pSeg); +extern void _DtCvGetWidthOfSegment( + _DtCanvasStruct *canvas, + _DtCvSegmentI *p_seg, + int start, + int max_cnt, + int *ret_cnt, + _DtCvUnit *ret_w, + _DtCvValue *ret_trimmed); +extern _DtCvValue _DtCvModifyXpos( + _DtCvSpaceMetrics info, + _DtCvSegmentI *seg, + _DtCvValue tst_result, + _DtCvValue old_result, + int idx, + _DtCvUnit *x_pos); +extern void _DtCvSkipLineChars( + _DtCanvasStruct *canvas, + _DtCvSegmentI *p_seg, + int start, + int max_cnt, + int use_len, + int *ret_start, + _DtCvSegmentI **ret_seg); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtCanvasI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/DisplayAreaI.h b/cde/include/DtI/DisplayAreaI.h new file mode 100644 index 00000000..2e15622b --- /dev/null +++ b/cde/include/DtI/DisplayAreaI.h @@ -0,0 +1,53 @@ +/* + * 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: DisplayAreaI.h /main/2 1996/05/09 03:41:47 drk $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: DisplayAreaI.h + ** + ** Project: Cde Help System + ** + ** Description: Defines the Display Area structures and defines. + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpDisplayAreaI_h +#define _DtHelpDisplayAreaI_h + +typedef struct { + int reason; + XEvent *event; + Window window; + char *specification; + int hyper_type; + int window_hint; +} DtHelpHyperTextStruct; + +#endif /* _DtHelpDisplayAreaI_h */ diff --git a/cde/include/DtI/DisplayAreaP.h b/cde/include/DtI/DisplayAreaP.h new file mode 100644 index 00000000..83db8800 --- /dev/null +++ b/cde/include/DtI/DisplayAreaP.h @@ -0,0 +1,264 @@ +/* + * 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: DisplayAreaP.h /main/18 1996/08/13 11:35:51 cde-hp $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: DisplayAreaP.h + ** + ** Project: Cde Help System + ** + ** Description: Defines the Display Area structures and defines. + ** + **************************************************************************** + ************************************<+>*************************************/ +/* + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, + 1993, 1994, 1996 Hewlett-Packard Company. + * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. + * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. + * (c) Copyright 1993, 1994, 1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef _DtHelpDisplayAreaP_h +#define _DtHelpDisplayAreaP_h + +#include +#include +#include
+#include + +/* + * Traversal flags + */ +#define _DT_HELP_SHADOW_TRAVERSAL (1 << 0) +#define _DT_HELP_NOT_INITIALIZED (1 << 1) +#define _DT_HELP_TRAVERSAL_DRAWN (1 << 2) +#define _DT_HELP_DRAW_TOC_IND (1 << 3) +#define _DT_HELP_CLEAR_TOC_IND (1 << 4) +#define _DT_HELP_TOC_ON (1 << 5) + +/* + * enum states for selection + */ +enum _DtHelpSelectState + { + _DtHelpNothingDoing, + _DtHelpCopyOrLink, + _DtHelpSelectingText + }; + +/* + * Whether the display area has the focus or not + */ +#define _DT_HELP_FOCUS_FLAG 0x04 + +typedef struct { + int used; + int num_pixels; + Pixmap pix; + Pixmap mask; + Dimension width; + Dimension height; + Pixel *pixels; +} DtHelpGraphicStruct; + +typedef struct { + _DtCvPointer font_ptr; + int spc_idx; +} DtHelpSpecialChars; + +typedef struct _dtHelpDAFontMetrics { + _DtCvUnit ascent; /* Maximum ascent */ + _DtCvUnit descent; /* Maximum descent */ + _DtCvUnit average_width; /* Average width of a character */ + _DtCvUnit super; /* Offset from baseline for super scripts */ + _DtCvUnit sub; /* Offset from baseline for sub scripts */ +} _DtHelpDAFontMetrics; + +typedef struct { + short inited; + _DtHelpDAFontMetrics fm; +} DtHelpDAFSMetrics; + +typedef struct _DtHelpDAfontInfo { + char **exact_fonts; /* the list of fonts specified by the + toss element rather than hints. */ + XrmDatabase def_font_db; /* The default font resource db */ + XrmDatabase font_idx_db; /* Which font index goes with which + set of font resources */ + XFontStruct **font_structs; /* The font structures opened */ + XFontSet *font_sets; /* The font sets opened */ + DtHelpDAFSMetrics *fs_metrics; + + XrmQuark lang_charset; /* the char set for current lang */ + int *exact_idx; /* The indexes for the exact fonts */ + int max_structs; /* the max number of font_structs */ + int max_sets; /* The max number of font_sets */ + int struct_cnt; /* the cur number of font_structs */ + int set_cnt; /* The cur number of font_sets */ + long def_idx; /* The default index */ +} DtHelpDAFontInfo; + +/* + * SelectionScroll structure + */ +typedef struct { + int horizontal_reason; + int vertical_reason; +} SelectionScrollStruct; + +/* + * DisplayArea structure + */ +typedef struct _dtHelpDispAreaStruct { + Widget dispWid; /* The text and graphic area. */ + Widget vertScrollWid; /* The vertical scroll bar */ + Widget horzScrollWid; /* The horizontal scroll bar */ + Boolean vertIsMapped; + Boolean horzIsMapped; + short neededFlags; /* _DtHelpAS_NEEDED flags */ + short nl_to_space; /* are newlines in multibyte */ + /* strings turned into spaces? */ + + Dimension formWidth; /* Pixel width of the parent area */ + Dimension formHeight; /* Pixel height of the parent area */ + Dimension dispWidth; /* Pixel width of the display area */ + Dimension dispHeight; /* Pixel height of the display area */ + Dimension dispUseHeight; /* Pixel height of the display area + minus the decor margin. */ + Dimension dispUseWidth; /* Pixel width of the display area + minus the decor margin. */ + Dimension marginWidth; /* Pixel padding at the left and + right of the display area. */ + Dimension marginHeight; /* Pixel padding at the top and + bottom of the display area. */ + + short decorThickness; /* the shadow thickness plus highlight + thickness of the display area */ + + void (*hyperCall)(); /* The hypertext callback */ + void (*resizeCall)(); /* The resize callback */ + int (*exec_filter)(); /* The execution filter callback */ + XtPointer clientData; /* The client's data for the callback */ + + Pixel traversalColor; /* The client's traversal color */ + Pixel foregroundColor; /* The client's foreground color */ + Pixel backgroundColor; /* The client's foreground color */ + Pixel searchColor; /* The client's search hilite color */ + GC pixmapGC; + GC normalGC; + GC invertGC; + Pixmap def_pix; /* the default 'missing pixmap' */ + Dimension def_pix_width; /* the width of the default pixmap */ + Dimension def_pix_height; /* the height of the default pixmap */ + _DtGrContext *context; /* image converter context */ + + Colormap colormap; /* The colormap to use */ + Visual *visual; /* The visual to use */ + + DtHelpDAFontInfo font_info; /* The font information */ + + int depth; /* The depth of the window */ + + int fontAscent; + int lineHeight; + int leading; + long charWidth; /* The average size of a character */ + int moveThreshold; /* The number of pixels that must + be moved before a copy-paste + action occurs. */ + int underLine; + int lineThickness; /* For traversal box and underline */ + int firstVisible; /* The absolute number of the first + line visible in the window. */ + int nextNonVisible; /* The absolute number of the first + line non visible, next to the last + visible window. */ + int visibleCount; /* The number of lines viewable */ + int maxYpos; /* Maximum Y positioning */ + + int virtualX; /* The virtual x of the window */ + int maxX; /* The max virtual x of a line */ + + int max_spc; /* The maximum special characters */ + int cur_spc; /* The current unused structure */ + int timerX; /* Used for button clicks/selections */ + int timerY; /* Used for button clicks/selections */ + int scr_timer_x; /* Used for button clicks/selections */ + int scr_timer_y; /* Used for button clicks/selections */ + int vert_init_scr; /* The initial vert scrolling timeout*/ + int vert_rep_scr; /* The repeat vert scrolling timeout */ + int horz_init_scr; /* The initial horz scrolling timeout*/ + int horz_rep_scr; /* The repeat horz scrolling timeout */ + _DtCvUnit toc_width; /* The width of the toc indicator */ + _DtCvUnit toc_height; /* The height of the toc indicator */ + _DtCvUnit toc_y; /* The y coordinate of the toc */ + _DtCvUnit toc_base; /* The baseline coordinate of the toc*/ + + Time anchor_time; /* Indicates the primary selection + time. */ + Boolean primary; /* Indicates if this widget has the + primary selection */ + Boolean text_selected; /* Indicates if the selection has + occurred */ + enum _DtHelpSelectState select_state; + /* Indicates the state of the current + selection. */ + short toc_flag; /* Indicates if the traversal indicator + is always on. */ + _DtCvPointer toc_indicator; /* The indicator used in the toc */ + + XtIntervalId scr_timer_id; + SelectionScrollStruct scr_timer_data; + DtHelpSpecialChars *spc_chars; /* Structure containing the spc chars */ + _DtCvHandle canvas; + _DtCvTopicPtr lst_topic; + wchar_t *cant_begin_chars; /* characters that cannot */ + /* begin a line of text */ + wchar_t *cant_end_chars; /* characters that cannot */ + /* end a line of text */ + + short dtinfo; /* Indicates if being used by dtinfo */ + Pixmap stipple; /* stippled pixmap */ + + /* callback to be called whenever you manipulate the display */ + /* area's vertical scrollbar directly using XtSetValues, */ + /* because the application (dtinfo) has callbacks on the */ + /* scrollbar, these do not get called when we adjust it with */ + /* XtSetValues() */ + void (*vScrollNotify)(void *,unsigned int); + + /* dtinfo requires this for doing link previews */ + void (*armCallback)(void*); + + _DtCvValue honor_size; /* Layout parameter for _DtCvSetTopic */ + _DtCvRenderType render_type; /* Render type performed on expose */ + unsigned short media_resolution; /* used for scaling images */ + +} DtHelpDispAreaStruct; + +#endif /* _DtHelpDisplayAreaP_h */ diff --git a/cde/include/DtI/FileUtilsI.h b/cde/include/DtI/FileUtilsI.h new file mode 100644 index 00000000..99f34547 --- /dev/null +++ b/cde/include/DtI/FileUtilsI.h @@ -0,0 +1,84 @@ +/* + * 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: FileUtilsI.h /main/5 1995/10/26 12:19:41 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: FileUtilsI.h + ** + ** Project: DtHelp Project + ** + ** Description: File locating and handling utilities + ** + ** (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 _DtHelpFileUtilsI_h +#define _DtHelpFileUtilsI_h + +#define DtHelpVOLUME_TYPE "volumes" /* dir for %T in XtResolvePathname */ +#define DtHelpCCDF_VOL_SUFFIX ".hv" /* possible basename suffix */ +#define DtHelpSDL_VOL_SUFFIX ".sdl" /* possible basename suffix */ + +/* array indices and size for use with _DtHelpFileGetSearchPaths() */ +#define _DtHELP_FILE_USER_PATH 0 +#define _DtHELP_FILE_SYS_PATH 1 +#define _DtHELP_FILE_HOME_PATH 2 +#define _DtHELP_FILE_NUM_PATHS 3 + +typedef struct _dtHelpCeDirStruct { + char *dir_name; + int type; + int user_flag; + struct _dtHelpCeDirStruct *next_dir; +} _DtHelpCeDirStruct; + +/* list of suffixes that help volumes may have */ +extern const char * _DtHelpFileSuffixList[]; + +extern int _DtHelpCeCheckAndCacheDir(char *dir); +extern void _DtHelpFileGetSearchPaths( + char * paths[], + Boolean searchHomeDir); +extern char *_DtHelpFileLocate ( + char * type, + char * base, + const char * suffixList[], + Boolean searchCurDir, + int accessMode); +extern Boolean _DtHelpFileTraceLinks ( + char * * pPathName); +extern Boolean _DtHelpFileTraceToFile ( + char * * pPathName, + int accessMode, + char * * pFoundPath); + +#endif /* _DtHelpFileUtilsI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ + diff --git a/cde/include/DtI/FontAttrI.h b/cde/include/DtI/FontAttrI.h new file mode 100644 index 00000000..1d23339b --- /dev/null +++ b/cde/include/DtI/FontAttrI.h @@ -0,0 +1,191 @@ +/* + * 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: FontAttrI.h /main/7 1995/12/06 18:36:56 cde-hp $ */ +/************************************<+>************************************* + **************************************************************************** + ** File: FontAttrI.h + ** Project: Common Desktop Environment + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpFontAttrI_h +#define _DtHelpFontAttrI_h + +#ifdef __cplusplus +extern "C" { +#endif + +/******** Public Defines Declarations ********/ +/* + * font attributes + */ +#define _CEFONT_CHAR_SET 6 +#define _CEFONT_LANG_TER 5 +#define _CEFONT_TYPE 4 +#define _CEFONT_WEIGHT 3 +#define _CEFONT_ANGLE 2 +#define _CEFONT_SIZE 1 +#define _CEFONT_SPACING 0 + +#define _CEFONT_END 7 + +#define _CEFontAttrNumber 8 + +/******** Public Enum Declarations ********/ +enum _dtHelpFontValue + { + _DtHelpFontValueBad, +/* styles */ + _DtHelpFontStyleSerif , + _DtHelpFontStyleSanSerif , + _DtHelpFontStyleSymbol, +/* spacing */ + _DtHelpFontSpacingMono , + _DtHelpFontSpacingProp , +/* weights */ + _DtHelpFontWeightMedium , + _DtHelpFontWeightBold , +/* slant */ + _DtHelpFontSlantRevItalic , + _DtHelpFontSlantItalic , + _DtHelpFontSlantRoman , +/* special */ + _DtHelpFontSpecialUnderLine, + _DtHelpFontSpecialStrikeOut, + _DtHelpFontSpecialNone + }; + +/******** Public Typedef Declarations ********/ + +typedef enum _dtHelpFontValue _DtHelpFontValue; + +/******** Public Structures Declarations ********/ + +typedef struct _dtHelpFontHints { + char *language; + char *char_set; + int pointsz; /* height of font in points */ + int set_width; /* width of font in points */ + char *color; /* 1 of 42 UDT colors or 'RGB:rrrr/gggg/bbbb */ + char *xlfd; /* xlfd name for use on X Window System */ + char *xlfdb; /* xlfd name for use on X Window System */ + char *xlfdi; /* xlfd name for use on X Window System */ + char *xlfdib; /* xlfd name for use on X Window System */ + char *typenam; /* typeface spec for MS-Windows interface */ + char *typenamb; /* typeface spec for MS-Windows interface */ + char *typenami; /* typeface spec for MS-Windows interface */ + char *typenamib; /* typeface spec for MS-Windows interface */ + _DtHelpFontValue style; /* font style */ + _DtHelpFontValue spacing; /* font spacing */ + _DtHelpFontValue weight; /* font weight */ + _DtHelpFontValue slant; /* font slant */ + _DtHelpFontValue special; /* special characteristics */ + void *expand; /* reserved pointer for later expansion */ +} _DtHelpFontHints; + +/******** Public Structure Typedef Declarations ********/ + +/******** Public Prototyped Procedures ********/ + +/******** Public Macro Declarations ********/ +#ifndef _DtHelpFontHintsColor +#define _DtHelpFontHintsColor(x) ((x).color) +#endif + +#ifndef _DtHelpFontHintsLang +#define _DtHelpFontHintsLang(x) ((x).language) +#endif + +#ifndef _DtHelpFontHintsCharSet +#define _DtHelpFontHintsCharSet(x) ((x).char_set) +#endif + +#ifndef _DtHelpFontHintsPtSize +#define _DtHelpFontHintsPtSize(x) ((x).pointsz) +#endif + +#ifndef _DtHelpFontHintsWeight +#define _DtHelpFontHintsWeight(x) ((x).weight) +#endif + +#ifndef _DtHelpFontHintsXlfd +#define _DtHelpFontHintsXlfd(x) ((x).xlfd) +#endif + +#ifndef _DtHelpFontHintsXlfdb +#define _DtHelpFontHintsXlfdb(x) ((x).xlfdb) +#endif + +#ifndef _DtHelpFontHintsXlfdi +#define _DtHelpFontHintsXlfdi(x) ((x).xlfdi) +#endif + +#ifndef _DtHelpFontHintsXlfdib +#define _DtHelpFontHintsXlfdib(x) ((x).xlfdib) +#endif + +#ifndef _DtHelpFontHintsTypeNam +#define _DtHelpFontHintsTypeNam(x) ((x).typenam) +#endif + +#ifndef _DtHelpFontHintsTypeNamb +#define _DtHelpFontHintsTypeNamb(x) ((x).typenamb) +#endif + +#ifndef _DtHelpFontHintsTypeNami +#define _DtHelpFontHintsTypeNami(x) ((x).typenami) +#endif + +#ifndef _DtHelpFontHintsTypeNamib +#define _DtHelpFontHintsTypeNamib(x) ((x).typenamib) +#endif + +#ifndef _DtHelpFontPtrPtSize +#define _DtHelpFontPtrPtSize(x) ((x)->pointsz) +#endif + +#ifndef _DtHelpFontPtrWeight +#define _DtHelpFontPtrWeight(x) ((x)->weight) +#endif + +/******** Semi-Public Function Declarations ********/ + +/******** Public Function Declarations ********/ +extern void _DtHelpCeCopyDefFontAttrList(_DtHelpFontHints *font_attr ); +extern int _DtHelpDupFontHints(_DtHelpFontHints *font_attr ); +extern void _DtHelpFreeFontHints(_DtHelpFontHints *font_attr ); + +/******** End Public Function Declarations ********/ + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtHelpFontAttrI_h */ diff --git a/cde/include/DtI/FontI.h b/cde/include/DtI/FontI.h new file mode 100644 index 00000000..e1477f1e --- /dev/null +++ b/cde/include/DtI/FontI.h @@ -0,0 +1,125 @@ +/* + * 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: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: FontI.h + ** + ** Project: TextGraphic Display routines + ** + ** Description: Header file for Font.c + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtFontI_h +#define _DtFontI_h + +#ifdef __cplusplus +extern "C" { +#endif +/**************************************************************************** + * Semi Public Defines + ****************************************************************************/ +/* + * resource database types + */ +#define _DtHelpXrmInt 0 +#define _DtHelpXrmQuark 1 + +/* + * font quarks + */ +#define _DT_HELP_FONT_CHAR_SET 6 +#define _DT_HELP_FONT_LANG_TER 5 +#define _DT_HELP_FONT_TYPE 4 +#define _DT_HELP_FONT_WEIGHT 3 +#define _DT_HELP_FONT_ANGLE 2 +#define _DT_HELP_FONT_SIZE 1 +#define _DT_HELP_FONT_SPACING 0 + +#define _DT_HELP_FONT_END 7 + +#define _DtHelpFontQuarkNumber 8 + +/**************************************************************************** + * Semi Public Structures + ****************************************************************************/ +/**************************************************************************** + * Semi Public Routines + ****************************************************************************/ +extern void _DtHelpCopyDefaultList(XrmName *xrm_list); +extern long __DtHelpDefaultFontIndexGet ( + DtHelpDispAreaStruct *pDAS); +extern void _DtHelpGetStringQuarks(XrmName *xrm_list); +extern int __DtHelpFontCharSetQuarkGet( + DtHelpDispAreaStruct *pDAS, + long font_index, + XrmQuark *ret_quark); +extern void __DtHelpFontDatabaseInit ( + DtHelpDispAreaStruct *pDAS, + XtPointer default_font, + XmFontType entry_type, + XFontStruct *user_font); +extern int __DtHelpFontIndexGet ( + DtHelpDispAreaStruct *pDAS, + XrmQuarkList xrm_list, + long *ret_idx); +extern int __DtHelpFontLangQuarkGet( + DtHelpDispAreaStruct *pDAS, + long font_index, + XrmQuark *ret_quark); +extern void __DtHelpFontMetrics ( + DtHelpDAFontInfo font_info, + long font_index, + _DtCvUnit *ret_ascent, + _DtCvUnit *ret_descent, + _DtCvUnit *ret_char_width, + _DtCvUnit *ret_super, + _DtCvUnit *ret_sub); +extern XFontSet __DtHelpFontSetGet ( + DtHelpDAFontInfo font_info, + long font_index ); +extern XFontStruct *__DtHelpFontStructGet ( + DtHelpDAFontInfo font_info, + long font_index); +extern int _DtHelpGetExactFontIndex( + DtHelpDispAreaStruct *pDAS, + const char *lang, + const char *char_set, + char *xlfd_spec, + long *ret_idx); + +#ifdef __cplusplus +} +#endif +#endif /* _DtHelpFontI_h */ diff --git a/cde/include/DtI/GifUtilsI.h b/cde/include/DtI/GifUtilsI.h new file mode 100644 index 00000000..9a443d76 --- /dev/null +++ b/cde/include/DtI/GifUtilsI.h @@ -0,0 +1,146 @@ +/* + * 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: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */ +#ifndef _DtGifUtilsI_h +#define _DtGifUtilsI_h + +/* Include files */ +#include +#include "GraphicsP.h" + +/* Enumerated values */ +enum op_t { DO_COLOR, DO_GREY }; + +/* Type definitions */ +typedef unsigned char byte; +typedef unsigned long pixel; + +/* Data structures */ + +typedef struct + { + unsigned long pixel; + unsigned short red, green, blue; + unsigned short grey; + } GifColors; + +typedef struct +{ + XImage *f_ximage; + Display *f_dpy; + int f_screen; + Colormap f_cmap; + Drawable f_drawable; + GC f_gc; + Visual *f_visual; + unsigned int f_ncells; + unsigned int f_nplanes; + unsigned long f_black; + unsigned long f_white; + unsigned long f_fg; + unsigned long f_bg; + int f_dft_depth; + int f_visual_class; + int f_color_map_constructed; + int f_do_visual; + int bits_per_pixel ; + int colors_per_pixel; + int total_colors ; + int f_total_greys; + int f_init_total_greys; + Boolean f_allow_reduced_colors; + Boolean f_color_reduction_used; + GifColors GifCMap[64]; + unsigned long GifGMap[32]; +} GifObj; + +/* Function prototypes */ + +/* Initializes a gif object structure */ +enum _DtGrLoadStatus InitGifObject( + GifObj *g, + Display *dpy, + Drawable drawable, + Screen *screen, + int depth, + Colormap colormap, + Visual *visual, + GC gc, + enum _DtGrColorModel colorModel, + Boolean allowReducedColors +); + +/* Deletes resources associated with a gif object structure */ +void DeleteGifObjectResources( + GifObj *g +); + +/* Converts a gif buffer to an X pixmap */ +Pixmap gif_to_pixmap( + GifObj *g, + byte *inbuf, + unsigned int buflen, + Dimension *w, + Dimension *h, + Pixel fg, + Pixel bg, + float ratio +); + +/* Creates a raw PPM-style image from a GIF buffer */ +pixel **create_raw_image( + byte *inbuf, + unsigned int buflen, + int *width, + int *height, + int imageNumber +); + +/* Creates an X pixmap from a raw PPM-style image */ +Pixmap create_pixmap( + GifObj *g, + pixel **image, + int width, + int height, + Pixel fg, + Pixel bg, + float ratio +); + +/* Frees raw image data */ +void free_raw_image( + pixel **image +); + +/* Allocates X pixels needed for the color cube */ +int allocate_colors( + GifObj *g +); + +/* Allocates X pixels needed for greyscale rendering */ +int allocate_greys( + GifObj *g +); + +#endif /* _DtGifUtilsI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/GraphicsP.h b/cde/include/DtI/GraphicsP.h new file mode 100644 index 00000000..fc26ada9 --- /dev/null +++ b/cde/include/DtI/GraphicsP.h @@ -0,0 +1,197 @@ +/* + * 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: GraphicsP.h /main/4 1996/05/09 03:43:09 drk $ */ +#ifndef _DtGraphicsP_h +#define _DtGraphicsP_h + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif +/* + * Input stream data structures + */ + +/* Stream source types */ +enum _DtGrStreamType { _DtGrNONE, _DtGrBUFFER, _DtGrFILE }; + +/* Stream file data */ +typedef struct +{ + FILE *fileptr; + char *filename; + char *uncompressed_filename; +} _DtGrFile; + +/* Stream buffer data */ +typedef struct +{ + const char *base; + long size; + char *current; + char *end; +} _DtGrBuffer; + +/* Stream data */ +typedef struct +{ + enum _DtGrStreamType type; + union + { + _DtGrFile file; + _DtGrBuffer buffer; + } source; +} _DtGrStream; + +/* + * Input stream function prototypes + */ + +/* Open a file stream */ +int _DtGrOpenFile( + _DtGrStream *stream, + char *path +); + +/* Open a buffer stream */ +int _DtGrOpenBuffer( + _DtGrStream *stream, + const char *buffer, + int buffer_size +); + +/* Close a stream */ +int _DtGrCloseStream( + _DtGrStream *stream +); + +/* Reads data from a stream into a buffer */ +size_t _DtGrRead( + void *buffer, + size_t size, + size_t num_items, + _DtGrStream *stream +); + +/* Sets the position of the next input operation on a stream */ +int _DtGrSeek( + _DtGrStream *stream, + long offset, + int whence +); + +/* Reads a character from a stream and advances the stream position */ +int _DtGrGetChar( + _DtGrStream *stream +); + +/* Reads a string from a stream and advances the stream position */ +char *_DtGrGetString( + char *buffer, + int num_bytes, + _DtGrStream *stream +); + +/* + * Inline graphics data structures + */ + +enum _DtGrColorModel { _DtGrCOLOR, _DtGrGRAY_SCALE, _DtGrBITONAL }; +enum _DtGrLoadStatus { _DtGrSUCCESS, _DtGrCOLOR_REDUCE,_DtGrCONVERT_FAILURE, + _DtGrOPEN_FAILED, _DtGrFILE_INVALID, _DtGrNO_MEMORY, + _DtGrCOLOR_FAILED }; + +/* Context structure used by image type converters */ +typedef struct { + char *image_type; + XPointer context; +} _DtGrContext; + +typedef enum _DtGrLoadStatus (*_DtGrLoadProc)( + _DtGrStream *stream, + Screen *screen, + int depth, + Colormap colormap, + Visual *visual, + Pixel foreground, + Pixel background, + GC gc, + enum _DtGrColorModel color_model, + Boolean allow_reduced_colors, + Dimension *in_out_width, + Dimension *in_out_height, + unsigned short media_resolution, + Pixmap *ret_pixmap, + Pixmap *ret_mask, + Pixel **ret_colors, + int *ret_num_colors, + _DtGrContext *context); + +typedef void (*_DtGrDestroyContextProc)( + _DtGrContext *context); + +/* + * Inline graphics function prototypes + */ + +/* Loads an image into a pixmap */ +enum _DtGrLoadStatus _DtGrLoad( + _DtGrStream *stream, + char **image_type, + Screen *screen, + int depth, + Colormap colormap, + Visual *visual, + Pixel foreground, + Pixel background, + GC gc, + enum _DtGrColorModel color_model, + Boolean allow_reduced_colors, + Dimension *in_out_width, + Dimension *in_out_height, + unsigned short media_resolution, + Pixmap *ret_pixmap, + Pixmap *ret_mask, + Pixel **ret_colors, + int *ret_num_colors, + _DtGrContext *context); + +/* Destroys a context */ +void _DtGrDestroyContext( + _DtGrContext *context); + +/* Registers a converter for a graphic type */ +void _DtGrRegisterConverter( + char *image_type, + _DtGrLoadProc convert_proc, + _DtGrDestroyContextProc destroy_context_proc, + _DtGrLoadProc *current_convert_proc, + _DtGrDestroyContextProc *current_destroy_proc); + +#ifdef __cplusplus +} +#endif +#endif /* _DtGraphicsP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/HelpTermP.h b/cde/include/DtI/HelpTermP.h new file mode 100644 index 00000000..cdf6c783 --- /dev/null +++ b/cde/include/DtI/HelpTermP.h @@ -0,0 +1,201 @@ +/* + * 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: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: FormatTerm.h + ** + ** Project: Cache Creek (Rivers) Project: + ** + ** Description: Public Header file for FormatTerm.c, the terminal access + ** functions. + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpFormatTermP_h +#define _DtHelpFormatTermP_h + + +#ifdef __cplusplus +extern "C" { +#endif + +/************************** + * Link Types and Window + * Hints should match what + * is in Canvas.h + **************************/ +/************************** + * Link Types + **************************/ + +#ifndef CELinkType_Execute +#define CELinkType_Execute 3 +#endif +#ifndef CELinkType_ManPage +#define CELinkType_ManPage 4 +#endif +#ifndef CELinkType_AppDefine +#define CELinkType_AppDefine 5 +#endif +#ifndef CELinkType_SameVolume +#define CELinkType_SameVolume 6 +#endif +#ifndef CELinkType_CrossLink +#define CELinkType_CrossLink 7 +#endif +#ifndef CELinkType_TextFile +#define CELinkType_TextFile 8 +#endif + + +/************************** + * Window Hint Kinds + **************************/ + +#ifndef CEWindowHint_PopupWindow +#define CEWindowHint_PopupWindow 1 +#endif +#ifndef CEWindowHint_CurrentWindow +#define CEWindowHint_CurrentWindow 2 +#endif +#ifndef CEWindowHint_NewWindow +#define CEWindowHint_NewWindow 3 +#endif + +/******** Public Defines Declarations ********/ + +/******** Public Structures Declarations ********/ + + +/***************************************************************************** + * Structure: DtHelpHyperLines + * + * Fields: title Indicates the title of the linked topic. + * specification Contains the hypertext link information. + * hyper_type Specifies the hypertext links type. + * + * + *****************************************************************************/ +typedef struct { + char *title; + char *specification; + int hyper_type; + int win_hint; +} DtHelpHyperLines; + + +/******** Public Function Declarations ********/ + +/***************************************************************************** + * Function: extern void _DtHelpFreeTopicData ( + * char **helpList, + * DtHelpHyperLines *hyperList) + * + * + * Parameters: helpList Specifies the parent widget ID. + * hyperList Specifies the name of the created dialog + * + * Return Value: void. + * + * Purpose: Free up the info gotten by _DtHelpGetTopicData. + * + *****************************************************************************/ +extern void _DtHelpFreeTopicData ( + char **helpList, + DtHelpHyperLines *hyperList); + + + +/***************************************************************************** + * Function: extern int _DtHelpGetTopicData( + * char *helpVolume, + * char *locationID, + * int maxColumns, + * char ***helpList, + * DtHelpHyperLines **hyperList); + * + * Parameters: + * + * + * Return Value: int value, -1 implies that the function call failed, a + * value of 0, implies that the call was successful. + * + * Purpose: Allows developers to extract semi-formatted ASCII data + * from a Cache Creek help file. + * + *****************************************************************************/ +extern int _DtHelpGetTopicData ( + char *helpVolume, + char *locationID, + int maxColumns, + char ***helpList, + DtHelpHyperLines **hyperList); + + + +/***************************************************************************** + * Function: extern int _DtHelpProcessLinkData( + * DtHelpHyperLines *hyperLine, + * char **helpVolume, + * char **locationId ) + * + * + * Parameters: + * + * + * Return Value: int value, -1 implies that the function call failed, a + * value of 0, implies that the call was successful. + * + * Purpose: This function is used in conjunction with the + * _DtHelpGetTopicData() function call to provide developers + * with a mechanism in which they can traverse Cache Creek + * hypertext links. This call will return the file and + * locationid information that when used with the + * DtGetTopicData function will retrrieve the help text + * and new hypertext information associated with the previous + * hypertext link information. + * + *****************************************************************************/ +extern int _DtHelpProcessLinkData ( + char *ref_volume, + DtHelpHyperLines *hyperLine, + char **helpVolume, + char **locationId); + + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + + +#endif /* _DtHelpFormatTermP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/HelposI.h b/cde/include/DtI/HelposI.h new file mode 100644 index 00000000..bf405885 --- /dev/null +++ b/cde/include/DtI/HelposI.h @@ -0,0 +1,159 @@ +/* + * 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: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: DtosI.h + ** + ** Project: Rivers Project, + ** + ** Description: Internal header file for our Dtos.c module + ** ----------- + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtosI_h +#define _DtosI_h + + +#ifndef NO_MESSAGE_CATALOG +# define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s) +#else +# define _DTGETMESSAGE(set, n, s) s +#endif + + +/***************************************************************************** + * Function: Boolean _DtHelpOSGetHomeDirName( + * + * + * Parameters: Output string, size of output string buffer + * + * Return Value: String. + * + * + * Description: + * + *****************************************************************************/ +extern void _DtHelpOSGetHomeDirName( + String outptr, + size_t len); + +/***************************************************************************** + * Function: _DtHelpGetUserSearchPath( + * + * + * Parameters: + * + * Return Value: String, owned by caller. + * + * + * Description: + * Gets the user search path for use + * when searching for a volume. + * Takes path from the environment, + * or uses the default path. + * + *****************************************************************************/ +String _DtHelpGetUserSearchPath(void); + + +/***************************************************************************** + * Function: _DtHelpGetSystemSearchPath( + * + * + * Parameters: + * + * Return Value: String, owned by caller. + * + * + * Description: + * Gets the system search path for use + * when searching for a volume. + * Takes path from the environment, + * or uses the default path. + * + *****************************************************************************/ +String _DtHelpGetSystemSearchPath(void); + + + +/***************************************************************************** + * Function: Boolean _DtHelpGetMessage( + * + * + * Parameters: + * + * Return Value: char * + * + * + * Description: This function will retreive the requested message from the + * cache proper cache creek message catalog file. + * + *****************************************************************************/ +extern char *_DtHelpGetMessage( + int set, + int n, + char *s); + + +/***************************************************************************** + * Function: char * _DtHelpGetLocale( + * + * + * Parameters: + * + * Return Value: char * + * + * + * Description: Returns the value of LC_MESSAGES from the environ. + * If that is NULL, returns the value of LANG form the environ. + * If that is NULL, returns NULL. + * + *****************************************************************************/ +extern char *_DtHelpGetLocale(void); + + +#endif /* _DtosI_h */ +/* Do not add anything after this endif. */ + + + + + + + + + + + + + diff --git a/cde/include/DtI/HourGlassI.h b/cde/include/DtI/HourGlassI.h new file mode 100644 index 00000000..72e96451 --- /dev/null +++ b/cde/include/DtI/HourGlassI.h @@ -0,0 +1,120 @@ +/* + * 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: HourGlassI.h /main/5 1995/10/26 12:27:38 rswiston $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: HourGlassI.h + ** + ** Project: Cache Creek + ** + ** Description: Internal include file for HourGlass Library. + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _hourglassI_h +#define _hourglassI_h + +/* DtHelpGetHourGlassCursor - + * + * Builds and returns the appropriate HourGlass cursor. + */ + +extern Cursor DtHelpGetHourGlassCursor( + Display *dpy) ; + +/* DtHelpTurnOnHourGlass - + * + * Gets and displays an hourglass cursor in the window of the widget + * which is passed in to the funciton. + */ + +extern void _DtHelpTurnOnHourGlass( + Widget w) ; + + /* Widget widget; + * + * widget is the toplevel shell of the window you want + * the hourglass cursor to appear in. + */ + + +/* DtHelpTurnOffHourGlass - + * + * Removes the hourglass cursor from the window of the widget + * which is passed in to the funciton. + */ + +extern void _DtHelpTurnOffHourGlass( + Widget w) ; + + /* Widget widget; + * + * widget is the toplevel shell of the window you want + * to remove hourglass cursor from. + */ + +/* DtHelpTurnOnNoEnter - + * + * Removes the hourglass cursor from the window of the widget + * which is passed in to the funciton. + */ + +extern void _DtHelpTurnOnNoEnter( + Widget w) ; + + /* Widget widget; + * + * widget is the toplevel shell of the window you want + * to remove hourglass cursor from. + */ + +/* DtHelpTurnOffNoEnter - + * + * Removes the hourglass cursor from the window of the widget + * which is passed in to the funciton. + */ + +extern void _DtHelpTurnOffNoEnter( + Widget w) ; + + /* Widget widget; + * + * widget is the toplevel shell of the window you want + * to remove hourglass cursor from. + */ + + +#endif /* _hourglassI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/JpegUtilsI.h b/cde/include/DtI/JpegUtilsI.h new file mode 100644 index 00000000..4b51dd45 --- /dev/null +++ b/cde/include/DtI/JpegUtilsI.h @@ -0,0 +1,48 @@ +/* + * 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: JpegUtilsI.h /main/3 1996/10/06 19:37:31 rws $ */ +#ifndef _DtJpegUtilsI_h +#define _DtJpegUtilsI_h + +/* Include files */ + +#include +#include "GraphicsP.h" + +/* Function prototypes */ + +/* Creates a pixmap from a jpeg stream */ +enum _DtGrLoadStatus jpeg_to_ximage ( + _DtGrStream *stream, + Screen *screen, + Visual *visual, + Dimension *in_out_width, + Dimension *in_out_height, + XImage **ximage, + XColor **xcolors, + int *ncolors, + int *xres +); + +#endif /* _DtJpegUtilsI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/LinkMgrP.h b/cde/include/DtI/LinkMgrP.h new file mode 100644 index 00000000..d4983cfa --- /dev/null +++ b/cde/include/DtI/LinkMgrP.h @@ -0,0 +1,81 @@ +/* + * 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: LinkMgrP.h /main/2 1996/05/09 03:43:50 drk $ */ +/*************************************<+>************************************* + ***************************************************************************** + ** + ** File: LinkMgrP.h + ** + ** Project: + ** + ** Description: Public Header file for the Ling Manager + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtCvLinkMgrP_h +#define _DtCvLinkMgrP_h + + +#ifdef __cplusplus +extern "C" { +#endif + +/******** Typedef Structures Declarations ********/ +#if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrI_h) +typedef struct _dtCvLinkDb* _DtCvLinkDb; +#endif + +/******** Public Function Declarations ********/ + +extern int _DtLinkDbAddLink ( + _DtCvLinkDb link_db, + char *id, + char *spec, + int type, + int hint, + char *description); +extern int _DtLinkDbAddSwitch ( + _DtCvLinkDb link_db, + char *id, + char *interp, + char *cmd, + char *branches); +extern _DtCvLinkDb _DtLinkDbCreate (void); +extern void _DtLinkDbDestroy (_DtCvLinkDb link_db); +extern void _DtLinkDbRemoveLink( + _DtCvLinkDb link_data, + int link_index); + +#ifdef __cplusplus +} /* Close scope of 'extern "C"' declaration which encloses file. */ +#endif + +#endif /* _DtCvLinkMgrP_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/RegionI.h b/cde/include/DtI/RegionI.h new file mode 100644 index 00000000..bde5cc04 --- /dev/null +++ b/cde/include/DtI/RegionI.h @@ -0,0 +1,67 @@ +/* + * 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: RegionI.h /main/3 1996/05/09 03:44:34 drk $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: RegionI.h + ** + ** Project: Cde Help System + ** + ** Description: Defines the Region structure. + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpRegionI_h +#define _DtHelpRegionI_h + +/******** Public Enum Declarations ********/ + +enum _dtHelpDARegType + { + _DtHelpDAGraphic, + _DtHelpDASpc + }; + +typedef enum _dtHelpDARegType _DtHelpDARegType; + +/******** Public Structure Declarations ********/ + +typedef struct _dtHelpDARegion { + short inited; + _DtHelpDARegType type; + _DtCvPointer handle; +} _DtHelpDARegion; + +typedef struct _dtHelpDASpcInfo { + char *name; + _DtHelpFontHints spc_fonts; +} _DtHelpDASpcInfo; + +#endif /* _DtHelpRegionI_h */ diff --git a/cde/include/DtI/SetListI.h b/cde/include/DtI/SetListI.h new file mode 100644 index 00000000..40e1fd59 --- /dev/null +++ b/cde/include/DtI/SetListI.h @@ -0,0 +1,79 @@ +/* + * 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: SetListI.h /main/6 1995/12/08 13:00:59 cde-hal $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: SetList.h + ** + ** Project: TextGraphic Display routines + ** + ** Description: Header file for SetListTG.h + ** + ** + ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company + ** + ** (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 _DtHelpSetListI_h +#define _DtHelpSetListI_h + +#ifdef __cplusplus +extern "C" { +#endif + +extern XtPointer _DtHelpDisplayAreaData( + XtPointer client_data); +extern void _DtHelpDisplayAreaDimensionsReturn ( + XtPointer client_data, + short *ret_rows, + short *ret_columns ); +extern void _DtHelpDisplayAreaSetList ( + XtPointer client_data, + XtPointer topicHandle, + Boolean append_flag, + int scroll_percent); +extern Widget _DtHelpDisplayAreaWidget( + XtPointer client_data); +extern int _DtHelpGetScrollbarValue ( + XtPointer client_data); +extern Boolean _DtHelpSetScrollBars ( + XtPointer client_data, + Dimension new_width, + Dimension new_height ); +extern int _DtHelpUpdatePath ( + DtHelpDispAreaStruct *pDAS, + _DtHelpVolumeHdl volume_handle, + char *loc_id); + +#ifdef __cplusplus +} +#endif +#endif /* _DtHelpSetListI_h */ diff --git a/cde/include/DtI/XUICreateI.h b/cde/include/DtI/XUICreateI.h new file mode 100644 index 00000000..d5bdcf7d --- /dev/null +++ b/cde/include/DtI/XUICreateI.h @@ -0,0 +1,117 @@ +/* + * 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: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */ +/************************************<+>************************************* + **************************************************************************** + ** + ** File: XUICreateI.h + ** + ** Project: Cde Help System + ** + ** Description: Internal file for XUICreate.c + ** + **************************************************************************** + ************************************<+>*************************************/ +/* + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, + 1993, 1994, 1996 Hewlett-Packard Company. + * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. + * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. + * (c) Copyright 1993, 1994, 1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef _DtHelpCreateI_h +#define _DtHelpCreateI_h + +#include "Dt/CanvasP.h" + +#ifdef __cplusplus +extern "C" { +#endif +/***************************************************************************** + * Defines + *****************************************************************************/ +/* + * scroll bar flags + */ +#define _DtHelpNONE 0 +#define _DtHelpSTATIC 1 +#define _DtHelpAS_NEEDED 2 + +#define _DtHelpVERTICAL_SCROLLBAR 0 +#define _DtHelpHORIZONTAL_SCROLLBAR 1 + +/* + * scroll bar macros + */ +#define _DtHelpSET_AS_NEEDED(x,y) ((x) | (1 << y)) +#define _DtHelpIS_AS_NEEDED(x, y) ((x) & (1 << y)) + +/***************************************************************************** + * Semi-Public Routines + *****************************************************************************/ +extern void __DtHelpInitializeFontList ( + Display *dpy, + XFontStruct *default_font); + +/***************************************************************************** + * Public Routines + *****************************************************************************/ +extern XtPointer _DtHelpCreateDisplayArea ( + Widget parent, + char *name, + short vert_flag, + short horiz_flag, + Boolean marker_flag, + int rows, + int columns, + void (*hyperTextCB)(), + void (*resizeCB)(), + int (*exec_ok_routine)(), + XtPointer client_data, + XmFontList default_list ); + +extern XtPointer _DtHelpCreateOutputArea ( + Widget parent, + char *name, + short vert_flag, + short horiz_flag, + Boolean marker_flag, + _DtCvValue honor_size, + _DtCvRenderType render_type, + Dimension width, + Dimension height, + unsigned short media_resolution, + void (*hyperTextCB)(), + void (*resizeCB)(), + int (*exec_ok_routine)(), + XtPointer client_data, + XmFontList default_list ); + +#ifdef __cplusplus +} +#endif +#endif /* _DtHelpCreateI_h */ diff --git a/cde/include/DtI/XbmUtilsI.h b/cde/include/DtI/XbmUtilsI.h new file mode 100644 index 00000000..afb4d082 --- /dev/null +++ b/cde/include/DtI/XbmUtilsI.h @@ -0,0 +1,57 @@ +/* + * 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: XbmUtilsI.h /main/2 1996/05/09 03:45:01 drk $ */ +#ifndef _DtXbmUtilsI_h +#define _DtXbmUtilsI_h + +/* Include files */ + +#include +#include "GraphicsP.h" + +/* Function prototypes */ + +/* Reads an XBM stream into a data buffer */ +int _DtGrReadBitmapStreamData ( + _DtGrStream *fstream, + unsigned int *width, /* RETURNED */ + unsigned int *height, /* RETURNED */ + unsigned char **data, /* RETURNED */ + int *x_hot, /* RETURNED */ + int *y_hot /* RETURNED */ +); + +/* Converts an XBM stream into an X pixmap */ +int _DtGrReadBitmapStream ( + Display *display, + Drawable d, + _DtGrStream *stream, + unsigned int *width, /* RETURNED */ + unsigned int *height, /* RETURNED */ + Pixmap *pixmap, /* RETURNED */ + int *x_hot, /* RETURNED */ + int *y_hot /* RETURNED */ +); + +#endif /* _DtXbmUtilsI_h */ +/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/include/DtI/bufioI.h b/cde/include/DtI/bufioI.h new file mode 100644 index 00000000..b0b9db78 --- /dev/null +++ b/cde/include/DtI/bufioI.h @@ -0,0 +1,93 @@ +/* + * 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: bufioI.h /main/5 1995/10/26 12:36:33 rswiston $ */ +#ifndef _DtHelpbufioI_h +#define _DtHelpbufioI_h + +#include /* for FILE */ + +#ifndef NULL +#define NULL 0 +#endif + +#define BUFFILESIZE 4096 +#define BUFFILEEOF -1 + +typedef unsigned char BufChar; + +typedef struct _buffile { + BufChar *bufp; + int left; + BufChar buffer[BUFFILESIZE]; + int (*io)(/* BufFilePtr f */); + int (*skip)(/* BufFilePtr f, int count */); + int (*close)(/* BufFilePtr f */); + char *hidden; +} BufFileRec, *BufFilePtr; + +typedef struct _compressInfo{ + int fd; + int size; +} CECompressInfo, *CECompressInfoPtr; + +extern BufFilePtr __DtBufFileCreate (); +extern BufFilePtr _DtHelpCeBufFilePushZ (); +extern BufFilePtr _DtHelpCeBufFileOpenWr (); +extern int _DtHelpCeBufFileFlush (); +#define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f)) +#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->io) (c,f)) +#define BufFilePutBack(c,f) { (f)->left++; *(--(f)->bufp) = (c); } +#define BufFileSkip(f,c) ((*(f)->skip) (f, c)) + +#define FileStream(f) ((FILE *)(f)->hidden) + +extern void _DtHelpCeBufFileClose ( + BufFilePtr f, + int doClose); +extern BufFilePtr _DtHelpCeBufFileCreate ( + char *hidden, + int (*io)(), + int (*skip)(), + int (*close)()); +extern int _DtHelpCeBufFileRd ( + BufFilePtr f, + char *buffer, + int request_size); +extern BufFilePtr _DtHelpCeBufFileRdWithFd ( + int fd); +extern BufFilePtr _DtHelpCeBufFileRdRawZ ( + CECompressInfoPtr file_info); +extern BufFilePtr _DtHelpCeCreatePipeBufFile ( + FILE *stream); +extern int _DtHelpCeUncompressFile ( + char *in_file, + char *out_file); + +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + +#endif /* _DtHelpbufioI_h */ diff --git a/cde/include/SPC/chars.h b/cde/include/SPC/chars.h new file mode 100644 index 00000000..f1c4673c --- /dev/null +++ b/cde/include/SPC/chars.h @@ -0,0 +1,48 @@ +/* + * 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: char.h $XConsortium: chars.h /main/3 1995/10/26 15:43:03 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 _chars_h +#define _chars_h + +#define Space (XeChar) ' ' +#define Newline (XeChar) '\n' +#define Tab (XeChar) '\t' +#define Pound (XeChar) '#' +#define Pad (XeChar) '\0' +#define Colon (XeChar) ':' +#define Equal (XeChar) '=' + +#define Nil_String (XeString) "" + +#endif /* _chars_h */ diff --git a/cde/include/SPC/spc-obj.h b/cde/include/SPC/spc-obj.h new file mode 100644 index 00000000..e694de75 --- /dev/null +++ b/cde/include/SPC/spc-obj.h @@ -0,0 +1,118 @@ +/* + * 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-obj.h $XConsortium: spc-obj.h /main/3 1995/10/26 15:43:20 rswiston $ + * Language: C + * + * (c) Copyright 1989, 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 _spc_obj_h +#define _spc_obj_h + +typedef SPC_Channel_Ptr (*SPC_F_open)(SPC_Channel_Ptr, int, XeString); +typedef int (*SPC_F_close)(SPC_Channel_Ptr); +typedef int (*SPC_F_read)(SPC_Channel_Ptr, int, XeString, int); +typedef int (*SPC_F_write)(SPC_Channel_Ptr, XeString, int); +typedef int (*SPC_F_reset)(SPC_Channel_Ptr); +typedef int (*SPC_F_exec_proc)(SPC_Channel_Ptr); +typedef int (*SPC_F_signal)(SPC_Channel_Ptr, int); +typedef int (*SPC_F_attach)(SPC_Channel_Ptr, int); +typedef int (*SPC_F_add_input)(SPC_Channel_Ptr, SbInputHandlerProc, void *); +typedef int (*SPC_F_wait_for_termination)(SPC_Channel_Ptr); +typedef int (*SPC_F_pre_fork)(SPC_Channel_Ptr); +typedef int (*SPC_F_post_fork)(SPC_Channel_Ptr, int); +typedef int (*SPC_F_remove_logfile)(SPC_Channel_Ptr); + +/* + ** + ** New methods for B.00 + ** +*/ + +typedef int (*SPC_F_send_eof)(SPC_Channel_Ptr); +typedef int (*SPC_F_set_termio)(SPC_Channel_Ptr, int, int, struct termios *); + +#define channel_class_part \ + root_class_part \ + SPC_F_open open; /* opening a channel */ \ + SPC_F_close close; /* close a channel */ \ + SPC_F_read read; /* read from a channel */ \ + SPC_F_write write; /* write to a channel */ \ + SPC_F_reset reset; /* reset io to channel */ \ + SPC_F_exec_proc exec_proc; /* execute a subprocess over a channel */ \ + SPC_F_signal signal; /* signal a subprocess over a channel */ \ + SPC_F_attach attach; /* attach a subprocess to this channel */ \ + SPC_F_add_input add_input; /* how to add input callbacks to channel */ \ + SbInputCallbackProc input; \ + SPC_F_wait_for_termination wait_for_termination; /* wait for subprocess to exit */ \ + SPC_F_pre_fork pre_fork; /* setup before a fork */ \ + SPC_F_post_fork post_fork; /* setup after a fork */ \ + SPC_F_remove_logfile remove_logfile; /* remove log file associated with channel */ \ + SPC_F_send_eof send_eof; /* close stdin of subprocess */ \ + SPC_F_set_termio set_termio; /* set termio struct for PTY channels */ + +typedef struct channel_class { + root_clasp base; + channel_class_part + } *channel_clasp; + +typedef struct pty_channel_class { + channel_clasp base; + channel_class_part + } *pty_channel_clasp; + +typedef struct pipe_channel_class { + channel_clasp base; + channel_class_part + } *pipe_channel_clasp; + +typedef struct noio_channel_class { + channel_clasp base; + channel_class_part + } *noio_channel_clasp; + +typedef struct remote_channel_class { + channel_clasp base; + channel_class_part + } *remote_channel_clasp; + +#define call_parent_method(channel, func, args, result) { \ + pipe_channel_clasp parent_class=(pipe_channel_clasp) (channel)->class_ptr; \ + result=base_memf(parent_class, func, args); } + +/* class definitions */ + +extern channel_clasp channel_class; +extern pty_channel_clasp pty_channel_class; +extern pipe_channel_clasp pipe_channel_class; +extern noio_channel_clasp noio_channel_class; +extern remote_channel_clasp remote_channel_class; + +#endif /* _spc_obj_h */ + diff --git a/cde/include/SPC/spc-proto.h b/cde/include/SPC/spc-proto.h new file mode 100644 index 00000000..c22b8a82 --- /dev/null +++ b/cde/include/SPC/spc-proto.h @@ -0,0 +1,297 @@ +/* + * 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-proto.h $XConsortium: spc-proto.h /main/3 1995/10/26 15:43:39 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 _spc_proto_h +#define _spc_proto_h + +/* + * Commands which are known to spcd and clients + */ + +/* The internet service */ + +#define SPC_SERVICE (XeString)"dtspc" /* The name of the registered service */ +#define SPC_PROTOCOL (XeString)"tcp" /* The name of the registered protocol */ + + /* MUST be a DECIMAL number as "%d" */ +#define SPC_PROTOCOL_VERSION_CDE_BASE 1000 +#define SPC_PROTOCOL_VERSION SPC_PROTOCOL_VERSION_CDE_BASE + /* is used to read the string version */ +#define SPC_PROTOCOL_VERSION_CDE_BASE_STR "1000" +#define SPC_PROTOCOL_VERSION_STR SPC_PROTOCOL_VERSION_CDE_BASE_STR + + /* We could make this user config for old domain systems? */ +#define SPC_UNKNOWN_HOSTINFO_STR "HP-UX:7.0:*" +/* + ** + ** Pseudo-filenames used for validating user + ** +*/ + +#define PASSED_FILE_NAME (XeString)"!" +#define FAILED_FILE_NAME (XeString)"!" + +/* + *** Protocol command numbers. These MUST remain in the same order + *** to work with previous version of the spcd + */ + +/* Connections to the server */ + +#define APPLICATION_DATA 0 /* send data to subprocess */ +#define APPLICATION_STDOUT 1 /* data from subprocess */ +#define APPLICATION_STDERR 2 /* error messages from subprocess */ + +#define ABORT 3 /* Client aborted */ +#define REGISTER 4 /* Register client */ +#define UNREGISTER 5 /* Unregister client */ + +/* Channel requests */ + +#define CHANNEL_OPEN 6 /* enable this channel for read/write */ +#define CHANNEL_CLOSE 7 /* no more i/o to this channel (send EOF) */ +#define CHANNEL_RESET 8 /* reset this channel */ +#define CHANNEL_ATTACH 9 /* attach PTY device to this channel */ + +/* Application messages, client -> server */ + +#define APPLICATION_SPAWN 10 /* start up subprocess */ +#define APPLICATION_SIGNAL 11 /* send signal to subprocess */ + +/* application messages, server -> client */ + +#define APPLICATION_DIED 12 /* sent when subprocess dies */ + +#define SERVER_ERROR 13 /* server has detected an error */ +#define REPLY 14 +#define SERVER_DEBUG 15 +#define ENVIRON_RESET 16 + +/* Query / reply protocols, client -> server -> client */ + +#define QUERY_DEVICES 17 +#define DEVICE_REPLY 18 + +#define QUERY_LOGFILE 19 +#define LOGFILE_REPLY 20 + +/* Application messages, client -> server */ + +#define DELETE_LOGFILE 21 + +#define RESET_TERMIO 22 /* This is obsolete, (hpux binary version) */ +#define RESET_TERMIOS 23 + +/* New B.00 protocol requests */ + +#define CHANNEL_SEND_EOF 24 /* Send EOF to standard input of sub process */ +#define CHANNEL_TERMIOS 25 /* Send termios info for a particular pty */ +#define APP_B00_SPAWN 26 /* Enhanced spawn */ + +#define NREQS 27 /* total number of requests. If + any are added, this should constant + should reflect the new total */ + +#define PROT_TO_CONNECTOR(a) a +#define CONNECTOR_TO_PROT(a) a + +#define PDRP(_pdata) _pdata->data+REQUEST_HEADER_LENGTH + +#define WRITE_INT(pdata, val)\ + sprintf_len(PDRP(pdata), (XeString)"%x", val) +#define READ_INT(pdata, val) sscanf(PDRP(pdata), (XeString)"%x", &val) + +#define WRITE_STRING(pdata, name)\ + sprintf_len(PDRP(pdata), (XeString)"%s", name) +#define READ_STRING(pdata, name) sscanf(PDRP(pdata), (XeString)"%s", name) +#define READ_STRING_NO_COPY(pdata, name) (name = PDRP(pdata)) + +#define WRITE_ABORT WRITE_INT +#define READ_ABORT READ_INT + +#define WRITE_OPEN WRITE_INT +#define READ_OPEN READ_INT + +#define WRITE_ATTACH WRITE_INT +#define READ_ATTACH READ_INT + +#define WRITE_APPLICATION_DIED WRITE_INT +#define READ_APPLICATION_DIED READ_INT + +#define WRITE_DEBUG WRITE_STRING +#define READ_DEBUG READ_STRING + +#define WRITE_ERROR WRITE_INT +#define READ_ERROR READ_INT + +#define WRITE_REGISTER(pdata, name, passwd, proto_ver, hostinfo)\ + sprint_register_data(PDRP(pdata), name, passwd, proto_ver, hostinfo) + +#define READ_REGISTER(pdata, name, passwd, proto_rev, hostinfo)\ + sscan_register_data(PDRP(pdata), &name, &passwd, &proto_rev, &hostinfo) + +#define WRITE_REPLY(pdata, val, err)\ + sprintf_len(PDRP(pdata), (XeString)"%x %x", val, err) +#define READ_REPLY(pdata, val, err)\ + sscanf(PDRP(pdata), (XeString)"%x %x", &val, &err) + +#define WRITE_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \ + sprint_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2) +#define READ_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \ + sscan_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2) + +#define WRITE_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \ + sprint_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo) +#define READ_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \ + sscan_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo) + +#define WRITE_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \ + sprint_application_data(PDRP(pdata), (XeString)"%s %d %d ", \ + path, dir, argv, envp, REQUEST_HEADER_LENGTH) +#define READ_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \ + sscan_application_data(PDRP(pdata), (XeString)"%s %d %d ", \ + &path, &dir, &argv, &envp, REQUEST_HEADER_LENGTH) + +#define WRITE_ENVIRON_RESET(pdata, numenv) \ + sprintf_len(PDRP(pdata), (XeString)"%d ", numenv) +#define READ_ENVIRON_RESET(pdata, numenv) \ + sscanf(PDRP(pdata), (XeString)"%d ", &numenv) + +#define WRITE_APP_DATA(pdata, buffer, len) \ + (memcpy(PDRP(pdata), buffer, len), len) + +/* New B.00 protocol requests */ +#define WRITE_TERMIOS(pdata, connector, side, buffer) \ + sprintf_len(PDRP(pdata), (XeString)"%d %d %s", connector, side, buffer) +#define READ_TERMIOS(pdata, connector, side, buffer) \ + sscanf(PDRP(pdata), (XeString)"%d %d %s", &connector, &side, buffer) + +/* Writing a header is special, as we don't want to be offset by + REQUEST_HEADER_LENGTH */ + +#define WRITE_HEADER(pdata, cid, type, len, seq) \ + sprintf_len(pdata->data, (XeString)"%08x%02x%04x%04x", cid, type, len, seq) +#define READ_HEADER(pdata, cid, type, len, seq) \ + sscanf(pdata->data, (XeString)"%8x%2x%4x%4x", cid, type, len, seq) + +#define min(a, b) (((a) < (b)) ? (a) : (b)) + +/* + ** + ** The test here is reversed, that is, we check only for those + ** requests where there is no reply expected, and assume the other + ** ones do expect replies. + ** +*/ + +#define NO_REPLY_VAL (-1) + +#define REPLY_EXPECTED(a, retval) \ + (((a==REPLY) || \ + (a==APPLICATION_DATA) || \ + (a==APPLICATION_STDOUT) || \ + (a==APPLICATION_STDERR) || \ + (a==REGISTER) || \ + (a==QUERY_LOGFILE) || \ + (a==QUERY_DEVICES) || \ + (a==ABORT) || \ + (a==SERVER_ERROR) \ + ) ? NO_REPLY_VAL : retval) + +typedef struct _prot_request { + buffered_data_ptr dataptr; + int seqno; + int request_type; + SPC_Channel_Ptr channel; + struct _prot_request *next; + } protocol_request, *protocol_request_ptr; + +typedef int (*protocol_request_handler)(protocol_request_ptr); + +/* spc-proto.c */ +buffered_data_ptr SPC_New_Buffered_Data_Ptr (void); +void SPC_Reset_Protocol_Ptr (protocol_request_ptr prot, SPC_Channel_Ptr channel, XeChar req, int len); +protocol_request_ptr SPC_New_Protocol_Ptr (SPC_Channel_Ptr channel, XeChar req, int len); +void SPC_Free_Protocol_Ptr (protocol_request_ptr prot); +SPC_Channel_Ptr SPC_Lookup_Channel (int cid, SPC_Connection_Ptr connection); +SPC_Connection_Ptr SPC_Alloc_Connection (void); +SPC_Connection_Ptr SPC_Lookup_Connection (XeString hostname); +SPC_Connection_Ptr SPC_Lookup_Connection_Fd (int fd); +SPC_Connection_Ptr SPC_Make_Connection (XeString hostname); +void SPC_Add_Connection (SPC_Connection_Ptr connection); +void SPC_Close_Connection (SPC_Connection_Ptr connection); +int SPC_Read_Chars (SPC_Connection_Ptr connection, int request_len, XeString charptr); +int SPC_Write_Chars (int fd, XeString charptr, int request_len); +protocol_request_ptr SPC_Read_Protocol (SPC_Connection_Ptr connection); +protocol_request_ptr SPC_Filter_Connection (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int reqtype, int deletep); +void SPC_Flush_Queued_Data (SPC_Channel_Ptr channel); +int SPC_Read_Remote_Data (SPC_Channel_Ptr channel, int connector, XeString client_buffer, int nbytes); +int print_protocol_request (XeString name, protocol_request_ptr proto); +int SPC_Write_Protocol_Request (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int request, ...); +int SPC_Write_Single_Prot_Request (SPC_Connection_Ptr connection, XeString name, protocol_request_ptr prot); +int SPC_Waitfor_Reply (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int seqno); +int SPC_Dispatch_Protocol (protocol_request_ptr proto, protocol_request_handler *); +int SPC_Write_Reply (SPC_Connection_Ptr conn, protocol_request_ptr proto, int retval, int errval); +int SPC_Send_Environ (SPC_Connection_Ptr connection, protocol_request_ptr prot); +int sprint_counted_string (XeString buf, int count, XeString *vect, int limit); +XeString *sscan_counted_string (XeString buf, XeString *newbuf); +int sprint_application_data (XeString buf, XeString fmt, XeString path, XeString dir, XeString *argv, XeString *envp, int chars_used); +int sscan_application_data (XeString buf, XeString fmt, XeString *path, XeString *dir, XeString **argv, XeString **envp, int offset); +int sprint_device_data (XeString buf, XeString m0, XeString s0, XeString m1, XeString s1, XeString m2, XeString s2); +int sscan_device_data (XeString buf, XeString *m0, XeString *s0, XeString *m1, XeString *s1, XeString *m2, XeString *s2); +int sprint_logfile_data (XeString buf, XeString logfile, XeString proto_ver, XeString hostinfo); +int sscan_logfile_data (XeString buf, XeString *logfile, XeString *proto_ver, XeString *hostinfo); +int sprint_register_data (XeString buf, XeString username, XeString passwd, XeString proto_ver, XeString hostinfo); +int sscan_register_data (XeString buf, XeString *username, XeString *passwd, XeString *proto_ver, XeString *hostinfo); +int SPC_Query_Devices (SPC_Channel_Ptr channel); +int SPC_Query_Logfile (SPC_Channel_Ptr channel); +int SPC_Validate_User (XeString hostname, SPC_Connection_Ptr connection); +int SPC_Get_Termio (protocol_request_ptr prot_request); +int SPC_Get_Termios (protocol_request_ptr prot_request); +XeString SPC_LocalHostinfo(void); +int SPC_Send_Multi_Packet(SPC_Connection_Ptr connection, + protocol_request_ptr prot, + char **str_vect, + int num_str, + int req, + XeString name, + int errid); +char **SPC_Get_Multi_Packet(SPC_Connection_Ptr connection, + protocol_request_ptr prot, + char **out, + int *outlen, + int request, + XeString name); + +#endif /* _spc_proto_h */ diff --git a/cde/include/SPC/spcE.h b/cde/include/SPC/spcE.h new file mode 100644 index 00000000..a19c47e7 --- /dev/null +++ b/cde/include/SPC/spcE.h @@ -0,0 +1,126 @@ +/* + * 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: spcE.h $XConsortium: spcE.h /main/3 1995/10/26 15:43: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 _spcE_h +#define _spcE_h + +/* Keep this up to date with the first error number declared below */ +#define SPC_First_Error_Number 100 +#define SPC_Min_Error SPC_First_Error_Number + +#define SPC_Out_Of_Memory 100 +#define SPC_Bad_Argument 101 +#define SPC_Active_Channel 102 +#define SPC_Inactive_Channel 103 +#define SPC_Internal_Error 104 +#define SPC_Cannot_Fork 105 +#define SPC_Cannot_Exec 106 +#define SPC_Cannot_Execute 107 +#define SPC_No_Pipe 108 +#define SPC_No_Pty 109 +#define SPC_Bad_Connector 110 +#define SPC_Reading 111 +#define SPC_Writing 112 +#define SPC_Bad_Service 113 +#define SPC_Bad_Port 114 +#define SPC_Unknown_Host 115 +#define SPC_Bad_Socket 116 +#define SPC_Bad_Connect 117 +#define SPC_Bad_Bind 118 +#define SPC_Bad_Listen 119 +#define SPC_Bad_Accept 120 +#define SPC_Bad_Linger 121 +#define SPC_Bad_Reuse 122 +#define SPC_Bad_Sockname 123 +#define SPC_Bad_Open 124 +#define SPC_Connection_EOF 125 +#define SPC_Timeout 126 +#define SPC_Protocol 127 +#define SPC_Unexpected_Reply 128 +#define SPC_No_Channel 129 +#define SPC_Illegal_Iomode 130 +#define SPC_No_Signal_Handler 131 +#define SPC_Bad_Operation 132 +#define SPC_Bad_Fd 133 +#define SPC_Bad_Ioctl 134 +#define SPC_Bad_Select 135 +#define SPC_Bind_Timeout 136 +#define SPC_Arg_Too_Long 137 +#define SPC_Write_Prot 138 +#define SPC_Bad_Username 139 +#define SPC_Bad_Password 140 +#define SPC_Client_Not_Valid 141 +#define SPC_Cannot_Open_Slave 142 +/* #define SPC_Register_Error 143 */ /* This has been obsoleted by the + expanded register errors below */ +#define SPC_Protocol_Abort 144 +#define SPC_Env_Too_Big 145 +#define SPC_Unlink_Logfile 146 +#define SPC_Closed_Channel 147 +#define SPC_Bad_Authentication 148 +#define SPC_Cannot_Open_Log 149 +#define SPC_Connection_Reset 150 +#define SPC_Register_Username 151 +#define SPC_Register_Netrc 152 +#define SPC_Register_Open 153 +#define SPC_Register_Handshake 154 + +#define SPC_Bad_Termios_Mode 155 +#define SPC_Bad_Termios_Speed 156 +#define SPC_Bad_Termios_CC 157 +#define SPC_Bad_Termios_Proto 158 + +#define SPC_Bad_Signal_Name 159 +#define SPC_Bad_Signal_Value 160 +#define SPC_Bad_Signal_Format 161 + +#define SPC_Bad_tc_Call 162 + +#define SPC_cannot_Chdir 163 + +#define SPC_Bad_Permission 164 +#define SPC_Cannot_Create_Netfilename 165 +#define SPC_Protocol_Version_Error 166 + +/* JET - a special error code for goobers trying to overflow our buffers. */ +/* VU#172583 */ +#define SPC_Buffer_Overflow 167 + +/* Keep this up to date with the last error number declared above */ +#define SPC_Max_Error 168 + +/* The definition of the SPC Error structure has been moved to spc.h + (to make it public) */ + +#endif /* _spcE_h */ diff --git a/cde/include/SPC/spcP.h b/cde/include/SPC/spcP.h new file mode 100644 index 00000000..603817ba --- /dev/null +++ b/cde/include/SPC/spcP.h @@ -0,0 +1,564 @@ +/* + * 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: spcP.h /main/4 1996/05/15 12:01:55 drk $ + * Language: C + * + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1988,1993,1994,1996 Hewlett-Packard Company. + * (c) Copyright 1993,1994,1996 International Business Machines Corp. + * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. + * (c) Copyright 1993,1994,1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef _spcP_h +#define _spcP_h + +#include /* hostent */ +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "chars.h" +#include "spcE.h" +#include "spc-obj.h" + +/* ---------------------------------------------------------------------- */ + +#ifndef CDE_CONFIGURATION_TOP +#define CDE_CONFIGURATION_TOP "/etc/opt/dt" +#endif +#ifndef CDE_INSTALLATION_TOP +#define CDE_INSTALLATION_TOP "/usr/dt" +#endif + +#define Stdin(chn) chn->file_descs[STDIN] +#define Stdout(chn) chn->file_descs[STDOUT] +#define Stderr(chn) chn->file_descs[STDERR] + +/* Some necessary identifiers */ +#define OK 0 +#define ERROR -1 +#define Undefined -1 + +/* Some character constants */ + +#define Channel_ByteID (XeChar)'\077' + +/* And finally, the common channel identifier */ +#ifndef BITSPERBYTE +#define BITSPERBYTE 8 +#endif +#define CID_High_Bits (Channel_ByteID << (BITSPERBYTE * (sizeof(int) - 1))) +#define CID_Middle_Bits (0x1010 << BITSPERBYTE) +#define CID_Low_Bits (Channel_ByteID & 0xff) + +#define Channel_Identifier (CID_High_Bits | CID_Middle_Bits | CID_Low_Bits) + +/*** Note: If device names ever increase from: /dev/ptym/ptyp0, look here ***/ +#define PTY_NAMLEN 20 +#define EXCEPT_FLAG -1 /* Used for TIOC handling in PTY's */ + +/* Define lengths of buffers for protocol requests and other sizes of things */ + +#define REQUEST_HEADER_LENGTH 20 +#define MAXREQLEN (SPC_BUFSIZ+REQUEST_HEADER_LENGTH) +#define DEFAULT_ENVP_SIZE 50 + +/* + ** + ** Definitions for select. + ** +*/ + +extern int max_fds; + +/* + * Macros to access SPC_IOMode bit fields + */ + +/* These are derived from above spc bit specifications */ +#define IS_SPCIO_STDIN(a) (a & SPCIO_WRITEONLY) +#define IS_SPCIO_STDOUT(a) (a & SPCIO_READONLY) +#define IS_SPCIO_STDERR(a) (a & SPCIO_ERRORONLY) +#define IS_SPCIO_SEPARATE(a) (a & SPCIO_SEPARATEREADERROR) + +#define IS_SPCIO_NOIO(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_NOIO) +#define IS_SPCIO_WRITEONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEONLY) +#define IS_SPCIO_READONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READONLY) +#define IS_SPCIO_READWRITE(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READWRITE) +#define IS_SPCIO_ERRORONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_ERRORONLY) +#define IS_SPCIO_WRITEERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEERROR) +#define IS_SPCIO_READERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READERROR) +#define IS_SPCIO_READWRITEERROR(a)((a&SPCIO_SOURCE_MASK) == SPCIO_READWRITEERROR) + +/* Style flags (mutually exclusive) */ +#define IS_SPCIO_PIPE(a) ((a & SPCIO_STYLE_MASK) == SPCIO_PIPE) +#define IS_SPCIO_PTY(a) ((a & SPCIO_STYLE_MASK) == SPCIO_PTY) +#define IS_SPCIO_NOIOMODE(a) ((a & SPCIO_STYLE_MASK) == SPCIO_NOIOMODE) + +#define IS_SPCIO_LINEEDIT(a) (a & SPCIO_LINEEDIT) + +/* Other non-mutually exclusive flags */ +#define IS_SPCIO_SYSTEM(a) (a & SPCIO_SYSTEM) +#define IS_SPCIO_LINEORIENTED(a)(a & SPCIO_LINEORIENTED) +#define IS_SPCIO_WAIT(a) (a & SPCIO_WAIT) +#define IS_SPCIO_TOOLKIT(a) (a & SPCIO_USE_XTOOLKIT) +#define IS_SPCIO_SYNC_TERM(a) (a & SPCIO_SYNC_TERMINATOR) +#define IS_SPCIO_USE_LOGFILE(a) (a & SPCIO_USE_LOGFILE) + +#define IS_SPCIO_SIGNAL_PGRP(a) (a & SPCIO_SIGNAL_PGRP) +#define IS_SPCIO_FORCE_CONTEXT(a) (a & SPCIO_FORCE_CONTEXT) + +#define SPCIO_HAS_DATA 0x2000 /* Used for line-oriented IO */ +#define HAS_DATA(chn) (((chn->IOMode) & SPCIO_HAS_DATA) == SPCIO_HAS_DATA) + +#define SPCIO_UNUSED3 0x80000 + +/* Flags for internal use only */ + +#define SPCIO_DEALLOC_ARGV 0x4000 +#define IS_SPCIO_DEALLOC_ARGV(a) (a & SPCIO_DEALLOC_ARGV) + +#define SPCIO_DELAY_CLOSE 0x8000 +#define IS_SPCIO_DELAY_CLOSE(a) (a & SPCIO_DELAY_CLOSE) + +#define SPCIO_DO_CLOSE 0x10000 +#define IS_SPCIO_DO_CLOSE(a) (a & SPCIO_DO_CLOSE) + +/* Make sure that STATE_OFFSET is always such that you will clear the + IOMode flags */ + +#define STATE_OFFSET 24 +#define SPCIO_ACTIVE (1<IOMode)) +#define IS_DATA(chn) (IS_SPCIO_DATA(chn->IOMode)) + +#define IS_REMOTE(chn) (chn->connection) + +/* SPC state machine */ + +#define CHANNEL_STATE(io_mode) ((io_mode)>>STATE_OFFSET & 0x3) +#define MAKE_CHANNEL_STATE(io_mode, _state) \ + (((_state)<> 1) +#define PROC_LINE(_state) ((_state) & 1) + +/* Defaults */ + +#define DEFAULT_CHANNEL_CLASS pty_channel_class +#define IS_SPCIO_DEFAULT(a) !((a) & SPCIO_STYLE_MASK) +#define SPCIO_DEFAULT SPCIO_PTY + +/* + * Type definitions for SPC file descriptors + */ + +/* Definitions for wires */ + +#define READ_SIDE 0 +#define WRITE_SIDE 1 + +/* + * Constants and external declarations for managing the SPC daemon's + * logfile list, exit timer and process id list. + */ +#define SPCD_DEFAULT_TIMEOUT 10 +#define SPCD_DEAD_PROCESS -1 +#define SPCD_NO_TIMER -1 +#define SPCD_REQUEST_PENDING 1 +#define SPCD_NO_REQUEST_PENDING 0 + +/* + * Constants for the 'SPC_who_am_i' variable. + */ +#define SPC_I_AM_A_CLIENT 1 +#define SPC_I_AM_A_DAEMON 2 + +/* + * External variables defined in noio.c + */ +extern char **SPC_logfile_list; + +/* + * External variables defined in spc-exec.c + */ +extern pid_t *SPC_pid_list; +extern char *SPC_mount_point_env_var; + +/* + * External variables defined in spc-obj.c + */ +extern int SPC_who_am_i; + +/* + * The client version number. + */ +extern int SPC_client_version_number; + +/* + * The name of the directory used for authentication and + * for temporary logfiles. + */ +extern XeString SPCD_Authentication_Dir; + +/* + * Definitions for file locations + */ +#define SPCD_ENV_INSTALL_DIRECTORY CDE_INSTALLATION_TOP "/config" +#define SPCD_ENV_CONFIG_DIRECTORY CDE_CONFIGURATION_TOP "/config" +#define SPCD_ENV_HOME_DIRECTORY ".dt" +#define SPCD_ENV_FILE "dtspcdenv" +#define SPCD_PROG_NAME "dtspcd" + +/* + * The name of the remove environment 'keyword'. + */ +#define SPC_REMOVE_VAR "unset" + +/* + *** + *** Start typedefs + *** +*/ + +typedef int Files[3]; /* Standard set of file descriptors */ +typedef int SPC_IOMode; /* Sub-Process Control IO Mode Bits */ + +/* This is a "wire", a data structure used in creating communication paths + to / from a subprocess. It encapsulates all the information needed by + all types of paths */ + +typedef struct _wire { + SPC_IOMode flags; /* Basically, acts like an IOMode, but + we are only interested in its data bits */ + int fd[2]; + XeString master_name, slave_name; + int read_toolkit_id, except_toolkit_id; + struct termios master_termio, slave_termio; + struct _wire *next; +} Wire; + +typedef struct _buffered_data { + XeChar data[MAXREQLEN]; + int len, offset; +} buffered_data, *buffered_data_ptr; + +typedef enum { + SPC_Input, + SPC_Exception, + SPC_Terminator, + SPC_Client + } SPC_Callback_Condition; + +/* + * Type definition for an SPC Connection (a socket to SPCD server) + */ + +typedef struct _SPC_Connection { + /* The host on which other end resides */ + XeChar hostname[MAXHOSTNAMELEN]; + int sid; /* The Socket ID */ + XeChar connected; /* Whether server connection is made */ + struct hostent *local; /* socket address information for */ + struct hostent *remote; /* ... local, remote machine */ + int termination_id; + struct _SPC_Connection + *next; /* The next server in the list */ + XeQueue queued_remote_data; /* queue for remote data */ + int protocol_version; /* Version of protocol of remote */ + XeString hostinfo; /* Info about remote, (type, os, etc) */ + +} SPC_Connection, *SPC_Connection_Ptr; + +/* + * This next macro returns a newly allocated string. + * The caller should free it. + */ + +#define CONNECTION_HOSTNAME(conn) \ + ((conn->remote) ? XeFindShortHost((conn)->remote->h_name) : \ + Xestrdup(XeString_Empty)) + +/* + * Type definition for an SPC Channel + */ + +typedef int (*SPC_F_read_filter)(SPC_Channel_Ptr, int, XeString, int); + +typedef struct _SPC_Channel { /* Sub-Process Control Channel */ + + /* stuff for SCOOP */ + channel_clasp class_ptr; + root_object_part + + /* First, we place a channel identifier, so we can check cid (see below) */ + int identifier; /* The common identifier for every channel */ + + /* The setup request information */ + SPC_Connection *connection; /* The connection structure (Local = NULL) */ + + XeString context_dir; /* Directory to "cd" to during spawn */ + XeString path; /* The command path pointer */ + XeString *argv; /* The command argument list pointers */ + XeString *envp; /* The command environment list pointers */ + + SPC_IOMode IOMode; /* The IO Control Mode settings */ + + /* User defined data handling procedures */ + SbInputHandlerProc Input_Handler; + /* The user input handler routine */ + void * client_data; /* The user associated input handler data */ + /* Useful (ie.) as input Widget */ + SPC_TerminateHandlerType Terminate_Handler; /* The SIGCLD user handler routine */ + void * Terminate_Data; /* The client_data for user handler routine */ + + /* Now the recorded information */ + + int pid; /* The child Process IDentification number */ + /* Also the RPID for a Remote channel */ + int cid; /* The remote Channel IDentification number */ + int status; /* The Process status */ + Wire *wires[3]; /* The read side/write side file descriptors */ + Files file_descs; /* Which file descriptors to use */ + Wire *wire_list; /* Pointer to list of wires we have + (used for reset & pre_fork processing) */ + buffered_data_ptr linebufs[3]; /* Buffers for lined oriented IO */ + SPC_F_read_filter read_filter; + /* Function to use to read. It may + be the actual read method, or it + may be a filter for newlines + (which would eventually call the read + method) */ + XeQueue queued_remote_data; /* queue for remote data */ + XeString logfile; /* logfile name for SPCIO_USE_LOGFILE */ + int close_timeout; /* Amount of time to wait for a pty close */ + struct _SPC_Channel *next; /* The next active channel */ + + int sync_pipe[2]; /* Only used in pty.c for __hpux_pty */ + +} SPC_Channel; + +/* The default shell when none can be derived */ +#ifdef hpV4 +#define DEFAULT_SHELL (XeString ) "/usr/bin/sh" +#else +#define DEFAULT_SHELL (XeString ) "/bin/sh" +#endif /* hpV4 */ + +/* Some macros which define the bit field portions of a wait() status */ +/* NOTE: These should be independent of integer word size */ +#define WAIT_STATUS_MASK 0xff +#define IS_WAIT_STATUS_STOPPED 0177 +#define IS_WAIT_STATUS_EXITED 0000 +#define IS_WAIT_STATUS_DUMPED 0200 + +typedef unsigned long SPCInputId; + +/* SPC/local.c */ +int close_local_channel_object (SPC_Channel_Ptr channel); +int write_local_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); +int signal_local_channel_object (SPC_Channel_Ptr channel, int sig); +int local_channel_object_wait_for_termination (SPC_Channel_Ptr channel); +int remove_logfile_local_channel_object (SPC_Channel_Ptr channel); +void local_channel_object_input_handler (void * client_data, int *source, SPCInputId *id); +int local_channel_object_send_eof(SPC_Channel_Ptr channel); + +/* noio.c */ +void noio_channel_class_init (object_clasp c); +SPC_Channel_Ptr open_noio_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); +int read_noio_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); +int write_noio_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); +int pre_fork_noio_channel_object (SPC_Channel_Ptr channel); +int post_fork_noio_channel_object (SPC_Channel_Ptr channel, int parentp); +int reset_noio_channel_object (SPC_Channel_Ptr channel); +int attach_noio_channel_object (SPC_Channel_Ptr channel, int); +void noio_channel_object_input_handler (void * client_data, int *source, SPCInputId *id); +int send_eof_noio_channel_object(SPC_Channel_Ptr channel); +int set_termio_noio_channel_object(SPC_Channel_Ptr, int, int, struct termios *); + +/* pipe.c */ +void pipe_channel_class_init (object_clasp c); +Wire *getpipe (Wire *prevwire); +SPC_Channel_Ptr open_pipe_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); +int read_pipe_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); +int pre_fork_pipe_channel_object (SPC_Channel_Ptr channel); +int post_fork_pipe_channel_object (SPC_Channel_Ptr channel, int parentp); +int reset_pipe_channel_object (SPC_Channel_Ptr channel); +int attach_pipe_channel_object (SPC_Channel_Ptr channel, int); +int add_input_pipe_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); + + +/* pty.c */ +void pty_channel_class_init (object_clasp c); +SPC_Channel_Ptr open_pty_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); +int read_pty_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); +int pre_fork_pty_channel_object (SPC_Channel_Ptr channel); +int post_fork_pty_channel_object (SPC_Channel_Ptr channel, int parentp); +int reset_pty_channel_object (SPC_Channel_Ptr channel); +int attach_pty_channel_object (SPC_Channel_Ptr channel, int pid); +int add_input_pty_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); +int set_termio_pty_channel_object(SPC_Channel_Ptr channel, int, int, + struct termios *); +struct termios *SPC_Get_Current_Termio(void); +int SPC_Setpgrp(int); + +/* remote.c */ +void remote_channel_class_init (object_clasp c); +Wire *get_new_remote_wire (Wire *prevwire); +SPC_Channel_Ptr open_remote_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); +int close_remote_channel_object (SPC_Channel_Ptr channel); +int reset_remote_channel_object (SPC_Channel_Ptr channel); +int exec_proc_remote_channel_object (SPC_Channel_Ptr channel); +int write_remote_channel_object (SPC_Channel_Ptr channel, XeString buffer, int len); +int read_remote_channel_object (SPC_Channel_Ptr channel, int connection, XeString buffer, int len); +int signal_remote_channel_object (SPC_Channel_Ptr channel, int sig); +int attach_remote_channel_object (SPC_Channel_Ptr channel, int pid); +int remove_logfile_remote_channel_object (SPC_Channel_Ptr channel); +int add_input_remote_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); +int SPC_Debug_Mode (SPC_Channel_Ptr channel, XeString file); +int send_eof_remote_channel_object(SPC_Channel_Ptr channel); +int set_termio_remote_channel_object(SPC_Channel_Ptr channel, + int, int, struct termios *); + + +/* spc-env.c */ +XeString SPC_Getenv (XeString var, XeString *envp); +XeString *SPC_Putenv (XeString val, XeString *envp); +XeString *SPC_Add_Env_File (XeString filename, XeString *envp); +XeString *SPC_Create_Default_Envp (XeString *old_envp); +XeString *SPC_Fixup_Environment (XeString *envp, SPC_Channel_Ptr channel); +XeString *SPC_Merge_Envp (XeString *dest_envp, XeString *source_envp); +void SPC_Free_Envp (XeString *envp); + + +/* spc-exec.c */ +int SPC_Setup_Synchronous_Terminator (void); +SPC_Connection_Ptr SPC_Channel_Terminator_Connection (SPC_Channel_Ptr channel); +void SPC_Close_Unused (void); +int SPC_MakeSystemCommand (SPC_Channel_Ptr channel); +void SPC_Child_Terminated(int); +int exec_proc_local_channel_object (SPC_Channel_Ptr channel); + + +/* spc-net.c */ +Boolean SPC_Init_Local_Host_Info (void); +int SPC_Local_Hostname (XeString hostname); +SPC_Connection_Ptr SPC_Open_Connection (XeString hostname); +int SPC_Open_Socket (SPC_Connection_Ptr conn, int type); +int SPC_Contact_Server (SPC_Connection_Ptr connection); +SPC_Connection_Ptr SPC_Init_Child (SPC_Connection_Ptr conn, int from); +SPC_Connection_Ptr SPC_Standalone_Daemon (SPC_Connection_Ptr conn); +int SPC_Inetd_Daemon (SPC_Connection_Ptr conn); +SPC_Connection_Ptr SPC_Start_Daemon (int standalone); + + +/* spc-obj.c */ +void spc_init_fds(void); +object *alloc_channel_object (object_clasp c); +void channel_class_init (object_clasp c); +int SPC_ResetTerminator(void); +int SPC_Initialize (void); +SPC_Channel_Ptr SPC_Initialize_Channel (XeString hostname, int iomode); +void SPC_Channel_Terminated (SPC_Channel_Ptr channel); +int SPC_Check_Style (int iomode); +int SPC_Transform_Iomode (int iomode); +int SPC_Newline_Filter (SPC_Channel_Ptr channel, int connector, XeString buffer, int ntoread); +int SPC_Input_Handler (SPC_Channel_Ptr channel, int connector); +SPC_Channel_Ptr open_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); +int close_channel_object (SPC_Channel_Ptr channel); +int read_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); +int write_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); +int reset_channel_object (SPC_Channel_Ptr channel); +int pre_fork_channel_object (SPC_Channel_Ptr channel); +int post_fork_channel_object (SPC_Channel_Ptr channel, int parentp); +int exec_proc_channel_object (SPC_Channel_Ptr channel); +int signal_channel_object (SPC_Channel_Ptr channel, int sig); +int channel_object_wait_for_termination (SPC_Channel_Ptr channel); +int attach_channel_object (SPC_Channel_Ptr channel, int pid); +int add_input_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); +int remove_logfile_channel_object (SPC_Channel_Ptr channel); + +/* spc-sm.c */ +int SPC_Change_State (SPC_Channel_Ptr channel, int connector, int data_line, int process_line); +int error_fun (SPC_Channel_Ptr channel, int connector); +int connector_eof (SPC_Channel_Ptr channel, int connector); +int connector_eof_with_reset (SPC_Channel_Ptr channel, int connector); +int sigcld_with_reset (SPC_Channel_Ptr channel, int connector); + +/* spc-xt.c */ + +typedef void (*spc_handler_func_type) (void *, int *, SPCInputId *); +int SPC_Wait_For_Termination (SPC_Channel_Ptr channel); +void SPC_XtBreak (void); +void SPC_XtAddInput (SPC_Channel_Ptr channel, int *id_addr, int fd, spc_handler_func_type handler, SPC_Callback_Condition condition); +void SPC_XtRemoveInput (int *id_addr, SPC_Callback_Condition condition); + + +/* spc-util.c */ +Wire *get_new_wire (void); +void free_wire (Wire *wire); +SPC_Channel_Ptr SPC_Find_PID (int pid); +int spc_close (int fd); +int spc_dup2 (int from, int to); +int SPC_fd_to_connector (SPC_Channel_Ptr channel, int fd); +XeString *Alloc_Argv (int n); +void SPC_Conditional_Packet_Handler (void * client_data, int *source, SPCInputId *id); +int sprintf_len (XeString s, XeString format, ...); +typedef Boolean (path_search_predicate)(XeString, XeString, XeString); +Boolean path_search (XeString path, XeString filename, path_search_predicate p); + + +/* spc-error.c */ +XeString SPC_copy_string (XeString str); +void SPC_Error (int error, ...); +int SPC_Make_Log_Filename (XeString name, int unique); +int SPC_Open_Log (XeString filename, int unique); +int SPC_Close_Log (void); +int SPC_Write_Log (XeString str); +int SPC_Format_Log (XeString format, ...); +SPCError *SPC_Lookup_Error (int errornum); +SPCError *SPC_Lookup_Error (int errornum); + + +/* spc-termio.c */ +XeString SPC_Decode_Termios( struct termios * ); +void SPC_Encode_Termios(XeString buff, struct termios *tio); + +#endif /* _spcP_h */ diff --git a/cde/include/Tt/tt_c.h b/cde/include/Tt/tt_c.h new file mode 100644 index 00000000..d583057e --- /dev/null +++ b/cde/include/Tt/tt_c.h @@ -0,0 +1,703 @@ +/* + * 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: tt_c.h /main/10 1999/09/16 13:46:20 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. */ + +/* + * ToolTalk 1.2 API C language headers. + */ + +#ifndef _tt_c_h +#define _tt_c_h + +#include + +/* ToolTalk version - Format: + * + * + * + * For example: + * 10100 --> Version 1.1.0 + * 100102 --> Version 10.1.2 + */ +#define TT_VERSION 10300 + +#if defined(_EXTERN_) && defined(__STDC__) +# define _TT_CONST +# define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x##name () +#else +#if defined(_EXTERN_) +# define _TT_CONST +# define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x/**/name () +#else +#if defined(_NAMES_) +# define _TT_CONST +# define _TT_EXTERN_FUNC(type,name,list)name +#else +#if defined(_XSCHEME_) +# define _TT_CONST const +# define _TT_EXTERN_FUNC(type,name,list)type; name; list +#else +#if defined(__cplusplus) +/* C++ 2.0 or later*/ +# define _TT_CONST const +# define _TT_EXTERN_FUNC(type,name,list) extern "C" { type name list; } +#else +#if defined(__STDC__) +/* ANSI C */ +# define _TT_CONST const +# define _TT_EXTERN_FUNC(type,name,list) type name list; +#else +/* Sun C (K&R C, almost) */ +# define _TT_CONST +# define _TT_EXTERN_FUNC(type,name,list) type name(); +#endif +#endif +#endif +#endif +#endif +#endif + +#if !defined(_EXTERN_) && !defined(_NAMES_) && !defined(_XSCHEME_) + +#if !defined(_XENUMS_) && !defined(_TYPES_) +#include +#endif + +#include +#include + +/* former status 1030 removed, but not used, for backward compatibility. */ +typedef enum tt_status { + TT_OK = 0, + TT_WRN_NOTFOUND = 1, + TT_WRN_STALE_OBJID = 2, + TT_WRN_STOPPED = 3, + TT_WRN_SAME_OBJID = 4, + TT_WRN_START_MESSAGE = 5, + TT_WRN_NOT_ENABLED = 6, + TT_WRN_APPFIRST = 512, + TT_WRN_LAST = 1024, + TT_ERR_CLASS = 1025, + TT_ERR_DBAVAIL = 1026, + TT_ERR_DBEXIST = 1027, + TT_ERR_FILE = 1028, + TT_ERR_INVALID = 1029, + TT_ERR_MODE = 1031, + TT_ERR_ACCESS = 1032, + TT_ERR_NOMP = 1033, + TT_ERR_NOTHANDLER = 1034, + TT_ERR_NUM = 1035, + TT_ERR_OBJID = 1036, + TT_ERR_OP = 1037, + TT_ERR_OTYPE = 1038, + TT_ERR_ADDRESS = 1039, + TT_ERR_PATH = 1040, + TT_ERR_POINTER = 1041, + TT_ERR_PROCID = 1042, + TT_ERR_PROPLEN = 1043, + TT_ERR_PROPNAME = 1044, + TT_ERR_PTYPE = 1045, + TT_ERR_DISPOSITION = 1046, + TT_ERR_SCOPE = 1047, + TT_ERR_SESSION = 1048, + TT_ERR_VTYPE = 1049, + TT_ERR_NO_VALUE = 1050, + TT_ERR_INTERNAL = 1051, + TT_ERR_READONLY = 1052, + TT_ERR_NO_MATCH = 1053, + TT_ERR_UNIMP = 1054, + TT_ERR_OVERFLOW = 1055, + TT_ERR_PTYPE_START = 1056, + TT_ERR_CATEGORY = 1057, + TT_ERR_DBUPDATE = 1058, + TT_ERR_DBFULL = 1059, + TT_ERR_DBCONSIST = 1060, + TT_ERR_STATE = 1061, + TT_ERR_NOMEM = 1062, + TT_ERR_SLOTNAME = 1063, + TT_ERR_XDR = 1064, + TT_ERR_NETFILE = 1065, + TT_ERR_TOOLATE = 1066, + TT_ERR_AUTHORIZATION = 1067, + TT_ERR_VERSION_MISMATCH = 1068, + TT_DESKTOP_ = 1100, + TT_DESKTOP_EPERM = 1101, + TT_DESKTOP_ENOENT = 1102, + TT_DESKTOP_EINTR = 1104, + TT_DESKTOP_EIO = 1105, + TT_DESKTOP_EAGAIN = 1111, + TT_DESKTOP_ENOMEM = 1112, + TT_DESKTOP_EACCES = 1113, + TT_DESKTOP_EFAULT = 1114, + TT_DESKTOP_EEXIST = 1117, + TT_DESKTOP_ENODEV = 1119, + TT_DESKTOP_ENOTDIR = 1120, + TT_DESKTOP_EISDIR = 1121, + TT_DESKTOP_EINVAL = 1122, + TT_DESKTOP_ENFILE = 1123, + TT_DESKTOP_EMFILE = 1124, + TT_DESKTOP_ETXTBSY = 1126, + TT_DESKTOP_EFBIG = 1127, + TT_DESKTOP_ENOSPC = 1128, + TT_DESKTOP_EROFS = 1130, + TT_DESKTOP_EMLINK = 1131, + TT_DESKTOP_EPIPE = 1132, + TT_DESKTOP_ENOMSG = 1135, + TT_DESKTOP_EDEADLK = 1145, + TT_DESKTOP_ECANCELED = 1147, + TT_DESKTOP_ENOTSUP = 1148, + TT_DESKTOP_ENODATA = 1161, + TT_DESKTOP_EPROTO = 1171, + TT_DESKTOP_ENOTEMPTY = 1193, + TT_DESKTOP_ETIMEDOUT = 1245, + TT_DESKTOP_EALREADY = 1249, + TT_DESKTOP_UNMODIFIED = 1299, + TT_MEDIA_ERR_SIZE = 1300, + TT_MEDIA_ERR_FORMAT = 1301, + TT_AUTHFILE_ACCESS = 1400, + TT_AUTHFILE_LOCK = 1401, + TT_AUTHFILE_LOCK_TIMEOUT = 1402, + TT_AUTHFILE_UNLOCK = 1403, + TT_AUTHFILE_MISSING = 1404, + TT_AUTHFILE_ENTRY_MISSING = 1405, + TT_AUTHFILE_WRITE = 1406, + TT_ERR_APPFIRST = 1536, + TT_ERR_LAST = 2047, + TT_STATUS_LAST = 2048} Tt_status; + + +typedef enum tt_filter_action { + TT_FILTER_CONTINUE = 0, + TT_FILTER_STOP = 1, + TT_FILTER_LAST = 2} Tt_filter_action; + +typedef enum tt_callback_action { + TT_CALLBACK_CONTINUE = 0, + TT_CALLBACK_PROCESSED = 1, + TT_CALLBACK_LAST = 2} Tt_callback_action; + +typedef enum tt_mode { + TT_MODE_UNDEFINED = 0, + TT_IN = 1, + TT_OUT = 2, + TT_INOUT = 3, + TT_MODE_LAST = 4} Tt_mode; + +typedef enum tt_scope { + TT_SCOPE_NONE = 0, + TT_SESSION = 1, + TT_FILE = 2, + TT_BOTH = 3, + TT_FILE_IN_SESSION = 4} Tt_scope; + +typedef enum tt_class { + TT_CLASS_UNDEFINED = 0, + TT_NOTICE = 1, + TT_REQUEST = 2, + TT_OFFER = 3, + TT_CLASS_LAST = 4} Tt_class; + +typedef enum tt_category { + TT_CATEGORY_UNDEFINED = 0, + TT_OBSERVE = 1, + TT_HANDLE = 2, + TT_HANDLE_PUSH = 3, + TT_HANDLE_ROTATE = 4, + TT_CATEGORY_LAST = 5} Tt_category; + +typedef enum tt_address { + TT_PROCEDURE = 0, + TT_OBJECT = 1, + TT_HANDLER = 2, + TT_OTYPE = 3, + TT_ADDRESS_LAST = 4} Tt_address; + +typedef enum tt_disposition { + /* Flag bits, not enumerated values */ + TT_DISCARD = 0, /* for resetting value */ + TT_QUEUE = 1, + TT_START = 2} Tt_disposition; + +typedef enum tt_state { + TT_CREATED = 0, + TT_SENT = 1, + TT_HANDLED = 2, + TT_FAILED = 3, + TT_QUEUED = 4, + TT_STARTED = 5, + TT_REJECTED = 6, + TT_RETURNED = 7, + TT_ACCEPTED = 8, + TT_ABSTAINED = 9, + TT_STATE_LAST = 10} Tt_state; + +typedef enum tt_feature { + _TT_FEATURE_MULTITHREADED = 1, + _TT_FEATURE_LAST = 2} Tt_feature; + +#define TT_FEATURE_MULTITHREADED _TT_FEATURE_MULTITHREADED +#define TT_FEATURE_LAST _TT_FEATURE_LAST + +#ifndef _XENUMS_ + +/* + * Official properties of ToolTalk objects. + * + * ToolTalk should prevent non-root processes from setting the values + * of properties whose name begins with '_'. + * + * Integrators should prevent users from assigning arbitrary strings + * as values of properties whose name begins with '.'. That is, "dot" + * properties are like "dot" files: their existence should normally be + * hidden from users, and the displaying and setting of their contents + * should be mediated programatically, sort of like the OpenWindows + * "props" application mediates .Xdefaults. + */ +#define TT_OBJECT_NAME_PROPERTY ".Name" +#define TT_OBJECT_OWNER_PROPERTY "_Owner" +#define TT_OBJECT_GROUP_PROPERTY "_Group" +#define TT_OBJECT_MODE_PROPERTY "_Mode" +#define TT_OBJECT_CREATION_DATE_PROPERTY "_Creation_Date" + +/* + * The following define opaque handles which can be type checked (as compared + * to void *). Don't bother looking for the definitions of the structs, there + * aren't any. + */ +typedef struct _Tt_message_handle *Tt_message; +typedef struct _Tt_pattern_handle *Tt_pattern; +typedef struct _tt_AuthFileEntry *Tt_AuthFileEntry; + + +#if defined(__cplusplus) || defined(__STDC__) +typedef Tt_filter_action (*Tt_filter_function)(_TT_CONST char *nodeid, + void *context, + void *accumulator); +typedef Tt_callback_action (*Tt_message_callback) (Tt_message m, + Tt_pattern p); +#else +typedef Tt_filter_action (*Tt_filter_function)(); +typedef Tt_callback_action (*Tt_message_callback)(); +#endif + +#endif /* _XENUMS_ */ +#endif /* _XSCHEME_ _NAMES_ _EXTERN_ */ + +#ifndef _XENUMS_ + +_TT_EXTERN_FUNC(char *,tt_open,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_close,(void)) +_TT_EXTERN_FUNC(char *,tt_X_session,(_TT_CONST char *xdisplay)) + +_TT_EXTERN_FUNC(char *,tt_default_ptype,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_default_ptype_set,(_TT_CONST char * ptid)) +_TT_EXTERN_FUNC(char *,tt_default_file,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_default_file_set,(_TT_CONST char * docid)) +_TT_EXTERN_FUNC(char *,tt_default_session,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_default_session_set,(_TT_CONST char *sessid)) +_TT_EXTERN_FUNC(char *,tt_thread_session,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_thread_session_set,(_TT_CONST char *sessid)) +_TT_EXTERN_FUNC(char *,tt_default_procid,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_default_procid_set,(_TT_CONST char *procid)) +_TT_EXTERN_FUNC(char *,tt_thread_procid,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_thread_procid_set,(_TT_CONST char *procid)) +_TT_EXTERN_FUNC(char *,tt_procid_session,(_TT_CONST char *procid)) + +_TT_EXTERN_FUNC(Tt_status,tt_file_join,(_TT_CONST char * filepath)) +_TT_EXTERN_FUNC(Tt_status,tt_file_quit,(_TT_CONST char * filepath)) +_TT_EXTERN_FUNC(Tt_status,tt_file_objects_query, + (_TT_CONST char * filepath, + Tt_filter_function filter, + void *context,void *accumulator)) +_TT_EXTERN_FUNC(Tt_status,tt_file_move, + (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath)) +_TT_EXTERN_FUNC(Tt_status,tt_file_copy, + (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath)) +_TT_EXTERN_FUNC(Tt_status,tt_file_destroy,(_TT_CONST char * filepath)) + +_TT_EXTERN_FUNC(char *,tt_message_context_val, + (Tt_message m, _TT_CONST char *slotname)) +_TT_EXTERN_FUNC(Tt_status,tt_message_context_ival, + (Tt_message m, _TT_CONST char *slotname, int *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_context_bval, + (Tt_message m, _TT_CONST char *slotname, + unsigned char **value, int *len)) +_TT_EXTERN_FUNC(Tt_status,tt_message_context_xval, + (Tt_message m, _TT_CONST char *slotname, + xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_context_set, + (Tt_message m, _TT_CONST char *slotname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_icontext_set, + (Tt_message m, _TT_CONST char *slotname, int value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_bcontext_set, + (Tt_message m, _TT_CONST char *slotname, + _TT_CONST unsigned char *value, int len)) +_TT_EXTERN_FUNC(Tt_status,tt_message_xcontext_set, + (Tt_message m, _TT_CONST char *slotname, + xdrproc_t xdr_proc, void *value)) + +_TT_EXTERN_FUNC(Tt_status,tt_context_join, + (_TT_CONST char *slotname, _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_icontext_join, + (_TT_CONST char *slotname, int value)) +_TT_EXTERN_FUNC(Tt_status,tt_bcontext_join, + (_TT_CONST char *slotname, + _TT_CONST unsigned char *value, int len)) +_TT_EXTERN_FUNC(Tt_status,tt_xcontext_join, + (_TT_CONST char *slotname, + xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(Tt_status,tt_context_quit, + (_TT_CONST char *slotname, _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_icontext_quit, + (_TT_CONST char *slotname, int value)) +_TT_EXTERN_FUNC(Tt_status,tt_bcontext_quit, + (_TT_CONST char *slotname, + _TT_CONST unsigned char *value, int len)) +_TT_EXTERN_FUNC(Tt_status,tt_xcontext_quit, + (_TT_CONST char *slotname, + xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(int,tt_message_contexts_count,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_context_slotname, + (Tt_message m, int i)) + +_TT_EXTERN_FUNC(Tt_message,tt_message_create,(void)) +_TT_EXTERN_FUNC(Tt_message,tt_message_create_super,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_destroy,(Tt_message m)) + +_TT_EXTERN_FUNC(Tt_status,tt_message_send,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_send_on_exit,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_message,tt_message_receive,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_message_reply,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_reject,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_accept,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_fail,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_pattern,tt_message_pattern,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_callback_add, + (Tt_message m,Tt_message_callback f)) + +_TT_EXTERN_FUNC(void *,tt_message_user,(Tt_message m,int key)) +_TT_EXTERN_FUNC(Tt_status,tt_message_user_set,(Tt_message m,int key,void *v)) + +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_add, + (Tt_message m,Tt_mode n,_TT_CONST char *vtype, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_mode,tt_message_arg_mode,(Tt_message m,int n)) +_TT_EXTERN_FUNC(char *,tt_message_arg_type,(Tt_message m,int n)) +_TT_EXTERN_FUNC(char *,tt_message_arg_val,(Tt_message m,int n)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_val_set, + (Tt_message m,int n,_TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval, + (Tt_message m,int n,unsigned char **value,int *len)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval_set, + (Tt_message m,int n,_TT_CONST unsigned char *value,int len)) +_TT_EXTERN_FUNC(Tt_status,tt_message_barg_add, + (Tt_message m,Tt_mode n,_TT_CONST char *vtype, + _TT_CONST unsigned char *value,int len)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival, + (Tt_message m,int n,int *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival_set, + (Tt_message m,int n,int value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_iarg_add, + (Tt_message m,Tt_mode n,_TT_CONST char *vtype,int value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval, + (Tt_message m,int n,xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval_set, + (Tt_message m,int n,xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(Tt_status,tt_message_xarg_add, + (Tt_message m,Tt_mode n,_TT_CONST char *vtype, + xdrproc_t xdr_proc, void *value)) +_TT_EXTERN_FUNC(int,tt_message_args_count,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_class,tt_message_class,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_class_set, + (Tt_message m,Tt_class c)) +_TT_EXTERN_FUNC(char *,tt_message_file,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_file_set, + (Tt_message m,_TT_CONST char *file)) +_TT_EXTERN_FUNC(char *,tt_message_object,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_object_set, + (Tt_message m,_TT_CONST char *objid)) +_TT_EXTERN_FUNC(char *,tt_message_id,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_op,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_op_set, + (Tt_message m,_TT_CONST char *opname)) +_TT_EXTERN_FUNC(int,tt_message_opnum,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_otype,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_otype_set, + (Tt_message m,_TT_CONST char *otype)) +_TT_EXTERN_FUNC(Tt_address,tt_message_address,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_address_set, + (Tt_message m,Tt_address p)) +_TT_EXTERN_FUNC(char *,tt_message_handler,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_handler_set, + (Tt_message m,_TT_CONST char *procid)) +_TT_EXTERN_FUNC(char *,tt_message_handler_ptype,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_handler_ptype_set, + (Tt_message m,_TT_CONST char *ptid)) +_TT_EXTERN_FUNC(int,tt_message_accepters_count,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_accepter,(Tt_message m,int n)) +_TT_EXTERN_FUNC(int,tt_message_rejecters_count,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_rejecter,(Tt_message m,int n)) +_TT_EXTERN_FUNC(int,tt_message_abstainers_count,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_abstainer,(Tt_message m,int n)) +_TT_EXTERN_FUNC(Tt_disposition,tt_message_disposition,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_disposition_set, + (Tt_message m,Tt_disposition r)) +_TT_EXTERN_FUNC(Tt_scope,tt_message_scope,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_scope_set,(Tt_message m,Tt_scope s)) +_TT_EXTERN_FUNC(char *,tt_message_sender,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_message_sender_ptype,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_sender_ptype_set, + (Tt_message m,_TT_CONST char *ptid)) +_TT_EXTERN_FUNC(char *,tt_message_session,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_session_set, + (Tt_message m,_TT_CONST char *sessid)) +_TT_EXTERN_FUNC(Tt_state,tt_message_state,(Tt_message m)) +_TT_EXTERN_FUNC(int,tt_message_status,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_status_set,(Tt_message m,int status)) +_TT_EXTERN_FUNC(char *,tt_message_status_string,(Tt_message m)) +_TT_EXTERN_FUNC(Tt_status,tt_message_status_string_set, + (Tt_message m,_TT_CONST char *status_str)) +_TT_EXTERN_FUNC(uid_t,tt_message_uid,(Tt_message m)) +_TT_EXTERN_FUNC(gid_t,tt_message_gid,(Tt_message m)) + +/* + * The following are "macros" which provide a simpler high level + * interface to the above low level calls. + */ +_TT_EXTERN_FUNC(Tt_message,tt_pnotice_create, + (Tt_scope scope, _TT_CONST char *op)) +_TT_EXTERN_FUNC(Tt_message,tt_prequest_create, + (Tt_scope scope, _TT_CONST char *op)) +_TT_EXTERN_FUNC(Tt_message,tt_onotice_create, + (_TT_CONST char *objid, _TT_CONST char *op)) +_TT_EXTERN_FUNC(Tt_message,tt_orequest_create, + (_TT_CONST char *objid, _TT_CONST char *op)) + +_TT_EXTERN_FUNC(char *,tt_spec_create,(_TT_CONST char * filepath)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_write,(_TT_CONST char * nodeid)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_destroy,(_TT_CONST char * nodeid)) + +_TT_EXTERN_FUNC(char *,tt_spec_file,(_TT_CONST char * nodeid)) +_TT_EXTERN_FUNC(char *,tt_spec_type,(_TT_CONST char * nodeid)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_type_set, + (_TT_CONST char * nodeid,_TT_CONST char * otid)) +_TT_EXTERN_FUNC(char *,tt_spec_move, + (_TT_CONST char * nodeid,_TT_CONST char * newfilepath)) +_TT_EXTERN_FUNC(char *,tt_spec_propname,(_TT_CONST char *nodeid,int n)) +_TT_EXTERN_FUNC(int,tt_spec_propnames_count,(_TT_CONST char *nodeid)) + + +_TT_EXTERN_FUNC(char *,tt_spec_prop, + (_TT_CONST char *nodeid,_TT_CONST char *propname,int i)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_add, + (_TT_CONST char *nodeid,_TT_CONST char *propname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(int,tt_spec_prop_count, + (_TT_CONST char *nodeid,_TT_CONST char *propname)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_set, + (_TT_CONST char *nodeid,_TT_CONST char *propname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop, + (_TT_CONST char *nodeid,_TT_CONST char *propname,int i, + unsigned char **value,int *length)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_add, + (_TT_CONST char *nodeid,_TT_CONST char *propname, + _TT_CONST unsigned char *value,int length)) +_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_set, + (_TT_CONST char *nodeid,_TT_CONST char *propname, + _TT_CONST unsigned char *value,int length)) + +_TT_EXTERN_FUNC(int,tt_objid_equal, + (_TT_CONST char * nodeid1,_TT_CONST char * nodeid2)) +_TT_EXTERN_FUNC(char *,tt_objid_objkey,(_TT_CONST char * nodeid)) + +_TT_EXTERN_FUNC(int,tt_otype_deriveds_count,(_TT_CONST char *otype)) +_TT_EXTERN_FUNC(char *,tt_otype_derived,(_TT_CONST char *otype, int i)) +_TT_EXTERN_FUNC(char *,tt_otype_base,(_TT_CONST char *otype)) +_TT_EXTERN_FUNC(int,tt_otype_is_derived, + (_TT_CONST char *derivedotype, _TT_CONST char *baseotype)) +_TT_EXTERN_FUNC(int,tt_otype_osig_count,(_TT_CONST char * otype)) +_TT_EXTERN_FUNC(int,tt_otype_hsig_count,(_TT_CONST char * otype)) +_TT_EXTERN_FUNC(char *,tt_otype_osig_op,(_TT_CONST char * otype, int sig)) +_TT_EXTERN_FUNC(char *,tt_otype_hsig_op,(_TT_CONST char * otype, int sig)) +_TT_EXTERN_FUNC(int,tt_otype_osig_args_count,(_TT_CONST char * otype, int sig)) +_TT_EXTERN_FUNC(int,tt_otype_hsig_args_count,(_TT_CONST char * otype, int sig)) +_TT_EXTERN_FUNC(Tt_mode,tt_otype_osig_arg_mode,(_TT_CONST char * otype, + int sig, int arg)) +_TT_EXTERN_FUNC(Tt_mode,tt_otype_hsig_arg_mode,(_TT_CONST char * otype, + int sig, int arg)) +_TT_EXTERN_FUNC(char *,tt_otype_osig_arg_type,(_TT_CONST char * otype, + int sig, int arg)) +_TT_EXTERN_FUNC(char *,tt_otype_hsig_arg_type,(_TT_CONST char * otype, + int sig, int arg)) + +_TT_EXTERN_FUNC(Tt_pattern,tt_pattern_create,(void)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_destroy,(Tt_pattern p)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_register,(Tt_pattern p)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_unregister,(Tt_pattern p)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_callback_add, + (Tt_pattern m,Tt_message_callback f)) + +_TT_EXTERN_FUNC(void *,tt_pattern_user,(Tt_pattern p,int key)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_user_set,(Tt_pattern p,int key,void *v)) + +_TT_EXTERN_FUNC(Tt_category,tt_pattern_category,(Tt_pattern p)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_category_set, + (Tt_pattern p,Tt_category c)) + +_TT_EXTERN_FUNC(Tt_status,tt_pattern_arg_add, + (Tt_pattern p,Tt_mode n,_TT_CONST char *vtype, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_barg_add, + (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, + _TT_CONST unsigned char *value,int len)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_iarg_add, + (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, int value)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_xarg_add, + (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, + xdrproc_t xdr_proc, void *value)) + +_TT_EXTERN_FUNC(Tt_status,tt_pattern_class_add, + (Tt_pattern p,Tt_class c)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_file_add, + (Tt_pattern p,_TT_CONST char *file)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_object_add, + (Tt_pattern p,_TT_CONST char *objid)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_op_add, + (Tt_pattern p,_TT_CONST char *opname)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_opnum_add,(Tt_pattern p,int opnum)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_otype_add, + (Tt_pattern p,_TT_CONST char *otype)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_address_add, + (Tt_pattern p,Tt_address d)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_disposition_add, + (Tt_pattern p,Tt_disposition r)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_scope_add,(Tt_pattern p,Tt_scope s)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_add, + (Tt_pattern p,_TT_CONST char *procid)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_ptype_add, + (Tt_pattern p,_TT_CONST char *ptid)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_session_add, + (Tt_pattern p,_TT_CONST char *sessid)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_state_add,(Tt_pattern p,Tt_state s)) + +_TT_EXTERN_FUNC(Tt_status,tt_pattern_context_add, + (Tt_pattern p, _TT_CONST char *slotname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_icontext_add, + (Tt_pattern p, _TT_CONST char *slotname, + int value)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_bcontext_add, + (Tt_pattern p, _TT_CONST char *slotname, + _TT_CONST unsigned char *value, int length)) +_TT_EXTERN_FUNC(Tt_status,tt_pattern_xcontext_add, + (Tt_pattern p, _TT_CONST char *slotname, + xdrproc_t xdr_proc, void *value)) + +_TT_EXTERN_FUNC(Tt_status,tt_ptype_declare,(_TT_CONST char * ptid)) +_TT_EXTERN_FUNC(Tt_status,tt_ptype_undeclare,(_TT_CONST char * ptid)) +_TT_EXTERN_FUNC(Tt_status,tt_ptype_exists,(_TT_CONST char * ptid)) +_TT_EXTERN_FUNC(Tt_status,tt_ptype_opnum_callback_add, + (_TT_CONST char * ptid, int opnum, Tt_message_callback f)) +_TT_EXTERN_FUNC(Tt_status,tt_otype_opnum_callback_add, + (_TT_CONST char * otid, int opnum, Tt_message_callback f)) + + +_TT_EXTERN_FUNC(Tt_status,tt_session_join,(_TT_CONST char * sessid)) +_TT_EXTERN_FUNC(Tt_status,tt_session_quit,(_TT_CONST char * sessid)) +_TT_EXTERN_FUNC(char *,tt_initial_session,(void)) + +_TT_EXTERN_FUNC(char *,tt_session_propname,(_TT_CONST char *sessid,int n)) +_TT_EXTERN_FUNC(int,tt_session_propnames_count,(_TT_CONST char *sessid)) +_TT_EXTERN_FUNC(char *,tt_session_prop, + (_TT_CONST char *sessid,_TT_CONST char *propname,int i)) +_TT_EXTERN_FUNC(Tt_status,tt_session_prop_add, + (_TT_CONST char *sessid,_TT_CONST char *propname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(int,tt_session_prop_count, + (_TT_CONST char *sessid,_TT_CONST char *propname)) +_TT_EXTERN_FUNC(Tt_status,tt_session_prop_set, + (_TT_CONST char *sessid, _TT_CONST char *propname, + _TT_CONST char *value)) +_TT_EXTERN_FUNC(Tt_status,tt_session_bprop, + (_TT_CONST char *sessid,_TT_CONST char *propname,int i, + unsigned char **value,int *length)) +_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_add, + (_TT_CONST char *sessid,_TT_CONST char *propname, + _TT_CONST unsigned char *value,int length)) +_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_set, + (_TT_CONST char *sessid,_TT_CONST char *propname, + _TT_CONST unsigned char *value,int length)) +_TT_EXTERN_FUNC(Tt_status,tt_session_types_load, + (_TT_CONST char *sessid, _TT_CONST char *filename)) + + +_TT_EXTERN_FUNC(int,tt_fd,(void)) + +_TT_EXTERN_FUNC(int,tt_mark,(void)) +_TT_EXTERN_FUNC(void,tt_release,(int mark)) +_TT_EXTERN_FUNC(caddr_t,tt_malloc,(size_t s)) +_TT_EXTERN_FUNC(void,tt_free,(caddr_t p)) + +_TT_EXTERN_FUNC(char *,tt_status_message,(Tt_status ttrc)) +_TT_EXTERN_FUNC(Tt_status,tt_pointer_error,(void *pointer)) +_TT_EXTERN_FUNC(Tt_status,tt_int_error,(int return_val)) + +_TT_EXTERN_FUNC(void,tt_error,(const char *func,Tt_status ttrc)) +_TT_EXTERN_FUNC(void *,tt_error_pointer,(Tt_status ttrc)) +_TT_EXTERN_FUNC(int,tt_error_int,(Tt_status ttrc)) + +_TT_EXTERN_FUNC(int,tt_trace_control,(int onoff)) + +_TT_EXTERN_FUNC(char *,tt_message_print,(Tt_message m)) +_TT_EXTERN_FUNC(char *,tt_pattern_print,(Tt_pattern p)) + +_TT_EXTERN_FUNC(char *,tt_file_netfile, (const char *filename)) +_TT_EXTERN_FUNC(char *,tt_netfile_file, (const char *netfilename)) + +_TT_EXTERN_FUNC(char *,tt_host_file_netfile, (const char * host, const char * filename)) +_TT_EXTERN_FUNC(char *,tt_host_netfile_file, (const char * host, const char * netfilename)) +_TT_EXTERN_FUNC(Tt_status,tt_feature_enabled, (Tt_feature f)) +_TT_EXTERN_FUNC(Tt_status,tt_feature_required, (Tt_feature f)) + +_TT_EXTERN_FUNC(char*, tt_AuthFileName, (void)) +_TT_EXTERN_FUNC(int, tt_LockAuthFile, (char*, int, int, long)) +_TT_EXTERN_FUNC(void, tt_UnlockAuthFile, (char*)) +_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_ReadAuthFileEntry, (FILE*)) +_TT_EXTERN_FUNC(void, tt_FreeAuthFileEntry, (Tt_AuthFileEntry)) +_TT_EXTERN_FUNC(int, tt_WriteAuthFileEntry, (FILE*, Tt_AuthFileEntry)) +_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_GetAuthFileEntry, (char*, char*, char*)) +_TT_EXTERN_FUNC(char*, tt_GenerateMagicCookie, (int)) + +#endif /* _XENUMS_ */ + +#define tt_ptr_error(p) tt_pointer_error((void *)(p)) +#define tt_is_err(p) (TT_WRN_LAST < (p)) +#undef _TT_EXTERN_FUNC +#undef _TT_CONST +#endif diff --git a/cde/include/Tt/tttk.h b/cde/include/Tt/tttk.h new file mode 100644 index 00000000..f3e9d0d9 --- /dev/null +++ b/cde/include/Tt/tttk.h @@ -0,0 +1,366 @@ +/* + * 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: tttk.h /main/3 1995/10/23 10:33:00 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. */ + +/* + * @(#)tttk.h 1.11 93/09/29 + */ + +#ifndef tttk_h +#define tttk_h + +#include +#include + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef enum { + TTDT_OP_NONE, + TTDT_CREATED, + TTDT_DELETED, + TTDT_DO_COMMAND, + TTDT_SET_ENVIRONMENT, + TTDT_GET_ENVIRONMENT, + TTDT_SET_GEOMETRY, + TTDT_GET_GEOMETRY, + TTDT_SET_ICONIFIED, + TTDT_GET_ICONIFIED, + TTDT_SET_LOCALE, + TTDT_GET_LOCALE, + TTDT_SET_MAPPED, + TTDT_GET_MAPPED, + TTDT_MODIFIED, + TTDT_REVERTED, + TTDT_GET_MODIFIED, + TTDT_MOVED, + TTDT_PAUSE, + TTDT_RESUME, + TTDT_QUIT, + TTDT_RAISE, + TTDT_LOWER, + TTDT_SAVE, + TTDT_REVERT, + TTDT_SAVED, + TTDT_SET_SITUATION, + TTDT_GET_SITUATION, + TTDT_SIGNAL, + TTDT_STARTED, + TTDT_STOPPED, + TTDT_STATUS, + TTDT_GET_STATUS, + TTDT_GET_SYSINFO, + TTDT_SET_XINFO, + TTDT_GET_XINFO, + TTME_ABSTRACT, + TTME_DEPOSIT, + TTME_DISPLAY, + TTME_EDIT, + TTME_COMPOSE, + TTME_INTERPRET, + TTME_PRINT, + TTME_TRANSLATE, + TTME_MAIL, + TTME_MAIL_COMPOSE, + TTME_MAIL_EDIT, + TTME_INSTANTIATE, + TTDT_OP_LAST +} Tttk_op; + +/* + * Standard vtype names + */ +extern const char *Tttk_integer; +extern const char *Tttk_string; +extern const char *Tttk_boolean; +extern const char *Tttk_file; +extern const char *Tttk_message_id; +extern const char *Tttk_title; +extern const char *Tttk_width; +extern const char *Tttk_height; +extern const char *Tttk_xoffset; +extern const char *Tttk_yoffset; + +/* + ********************************************************************** + * + * Procid lifecycle + * + ********************************************************************** + */ +char *ttdt_open( + int *tt_fd, + const char *toolname, + const char *vendor, + const char *version, + int sendStarted + ); +Tt_status ttdt_sender_imprint_on( + const char *handler, + Tt_message commission, + char **display, + int *width, + int *height, + int *xoffset, + int *yoffset, + XtAppContext app2run, + int ms_timeout + ); +Tt_status ttdt_close( + const char *procid, + const char *newprocid, + int sendStopped + ); +/* + ********************************************************************** + * + * Sessions + * + ********************************************************************** + */ +typedef Tt_message (*Ttdt_contract_cb)( + Tt_message msg, + void *clientdata, + Tt_message contract + ); +Tt_pattern *ttdt_session_join( + const char *sessid, + Ttdt_contract_cb cb, + Widget shell, + void *clientdata, + int join + ); +Tt_status ttdt_session_quit( + const char *sessid, + Tt_pattern *sess_pats, + int quit + ); +/* + ********************************************************************** + * + * Contracts + * + ********************************************************************** + */ +Tt_pattern *ttdt_message_accept( + Tt_message contract, + Ttdt_contract_cb cb, + Widget shell, + void *clientdata, + int accept, + int sendStatus + ); +Tt_pattern *ttdt_subcontract_manage( + Tt_message subcontract, + Ttdt_contract_cb cb, + Widget shell, + void *clientdata + ); +/* + ********************************************************************** + * + * Desktop: Files + * + ********************************************************************** + */ +typedef Tt_message (*Ttdt_file_cb)( + Tt_message msg, + Tttk_op op, + char *pathname, + void *clientdata, + int same_euid_egid, + int same_procid + ); +Tt_pattern *ttdt_file_join( + const char *pathname, + Tt_scope scope, + int join, + Ttdt_file_cb cb, + void *clientdata + ); +Tt_status ttdt_file_event( + Tt_message context, + Tttk_op event, + Tt_pattern *patterns, + int send + ); +Tt_status ttdt_file_quit( + Tt_pattern *patterns, + int quit + ); +int ttdt_Get_Modified( + Tt_message context, + const char *pathname, + Tt_scope scope, + XtAppContext app2run, + int ms_timeout + ); +Tt_status ttdt_Save( + Tt_message context, + const char *pathname, + Tt_scope scope, + XtAppContext app2run, + int ms_timeout + ); +Tt_status ttdt_Revert( + Tt_message context, + const char *pathname, + Tt_scope scope, + XtAppContext app2run, + int ms_timeout + ); +Tt_message ttdt_file_notice( + Tt_message context, + Tttk_op op, + Tt_scope scope, + const char *file, + int send_and_destroy + ); +Tt_message ttdt_file_request( + Tt_message context, + Tttk_op op, + Tt_scope scope, + const char *file, + Ttdt_file_cb cb, + void *clientdata, + int send + ); +/* + ********************************************************************** + * + * Media Exchange + * + ********************************************************************** + */ +typedef Tt_message (*Ttmedia_load_pat_cb)( + Tt_message msg, + void *clientdata, + Tttk_op op, + Tt_status diagnosis, + unsigned char *contents, + int len, + char *file, + char *docname + ); +Tt_status ttmedia_ptype_declare( + const char *ptype, + int base_opnum, + Ttmedia_load_pat_cb cb, + void *clientdata, + int declare + ); +typedef Tt_message (*Ttmedia_load_msg_cb)( + Tt_message msg, + void *clientdata, + Tttk_op op, + unsigned char *contents, + int len, + char *file + ); +Tt_message ttmedia_load( + Tt_message context, + Ttmedia_load_msg_cb cb, + void *clientdata, + Tttk_op op, + const char *media_type, + const unsigned char *contents, + int len, + const char *file, + const char *docname, + int send + ); +Tt_status ttmedia_load_reply( + Tt_message contract, + const unsigned char *new_contents, + int new_len, + int reply_and_destroy + ); +Tt_status ttmedia_Deposit( + Tt_message contract, + const char *buffer_id, + const char *media_type, + const unsigned char *new_contents, + int new_len, + const char *file, + XtAppContext app2run, + int ms_timeout + ); +/* + ********************************************************************** + * + * ToolTalk Toolkit + * + ********************************************************************** + */ +void tttk_Xt_input_handler( + XtPointer procid, + int *, + XtInputId * + ); +Tt_status tttk_block_while( + XtAppContext app2run, + const int *blocked, + int ms_timeout + ); +Tt_message tttk_message_create( + Tt_message context, + Tt_class the_class, + Tt_scope the_scope, + const char *handler, + const char *op, + Tt_message_callback callback + ); +Tt_status tttk_message_destroy( + Tt_message msg + ); +Tt_status tttk_message_reject( + Tt_message msg, + Tt_status status, + const char *status_string, + int destroy + ); +Tt_status tttk_message_fail( + Tt_message msg, + Tt_status status, + const char *status_string, + int destroy + ); +Tt_status tttk_message_abandon( + Tt_message msg + ); +Tttk_op tttk_string_op( + const char *s + ); +char *tttk_op_string( + Tttk_op op + ); +#if defined(__cplusplus) +} +#endif + +#endif diff --git a/cde/include/bms/MemoryMgr.h b/cde/include/bms/MemoryMgr.h new file mode 100644 index 00000000..551c94aa --- /dev/null +++ b/cde/include/bms/MemoryMgr.h @@ -0,0 +1,71 @@ +/* + * 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: MemoryMgr.h $XConsortium: MemoryMgr.h /main/3 1995/10/26 15:45: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. * + */ + +/* Allocation routines */ + +#ifndef _MemoryMgr_h +#define _MemoryMgr_h + +void *XeMalloc +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (size_t size); +#else + (); +#endif + +void XeFree +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void * ptr); +#else + (); +#endif + +#define Xe_make_struct(type) ((struct type *)XeMalloc(sizeof(struct type))) +#define Xe_make_ntype(n, type) ((type *) XeMalloc((n)*sizeof(type))) +#define Xe_make_buffer(size) ((XeString) XeMalloc(size)) +#define Xe_make_str(size) ((XeString) XeMalloc((size)+1)) + +#define XeCopyStringM(string_xxx) (string_xxx \ + ? (XeString) strcpy(Xe_make_str(strlen(string_xxx)), string_xxx) \ + : (XeString) NULL) + + +/* Dellocation */ + +#define Xe_release_ntype(ptr, n, type) XeFree(ptr) +#define Xe_release_str(ptr) XeFree(ptr) + +#endif /* _MemoryMgr_h */ +/* PLACE NOTHING AFTER THIS endif */ + diff --git a/cde/include/bms/SbEvent.h b/cde/include/bms/SbEvent.h new file mode 100644 index 00000000..cc4a29bc --- /dev/null +++ b/cde/include/bms/SbEvent.h @@ -0,0 +1,97 @@ +/* + * 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: SbEvent.h $XConsortium: SbEvent.h /main/3 1995/10/26 15:45:29 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 _SbEvent_h +#define _SbEvent_h + +typedef unsigned long SbInputId; + +typedef void (*SbInputCallbackProc) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void* data, int *fd, SbInputId *id); +#else + (); +#endif + +extern SbInputId (*SbAddInput_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (int fd, SbInputCallbackProc proc, void* data); +#else + (); +#endif + +extern SbInputId (*SbAddException_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (int fd, SbInputCallbackProc proc, void* data); +#else + (); +#endif + +extern void (*SbRemoveInput_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (SbInputId id); +#else + (); +#endif + +extern void (*SbRemoveException_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (SbInputId id); +#else + (); +#endif + +extern void (*SbMainLoopUntil_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (Boolean *flag); +#else + (); +#endif + +extern void XeCall_SbMainLoopUntil +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (Boolean *flag); +#else + (); +#endif + +extern void (*SbBreakMainLoop_hookfn) +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void); +#else + (); +#endif + + +#endif /* _SbEvent_h */ diff --git a/cde/include/bms/Symbolic.h b/cde/include/bms/Symbolic.h new file mode 100644 index 00000000..14eac3ab --- /dev/null +++ b/cde/include/bms/Symbolic.h @@ -0,0 +1,372 @@ +/* + * 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: Symbolic.h $XConsortium: Symbolic.h /main/3 1995/10/26 15:45: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. * + */ + +/* SYMBOLS */ + +#ifndef _Symbolic_h_ +#define _Symbolic_h_ + +/* -------------------------------------------- */ +/* Requires: */ +#ifdef __recursive_includes +#include +#endif +/* -------------------------------------------- */ + +/****************************************************************************/ +/* Symbol (hash) Tables */ + +/* + +There are two types of symbol (hash) tables. The common case is where the +key (index) is ascii string. The Xe_intern() and XeRegisterSymbol() +routines assume this type of table. In these cases an "XeSymbol" entry is +created in the symbol table (see type below). After it is created a COPY of +the string is made and stored in the "name" field. The "value" field is +free for the user to fill in on his own. + +*/ + +typedef struct _XeSymbol { + XeString name; + void *value; +} *XeSymbol; + +/* +This type is used for the XeRegisterFunction() routine. +*/ + +typedef void (*XeAnyFunction) (); + + +/* +The second type of table is where the user defines his own type of +data, hash functions, compare functions, etc. +*/ + +/* The following types for the the user configurable functions that */ +/* are set with the Xe_set_syms_fns() routine. */ +/* ---------------------------------------------------------------- */ + + +/* CMP_FN: */ +/* */ +/* Any user defined function should return "0" for a "match" */ +/* */ +/* Used for Xe_intern() and XeRegisterSymbol() */ +/* */ +/* If NO "cmp_fn", strcmp("next_table_entry"->name, "name") */ +/* If "cmp_fn", cmp_fn("next_table_entry"->name, "name") */ +/* */ +/* Used for Xe_intern_anysym() */ +/* */ +/* If NO "cmp_fn", strcmp("next_table_entry"->name, "data"->name) */ +/* If "cmp_fn", cmp_fn("next_table_entry", "data") */ +/* -------------------------------------------------------------------- */ + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + typedef int (*XeSymFn_cmp) (void *, void *); /* 0 mean match */ +#else + typedef int (*XeSymFn_cmp) (); +#endif + + +/* HASH_FN: */ +/* */ +/* Note, the internal hash function in not user accesable. */ +/* */ +/* Used for Xe_intern() and XeRegisterSymbol() */ +/* */ +/* If NO "hash_fn", internal_hash("next_table_entry"->name, "name") */ +/* If "hash_fn", hash_fn("next_table_entry"->name, "name") */ +/* */ +/* Used for Xe_intern_anysym() */ +/* */ +/* If NO "hash_fn", internal_hash("next_table_entry"->name, "data"->name)*/ +/* If "hash_fn", hash_fn("next_table_entry" , "data") */ +/* ----------------------------------------------------------------------- */ + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + typedef unsigned int (*XeSymFn_hash) (void *, unsigned int); +#else + typedef unsigned int (*XeSymFn_hash) (); +#endif + +/* INIT_FN: */ +/* */ +/* Used for Xe_intern() and XeRegisterSymbol() */ +/* */ +/* 1) A XeSymbol entry is created, */ +/* - XeSymbol->name = strdup("name"), */ +/* - XeSymbol->value = NULL */ +/* 2) If a "init_fn" is configured, */ +/* - XeSymbol->value = init_fn( XeSymbol, 0 ) */ +/* */ +/* Used for Xe_intern_anysym() */ +/* */ +/* 1) If "size" != 0, */ +/* - malloc "size" bytes, */ +/* - copy "size" bytes from "data" into malloced space, */ +/* - Save pointer to malloc space as user's data pointer */ +/* Else */ +/* - Save "data" as pointer to user's data */ +/* 3) If a "init_fn" is configured, */ +/* - call init_fn( user's data pointer, "size" ) */ +/* - set user's data pointer to return value of init_fn */ +/* ONLY if "size" was zero. */ +/* */ +/* If size is non zero AND there is a user's malloc function, */ +/* beware that the return value from the malloc function is not */ +/* save anywhere by these routines. If size was zero, the */ +/* return value of the user's function is kept. */ +/* */ +/* -------------------------------------------------------------------- */ + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + typedef void * (*XeSymFn_init)(void *, unsigned int); +#else + typedef void * (*XeSymFn_init)(); +#endif + +/* CLEAN_FN: */ +/* */ +/* If created by Xe_intern() or XeRegisterSymbol() */ +/* */ +/* 1) free(XeSymbol->name) */ +/* 2) If a "clean_fn" is configured, */ +/* - clean_fn(XeSymbol->value), */ +/* - the XeSymbol entry is deleted. */ +/* */ +/* If created by Xe_intern_anysym() */ +/* */ +/* 1) If a "clean_fn" is configured, */ +/* - init_fn( user's data pointer, "size" ) */ +/* 2) If "size" != 0 during at creation time, */ +/* - free( user's data pointer ) */ +/* */ +/* Take note of the what happens during creation with "size" is */ +/* non-zero and there is a user's malloc function. The result of */ +/* the user's malloc function will be passed to this clean function */ +/* only if "size" was zero at creation time. Otherwise, the memory */ +/* malloc'ed by this routine due to the non-zero size parameter is */ +/* what is passed to the user's clean function. */ +/* -------------------------------------------------------------------- */ + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + typedef void (*XeSymFn_clean) (void *); +#else + typedef void (*XeSymFn_clean) (); +#endif + +/* This is what an internal symbol table entry looks like: */ +/* ------------------------------------------------------- */ +typedef struct _XeSymtabList { + struct _XeSymtabList *rest; + void *data; + Boolean data_is_XeSymbol; + Boolean data_is_malloc_mem; +} *XeSymtabList; + + +/* This is the master record for a symbol table */ +/* -------------------------------------------- */ + +typedef struct _XeSymTable +{ + unsigned int hashsize; /* # of hash buckets. */ + XeSymtabList *list; /* Hash buckets. */ + + XeSymtabList curr_list; /* Used to dump/traver the table. */ + unsigned int curr_hash; + + XeSymFn_cmp cmp_fn; /* Read above description with each */ + XeSymFn_hash hash_fn; /* function typedef for more info. */ + XeSymFn_init init_fn; + XeSymFn_clean clean_fn; +} *XeSymTable; + + +/* Create a new hashtable. "hashsize must be power of 2 if using default */ +/* hash function (no checking is done to ensure this). */ +/* --------------------------------------------------------------------- */ +XeSymTable Xe_new_symtab +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (unsigned int hashsize); +#else + (); +#endif + + +/* Create the default symbol table. If already created, just */ +/* return the symtable pointer. */ +/* ---------------------------------------------------------- */ +XeSymTable Xe_default_symtab +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void); +#else + (); +#endif + + +/* Configure user defined function for use with symtab routines. */ +/* NOTE: Be sure you understand the interaction of these functions */ +/* Read the decriptions with each of the typdef's above. A */ +/* null function pointer will overwrite any previously */ +/* installed value. */ +/* --------------------------------------------------------------- */ +XeSymTable Xe_set_sym_fns +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeSymTable t, + XeSymFn_cmp cmp_fn, + XeSymFn_init init_fn, + XeSymFn_clean clean_fn, + XeSymFn_hash hash_fn); +#else + (); +#endif + + +/* Find or create a symbol for "name". Its "value" is set to NULL. */ +/* None of the user defined init/cmp, etc functions are honored by */ +/* this routine */ +/* WARNING: Read the notes for the function typedef's above. */ +/* ----------------------------------------------------------------- */ +XeSymbol Xe_intern +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeSymTable t, ConstXeString const name); +#else + (); +#endif + + +/* Find the symbol for "name". NULL is returned if not found. */ +/* None of the user defined init/cmp, etc functions are honored by */ +/* this routine */ +/* WARNING: Read the notes for the function typedef's above. */ +/* ----------------------------------------------------------------- */ +XeSymbol Xe_lookup +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeSymTable t, ConstXeString const name); +#else + (); +#endif + + +/****************************************************************************/ +/* LISTS */ + +typedef struct _XeList { + struct _XeList *rest; + void *data; +} *XeList; + +/* make a list from data and rest */ +/* ------------------------------ */ +XeList Xe_make_list +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void *data, XeList rest); +#else + (); +#endif + + +/****************************************************************************/ +/* QUEUES */ + +typedef struct _XeQueue { + XeList head; + XeList tail; + void * null; +} *XeQueue; + +/* for static or auto struct queues */ +/* -------------------------------- */ +XeQueue Xe_init_queue +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeQueue q, void * nullval); +#else + (); +#endif + +XeQueue Xe_make_queue +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (void * nullval); +#else + (); +#endif + +void Xe_release_queue +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeQueue q); +#else + (); +#endif + +/* nullval returned if queue empty */ +/* ------------------------------- */ +void * Xe_pop_queue +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeQueue q); +#else + (); +#endif + +/* nullval returned if not found */ +/* ------------------------------- */ +void * Xe_delete_queue_element +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeQueue q, void * val); +#else + (); +#endif + +void Xe_push_queue +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeQueue q, void * val); +#else + (); +#endif + +/* user declares his own "type var" */ +/* -------------------------------- */ +#define Xe_for_queue(type,var,q) \ + XeList q_next, q_list; \ + for(q_list = q->head; \ + q_list && (var = (type) q_list->data, q_next = q_list->rest , 1);\ + q_list = q_next) + + +/* PUT NOTHING AFTER THIS endif */ +#endif /* _Symbolic_h_ */ + diff --git a/cde/include/bms/XeUserMsg.h b/cde/include/bms/XeUserMsg.h new file mode 100644 index 00000000..6d2925d7 --- /dev/null +++ b/cde/include/bms/XeUserMsg.h @@ -0,0 +1,67 @@ +/* + * 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: XeUserMsg.h $XConsortium: XeUserMsg.h /main/3 1995/10/26 15:46:16 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 _XeUserMsg_h +#define _XeUserMsg_h + +#include + +/* Global Variables */ +/* ---------------- */ + +extern XeString XeProgName; /* saves value of arg[0] */ + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) +typedef enum { + XeIgnore, + XeInformation, + XeWarning, + XeError, + XeFatalError, + XeInternalError +} XeSeverity; +#else +# define XeIgnore 0 +# define XeInformation 1 +# define XeWarning 2 +# define XeError 3 +# define XeFatalError 4 +# define XeInternalError 5 + typedef int XeSeverity; +#endif + +#define export /* Use this noop to mark non-static procedures. */ + +#endif /* _XeUserMsg_h */ +/* DON'T ADD STUFF AFTER THIS #endif */ diff --git a/cde/include/bms/bms.h b/cde/include/bms/bms.h new file mode 100644 index 00000000..15e03b75 --- /dev/null +++ b/cde/include/bms/bms.h @@ -0,0 +1,76 @@ +/* + * 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: bms.h $XConsortium: bms.h /main/4 1996/06/21 17:20:07 ageorge $ + * 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 _bms_h +#define _bms_h + +#ifdef SVR4 +#include /* MAXHOSTNAMELEN */ +#else +#include /* MAXHOSTNAMELEN */ +#endif + +/* WARNINGS: */ +/* */ +/* 1) MUST included before this file. */ +/* 2) Any includes MUST come before this file. */ +/* ---------------------------------------------------------- */ + +#ifndef _XtIntrinsic_h /* Define "Boolean" if not already */ + typedef char Boolean; /* defined from */ +#endif + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + +extern char *XeToolClass; + +extern XeString XeProgName; /* From noXinit.c */ + +extern XeString /* Returns Malloc'ed memory */ +XeSBTempPath +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString); +#else + (); +#endif + +/* DON'T ADD STUFF AFTER THIS #endif */ +#endif /* _bms_h */ + diff --git a/cde/include/bms/connect.h b/cde/include/bms/connect.h new file mode 100644 index 00000000..af209a65 --- /dev/null +++ b/cde/include/bms/connect.h @@ -0,0 +1,223 @@ +/* + * 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:47:00 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 _connect_h +#define _connect_h + +#if defined(__cplusplus) && defined(__c_callable) +extern "C" { +#endif + +int XeParseFileString +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString line, XeString *host_addr, XeString *path_addr); +#else + (); +#endif +#if defined(__cplusplus) && defined(__c_callable) +} +#endif + +/* + Take the filespec as a line and return a path the host and path + components as separate fields (finds the ':' and replaces it with + NULL). THIS FUNCTION MUNGES THE ORIGINAL LINE. +*/ + +extern XeString XeFindHost +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString host_spec); +#else + (); +#endif + +extern XeString XeFindShortHost +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString host_spec); +#else + (); +#endif +/* + Returns a host name corresponding to host_spec. + + In all cases a NEW STRING, OWNED BY THE + CALLER, is returned. XeFindHost returns the full host specification + including domain if there is one. XeFindShortHost does not + include the domain. These functions can be used to convert between + domain and simple names when needed. The domain names should be + used always internally and the simple names only used for display. +*/ + +extern int Xegethostname +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString hostname, unsigned int size); +#else + (); +#endif + +#if defined(__cplusplus) && defined(__c_callable) +extern "C" { +#else +extern +#endif +int Xegetshorthostname +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString hostname, unsigned int size); +#else + (); +#endif +#if defined(__cplusplus) && defined(__c_callable) +} +#endif + +/* + Identical to the libc function gethostname, except that Xegethostname + returns a full domain qualified name and Xegetshorthostname returns + a simple name. These functions are necessary because the system + hostname may or may not contain a domain name and the internal + representation should always be canonical form (domain qualified). + Use Xegethostname except when the name is being used for display + purposes only. Storage allocation is identical to gethostname + (it copies into the caller's buffer). +*/ + +#if defined(__cplusplus) && defined(__c_callable) +extern "C" { +#else +extern +#endif +Boolean XeIsLocalHostP +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString hostname); +#else + (); +#endif +#if defined(__cplusplus) && defined(__c_callable) +} +#endif + +/* + Returns true if the hostname passed in identifies the host on which + this function is executed. This is needed in order to handle all + combinations of simple and domain-qualified names for either the + hostname passed in or the one defined on the local host. Be sure + to include Xe.h or provide a local declaration for this function + as Boolean is not the same length as int and it won't function + correctly without the declaration. +*/ +#if defined(__cplusplus) && defined(__c_callable) +extern "C" { +#else +extern +#endif +Boolean XeIsSameHostP +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString host1, XeString host2); +#else + (); +#endif +#if defined(__cplusplus) && defined(__c_callable) +} +#endif + +/* + Returns true if host1 and host2 specify the same host. This is + needed, because either or both hosts may be specified with or + without domain qualifiers, and the correct result must be + obtained. This function canonicalizes both and compares them + only in canonical form. +*/ + +extern Boolean XeIsSameHostP +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString host1, XeString host2); +#else + (); +#endif +/* + Returns true if host1 and host2 specify the same host. This is + needed, because either or both hosts may be specified with or + without domain qualifiers, and the correct result must be + obtained. This function canonicalizes both and compares them + only in canonical form. +*/ + +XeString XeCreateContextString +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString host, XeString directory, XeString file); +#else + (); +#endif +/* + XeCreateContextString changes the given context into a + label which is exactly the same as the one shown in a + fileview modeline. A NEW STRING, OWNED BY THE CALLER, + is returned. +*/ + +#define XeEliminateDots(path) (XeString)pathcollapse(path, path, FALSE) +/* + Removes /./'s and /../ 's from path. THIS ROUTINE OVERWRITES + THE path IT WAS PASSED. If there are too many ..'s in path, + NULL is returned, so you better keep a pointer to path if you hope + to reclaim it. Does not handle host:/path, shell variables or other + exotic animals. +*/ + +int Xechdir +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (const char *path); +#else + (); +#endif +/* + performs a chdir and caches the new directory in $PWD so that + Xegetcwd() can get the current directory without slow stat calls +*/ + +char *Xegetcwd +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (char *buf, + int size); +#else + (); +#endif +/* + version of getcwd() which uses cached $PWD (or $PWD from shell) + if available and calls getcwd only when PWD not set +*/ + +/* DON'T ADD STUFF AFTER THIS #endif */ +#endif /* _connect_h */ + diff --git a/cde/include/bms/pathwexp.h b/cde/include/bms/pathwexp.h new file mode 100644 index 00000000..6571cac0 --- /dev/null +++ b/cde/include/bms/pathwexp.h @@ -0,0 +1,45 @@ +/* + * 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: pathwexp.h $XConsortium: pathwexp.h /main/3 1995/10/26 15:47:18 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 _pathwexp_h +#define _pathwexp_h + +extern XeString Xe_shellexp +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString path); +#else + (); +#endif + +#endif /* _pathwexp_h */ diff --git a/cde/include/bms/sbport.h b/cde/include/bms/sbport.h new file mode 100644 index 00000000..8f26b028 --- /dev/null +++ b/cde/include/bms/sbport.h @@ -0,0 +1,294 @@ +/* + * 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: sbport.h $TOG: sbport.h /main/4 1998/03/16 14:40:52 mgreess $ + * 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 PORT_H_INCLUDED +#define PORT_H_INCLUDED + +/*--------------------------------------------------------------------------- + + The following is a list of #defines that may be tested for in the code: + ======================================================================= + + __STDC__ - Will be set for ANSI C compilers + __cplusplus - Will be set for C++ compilers + __STDCPP__ - Will be set for ANSI and C++ compilers + + __hpux - Will be set for HP-UX systems + __sun - Will be set for SUN systems + __aix - Will be set for IBM (AIX) systems + + __sysv - Set when using SYSV semantics (e.g. HP, SUN) + SYSV - Set when __sysv is set (needed for some X11 includes) + __bsd - Set when using BSD semantics + + __hp_7_0 - For running on HP-UX 7.0 + __hp_nls_16 - Set if HP's 16 bit support is to be compiled in + __hp_color_object - Set if HP's ColorObject extension is available in the Motif library + __hp9000s300 - Set for S300 (and S400?) HP-UX machines + __hp9000s800 - Set for S800 (PA-RISC) machines + + __sparc - Set for SUN sparc machines + __sun68k - Set for SUN m68k machines + + __identification_strings - Set when RCS header strings are to be in code + __recursive_includes - Set to have .h files #includes prerequisite files + __char_ptr_yytext - Set if the lex/yacc variable yytext is defined + to be of type char[]. + __unsigned_char_ptr_yytext - Set if the lex/yacc variable yytext is defined + to be of type unsigned char[]. + + KEEP_DEADWOOD - Currently set to "FALSE". If set to "TRUE", + lots of old code and semantics will be enabled. + +----------------------------------------------------------------------------*/ + + + +/* First task is to make sure all of the defines that we use in the */ +/* code are properly set up. */ +/* ---------------------------------------------------------------- */ +#if !defined(sun) +#if !defined(__STDCPP__) && (defined(__STDC__) || defined(__cplusplus)) +# define __STDCPP__ +#endif +#endif + +#if defined(sun) && !defined(__sun) +# define __sun +#endif + +#if defined(hpux) && !defined(__hpux) +# define __hpux +#endif + +#if defined(_AIX) && !defined(__aix) +# define __aix +# define OSF_MOTIF_1_1_1 +# define OSF_BUG +#endif + +#ifdef __hpux +# define __sysv +/* __hp9000s300 or __hp9000s800 is defined by HP-UX cpp */ +# if !defined (__hpux_8_0) +# define __hp_7_0 +# endif +# define __hp_nls_16 +# define __hp_color_object +# define __unsigned_char_ptr_yytext +#endif /* __hpux */ + +#ifdef __sun +# if defined(sparc) && !defined(__sparc) +# define __sparc +# else +# if defined(mc68000) || defined(__mc68000) +# define __sun68k +# endif +# endif +# define __hp_color_object /* Should only be set if linking with */ + /* HP's version of Motif (1.1 or later). */ +# define __char_ptr_yytext +# define __c_callable /* Set so VUE can link with libbms. */ +#endif + +#ifdef __aix +# define __sysv +#endif + +#if defined(__sysv) && !defined(SYSV) +# define SYSV /* Needed for X11 include files */ +#endif + +#ifndef KEEP_DEADWOOD /* Setting this to "TRUE" will cause */ +# define KEEP_DEADWOOD FALSE /* all sorts of unknown problems. */ +#endif + +#ifdef __cplusplus + +#define UNUSED_PARM(_parm) + +#else + +#define UNUSED_PARM(_parm) _parm + +#endif /* __cplusplus */ + +/* There are a few things that are not part of XPG3 that we need. */ +/* sockets are one of them. To use this stuff, we just include the */ +/* non XOPEN include files and things work. However, there are a */ +/* few XOPEN include files that have stuff to support this extra */ +/* functionality (e.g. sockets) that are #ifdef'ed for conditional */ +/* inclusion with the _XOPEN_SOURCE define. In order to pull those */ +/* extra types in, we relas the XPG3 compliance for that file. The */ +/* following are the three areas where we must do this: */ +/* */ +/* __need_timeval gets "struct timeval" */ +/* __need_fd_set gets "typedef struct fd_set {..." */ +/* __need_S_IF gets "S_IFNWK, S_IFLNK" */ +/* __need_all_signals gets all SIGxxx values */ +/* __need_all_errors gets all errno values */ +/* */ +/* We get at these declarations differently on each platform... */ +/* ----------------------------------------------------------------- */ + +#if defined(__need_timeval) /* Get "struct timeval" */ +# if defined(__sun) || defined(__aix) +# include +# endif +#endif /* __need_timeval */ + + +#if defined(__need_fd_set) /* Get "typedef struct fd_set" */ +# ifdef _AIX +# include +# endif +#endif /* __need_fd_st */ + +/* We also use the following non XPG3 types. However, they may be */ +/* defined when we relax the XPG3 compliance to get the stuff talked */ +/* about above. So, declare them only if we don't already have them */ +/* ----------------------------------------------------------------- */ + +#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__) + /* the "u_types" are defined in standard files */ +# undef _INCLUDE_BSD_SOURCE +#else + typedef unsigned int u_int; + typedef unsigned char u_char; + typedef unsigned short u_short; + typedef unsigned long u_long; +#endif + +/* Use these if you must ensure that you get a specific number of bits */ +/* -------------------------------------------------------------------- */ +typedef char int8; +typedef short int16; +typedef long int32; +typedef unsigned char u_int8; +typedef unsigned short u_int16; +typedef unsigned long u_int32; + +#define __xechar_is_signed +#undef __xechar_is_unsigned + +#ifdef __xechar_is_signed +typedef char XeChar; +#else +typedef unsigned char XeChar; +#endif + + +/* The following type is a VARIABLE pointer to a VARIABLE XeChar. */ + +typedef XeChar *XeString; + +/*********************************************************************** +* The following type is a VARIABLE pointer to a CONST XeChar. +* Thus, ConstXeString p; +* p = "abcd"; #Legal +* *p = "\0'; #Illegal +* +* This is NOT the same as (const XeString) +* which is equivilent to (XeChar * const) +* +* Thus, const XeString p; +* p = "abcd"; #Illegal +* *p = "\0'; #Legal +* +************************************************************************/ + +typedef const XeChar *ConstXeString; + +typedef unsigned short XeChar16; +typedef XeChar16 *XeString16; + +#define XeString_NULL (XeString) 0 +#define XeString_Empty (XeString) "" +#define XeChar_NULL (XeChar) 0 + +/* XtPointer was added in R4, so define it ourselves in R3 */ +#ifdef __motif10 +typedef void * XtPointer; +#endif + + +/* The X11 R4 header file "Intrinsic.h" is internally inconsistent */ +/* with respect to XtAppAddInput. The third parameter ("condition") */ +/* is defined to be of type XtPointer (void *), but the input masks */ +/* commonly used with it are scalar values. Until the problem is */ +/* corrected by M.I.T, use the following type as a cast in calls */ +/* to XtAppAddInput. When it is corrected, change this typedef */ +/* accordingly. */ +/* ---------------------------------------------------------------- */ +typedef void * XeInputMask; + +#ifdef __cplusplus +/* Define several macros to handle the C++ vs XtOffset problem. */ +/* The problem is that C++ cannot at compile time evaluate the */ +/* XtOffset macro within an initializer. XtOffset is most often */ +/* used within an XtResource array initialization list. */ +/* class_names must be a typedef, non pointer type. */ +/* ---------------------------------------------------------------- */ + +#define XtOffsetSimpleField(class_name,field) \ + ((Cardinal) &class_name::field - 1) + +#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \ + (((Cardinal) &class_name1::field1 - 1) + ((Cardinal) &class_name2::field2 - 1)) + +#else +#define XtOffsetSimpleField(class_name,field) \ + ((Cardinal) (((char *) (&(((class_name *)NULL)->field))) - ((char *) NULL))) + +#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \ + ((Cardinal) (((char *) (&(((class_name1 *)NULL)->field1))) - ((char *) NULL))) + \ + ((Cardinal) (((char *) (&(((class_name2 *)NULL)->field2))) - ((char *) NULL))) +#endif + +#ifndef __identification_strings +#define SUPPRESS_RCS_ID /*forces equivalent action for VED/EDIT shared files*/ +#endif + +#ifndef SBSTDINC_H_NO_INCLUDE +#include +#endif + +#ifdef __aix +# undef NULL +# define NULL 0 /* AIX uses NULL=(void *)0 */ +#endif + +#endif /* PORT_H_INCLUDED */ + diff --git a/cde/include/bms/sbstdinc.h b/cde/include/bms/sbstdinc.h new file mode 100644 index 00000000..17dc5209 --- /dev/null +++ b/cde/include/bms/sbstdinc.h @@ -0,0 +1,244 @@ +/* + * 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: sbstdinc.h $TOG: sbstdinc.h /main/7 1998/07/31 17:50:45 mgreess $ + * 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 _sbstdinc_h +#define _sbstdinc_h + +#include +#include + +#ifdef SVR4 +#include /* MAXHOSTNAMELEN */ +#endif /* SVR4 */ + +#ifndef howmany +#define howmany(x, y) (((x)+((y)-1))/(y)) /* From , but not an XPG3 file */ +#endif + +#include +#include +#include +#include +#include +#include +#include + +/************************************************************************/ +/* Routines not defined in include files (yet). */ +/************************************************************************/ + +/* BSD has bzero(), bcmp(), and bcopy() defined. */ +#if !defined(__bsd) && !defined(CSRG_BASED) + +#if defined(__STDC__) +#if !defined(__linux__) && !defined(_XFUNCS_H_) && !defined(sun) +extern void bcopy(char *b1, char *b2, int length); +extern int bcmp(char *b1, char *b2, int length); +extern void bzero(char *b, int length); +#endif + +extern char *mktemp(char *tmplate); +#elif ! defined(__cplusplus) +#if !defined(__linux__) && !defined(_XFUNCS_H_) +extern void bcopy(); +extern int bcmp(); +extern void bzero(); +#endif + +extern char *mktemp(); +#endif + +#endif + + +#ifndef SBSTDINC_H_NO_REDEFINE /* sbstdinc.c turns this on */ + +/************************************************************************/ +/* Routines from */ +/* --- These always get redefined so we can catch null ptr deref's */ +/************************************************************************/ + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrcat(XeString s1, ConstXeString s2); +#else +extern XeString Xestrcat(); +#endif +#ifdef strcat +# undef strcat +#endif +#define strcat Xestrcat + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrncat(XeString s1, ConstXeString s2, size_t n); +#else +extern XeString Xestrncat(); +#endif +#ifdef strncat +# undef strncat +#endif +#define strncat Xestrncat + +#if defined(__STDC__) || defined(__cplusplus) +extern int Xestrcmp(ConstXeString s1, ConstXeString s2); +#else +extern int Xestrcmp(); +#endif +#ifdef strcmp +# undef strcmp +#endif +#define strcmp Xestrcmp + +#if defined(__STDC__) || defined(__cplusplus) +extern int Xestrncmp(ConstXeString s1, ConstXeString s2, size_t n); +#else +extern int Xestrncmp(); +#endif +#ifdef strncmp +# undef strncmp +#endif +#define strncmp Xestrncmp + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrcpy(XeString s1, ConstXeString s2); +#else +extern XeString Xestrcpy(); +#endif +#ifdef strcpy +# undef strcpy +#endif +#define strcpy Xestrcpy + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrncpy(XeString s1, ConstXeString s2, size_t n); +#else +extern XeString Xestrncpy(); +#endif +#ifdef strncpy +# undef strncpy +#endif +#define strncpy Xestrncpy + +#if defined(__STDC__) || defined(__cplusplus) +extern int Xestrcoll(ConstXeString s1, ConstXeString s2); +#else +extern int Xestrcoll(); +#endif +#ifdef strcoll +# undef strcoll +#endif +#define strcoll Xestrcoll + +#if defined(__STDC__) || defined(__cplusplus) +extern size_t Xestrxfrm(XeString s1, ConstXeString s2, size_t n); +#else +extern size_t Xestrxfrm(); +#endif +#ifdef strxfrm +# undef strxfrm +#endif +#define strxfrm Xestrxfrm + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrchr(ConstXeString s, int c); +#else +extern XeString Xestrchr(); +#endif +#ifdef strchr +# undef strchr +#endif +#define strchr Xestrchr + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrpbrk(ConstXeString s1, ConstXeString s2); +#else +extern XeString Xestrpbrk(); +#endif +#ifdef strpbrk +# undef strpbrk +#endif +#define strpbrk Xestrpbrk + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrrchr(ConstXeString s, int c); +#else +extern XeString Xestrrchr(); +#endif +#ifdef strrchr +# undef strrchr +#endif +#define strrchr Xestrrchr + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrstr(ConstXeString s1, ConstXeString s2); +#else +extern XeString Xestrstr(); +#endif +#ifdef strstr +# undef strstr +#endif +#define strstr Xestrstr + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrtok(XeString s1, ConstXeString s2); +#else +extern XeString Xestrtok(); +#endif +#ifdef strtok +# undef strtok +#endif +#define strtok Xestrtok + +#if defined(__STDC__) || defined(__cplusplus) +extern size_t Xestrlen(ConstXeString s); +#else +extern size_t Xestrlen(); +#endif +#ifdef strlen +# undef strlen +#endif +#define strlen Xestrlen + +#if defined(__STDC__) || defined(__cplusplus) +extern XeString Xestrdup(ConstXeString s); +#else +extern XeString Xestrdup(); +#endif +#ifdef strdup +# undef strdup +#endif +#define strdup Xestrdup + +#endif /* ifndef SBSTDINC_H_NO_REDEFINE */ + +#endif /* _sbstdinc_h */ diff --git a/cde/include/bms/scoop.h b/cde/include/bms/scoop.h new file mode 100644 index 00000000..b06772eb --- /dev/null +++ b/cde/include/bms/scoop.h @@ -0,0 +1,162 @@ +/* + * 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: scoop.h $XConsortium: scoop.h /main/3 1995/10/26 15:48:17 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 _scoop_h +#define _scoop_h + +#ifndef NULL +#define NULL 0L +#endif + +#ifndef TRUE +#define FALSE 0 +#define TRUE 1 +#endif /* TRUE */ + +#if !defined(__sun) +# if (defined(__STDC__) || defined(__STDCPP__) || defined(__cplusplus) || defined(c_plusplus)) +# define CAT(a,b) a##b +# else +# define CAT(a,b) a/**/b +# endif +#else + /* Sun C++ compiler uses the non-ansi cpp. */ +# if defined(__cplusplus) +# define CAT(a,b) a/**/b +# else +# define CAT(a,b) a##b +# endif +#endif + + +typedef long OSizeType ; + +typedef struct root_class *root_clasp, *object_clasp ; + +typedef struct object_struct object; + +typedef void (*SC_class_init)(object_clasp); +typedef void (*SC_object_init)(object *); +typedef object * (*SC_new_obj)(object_clasp); +typedef void (*SC_free_obj)(object *); +typedef object * (*SC_clone)(object *, object *); + +#define root_class_part \ + XeString name ; /* class name */ \ + SC_class_init class_init; /* fn to init my class struct */ \ + OSizeType object_size ; /* size of object of this class */ \ + short init ; /* boolean--class initialized state */ \ + SC_object_init object_init; /* fn to init my object struct */ \ + SC_new_obj new_obj; /* fn to allocate class objects */ \ + SC_free_obj free_obj; /* fn to free class objects */ \ + SC_clone clone; /* `method' to clone an object */ \ + /* no root private parts */ + +#define root_object_part + +struct object_struct +{ root_clasp class_ptr; + root_object_part + }; + +struct root_class + { object_clasp base ; /* pointer to base class */ + root_class_part } ; + +#define memf(vref, fn, arglist) ( (vref class_ptr)->fn arglist) +#define memvf0(v,fn) memf(v., fn, (&(v))) +#define memvf1(v,fn,a1) memf(v., fn, (&(v),a1)) +#define memvf2(v,fn,a1,a2) memf(v., fn, (&(v),a1,a2)) +#define memvf3(v,fn,a1,a2,a3) memf(v., fn, (&(v),a1,a2,a3)) +#define memvf4(v,fn,a1,a2,a3,a4) memf(v., fn, (&(v),a1,a2,a3,a4)) +#define memvf5(v,fn,a1,a2,a3,a4,a5) memf(v., fn, (&(v),a1,a2,a3,a4,a5)) +#define memvf6(v,fn,a1,a2,a3,a4,a5,a6) memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6)) +#define memvf7(v,fn,a1,a2,a3,a4,a5,a6,a7) \ + memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7)) +#define memvf8(v,fn,a1,a2,a3,a4,a5,a6,a7,a8) \ + memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8)) +#define memvf9(v,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \ + memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8,a9)) +#define mempf0(p,fn) memf(p->, fn, (p)) +#define mempf1(p,fn,a1) memf(p->, fn, (p,a1)) +#define mempf2(p,fn,a1,a2) memf(p->, fn, (p,a1,a2)) +#define mempf3(p,fn,a1,a2,a3) memf(p->, fn, (p,a1,a2,a3)) +#define mempf4(p,fn,a1,a2,a3,a4) memf(p->, fn, (p,a1,a2,a3,a4)) +#define mempf5(p,fn,a1,a2,a3,a4,a5) memf(p->, fn, (p,a1,a2,a3,a4,a5)) +#define mempf6(p,fn,a1,a2,a3,a4,a5,a6) memf(p->, fn, (p,a1,a2,a3,a4,a5,a6)) +#define mempf7(p,fn,a1,a2,a3,a4,a5,a6,a7) \ + memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7)) +#define mempf8(p,fn,a1,a2,a3,a4,a5,a6,a7,a8) \ + memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8)) +#define mempf9(p,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \ + memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8,a9)) + +#define memd(vref, dm) (vref dm) +#define base_memf(my_class, fn, arglist) \ + ((*(my_class->base->fn)) arglist) + +#define memfp(vref, fn, arglist) memf (vref, CLASS.fn, arglist) +#define memdp(vref, dm) memd (vref, CLASS.dm) + +#define memvs(v, sdm) (*((v.class_ptr)->sdm)) +#define memps(p, sdm) (*((p->class_ptr)->sdm)) +#define stat_def(name, type) type *name; type CAT(name,_static) ; +#define stat_init(def_class, class_ptr, name) \ + (class_ptr->name) = &(def_class->CAT(name,_static)) + +extern object_clasp root_class ; + +extern void object_destroy +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (object *p); +#else + (); +#endif + +extern object *object_create +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (object_clasp c); +#else + (); +#endif + +extern void object_init +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (object_clasp c, object *p); +#else + (); +#endif + +#endif /* _scoop_h */ +/* PLACE NOTHING AFTER THIS endif */ diff --git a/cde/include/bms/spc.h b/cde/include/bms/spc.h new file mode 100644 index 00000000..d0ce4863 --- /dev/null +++ b/cde/include/bms/spc.h @@ -0,0 +1,489 @@ +/* + * 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:48:38 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 _spc_h +#define _spc_h + +/* -------------------------------------------- */ +/* Requires: */ +#include +#include + +#include + +/* -------------------------------------------- */ + +typedef struct _SPC_Channel *SPC_Channel_Ptr; + +typedef struct _XeHostInfo { + XeString os; + XeString os_ver; + XeString hw_arch; +} *XeHostInfo; + +extern FILE *SPC_Print_Protocol; +extern FILE *spc_logF; +extern XeString spc_user_environment_file; + +/* Error returns for SPC routines */ + +#define SPC_ERROR FALSE /* Use this value for error checking */ + +/* + * These are the channel connector definitions + */ + +#define STDIN 0 +#define STDOUT 1 +#define STDERR 2 + +#define MASTER_SIDE 0 +#define SLAVE_SIDE 1 + +/* These are the sub-process notification identifiers */ + +#define SPC_PROCESS_STOPPED 1 /* Child process is in background */ +#define SPC_PROCESS_EXITED 2 /* Child process called exit(cause); */ +#define SPC_PROCESS_SIGNALLED 3 /* Child process received signal: cause */ +#define SPC_PROCESS_INTERRUPT 4 /* Child process WAIT was interrupted */ +#define SPC_PROCESS_DUMPED(a) ((a) & 0200) /* True when core dumped */ + +/* This is the maximum size of an SPC I/O Buffer */ +#define SPC_BUFSIZ 4096 + +/* + * These macros define the bit field portion of an SPC_IOMode + */ + +#define SPCIO_ALL_MASK 0xffffffff + +/* The IO Modes that define the input and output sources */ + +#define SPCIO_SOURCE_MASK 0xf +#define SPCIO_NOIO 0x0 /* The default - no input/output */ +#define SPCIO_WRITEONLY 0x1 /* Only write app stdin */ +#define SPCIO_READONLY 0x2 /* Only read app stdout */ +#define SPCIO_READWRITE 0x3 /* Read stdout, write stdin */ +#define SPCIO_ERRORONLY 0x4 /* Only read stderr */ +#define SPCIO_WRITEERROR 0x5 /* Write stdin, read stderr */ +#define SPCIO_READERROR 0x6 /* Only read stdout/stderr */ +#define SPCIO_READWRITEERROR 0x7 /* Full std (in, out, err) */ + +/* Use this bit with above IO Mode for splitting stdout and stderr data */ + +#define SPCIO_SEPARATEREADERROR 0x8 /* Separate stdout & stderr */ + +/* The IO Modes that deal with communication styles (features) */ +#define SPCIO_STYLE_MASK 0x70 +#define SPCIO_PTY 0x10 /* Use a PTY */ +#define SPCIO_PIPE 0x20 /* Use pipe() - no line editing */ +#define SPCIO_NOIOMODE 0x40 /* Use neither */ + +#define SPCIO_LINEEDIT 0x80 /* Valid only with PTY */ + +/* Other flags */ + +#define SPCIO_SYSTEM 0x100 /* Use system() - Spawns a SHELL */ +#define SPCIO_LINEORIENTED 0x200 /* Invoke callback on line bounds */ + /* It is possible to break two byte + characters. See note on XeSPCRead. */ +#define SPCIO_WAIT 0x400 /* Wait for process to finish */ +#define SPCIO_USE_XTOOLKIT 0x800 /* Use the X toolkit */ +#define SPCIO_SYNC_TERMINATOR 0x1000 /* Handle termination synchronously */ +#define SPCIO_USE_LOGFILE 0x2000 /* Use logfile for stderr -- only + valid with SPCIO_NOIO */ + +#define SPCIO_SIGNAL_PGRP 0x20000 /* Propagate signals to entire process + group. */ +#define SPCIO_FORCE_CONTEXT 0x40000 /* Error on SPC Spawn if context dir + is not present */ + +/* + * Routines + */ + + +/* spc.c */ + + +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) +# define EXTERN_DECL(type, name, arglist) type name arglist +# if defined(__cplusplus) && defined(__c_callable) +# define EXTERN_C_CALLABLE(type, name, arglist) \ + extern "C" { type name arglist ; } +# else +# define EXTERN_C_CALLABLE(type, name, arglist) \ + EXTERN_DECL(type, name, arglist) +# endif +#else +#ifdef _AIX +# define EXTERN_C_CALLABLE(type, name, arglist) \ + extern type name arglist +# define EXTERN_DECL(type, name, arglist) \ + type name arglist +#else /* _AIX */ +# define EXTERN_DECL(type, name, arglist) name arglist +# define EXTERN_C_DECL(type, name, arglist) EXTERN_DECL(type, name, arglist) + +#endif /* (_AIX) */ +#endif + +EXTERN_C_CALLABLE(SPC_Channel_Ptr, XeSPCOpen, (XeString hostname, int iomode)); + +/* + Open an SPC channel. Process will run on 'hostname' (or the local + host if value is NULL), with the specified iomode. +*/ + +EXTERN_C_CALLABLE(int, XeSPCClose, (SPC_Channel_Ptr channel)); + +/* + Close an SPC channel. Closing a channel will automatically deactivate it + (meaning that any subprocess associated with the channel is terminated). +*/ + +EXTERN_DECL(int, XeSPCReset, (SPC_Channel_Ptr channel)); + +/* + Reset an SPC channel. This will allow it to be used in a subsequent + spawn or exec call. +*/ + + +EXTERN_DECL(int, XeSPCRead, + (SPC_Channel_Ptr channel, int connector, + XeString buffer, int length)); + +/* + Read length characters from an SPC channel into some preallocated buffer. + Note that it is possible to split a two-byte character, if the first + byte if the character is read in just at buffer[length]. However, the + next read will return the second byte (just like Unix read). The + 'connector' value is either STDOUT or STDERR. +*/ + +EXTERN_DECL(int, XeSPCWrite, + (SPC_Channel_Ptr channel, XeString buffer, int length)); + +/* + Write length characters from buffer to the standard input of a + process on the other side of an SPC channel. +*/ + +EXTERN_C_CALLABLE(int, XeSPCActive, (SPC_Channel_Ptr channel)); + +/* + Returns True when channel is active, False otherwise +*/ + +EXTERN_DECL(int, XeSPCData, (SPC_Channel_Ptr channel)); + +/* + Returns True when channel be read from, False otherwise +*/ + +EXTERN_C_CALLABLE(int, XeSPCSpawn, + (XeString pathname, XeString context_dir, XeString *argv, + XeString *envp, SPC_Channel_Ptr channel)); + +/* + Spawn an application under SPC +*/ + +EXTERN_DECL(SPC_Channel_Ptr, XeSPCOpenAndSpawn, + (XeString hostname, int iomode, XeString pathname, + XeString context_dir, XeString *argv, XeString *envp)); + +/* + Combine the Open and Spawn channel operations +*/ + +EXTERN_DECL(int, XeSPCExecuteProcess, (SPC_Channel_Ptr channel)); + +/* + Restart a new subprocess on a channel +*/ + +EXTERN_C_CALLABLE(void, XeSPCKillProcesses, (int wait)); + +/* + Kill all known executing processes (useful for catching SIGTERM, etc) +*/ + +EXTERN_DECL(int, XeSPCKillProcess, (SPC_Channel_Ptr channel, int wait)); + +/* + Kill executing process on an SPC channel. 'wait' TRUE means don't + return from call until process is completely terminated (including + after user specified callbacks are called). +*/ + +EXTERN_DECL(int, XeSPCInterruptProcess, (SPC_Channel_Ptr channel)); + +/* + Interrupt executing process on an SPC channel (send SIGINT). +*/ + +EXTERN_DECL(int, XeSPCSignalProcess, (SPC_Channel_Ptr channel, int sig)); + +/* + Send an arbitrary signal to executing process on an SPC channel. +*/ + +typedef + EXTERN_DECL(void, (*SbInputHandlerProc), + (void *client_data, XeString buf, int nchars, int connector)); + +EXTERN_C_CALLABLE(int, XeSPCAddInput, + (SPC_Channel_Ptr channel, + SbInputHandlerProc handler, + void *client_data)); + +/* + Add an input channel handler +*/ + +/* + * The user input handler takes the following form: + * + * void UserInputHandler(client_data, text, size, connection) + * void * client_data; *** Useful for passing widet destination *** + * XeString text; *** The text coming from the SPC channel *** + * int size; *** The number of character in passed text *** + * int connection; *** The connection where data was received *** + * *** (STDOUT or STDERR) *** + */ + +typedef + EXTERN_DECL(void, (*SPC_TerminateHandlerType), + (SPC_Channel_Ptr chan, + int pid, + int type, + int cause, + void *Terminate_Data)); + +EXTERN_C_CALLABLE(int, XeSPCRegisterTerminator, + (SPC_Channel_Ptr channel, + SPC_TerminateHandlerType teminator, + void * client_data)); + +/* + Add a termination handler to a channel (called when sub-process dies) +*/ + +/* + * The user termination handler takes the following form: + * + * void UserTerminator(channel, pid, type, cause, client_data) + * SPC_CHannel_ptr channel; + * int pid; *** The Process ID of the terminated appl. *** + * int type; *** The type of termination (see above) *** + * int cause; *** The number associated w/termination *** + * void * client_data; *** User specified client data *** + */ + +/* + * These are the channel access routines + */ + +EXTERN_DECL(XeString, XeSPCGetDevice, + (SPC_Channel_Ptr channel, int connector, int side)); + +/* + Return the device name associated with a side of a channel device + pair. 'connector' is either STDIN, STDOUT, or STDERR, and 'side' is + either MASTER_SIDE or SLAVE_SIDE. This call is valid only in PTY + channels. +*/ + +EXTERN_DECL(int, XeSPCGetProcessStatus, + (SPC_Channel_Ptr channel, int *type, int *cause)); + +/* + Fill in the type and cause of a process termination. +*/ + +EXTERN_DECL(int, XeSPCAttach, (SPC_Channel_Ptr channel, int pid)); + +/* + Returns True if a process ID was associated with an SPC channel. +*/ + +EXTERN_DECL(int, XeSPCDetach, (SPC_Channel_Ptr channel)); + +EXTERN_DECL(int, XeSPCGetPID, (SPC_Channel_Ptr channel)); + +/* + Returns the Process ID of the channel or NULL if none +*/ + +EXTERN_DECL(int, XeSPCGetLogfile, + (SPC_Channel_Ptr channel, XeString *host, XeString *file)); + +/* + Return the logfile for the channel. If the channel was not opened + with SPCIO_USE_LOGFILE specified, it will return NULL. Also note + that it returns an XeString *, not an XeString. +*/ + +EXTERN_DECL(int, XeSPCRemoveLogfile, (SPC_Channel_Ptr channel)); + +/* + Remove the logfile associated with the channel +*/ + +/* + * + * Features currently not implemented: + * + * SPCIO_WAIT with ptys + * + * SEPARATEREADERROR with ptys + * + * Complete error checking. For example, there + * are no checks for trying to write to a channel + * opened W/O SPCIO_WRITE specified + * + */ + +EXTERN_DECL(int, XeSPCGetChannelSyncFd, (SPC_Channel_Ptr channel)); + +/* + Get the file descriptor for checking synchronous termination. This + is used for interfacing with event loops. +*/ + +EXTERN_DECL(SPC_Channel_Ptr, XeSPCHandleTerminator, (int fd)); + +/* + Handle a synchronous termination condition + + This routine is to be used with the file descriptor returned by + XeSPCGetChannelSyncFd. The idea is that one opens a channel using + SPCIO_SYNC_TERMINATOR set in the iomode, and then at some point + checks for input available on the returned file descriptor (possibly + using a select(2) system call). If there is input, it means that + some SYNC_TERMINATOR channel had a subprocess die. The program then + calls XeSPCHandleTerminator to get the termination handler invoked. + IT IS THE RESPONSIBILITY OF THE USER PROGRAM TO EVENTUALLY CALL + XeSPCHandleTerminator. IF IT DOES NOT, THE PROGRAM MAY DEADLOCK + ITSELF. +*/ + + +/* SPC Error handling */ + +typedef struct _SPCError { /* An SPC Error message */ + XeString text; /* The text */ + XeString format; /* How to format args */ + XeSeverity severity; /* How bad is it, doc? */ + char use_errno; /* Whether to use the system errno */ +} SPCError; + +/* Use this to get the current error number */ + +extern int XeSPCErrorNumber; + +EXTERN_DECL(SPCError *, XeSPCLookupError, (int errnum)); + +/* + Returns the SPCError structure associated with the passed error number or + NULL if the passed error number is not a valid SPC error. The + error structure returned will be overwritten by a subsequent + XeSPCLookupError call. +*/ + +EXTERN_DECL(void, XeSPCShutdownCallbacks, (void)); + +EXTERN_DECL(void, XeSPCRestartCallbacks, (void)); + +/* These two routines are used to temporarily suspend SPC callbacks */ + +EXTERN_DECL(int, XeSetpgrp, (int read_current_termio)); + +/* + This routine will do the following: + + 1. open /dev/tty + 2. get the termio information from the file descriptor just opened + 3. close /dev/tty + 3. allocate a master / slave pty pair, opening the master side + 4. set the termio info of the master side to be the result of step 2 + 5. setpgrp + 6. open the slave side. + + All of this has the effect of making the process which called this + routine immune to interrupts, etc., but also passing on the termio + characteristics of the original tty. + + If read_current_termio is non-zero, steps 1-3 will NOT be performed, but + instead this routine will get the information from the following termio + struct: + +*/ + +EXTERN_DECL(XeHostInfo, SPC_GetHostinfo, (SPC_Channel_Ptr channel)); + +/* + Return information about the host (os, os-ver, hw) to which "channel" + is currently connected. The return is to a static structure of static + strings. Do not modify or free and of them! +*/ + +/* + ** + ** New B.00 functions + ** +*/ + +EXTERN_C_CALLABLE(int, XeSPCSendEOF, (SPC_Channel_Ptr channel)); + +/* + Close the standard input of the process on the other side of the channel +*/ + +EXTERN_C_CALLABLE(int, XeSPCSetTermio, + (SPC_Channel_Ptr channel, + int connection, + int side, + struct termios *termio)); + +/* + Set the termio value of the PTY associated with 'connection' (STDIN, + STDOUT, or STDERR), on 'side' (MASTER_SIDE or SLAVE_SIDE) to the + value pointed to by termio. This call must be made before the + subprocess is spawned. +*/ + +#endif /* #ifdef _spc_h */ diff --git a/cde/include/bms/stringbuf.h b/cde/include/bms/stringbuf.h new file mode 100644 index 00000000..39f14f76 --- /dev/null +++ b/cde/include/bms/stringbuf.h @@ -0,0 +1,69 @@ +/* + * 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: stringbuf.h $XConsortium: stringbuf.h /main/3 1995/10/26 15:49:00 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 _stringbuf_h +#define _stringbuf_h + +typedef struct _XeStringBuffer { + int last_char; /* index of trailing NULL */ + int size; + int increment; /* how much to expand when more space is needed */ + XeString buffer; +} *XeStringBuffer; + + +int XeAppendToStringBuffer +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeStringBuffer buffer, XeString string); +#else + (); +#endif + +XeStringBuffer XeMakeStringBuffer +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (int increment_size); +#else + (); +#endif + + /* erase the contents (but don't deallocate any space). */ +void XeClearStringBuffer +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeStringBuffer buffer); +#else + (); +#endif + +/*** add nothing after the following endif ***/ +#endif /* _stringbuf_h */ diff --git a/cde/include/bms/usersig.h b/cde/include/bms/usersig.h new file mode 100644 index 00000000..37190a96 --- /dev/null +++ b/cde/include/bms/usersig.h @@ -0,0 +1,61 @@ +/* + * 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: usersig.h $XConsortium: usersig.h /main/3 1995/10/26 15:49:19 rswiston $ + * Language: C + * + * (c) Copyright 1989, 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 _usersig_h +#define _usersig_h + +/* -------------------------------------------- */ +/* Requires: */ +#ifdef __recursive_includes +#include +#endif +/* -------------------------------------------- */ + +#define XE_SIG_NOT_IN_TABLE -2 + +extern int XeNameToSignal +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (XeString name); +#else + (); +#endif + +extern XeString XeSignalToName +#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) + (int sig); +#else + (); +#endif + +#endif /* _usersig_h */ diff --git a/cde/include/codelibs/boolean.h b/cde/include/codelibs/boolean.h new file mode 100644 index 00000000..c845dc22 --- /dev/null +++ b/cde/include/codelibs/boolean.h @@ -0,0 +1,79 @@ +/* + * 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: boolean.h $XConsortium: boolean.h /main/3 1995/10/26 16:10:48 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. + */ + +#ifndef __BOOLEAN_H_ +#define __BOOLEAN_H_ + +#if defined(__aix) +#undef NULL +#define NULL 0 +#endif + +#if defined(SVR4) +#include + +#if defined(sun) && defined(_XOPEN_SOURCE) +#ifndef B_TRUE +#define B_TRUE _B_TRUE +#endif +#ifndef B_FALSE +#define B_FALSE _B_FALSE +#endif +#endif /* sun && _XOPEN_SOURCE */ + +#ifndef boolean +typedef boolean_t boolean; +#endif + +#ifndef TRUE +#define TRUE B_TRUE +#endif + +#ifndef FALSE +#define FALSE B_FALSE +#endif +#endif /* SVR4 */ + + +#if !defined(SVR4) +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + +#ifndef boolean +typedef int boolean; +#endif +#endif /* ! SVR4 */ +#endif /* __BOOLEAN_H_ */ diff --git a/cde/include/codelibs/pathutils.h b/cde/include/codelibs/pathutils.h new file mode 100644 index 00000000..16ad6c67 --- /dev/null +++ b/cde/include/codelibs/pathutils.h @@ -0,0 +1,63 @@ +/* + * 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: pathutils.h /main/4 1996/05/08 11:21:09 drk $ + * + * (c) Copyright 1996 Digital Equipment Corporation. + * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. + * (c) Copyright 1993,1994,1996 International Business Machines Corp. + * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. + * (c) Copyright 1993,1994,1996 Novell, Inc. + * (c) Copyright 1996 FUJITSU LIMITED. + * (c) Copyright 1996 Hitachi. + */ + +#ifndef __PATHUTILS_H_ +#define __PATHUTILS_H_ + +#include +#include + +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +extern char *pathcollapse(const char *src, + char *dst = NULL, + boolean show_dir = FALSE); +#elif defined(__STDC__) +extern char *pathcollapse(const char *src, char *dst, boolean show_dir); +#else /* old-style C */ +extern char *pathcollapse(); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __PATHUTILS_H_ */ diff --git a/cde/include/codelibs/shellutils.h b/cde/include/codelibs/shellutils.h new file mode 100644 index 00000000..df7bd062 --- /dev/null +++ b/cde/include/codelibs/shellutils.h @@ -0,0 +1,56 @@ +/* + * 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: shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 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. + */ + +#ifndef __SHELLUTILS_H_ +#define __SHELLUTILS_H_ + +#ifdef __cplusplus +extern "C" +{ + char const *const *shellscan(char const *str, int *argc = (int *)0, + unsigned opts = 0); +} +#else + extern char **shellscan(); +#endif + +#define SHX_NOGLOB 0x0001 +#define SHX_NOTILDE 0x0002 +#define SHX_NOVARS 0x0004 +#define SHX_NOQUOTES 0x0008 +#define SHX_NOSPACE 0x0010 +#define SHX_NOMETA 0x0020 +#define SHX_NOCMD 0x0040 +#define SHX_COMPLETE 0x0080 + +#define SHX_NOGRAVE 0x0040 /* Obsolete, use NOCMD */ + +#endif /* __SHELLUTILS_H_ */ diff --git a/cde/include/csa/csa.h b/cde/include/csa/csa.h new file mode 100644 index 00000000..b1b6219f --- /dev/null +++ b/cde/include/csa/csa.h @@ -0,0 +1,1147 @@ +/* + * 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: csa.h /main/1 1996/04/21 19:23:01 drk $ */ +/* + * (c) Copyright 1993, 1994 Hewlett-Packard Company + * (c) Copyright 1993, 1994 International Business Machines Corp. + * (c) Copyright 1993, 1994 Novell, Inc. + * (c) Copyright 1993, 1994 Sun Microsystems, Inc. + */ + +#ifndef _CSA_H +#define _CSA_H + +/* BEGIN CSA INTERFACE */ + +/* BASIC DATA TYPES */ + +#ifndef DIFFERENT_PLATFORM +typedef short CSA_sint16; +typedef long CSA_sint32; +typedef unsigned char CSA_uint8; +typedef unsigned short CSA_uint16; +typedef unsigned long CSA_uint32; +typedef void *CSA_buffer; +typedef CSA_uint32 CSA_entry_handle; +typedef CSA_uint32 CSA_session_handle; +typedef char *CSA_string; +#endif + +typedef CSA_string CSA_attribute_reference; +typedef CSA_uint32 CSA_boolean; +typedef CSA_string CSA_date_time; +typedef CSA_string CSA_date_time_range; +typedef CSA_sint32 CSA_enum; +typedef CSA_uint32 CSA_flags; +typedef CSA_uint32 CSA_return_code; +typedef CSA_string CSA_service_reference; +typedef CSA_string CSA_time_duration; + +#define CSA_FALSE ((CSA_boolean)0) +#define CSA_TRUE ((CSA_boolean)1) + +/* DATA STRUCTURES */ + +/* EXTENSION */ +typedef struct CSA_TAG_EXTENSION { + CSA_uint32 item_code; + CSA_uint32 item_data; + CSA_buffer item_reference; + CSA_flags extension_flags; +} CSA_extension; + +/* EXTENSION FLAGS */ +#define CSA_EXT_REQUIRED ((CSA_flags)0x1) +#define CSA_EXT_OUTPUT ((CSA_flags)0x2) +#define CSA_EXT_LAST_ELEMENT ((CSA_flags)0x4) + +/* CALENDAR USER */ +typedef struct CSA_TAG_CALENDAR_USER{ + CSA_string user_name; + CSA_enum user_type; + CSA_string calendar_address; + CSA_extension *calendar_user_extensions; +} CSA_calendar_user; + +/* CALENDAR USER TYPE */ +#define CSA_USER_TYPE_INDIVIDUAL ((CSA_enum)0) +#define CSA_USER_TYPE_GROUP ((CSA_enum)1) +#define CSA_USER_TYPE_RESOURCE ((CSA_enum)2) + +/* ACCESS LIST */ +typedef struct CSA_TAG_ACESS_RIGHTS { + CSA_calendar_user *user; + CSA_flags rights; + struct CSA_TAG_ACESS_RIGHTS *next; +} CSA_access_rights, *CSA_access_list; + +/* ACCESS RIGHT FLAGS */ +#define CSA_FREE_TIME_SEARCH ((CSA_flags)0x1) +#define CSA_VIEW_PUBLIC_ENTRIES ((CSA_flags)0x2) +#define CSA_VIEW_CONFIDENTIAL_ENTRIES ((CSA_flags)0x4) +#define CSA_VIEW_PRIVATE_ENTRIES ((CSA_flags)0x8) +#define CSA_INSERT_PUBLIC_ENTRIES ((CSA_flags)0x10) +#define CSA_INSERT_CONFIDENTIAL_ENTRIES ((CSA_flags)0x20) +#define CSA_INSERT_PRIVATE_ENTRIES ((CSA_flags)0x40) +#define CSA_CHANGE_PUBLIC_ENTRIES ((CSA_flags)0x80) +#define CSA_CHANGE_CONFIDENTIAL_ENTRIES ((CSA_flags)0x100) +#define CSA_CHANGE_PRIVATE_ENTRIES ((CSA_flags)0x200) +#define CSA_VIEW_CALENDAR_ATTRIBUTES ((CSA_flags)0x400) +#define CSA_INSERT_CALENDAR_ATTRIBUTES ((CSA_flags)0x800) +#define CSA_CHANGE_CALENDAR_ATTRIBUTES ((CSA_flags)0x1000) +#define CSA_ORGANIZER_RIGHTS ((CSA_flags)0x2000) +#define CSA_SPONSOR_RIGHTS ((CSA_flags)0x4000) +#define CSA_OWNER_RIGHTS ((CSA_flags)0x8000) + +/* access right flags for data version 1, 2, and 3 */ +#define CSA_X_DT_BROWSE_ACCESS ((CSA_flags)0x1) +#define CSA_X_DT_INSERT_ACCESS ((CSA_flags)0x2) +#define CSA_X_DT_DELETE_ACCESS ((CSA_flags)0x4) + +/* ATTENDEE LIST */ +typedef struct CSA_TAG_ATTENDEE { + CSA_calendar_user attendee; + CSA_enum priority; + CSA_enum status; + CSA_boolean rsvp_requested; + struct CSA_TAG_ATTENDEE *next; +} CSA_attendee, *CSA_attendee_list; + +/* ATTENDEE PRIORITIES */ +#define CSA_FOR_YOUR_INFORMATION ((CSA_enum)0) +#define CSA_ATTENDANCE_REQUESTED ((CSA_enum)1) +#define CSA_ATTENDANCE_REQUIRED ((CSA_enum)2) +#define CSA_IMMEDIATE_RESPONSE ((CSA_enum)3) + +/* DATE AND TIME LIST */ +typedef struct CSA_TAG_DATE_TIME_ITEM { + CSA_date_time date_time; + struct CSA_TAG_DATE_TIME_ITEM *next; +} CSA_date_time_entry, *CSA_date_time_list; + +/* OPAQUE DATA */ +typedef struct CSA_TAG_OPAQUE_DATA { + CSA_uint32 size; + CSA_uint8 *data; +} CSA_opaque_data; + +/* REMINDER */ +typedef struct CSA_TAG_REMINDER { + CSA_time_duration lead_time; + CSA_time_duration snooze_time; + CSA_uint32 repeat_count; + CSA_opaque_data reminder_data; +} CSA_reminder; + +/* ATTRIBUTE */ +typedef struct CSA_TAG_ATTRIBUTE_ITEM { + CSA_enum type; + union { + CSA_boolean boolean_value; + CSA_enum enumerated_value; + CSA_flags flags_value; + CSA_sint32 sint32_value; + CSA_uint32 uint32_value; + CSA_string string_value; + CSA_calendar_user *calendar_user_value; + CSA_date_time date_time_value; + CSA_date_time_range date_time_range_value; + CSA_time_duration time_duration_value; + CSA_access_list access_list_value; + CSA_attendee_list attendee_list_value; + CSA_date_time_list date_time_list_value; + CSA_reminder *reminder_value; + CSA_opaque_data *opaque_data_value; + } item; +} CSA_attribute_value; + +typedef struct CSA_TAG_ATTRIBUTE { + CSA_string name; + CSA_attribute_value *value; + CSA_extension *attribute_extensions; +} CSA_attribute; + +/* ATTRIBUTE VALUE TYPE */ +#define CSA_VALUE_BOOLEAN ((CSA_enum)0) +#define CSA_VALUE_ENUMERATED ((CSA_enum)1) +#define CSA_VALUE_FLAGS ((CSA_enum)2) +#define CSA_VALUE_SINT32 ((CSA_enum)3) +#define CSA_VALUE_UINT32 ((CSA_enum)4) +#define CSA_VALUE_STRING ((CSA_enum)5) +#define CSA_VALUE_CALENDAR_USER ((CSA_enum)6) +#define CSA_VALUE_DATE_TIME ((CSA_enum)7) +#define CSA_VALUE_DATE_TIME_RANGE ((CSA_enum)8) +#define CSA_VALUE_TIME_DURATION ((CSA_enum)9) +#define CSA_VALUE_ACCESS_LIST ((CSA_enum)10) +#define CSA_VALUE_ATTENDEE_LIST ((CSA_enum)11) +#define CSA_VALUE_DATE_TIME_LIST ((CSA_enum)12) +#define CSA_VALUE_REMINDER ((CSA_enum)13) +#define CSA_VALUE_OPAQUE_DATA ((CSA_enum)14) + +/* CALLBACK */ + +/* REASON FOR CALLBACK */ +#define CSA_CB_CALENDAR_LOGON ((CSA_flags)0x1) +#define CSA_CB_CALENDAR_DELETED ((CSA_flags)0x2) +#define CSA_CB_CALENDAR_ATTRIBUTE_UPDATED ((CSA_flags)0x4) +#define CSA_CB_ENTRY_ADDED ((CSA_flags)0x8) +#define CSA_CB_ENTRY_DELETED ((CSA_flags)0x10) +#define CSA_CB_ENTRY_UPDATED ((CSA_flags)0x20) + +/* CALL DATA FOR CSA_CB_CALENDAR_LOGON */ +typedef struct CSA_TAG_LOGON_CB_DATA { + CSA_calendar_user *user; +} CSA_logon_callback_data; + +/* CALL DATA FOR CSA_CB_CALENDAR_DELETED */ +typedef struct CSA_TAG_CALENDAR_DELETED_CB_DATA { + CSA_calendar_user *user; +} CSA_calendar_deleted_callback_data; + +/* CALL DATA FOR CSA_CB_CALENDAR_ATTRIBUTE_UPDATED */ +typedef struct CSA_TAG_CALENDAR_ATTR_UPDATE_CB_DATA { + CSA_calendar_user *user; + CSA_uint32 number_attributes; + CSA_attribute_reference *attribute_names; +} CSA_calendar_attr_update_callback_data; + +/* CALL DATA FOR CSA_CB_ENTRY_ADDED */ +typedef struct CSA_TAG_ADD_ENTRY_CB_DATA { + CSA_calendar_user *user; + CSA_opaque_data added_entry_id; +} CSA_add_entry_callback_data; + +/* CALL DATA FOR CSA_CB_ENTRY_DELETED */ +typedef struct CSA_TAG_DELETE_ENTRY_CB_DATA { + CSA_calendar_user *user; + CSA_opaque_data deleted_entry_id; + CSA_enum scope; + CSA_date_time date_and_time; +} CSA_delete_entry_callback_data; + +/* CALL DATA FOR CSA_CB_ENTRY_UPDATED */ +typedef struct CSA_TAG_UPDATE_ENTRY_CB_DATA { + CSA_calendar_user *user; /* who updated entry? */ + CSA_opaque_data old_entry_id; /* id of updated entry */ + CSA_opaque_data new_entry_id; /* new id after update */ + CSA_enum scope; /* scope of the update op */ + CSA_date_time date_and_time; /* time of first updated */ +} CSA_update_entry_callback_data; + +/* CALLBACK FUNCTION PROTOTYPE */ +typedef void (*CSA_callback)( + CSA_session_handle session, + CSA_flags reason, + CSA_buffer call_data, + CSA_buffer client_data, + CSA_extension *callback_extensions); + +/* FREE TIME */ +typedef struct CSA_TAG_FREE_TIME { + CSA_uint32 number_free_time_data; + CSA_date_time_range *free_time_data; +} CSA_free_time; + +/* REMINDER REFERENCE */ +typedef struct CSA_TAG_REMINDER_REFERENCE { + CSA_entry_handle entry; + CSA_date_time run_time; + CSA_time_duration snooze_time; + CSA_uint32 repeat_count; + CSA_attribute_reference attribute_name; +} CSA_reminder_reference; + +/* WORK SCHEDULE */ +typedef struct CSA_TAG_WORK_SCHEDULE { + CSA_date_time schedule_begin_time; + CSA_boolean cyclic_definition_flag; + CSA_date_time cycle_end_time; + CSA_date_time_list *work_cycle; +} CSA_work_schedule; + +/* CSA FUNCTIONS */ + +/* CROSS FUNCTION FLAGS */ + +/* CLASSIFICATION */ +#define CSA_CLASS_PUBLIC ((CSA_enum)0) +#define CSA_CLASS_PRIVATE ((CSA_enum)1) +#define CSA_CLASS_CONFIDENTIAL ((CSA_enum)2) + +/* STATUS */ +#define CSA_STATUS_ACCEPTED ((CSA_enum)0) +#define CSA_STATUS_NEEDS_ACTION ((CSA_enum)1) +#define CSA_STATUS_SENT ((CSA_enum)2) +#define CSA_STATUS_TENTATIVE ((CSA_enum)3) +#define CSA_STATUS_CONFIRMED ((CSA_enum)4) +#define CSA_STATUS_REJECTED ((CSA_enum)5) +#define CSA_STATUS_COMPLETED ((CSA_enum)6) +#define CSA_STATUS_DELEGATED ((CSA_enum)7) + +/* CDE specific status values */ +#define CSA_X_DT_STATUS_ACTIVE ((CSA_enum)0x900) +#define CSA_X_DT_STATUS_DELETE_PENDING ((CSA_enum)0x901) +#define CSA_X_DT_STATUS_ADD_PENDING ((CSA_enum)0x902) +#define CSA_X_DT_STATUS_COMMITTED ((CSA_enum)0x903) +#define CSA_X_DT_STATUS_CANCELLED ((CSA_enum)0x904) + +/* SCOPE */ +#define CSA_SCOPE_ALL ((CSA_enum)0) +#define CSA_SCOPE_ONE ((CSA_enum)1) +#define CSA_SCOPE_FORWARD ((CSA_enum)2) + +/* OPERATORS */ +#define CSA_MATCH_ANY ((CSA_enum)0) +#define CSA_MATCH_EQUAL_TO ((CSA_enum)1) +#define CSA_MATCH_NOT_EQUAL_TO ((CSA_enum)2) +#define CSA_MATCH_GREATER_THAN ((CSA_enum)3) +#define CSA_MATCH_LESS_THAN ((CSA_enum)4) +#define CSA_MATCH_GREATER_THAN_OR_EQUAL_TO ((CSA_enum)5) +#define CSA_MATCH_LESS_THAN_OR_EQUAL_TO ((CSA_enum)6) +#define CSA_MATCH_CONTAIN ((CSA_enum)7) + +/* FREE */ +CSA_return_code +csa_free( + CSA_buffer memory +); + +/* LIST CALENDARS */ +CSA_return_code +csa_list_calendars( + CSA_service_reference calendar_service, + CSA_uint32 *number_names, + CSA_calendar_user **calendar_names, + CSA_extension *list_calendars_extensions +); + +/* LOGOFF */ +CSA_return_code +csa_logoff( + CSA_session_handle session, + CSA_extension *logoff_extensions +); + +/* LOGON */ +CSA_return_code +csa_logon( + CSA_service_reference calendar_service, + CSA_calendar_user *user, + CSA_string password, + CSA_string character_set, + CSA_string required_csa_version, + CSA_session_handle *session, + CSA_extension *logon_extensions +); + +/* LOOK UP */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_look_up( + CSA_session_handle session, + CSA_calendar_user *users, + CSA_flags look_up_flags, + CSA_uint32 *number_users, + CSA_calendar_user **user_list, + CSA_extension *look_up_extensions +); + +#define CSA_LOOKUP_RESOLVE_PREFIX_SEARCH ((CSA_flags)0x1) +#define CSA_LOOKUP_RESOLVE_IDENTITY ((CSA_flags)0x2) + +/* QUERY CONFIGURATION */ +CSA_return_code +csa_query_configuration( + CSA_session_handle session, + CSA_enum item, + CSA_buffer *reference, + CSA_extension *query_configuration_extensions +); + +#define CSA_CONFIG_CHARACTER_SET ((CSA_enum)0) +#define CSA_CONFIG_LINE_TERM ((CSA_enum)1) +#define CSA_CONFIG_DEFAULT_SERVICE ((CSA_enum)2) +#define CSA_CONFIG_DEFAULT_USER ((CSA_enum)3) +#define CSA_CONFIG_REQ_PASSWORD ((CSA_enum)4) +#define CSA_CONFIG_REQ_SERVICE ((CSA_enum)5) +#define CSA_CONFIG_REQ_USER ((CSA_enum)6) +#define CSA_CONFIG_UI_AVAIL ((CSA_enum)7) +#define CSA_CONFIG_VER_IMPLEM ((CSA_enum)8) +#define CSA_CONFIG_VER_SPEC ((CSA_enum)9) + +#define CSA_LINE_TERM_CRLF ((CSA_enum)0) +#define CSA_LINE_TERM_LF ((CSA_enum)1) +#define CSA_LINE_TERM_CR ((CSA_enum)2) + +#define CSA_REQUIRED_NO ((CSA_enum)0) +#define CSA_REQUIRED_OPT ((CSA_enum)1) +#define CSA_REQUIRED_YES ((CSA_enum)2) + +/* CHARACTER SE IDENTIFIERS */ +#define CSA_CHARSET_437 "-//XAPIA//CHARSET IBM 437//EN" +#define CSA_CHARSET_850 "-//XAPIA//CHARSET IBM 850//EN" +#define CSA_CHARSET_1252 "-//XAPIA//CHARSET Microsoft 1252//EN" +#define CSA_CHARSET_ISTRING "-//XAPIA//CHARSET Apple ISTRING//EN" +#define CSA_CHARSET_UNICODE "-//XAPIA//CHARSET UNICODE//EN" +#define CSA_CHARSET_T61 "-//XAPIA//CHARSET TSS T61//EN" +#define CSA_CHARSET_IA5 "-//XAPIA//CHARSET TSS IA5//EN" +#define CSA_CHARSET_ISO_10646 "-//XAPIA//CHARSET ISO 10646//EN" +#define CSA_CHARSET_ISO_646 "-//XAPIA//CHARSET ISO 646//EN" +#define CSA_CHARSET_iso_8859_1 "-//XAPIA//CHARSET ISO 8859-1//EN" + +/* RESTORE */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_restore( + CSA_session_handle session, + CSA_string archive_name, + CSA_uint32 number_attributes, + CSA_attribute *attributes, + CSA_enum *operators, + CSA_extension *restore_extensions +); + +/* SAVE */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_save( + CSA_session_handle session, + CSA_string archive_name, + CSA_uint32 number_attributes, + CSA_attribute *attributes, + CSA_enum *operators, + CSA_boolean delete_entry, + CSA_extension *save_extensions +); + +/* ADD CALENDAR */ +CSA_return_code +csa_add_calendar( + CSA_session_handle session, + CSA_calendar_user *user, + CSA_uint32 number_attributes, + CSA_attribute *calendar_attributes, + CSA_extension *add_calendar_extensions +); + +/* DELETE CALENDAR */ +CSA_return_code +csa_delete_calendar( + CSA_session_handle session, + CSA_extension *delete_calendar_extensions +); + +/* LIST CALENDAR ATTRIBUTES */ +CSA_return_code +csa_list_calendar_attributes( + CSA_session_handle session, + CSA_uint32 *number_names, + CSA_attribute_reference **calendar_attributes_names, + CSA_extension *list_calendar_attributes_extensions +); + +/* READ CALENDAR ATTRIBUTES */ +CSA_return_code +csa_read_calendar_attributes( + CSA_session_handle session, + CSA_uint32 number_names, + CSA_attribute_reference *attribte_names, + CSA_uint32 *number_attributes, + CSA_attribute **calendar_attributes, + CSA_extension *read_calendar_attributes_extensions +); + +/* REGISTER CALLBACK FUNCTION */ +CSA_return_code +csa_register_callback( + CSA_session_handle session, + CSA_flags reason, + CSA_callback callback, + CSA_buffer client_data, + CSA_extension *register_callback_extensions +); + +/* UNREGISTER CALLBACK FUNCTION */ +CSA_return_code +csa_unregister_callback( + CSA_session_handle session, + CSA_flags reason, + CSA_callback callback, + CSA_buffer client_data, + CSA_extension *unregister_callback_extensions +); + +/* CALL CALLBACK FUNCTION */ +CSA_return_code +csa_call_callbacks( + CSA_session_handle session, + CSA_flags reason, + CSA_extension *call_callbacks_extensions +); + +/* UDPATE CALENDAR ATTRIBUTES */ +CSA_return_code +csa_update_calendar_attributes( + CSA_session_handle session, + CSA_uint32 number_attributes, + CSA_attribute *calendar_attributes, + CSA_extension *update_calendar_attributes_extensions +); + +/* Add ENTRY */ +CSA_return_code +csa_add_entry( + CSA_session_handle session, + CSA_uint32 number_attributes, + CSA_attribute *entry_attributes, + CSA_entry_handle *entry, + CSA_extension *add_entry_extensions +); + +/* DELETE ENTRY */ +CSA_return_code +csa_delete_entry( + CSA_session_handle session, + CSA_entry_handle entry, + CSA_enum delete_scope, + CSA_extension *delete_entry_extensions +); + +/* FREE TIME SEARCH */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_free_time_search( + CSA_session_handle session, + CSA_date_time_range date_time_range, + CSA_time_duration time_duration, + CSA_uint32 number_users, + CSA_calendar_user *calendar_users, + CSA_free_time **free_time, + CSA_extension *free_time_search_extensions +); + +/* LIST ENTRIES */ +CSA_return_code +csa_list_entries( + CSA_session_handle session, + CSA_uint32 number_attributes, + CSA_attribute *entry_attributes, + CSA_enum *list_operators, + CSA_uint32 *number_entries, + CSA_entry_handle **entries, + CSA_extension *list_entries_extensions +); + +/* LIST ENTRY ATTRIBUTES */ +CSA_return_code +csa_list_entry_attributes( + CSA_session_handle session, + CSA_entry_handle entry, + CSA_uint32 *number_names, + CSA_attribute_reference **entry_attribute_names, + CSA_extension *list_entry_attributes_extensions +); + +/* LIST ENTRY SEQUENCE */ +CSA_return_code +csa_list_entry_sequence( + CSA_session_handle session, + CSA_entry_handle entry, + CSA_date_time_range time_range, + CSA_uint32 *number_entries, + CSA_entry_handle **entry_list, + CSA_extension *list_entry_sequence_extensions +); + +/* READ ENTRY ATTRIBUTES */ +CSA_return_code +csa_read_entry_attributes( + CSA_session_handle session, + CSA_entry_handle entry, + CSA_uint32 number_names, + CSA_attribute_reference *attribute_names, + CSA_uint32 *number_attributes, + CSA_attribute **entry_attributes, + CSA_extension *read_entry_attributes_extensions +); + +/* READ NEXT REMINDERS */ +CSA_return_code +csa_read_next_reminder( + CSA_session_handle session, + CSA_uint32 number_names, + CSA_attribute_reference *reminder_names, + CSA_date_time given_time, + CSA_uint32 *number_reminders, + CSA_reminder_reference **reminder_references, + CSA_extension *read_next_reminder_extensions +); + +/* UPDATE ENTRY ATTRIBUTES */ +CSA_return_code +csa_update_entry_attributes( + CSA_session_handle session, + CSA_entry_handle entry, + CSA_enum update_scope, + CSA_boolean update_propagation, + CSA_uint32 number_attributes, + CSA_attribute *entry_attributes, + CSA_entry_handle *new_entry, + CSA_extension *update_entry_attributes_extensions +); + +/* STRING BASED FUNCTIONS */ + +/* ADD EVENT */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_add_event( + CSA_service_reference calendar_service, + CSA_string calendar_address, + CSA_string logon_user, + CSA_string logon_password, + CSA_string attendee, + CSA_enum attendee_priority, + CSA_enum attendee_status, + CSA_boolean attendee_rsvp_requested, + CSA_date_time start_date, + CSA_date_time end_date, + CSA_string organizer, + CSA_string sponsor, + CSA_string summary, + CSA_string description, + CSA_string recurrence_rule, + CSA_string exception_rule, + CSA_string subtype, + CSA_enum classification, + CSA_string delimiters, + CSA_string add_event_extensions +); + +/* ADD TODO */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_add_todo( + CSA_service_reference calendar_service, + CSA_string calendar_address, + CSA_string logon_user, + CSA_string logon_password, + CSA_enum attendee_priority, + CSA_enum attendee_status, + CSA_boolean attendee_rsvp_requested, + CSA_date_time start_date, + CSA_date_time due_date, + CSA_uint32 priority, + CSA_string summary, + CSA_string description, + CSA_enum classification, + CSA_string delimiters, + CSA_string add_todo_extensions +); + +/* ADD MEMO */ /* NOT IMPLEMENTED IN THIS RELEASE */ +CSA_return_code +csa_add_memo( + CSA_service_reference calendar_service, + CSA_string calendar_address, + CSA_string logon_user, + CSA_string logon_password, + CSA_date_time start_date, + CSA_string summary, + CSA_string delimiters, + CSA_string add_memo_extensions +); + +/* RETURN ERROR FLAGS */ +#define CSA_ERROR_RSV_MASK ((CSA_return_code)0x0000FFFF) +#define CSA_ERROR_IMPL_MASK ((CSA_return_code)0xFFFF0000) + +/* macro to get XAPIA CSA return code */ +#define CSA_X_DT_CSA_RETURN_CODE(c) \ + ((CSA_return_code)((c) & CSA_ERROR_RSV_MASK)) + +/* RETURN CODES */ +#define CSA_SUCCESS ((CSA_return_code)0) + +#define CSA_E_AMBIGUOUS_USER ((CSA_return_code)1) +#define CSA_E_CALENDAR_EXISTS ((CSA_return_code)2) +#define CSA_E_CALENDAR_NOT_EXIST ((CSA_return_code)3) +#define CSA_E_CALLBACK_NOT_REGISTERED ((CSA_return_code)4) +#define CSA_E_DISK_FULL ((CSA_return_code)5) +#define CSA_E_FAILURE ((CSA_return_code)6) +#define CSA_E_FILE_EXIST ((CSA_return_code)7) +#define CSA_E_FILE_NOT_EXIST ((CSA_return_code)8) +#define CSA_E_INSUFFICIENT_MEMORY ((CSA_return_code)9) +#define CSA_E_INVALID_ATTRIBUTE ((CSA_return_code)10) +#define CSA_E_INVALID_ATTRIBUTE_VALUE ((CSA_return_code)11) +#define CSA_E_INVALID_CALENDAR_SERVICE ((CSA_return_code)12) +#define CSA_E_INVALID_CONFIGURATION ((CSA_return_code)13) +#define CSA_E_INVALID_DATA_EXT ((CSA_return_code)14) +#define CSA_E_INVALID_DATE_TIME ((CSA_return_code)15) +#define CSA_E_INVALID_ENTRY_HANDLE ((CSA_return_code)16) +#define CSA_E_INVALID_ENUM ((CSA_return_code)17) +#define CSA_E_INVALID_FILE_NAME ((CSA_return_code)18) +#define CSA_E_INVALID_FLAG ((CSA_return_code)19) +#define CSA_E_INVALID_FUNCTION_EXT ((CSA_return_code)20) +#define CSA_E_INVALID_MEMORY ((CSA_return_code)21) +#define CSA_E_INVALID_PARAMETER ((CSA_return_code)22) +#define CSA_E_INVALID_PASSWORD ((CSA_return_code)23) +#define CSA_E_INVALID_RULE ((CSA_return_code)24) +#define CSA_E_INVALID_SESSION_HANDLE ((CSA_return_code)25) +#define CSA_E_INVALID_USER ((CSA_return_code)26) +#define CSA_E_NO_AUTHORITY ((CSA_return_code)27) +#define CSA_E_NOT_SUPPORTED ((CSA_return_code)28) +#define CSA_E_PASSWORD_REQUIRED ((CSA_return_code)29) +#define CSA_E_READONLY ((CSA_return_code)30) +#define CSA_E_SERVICE_UNAVAILABLE ((CSA_return_code)31) +#define CSA_E_TEXT_TOO_LARGE ((CSA_return_code)32) +#define CSA_E_TOO_MANY_USERS ((CSA_return_code)33) +#define CSA_E_UNABLE_TO_OPEN_FILE ((CSA_return_code)34) +#define CSA_E_UNSUPPORTED_ATTRIBUTE ((CSA_return_code)35) +#define CSA_E_UNSUPPORTED_CHARACTER_SET ((CSA_return_code)36) +#define CSA_E_UNSUPPORTED_DATA_EXT ((CSA_return_code)37) +#define CSA_E_UNSUPPORTED_ENUM ((CSA_return_code)38) +#define CSA_E_UNSUPPORTED_FLAG ((CSA_return_code)39) +#define CSA_E_UNSUPPORTED_FUNCTION_EXT ((CSA_return_code)40) +#define CSA_E_UNSUPPORTED_PARAMETER ((CSA_return_code)41) +#define CSA_E_UNSUPPORTED_VERSION ((CSA_return_code)42) +#define CSA_E_USER_NOT_FOUND ((CSA_return_code)43) +#define CSA_E_TIME_ONLY ((CSA_return_code)44) + +#define CSA_X_DT_E_BACKING_STORE_PROBLEM ((CSA_return_code)0x900001F) +#define CSA_X_DT_E_ENTRY_NOT_FOUND ((CSA_return_code)0x9010010) +#define CSA_X_DT_E_INVALID_SERVER_LOCATION ((CSA_return_code)0x902000C) +#define CSA_X_DT_E_SERVER_TIMEOUT ((CSA_return_code)0x903001F) +#define CSA_X_DT_E_SERVICE_NOT_REGISTERED ((CSA_return_code)0x904001F) + +/* CALENDAR ATTRIBUTES */ + +extern char *_CSA_calendar_attribute_names[]; + +/* CALENDAR ATTRIBUTE NAMES */ + +#define CSA_CAL_ATTR_ACCESS_LIST_I 1 +#define CSA_CAL_ATTR_ACCESS_LIST \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_ACCESS_LIST_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Access List//EN" */ + +#define CSA_CAL_ATTR_CALENDAR_NAME_I 2 +#define CSA_CAL_ATTR_CALENDAR_NAME \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_NAME_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Name//EN" */ + +#define CSA_CAL_ATTR_CALENDAR_OWNER_I 3 +#define CSA_CAL_ATTR_CALENDAR_OWNER \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_OWNER_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Owner//EN" */ + +#define CSA_CAL_ATTR_CALENDAR_SIZE_I 4 +#define CSA_CAL_ATTR_CALENDAR_SIZE \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_SIZE_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Size//EN" */ + +#define CSA_CAL_ATTR_CHARACTER_SET_I 5 +#define CSA_CAL_ATTR_CHARACTER_SET \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_CHARACTER_SET_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Character Set//EN" */ + +#define CSA_CAL_ATTR_COUNTRY_I 6 +#define CSA_CAL_ATTR_COUNTRY \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_COUNTRY_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Country//EN" */ + +#define CSA_CAL_ATTR_DATE_CREATED_I 7 +#define CSA_CAL_ATTR_DATE_CREATED \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_DATE_CREATED_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Date Created//EN" */ + +#define CSA_CAL_ATTR_LANGUAGE_I 8 +#define CSA_CAL_ATTR_LANGUAGE \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_LANGUAGE_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Language//EN" */ + +#define CSA_CAL_ATTR_NUMBER_ENTRIES_I 9 +#define CSA_CAL_ATTR_NUMBER_ENTRIES \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_NUMBER_ENTRIES_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Number Entries//EN" */ + +#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I 10 +#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Product Identifier//EN" */ + +#define CSA_CAL_ATTR_TIME_ZONE_I 11 +#define CSA_CAL_ATTR_TIME_ZONE \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_TIME_ZONE_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Time Zone//EN" */ + +#define CSA_CAL_ATTR_VERSION_I 12 +#define CSA_CAL_ATTR_VERSION \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_VERSION_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Version//EN" */ + +#define CSA_CAL_ATTR_WORK_SCHEDULE_I 13 +#define CSA_CAL_ATTR_WORK_SCHEDULE \ + _CSA_calendar_attribute_names[CSA_CAL_ATTR_WORK_SCHEDULE_I] + /* "-//XAPIA/CSA/CALATTR//NONSGML Work Schedule//EN" */ + +#define CSA_X_DT_CAL_ATTR_SERVER_VERSION_I 14 +#define CSA_X_DT_CAL_ATTR_SERVER_VERSION \ + _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_SERVER_VERSION_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Server Version//EN" */ + +#define CSA_X_DT_CAL_ATTR_DATA_VERSION_I 15 +#define CSA_X_DT_CAL_ATTR_DATA_VERSION \ + _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_DATA_VERSION_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Data Version//EN" */ + +#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I 16 +#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER \ + _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Calendar Delimiter//EN" */ + + +/* ENTRY ATTRIBUTES */ + +extern char *_CSA_entry_attribute_names[]; + +/* ENTRY ATTRIBUTES NAMES */ + +#define CSA_ENTRY_ATTR_ATTENDEE_LIST_I 1 +#define CSA_ENTRY_ATTR_ATTENDEE_LIST \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ATTENDEE_LIST_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Attendee List//EN" */ + +#define CSA_ENTRY_ATTR_AUDIO_REMINDER_I 2 +#define CSA_ENTRY_ATTR_AUDIO_REMINDER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_AUDIO_REMINDER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Audio Reminder//EN" */ + +#define CSA_ENTRY_ATTR_CLASSIFICATION_I 3 +#define CSA_ENTRY_ATTR_CLASSIFICATION \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_CLASSIFICATION_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Classification//EN" */ + +#define CSA_ENTRY_ATTR_DATE_COMPLETED_I 4 +#define CSA_ENTRY_ATTR_DATE_COMPLETED \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_COMPLETED_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Completed//EN" */ + +#define CSA_ENTRY_ATTR_DATE_CREATED_I 5 +#define CSA_ENTRY_ATTR_DATE_CREATED \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_CREATED_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Created//EN" */ + +#define CSA_ENTRY_ATTR_DESCRIPTION_I 6 +#define CSA_ENTRY_ATTR_DESCRIPTION \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DESCRIPTION_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Description//EN" */ + +#define CSA_ENTRY_ATTR_DUE_DATE_I 7 +#define CSA_ENTRY_ATTR_DUE_DATE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DUE_DATE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Due Date//EN" */ + +#define CSA_ENTRY_ATTR_END_DATE_I 8 +#define CSA_ENTRY_ATTR_END_DATE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_END_DATE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML End Date//EN" */ + +#define CSA_ENTRY_ATTR_EXCEPTION_DATES_I 9 +#define CSA_ENTRY_ATTR_EXCEPTION_DATES \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_DATES_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Dates//EN" */ + +#define CSA_ENTRY_ATTR_EXCEPTION_RULE_I 10 +#define CSA_ENTRY_ATTR_EXCEPTION_RULE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_RULE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Rule//EN" */ + +#define CSA_ENTRY_ATTR_FLASHING_REMINDER_I 11 +#define CSA_ENTRY_ATTR_FLASHING_REMINDER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_FLASHING_REMINDER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Flashing Reminder//EN" */ + +#define CSA_ENTRY_ATTR_LAST_UPDATE_I 12 +#define CSA_ENTRY_ATTR_LAST_UPDATE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_LAST_UPDATE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Last Update//EN" */ + +#define CSA_ENTRY_ATTR_MAIL_REMINDER_I 13 +#define CSA_ENTRY_ATTR_MAIL_REMINDER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_MAIL_REMINDER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Mail Reminder//EN" */ + +#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I 14 +#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Number Recurrences//EN" */ + +#define CSA_ENTRY_ATTR_ORGANIZER_I 15 +#define CSA_ENTRY_ATTR_ORGANIZER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ORGANIZER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Organizer//EN" */ + +#define CSA_ENTRY_ATTR_POPUP_REMINDER_I 16 +#define CSA_ENTRY_ATTR_POPUP_REMINDER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_POPUP_REMINDER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Popup Reminder//EN" */ + +#define CSA_ENTRY_ATTR_PRIORITY_I 17 +#define CSA_ENTRY_ATTR_PRIORITY \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_PRIORITY_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Priority//EN" */ + +#define CSA_ENTRY_ATTR_RECURRENCE_RULE_I 18 +#define CSA_ENTRY_ATTR_RECURRENCE_RULE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRENCE_RULE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurrence Rule//EN" */ + +#define CSA_ENTRY_ATTR_RECURRING_DATES_I 19 +#define CSA_ENTRY_ATTR_RECURRING_DATES \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRING_DATES_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurring Dates//EN" */ + +#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I 20 +#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Reference Identifier//EN" */ + +#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I 21 +#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sequence Number//EN" */ + +#define CSA_ENTRY_ATTR_SPONSOR_I 22 +#define CSA_ENTRY_ATTR_SPONSOR \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SPONSOR_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sponsor//EN" */ + +#define CSA_ENTRY_ATTR_START_DATE_I 23 +#define CSA_ENTRY_ATTR_START_DATE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_START_DATE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Start Date//EN" */ + +#define CSA_ENTRY_ATTR_STATUS_I 24 +#define CSA_ENTRY_ATTR_STATUS \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_STATUS_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Status//EN" */ + +#define CSA_ENTRY_ATTR_SUBTYPE_I 25 +#define CSA_ENTRY_ATTR_SUBTYPE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUBTYPE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Subtype//EN" */ + +#define CSA_ENTRY_ATTR_SUMMARY_I 26 +#define CSA_ENTRY_ATTR_SUMMARY \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUMMARY_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Summary//EN" */ + +#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I 27 +#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Time Transparency//EN" */ + +#define CSA_ENTRY_ATTR_TYPE_I 28 +#define CSA_ENTRY_ATTR_TYPE \ + _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TYPE_I] + /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Type//EN" */ + +/* cde defined entry attributes */ +#define CSA_X_DT_ENTRY_ATTR_SHOWTIME_I 29 +#define CSA_X_DT_ENTRY_ATTR_SHOWTIME \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SHOWTIME_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Show Time//EN" */ + +#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I 30 +#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Type//EN" */ + +#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I 31 +#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Times//EN" */ + +#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I 32 +#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Interval//EN" */ + +#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I 33 +#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I] + /*"-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Occurrence Number//EN"*/ + +#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I 34 +#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Sequence End Date//EN" */ + +#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I 35 +#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER \ + _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I] + /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Entry Delimiter//EN" */ + +/* + * values for entry attribute CSA_ENTRY_ATTR_TYPE + */ + +#define CSA_TYPE_EVENT ((CSA_enum)0) +#define CSA_TYPE_TODO ((CSA_enum)1) +#define CSA_TYPE_MEMO ((CSA_enum)2) +#define CSA_X_DT_TYPE_OTHER ((CSA_enum)900) + +/* + * values for entry attribute CSA_ENTRY_ATTR_SUBTYPE + */ + +extern char *_CSA_entry_subtype_values[]; + +#define CSA_SUBTYPE_APPOINTMENT_I 0 +#define CSA_SUBTYPE_APPOINTMENT \ + _CSA_entry_subtype_values[CSA_SUBTYPE_APPOINTMENT_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Appointment//EN" */ + +#define CSA_SUBTYPE_CLASS_I 1 +#define CSA_SUBTYPE_CLASS \ + _CSA_entry_subtype_values[CSA_SUBTYPE_CLASS_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Class//EN" */ + +#define CSA_SUBTYPE_HOLIDAY_I 2 +#define CSA_SUBTYPE_HOLIDAY \ + _CSA_entry_subtype_values[CSA_SUBTYPE_HOLIDAY_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Holiday//EN" */ + +#define CSA_SUBTYPE_MEETING_I 3 +#define CSA_SUBTYPE_MEETING \ + _CSA_entry_subtype_values[CSA_SUBTYPE_MEETING_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Meeting//EN" */ + +#define CSA_SUBTYPE_MISCELLANEOUS_I 4 +#define CSA_SUBTYPE_MISCELLANEOUS \ + _CSA_entry_subtype_values[CSA_SUBTYPE_MISCELLANEOUS_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Miscellaneous//EN" */ + +#define CSA_SUBTYPE_PHONE_CALL_I 5 +#define CSA_SUBTYPE_PHONE_CALL \ + _CSA_entry_subtype_values[CSA_SUBTYPE_PHONE_CALL_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Phone Call//EN" */ + +#define CSA_SUBTYPE_SICK_DAY_I 6 +#define CSA_SUBTYPE_SICK_DAY \ + _CSA_entry_subtype_values[CSA_SUBTYPE_SICK_DAY_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Sick Day//EN" */ + +#define CSA_SUBTYPE_SPECIAL_OCCASION_I 7 +#define CSA_SUBTYPE_SPECIAL_OCCASION \ + _CSA_entry_subtype_values[CSA_SUBTYPE_SPECIAL_OCCASION_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Special Occasion//EN" */ + +#define CSA_SUBTYPE_TRAVEL_I 8 +#define CSA_SUBTYPE_TRAVEL \ + _CSA_entry_subtype_values[CSA_SUBTYPE_TRAVEL_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Travel//EN" */ + +#define CSA_SUBTYPE_VACATION_I 9 +#define CSA_SUBTYPE_VACATION \ + _CSA_entry_subtype_values[CSA_SUBTYPE_VACATION_I] + /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Vacation//EN" */ + +/* + * special value for CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES + */ + +#define CSA_X_DT_DT_REPEAT_FOREVER 0 + +/* + * Values for entry attribute CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE + */ + +#define CSA_X_DT_REPEAT_ONETIME ((CSA_enum)0) +#define CSA_X_DT_REPEAT_DAILY ((CSA_enum)1) +#define CSA_X_DT_REPEAT_WEEKLY ((CSA_enum)2) +#define CSA_X_DT_REPEAT_BIWEEKLY ((CSA_enum)3) +#define CSA_X_DT_REPEAT_MONTHLY_BY_WEEKDAY ((CSA_enum)4) +#define CSA_X_DT_REPEAT_MONTHLY_BY_DATE ((CSA_enum)5) +#define CSA_X_DT_REPEAT_YEARLY ((CSA_enum)6) +#define CSA_X_DT_REPEAT_EVERY_NDAY ((CSA_enum)7) +#define CSA_X_DT_REPEAT_EVERY_NWEEK ((CSA_enum)8) +#define CSA_X_DT_REPEAT_EVERY_NMONTH ((CSA_enum)9) +#define CSA_X_DT_REPEAT_MON_TO_FRI ((CSA_enum)10) +#define CSA_X_DT_REPEAT_MONWEDFRI ((CSA_enum)11) +#define CSA_X_DT_REPEAT_TUETHUR ((CSA_enum)12) +#define CSA_X_DT_REPEAT_WEEKDAYCOMBO ((CSA_enum)13) +#define CSA_X_DT_REPEAT_OTHER ((CSA_enum)14) +#define CSA_X_DT_REPEAT_OTHER_WEEKLY ((CSA_enum)15) +#define CSA_X_DT_REPEAT_OTHER_MONTHLY ((CSA_enum)16) +#define CSA_X_DT_REPEAT_OTHER_YEARLY ((CSA_enum)17) + +/* COMMON EXTENSIONS DECLARATIONS */ + +/* EXTENSION SET ID */ + +/* Common Extension Set */ +#define CSA_XS_COM ((CSA_uint32)0) + +/* Bilateral Extension Set */ +#define CSA_XS_BLT ((CSA_uint32)256) + +/* FUNCTION EXTENSIONS */ + +/* Query for extension support in implementation */ + +#define CSA_X_COM_SUPPORT_EXT ((CSA_uint32)1) + +typedef struct CSA_TAG_XCOM { + CSA_uint32 item_code; + CSA_flags flags; +} CSA_X_COM_support; + +#define CSA_X_COM_SUPPORTED ((CSA_flags)0x1) +#define CSA_X_COM_NOT_SUPPORTED ((CSA_flags)0x2) +#define CSA_X_COM_DATA_EXT_SUPPORTED ((CSA_flags)0x4) +#define CSA_X_COM_FUNC_EXT_SUPPORTED ((CSA_flags)0x8) +#define CSA_X_COM_SUP_EXCLUDE ((CSA_flags)0x10) + +/* UI_ID EXTENSION */ + +#define CSA_X_UI_ID_EXT ((CSA_uint32)2) + +/* Extension Flags */ +#define CSA_X_LOGON_UI_ALLOWED ((CSA_flags)0x1) +#define CSA_X_ERROR_UI_ALLOWED ((CSA_flags)0x2) +#define CSA_X_LOOKUP_RESOLVE_UI ((CSA_flags)0x4) +#define CSA_X_LOOKUP_DETAILS_UI ((CSA_flags)0x8) +#define CSA_X_LOOKUP_ADDRESSING_UI ((CSA_flags)0x10) +#define CSA_X_ADD_DEFINE_ENTRY_UI ((CSA_flags)0x20) + +/* Extension Return Codes */ +#define CSA_X_E_INVALID_UI_ID ((CSA_return_code)1025) +#define CSA_X_E_LOGON_FAILURE ((CSA_return_code)1026) +#define CSA_X_E_USER_CANCEL ((CSA_return_code)1027) + +/* XT APPLICATION CONTEXT EXTENSION */ + +#define CSA_X_XT_APP_CONTEXT_EXT ((CSA_uint32)3) + +/* Get User access extension */ +#define CSA_XS_DT ((CSA_uint32)900) +#define CSA_X_DT_GET_USER_ACCESS_EXT ((CSA_uint32)901) + +#endif + diff --git a/cde/lib/DtHelp/Access.h b/cde/lib/DtHelp/Access.h deleted file mode 100644 index b6939b85..00000000 --- a/cde/lib/DtHelp/Access.h +++ /dev/null @@ -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: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: Access.h - ** - ** Project: Run Time Project File Access - ** - ** Description: Header file for Access.h - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpAccess_h -#define _DtHelpAccess_h - -/**************************************************************************** - * Public Defines - ****************************************************************************/ -#ifndef True -#define True 1 -#endif -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef False -#define False 0 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - -typedef void* _DtHelpVolumeHdl; - -/**************************************************************************** - * Semi-Private Externals - ****************************************************************************/ -extern int _DtHelpCeCompressPathname ( char *basePath ); -extern char *_DtHelpCeTraceFilenamePath ( char *file_path ); -extern char *_DtHelpCeTracePathName ( char *path ); - -/**************************************************************************** - * Semi-Public Externals - ****************************************************************************/ -extern int _DtHelpCloseVolume ( - _DtHelpVolumeHdl vol ); -extern int _DtHelpCeFindId ( - _DtHelpVolumeHdl vol, - char *target_id, - int fd, - char **ret_name, - int *ret_offset ); -extern int _DtHelpCeFindKeyword ( - _DtHelpVolumeHdl vol, - char *target, - char ***ret_ids ); -extern int _DtHelpCeGetKeywordList ( - _DtHelpVolumeHdl vol, - char ***ret_keywords ); -extern int _DtHelpCeGetTopTopicId ( - _DtHelpVolumeHdl vol, - char **ret_idString ); -extern char *_DtHelpCeGetVolumeName( - _DtHelpVolumeHdl vol); -extern char *_DtHelpGetVolumeLocale ( - _DtHelpVolumeHdl volume); -extern int _DtHelpOpenVolume ( - char *volFile, - _DtHelpVolumeHdl*retVol ); -extern int _DtHelpCeUpVolumeOpenCnt ( - _DtHelpVolumeHdl volume); -#endif /* _DtHelpAccess_h */ diff --git a/cde/lib/DtHelp/AccessI.h b/cde/lib/DtHelp/AccessI.h deleted file mode 100644 index 4dcc6270..00000000 --- a/cde/lib/DtHelp/AccessI.h +++ /dev/null @@ -1,139 +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: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: AccessI.h - ** - ** Project: Run Time Project File Access - ** - ** Description: Header file for Access.h - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpAccessI_h -#define _DtHelpAccessI_h - - -#ifndef _XtIntrinsic_h -/* - * typedef Boolean - */ -#ifdef CRAY -typedef long Boolean; -#else -typedef char Boolean; -#endif -#endif - -#ifndef _XLIB_H_ -#ifndef True -#define True 1 -#endif -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef False -#define False 0 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#endif - -/****************************************************************************** - * Semi-Public Structures - ******************************************************************************/ -typedef struct { - char match; - char *substitution; -} _DtSubstitutionRec; - -typedef struct _dtHelpCeLockInfo { - int fd; - _DtHelpVolumeHdl volume; -} _DtHelpCeLockInfo; - -/****************************************************************************** - * Semi-Public Access Functions - ******************************************************************************/ -extern char *_DtHelpCeExpandPathname ( - char *spec, - char *filename, - char *type, - char *suffix, - char *lang, - _DtSubstitutionRec *subs, - int num ); -extern int _DtHelpCeFileOpenAndSeek( - char *filename, - int offset, - int fd, - BufFilePtr *ret_file, - time_t *ret_time); -extern int _DtHelpCeGetDocStamp ( - _DtHelpVolumeHdl volume, - char **ret_doc, - char **ret_time); -extern int _DtHelpCeGetLangSubParts ( - char *lang, - char **subLang, - char **subTer, - char **subCodeSet ); -extern int _DtHelpCeGetTopicChildren( - _DtHelpVolumeHdl volume, - char *topic_id, - char ***ret_childs); -extern int _DtHelpGetTopicTitle( - _DtHelpVolumeHdl volume, - char *target_id, - char **ret_title); -extern int _DtHelpCeGetUncompressedFileName ( - char *name, - char **ret_name); -extern const char *_DtHelpCeGetVolumeCharSet ( - _DtHelpVolumeHdl volume); -extern int _DtHelpCeGetVolumeFlag ( - _DtHelpVolumeHdl volume); -extern int _DtHelpCeIsTopTopic( - _DtHelpVolumeHdl volume, - const char *id); -extern int _DtHelpCeLockVolume( - _DtHelpVolumeHdl volume, - _DtHelpCeLockInfo *ret_info); -extern int _DtHelpCeMapTargetToId ( - _DtHelpVolumeHdl volume, - char *target_id, - char **ret_id); -extern int _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info); -#endif /* _DtHelpAccessI_h */ diff --git a/cde/lib/DtHelp/AccessP.h b/cde/lib/DtHelp/AccessP.h deleted file mode 100644 index 20e6a2aa..00000000 --- a/cde/lib/DtHelp/AccessP.h +++ /dev/null @@ -1,89 +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: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: AccessP.h - ** - ** Project: Run Time Project File Access - ** - ** - ** Description: Private header file for Access.h - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtAccessP_h -#define _DtAccessP_h - -#include -typedef void* SdlVolumeHandle; -typedef void* CcdfVolumeHandle; - -typedef union _dthelpVolumes { - SdlVolumeHandle sdl_vol; - CcdfVolumeHandle ccdf_vol; -} DtHelpVols; - -/* - * The following structure holds loaded volumes. The fields of this - * structure should not be accessed by any code outside of the volume - * module. - */ -struct _DtHelpVolumeRec { - short sdl_flag; /* The type of volume */ - char *volFile; /* The name of the volume file in the */ - /* form it was passed to _DtVolumeOpen. */ - - char **keywords; /* A pointer to a string array */ - /* containing all of the keywords in */ - /* sorted order. This field is not loaded */ - /* until it is needed. */ - - char ***keywordTopics; /* A pointer to an array of string */ - /* arrays. Each string array specifies */ - /* the list of topics which contain the */ - /* corresponding keyword. This field is */ - /* not loaded until it is needed. */ - - DtHelpVols vols; /* Handles to format specific volume info */ - int openCount; /* A count of the number of times this */ - /* volume has been opened. */ - - time_t check_time; /* Time this volume was last modified */ - struct _DtHelpVolumeRec *nextVol; - /* A pointer to the next volume, used to */ - /* chain all of the open volumes together. */ -}; - -typedef struct _DtHelpVolumeRec *_DtHelpVolume; - -#endif /* _DtAccessP_h */ diff --git a/cde/lib/DtHelp/ActionsI.h b/cde/lib/DtHelp/ActionsI.h deleted file mode 100644 index d18c10bf..00000000 --- a/cde/lib/DtHelp/ActionsI.h +++ /dev/null @@ -1,90 +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: ActionsI.h /main/5 1995/12/08 13:00:31 cde-hal $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: ActionsI.h - ** - ** Project: Display area routines - ** - ** Description: Header file for Actions.c - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpActionsI_h -#define _DtHelpActionsI_h - -#ifdef __cplusplus -extern "C" { -#endif -/***************************************************************************** - * Semi Public Routines - *****************************************************************************/ -extern void _DtHelpActivateLink ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpCopyAction ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpDeSelectAll ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpNextLink ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpPageLeftOrRight ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpPageUpOrDown ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); -extern void _DtHelpSelectAll ( - Widget widget, - XEvent *event, - String *params, - Cardinal *num_params); - -#ifdef __cplusplus -} -#endif -#endif /* _DtHelpActionsI_h */ diff --git a/cde/lib/DtHelp/CallbacksI.h b/cde/lib/DtHelp/CallbacksI.h deleted file mode 100644 index 6f2e31a0..00000000 --- a/cde/lib/DtHelp/CallbacksI.h +++ /dev/null @@ -1,123 +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: CallbacksI.h /main/7 1996/02/27 20:06:41 cde-hal $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: CallbacksTG.h - ** - ** Project: TextGraphic Display routines - ** - ** - ** Description: Header file for CallbacksTG.h - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpCallbacksI_h -#define _DtHelpCallbacksI_h - -#ifdef __cplusplus -extern "C" { -#endif -/***************************************************************************** - * Semi Public Routines - *****************************************************************************/ -extern Boolean _DtHelpCancelSelection( - XtPointer client_data); -extern void _DtHelpCleanAndDrawWholeCanvas( - XtPointer client_data); -extern void _DtHelpSearchMoveTraversal( - XtPointer client_data, - int search_hit_index); - -/***************************************************************************** - * Public Routines - *****************************************************************************/ -extern void _DtHelpClearSelection ( - XtPointer client_data ); -extern void _DtHelpClickOrSelectCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpEndSelectionCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpEnterLeaveCB ( - Widget widget, - XtPointer client_data, - XEvent *event ); -extern void _DtHelpExposeCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpFocusCB ( - Widget widget, - XtPointer client_data, - XEvent *event ); -extern void _DtHelpGetClearSelection ( - Widget widget, - XtPointer client_data); -extern void _DtHelpHorzScrollCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpInitiateClipboard ( - XtPointer client_data ); -extern void _DtHelpLoseSelectionCB ( - Widget widget, - Atom *selection ); -extern void _DtHelpMoveBtnFocusCB ( - Widget widget, - XtPointer client_data, - XEvent *event ); -extern void _DtHelpMouseMoveCB ( - Widget widget, - XtPointer client_data, - XEvent *event ); -extern void _DtHelpResizeCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpVertScrollCB ( - Widget widget, - XtPointer client_data, - XtPointer call_data ); -extern void _DtHelpVisibilityCB ( - Widget widget, - XtPointer client_data, - XEvent *event ); - -#ifdef __cplusplus -} -#endif -#endif /* _DtHelpCallbacksI_h */ diff --git a/cde/lib/DtHelp/CanvasI.h b/cde/lib/DtHelp/CanvasI.h deleted file mode 100644 index cf687c89..00000000 --- a/cde/lib/DtHelp/CanvasI.h +++ /dev/null @@ -1,320 +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: CanvasI.h /main/18 1996/10/21 13:59:51 cde-hp $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: CanvasI.h - ** - ** Project: - ** - ** Description: Public Header file for Canvas.c - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtCanvasI_h -#define _DtCanvasI_h - - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -/******** Internal Defines Declarations ********/ -#define _DtCvLINE_HORZ 0 -#define _DtCvLINE_VERT 1 - -/******** Internal Enum Declarations ********/ -enum _dtCvTraversalType - { - _DtCvTraversalNone, - _DtCvTraversalLink, - _DtCvTraversalMark - }; - -/******** Internal Typedef Declarations ********/ - -#if !defined(_DtCvLinkMgrP_h) && !defined(_DtCvLinkMgrI_h) -typedef struct _dtCvLinkDb* _DtCvLinkDb; -#endif - -typedef enum _dtCvTraversalType _DtCvTraversalType; - -/* adding this typedef so that debugging can access the structure */ -typedef struct _dtCvSegment _DtCvSegmentI; -typedef struct _dtCvSegPts _DtCvSegPtsI; - -/******** Internal Structures Declarations ********/ - -typedef struct _dtCvDspLine { - _DtCvValue processed; - _DtCvUnit text_x; - _DtCvUnit max_x; - _DtCvUnit baseline; - _DtCvUnit descent; - _DtCvUnit ascent; - int byte_index; - int length; - _DtCvSegmentI *seg_ptr; -} _DtCvDspLine; - -typedef struct _dtCvLineSeg { - _DtCvValue processed; - short dir; - _DtCvUnit pos_x; - _DtCvUnit max_x; - _DtCvUnit pos_y; - _DtCvUnit max_y; - _DtCvUnit width; - _DtCvPointer data; -} _DtCvLineSeg; - -typedef struct _dtCvPointData { - _DtCvUnit x; - _DtCvUnit y; /* baseline of the line */ - int line_idx; - int char_idx; -} _DtCvPointData; - -typedef struct _dtCvMarkData { - _DtCvValue on; - _DtCvPointer client_data; - _DtCvPointData beg; - _DtCvPointData end; -} _DtCvMarkData; - -typedef struct _dtCvTraversalInfo { - _DtCvValue active; - _DtCvTraversalType type; /* the type of the traversal */ - int idx; /* the index into the approp. struct */ - /* either the txt_lst or marks */ - _DtCvUnit x_pos; /* x pos on the line. */ - _DtCvUnit y_pos; /* top y pos of bounding box */ - _DtCvUnit width; /* width of link on 1st line only */ - _DtCvUnit height; /* height of 1st line bounding box */ - _DtCvSegmentI *seg_ptr; /* ptr to first seg of link */ -} _DtCvTraversalInfo; - -typedef struct _dtCvSearchData { - int idx; /* the line index of the search hit */ - _DtCvDspLine *lst; /* pointer to the text line list */ -} _DtCvSearchData; - -typedef struct _dtCanvasStruct { - int error; - long txt_cnt; /* maximum used in txt_list */ - int txt_max; /* maximum in txt_list */ - - int line_cnt; /* maximum used in line_lst */ - int line_max; /* maximum in line_lst */ - int mark_cnt; /* mark counter */ - int mark_max; /* maximum in mark_lst */ - - int trav_cnt; /* maximum used in trav_lst */ - int trav_max; /* maximum in trav_lst */ - int cur_trav; /* traversal indicator */ - - int search_cnt; - int search_max; - - int brk_cnt; /* the number of page breaks */ - int brk_max; /* the maxium entries */ - - short mb_length; /* The maximum length of a char */ - - _DtCvUnit max_x; /* The maximum x position */ - _DtCvUnit max_y; /* The maximum y position */ - _DtCvValue constraint; /* Indicates if the right - boundary can be breached */ - _DtCvValue trav_on; /* Indicates if the traversal - is on or off. */ - _DtCvPointer client_data; - _DtCvMetrics metrics; - _DtCvSpaceMetrics link_info; - _DtCvSpaceMetrics traversal_info; - _DtCvLocale locale; - - _DtCvSegmentI *element_lst; - _DtCvDspLine *txt_lst; - _DtCvLineSeg *line_lst; - _DtCvTraversalInfo *trav_lst; - _DtCvLinkDb link_data; - _DtCvPointData select_start; - _DtCvPointData select_end; - _DtCvMarkData *marks; - _DtCvSearchData *searchs; - _DtCvUnit *pg_breaks; - _DtCvVirtualInfo virt_functions; - -} _DtCanvasStruct; - -/******** Internal Structure Typedef Declarations ********/ -typedef struct _dtCvPointData _DtCvSelectData; - -/******** Internal Macros Declarations ********/ - -#define _DtCvHasTraversal(x) ((x) & _DtCvTRAVERSAL_FLAG) - -/* - * segment type access - */ -#define _DtCvIsTypeNoop(x) \ - ((((x) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0) - -/* - * Is a flag set - */ -#define _DtCvIsSegVisibleLink(x) _DtCvIsSegHyperText(x) -#define _DtCvIsSegALink(x) \ - (_DtCvIsSegHyperText(x) || _DtCvIsSegGhostLink(x)) - -#define _DtCvIsMarkMaskOn(x) \ - (((x) & _DtCvACTIVATE_MARK_ON) ? _DtCvTRUE : _DtCvFALSE) - -/* - * remove masks - */ -#define _DtCvRemoveBeginFlags(x) x &= ~(_DtCvTRAVERSAL_BEGIN | \ - _DtCvLINK_BEGIN | \ - _DtCvMARK_BEGIN | \ - _DtCvSEARCH_BEGIN) -#define _DtCvSetSearchEnd(x,seg) x |= ((seg)->type & _DtCvSEARCH_END) -#define _DtCvSetSearchBegin(x,seg) x |= ((seg)->type & _DtCvSEARCH_BEGIN) -#define _DtCvClearSearchFlags(x) x &= ~(_DtCvSEARCH_FLAG | \ - _DtCvSEARCH_BEGIN | \ - _DtCvSEARCH_END) - -#define _DtCvClearLinkFlags(x) x &= ~(_DtCvLINK_FLAG | \ - _DtCvLINK_BEGIN | \ - _DtCvLINK_END | \ - _DtCvLINK_POP_UP | \ - _DtCvLINK_NEW_WINDOW) - -#define _DtCvClearProcessed(x) (x).processed = False -#define _DtCvSetProcessed(x) (x).processed = True -#define _DtCvIsProcessed(x) (x).processed -#define _DtCvIsNotProcessed(x) ((False == (x).processed) ? True : False) -#define _DtCvStraddlesPt(pt,min,max) ((min) <= (pt) && (pt) <= (max)) - -/******** Internal Function Declarations ********/ -extern _DtCvUnit _DtCvAdjustForSuperSub( - _DtCanvasStruct *canvas, - _DtCvSegmentI *p_seg, - _DtCvUnit start_x, - _DtCvUnit *script_x, - _DtCvUnit *super_width, - _DtCvUnit *super_y, - _DtCvUnit *sub_width, - _DtCvUnit *sub_y, - _DtCvValue *super_flag, - _DtCvValue *sub_flag); -extern _DtCvUnit _DtCvAdvanceXOfLine ( - _DtCanvasStruct *canvas, - _DtCvSegmentI *p_seg, - _DtCvUnit x_pos, - int *link_idx, - _DtCvValue *link_flag); -extern _DtCvStatus _DtCvCheckInfringement ( - _DtCvUnit tst_top, - _DtCvUnit tst_bot, - _DtCvUnit obj_top, - _DtCvUnit obj_bot); -extern void _DtCvCheckLineMarks ( - _DtCanvasStruct *canvas, - int line_idx, - int char_idx, - int length, - _DtCvUnit dst_x, - _DtCvFlags check_flags, - int *ret_len, - _DtCvFlags *ret_old, - _DtCvFlags *ret_new); -extern void _DtCvClearInternalUse ( - _DtCvSegmentI *list, - _DtCvStatus flag); -extern _DtCvUnit _DtCvDrawSegments( - _DtCanvasStruct *canvas, - _DtCvDspLine line, - _DtCvSegmentI *p_seg, - int start_char, - int count, - int *prev_lnk, - _DtCvUnit txt_x, - _DtCvUnit sel_x, - _DtCvUnit *scriptX, - _DtCvUnit *super_width, - _DtCvUnit *super_y, - _DtCvUnit *sub_width, - _DtCvUnit *sub_y, - _DtCvValue *last_was_sub, - _DtCvValue *last_was_super, - _DtCvValue *last_link_vis, - _DtCvFlags old_flag, - _DtCvFlags new_flag, - _DtCvElemType trav_flag, - _DtCvPointer trav_data); -extern int _DtCvGetCharIdx( - _DtCanvasStruct *canvas, - _DtCvDspLine line, - _DtCvUnit find_x); -extern _DtCvUnit _DtCvGetStartXOfLine( - _DtCvDspLine *line, - _DtCvSegmentI **pSeg); -extern void _DtCvGetWidthOfSegment( - _DtCanvasStruct *canvas, - _DtCvSegmentI *p_seg, - int start, - int max_cnt, - int *ret_cnt, - _DtCvUnit *ret_w, - _DtCvValue *ret_trimmed); -extern _DtCvValue _DtCvModifyXpos( - _DtCvSpaceMetrics info, - _DtCvSegmentI *seg, - _DtCvValue tst_result, - _DtCvValue old_result, - int idx, - _DtCvUnit *x_pos); -extern void _DtCvSkipLineChars( - _DtCanvasStruct *canvas, - _DtCvSegmentI *p_seg, - int start, - int max_cnt, - int use_len, - int *ret_start, - _DtCvSegmentI **ret_seg); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtCanvasI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/CanvasP.h b/cde/lib/DtHelp/CanvasP.h deleted file mode 100644 index ed20c24a..00000000 --- a/cde/lib/DtHelp/CanvasP.h +++ /dev/null @@ -1,514 +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: CanvasP.h /main/17 1999/10/14 13:19:41 mgreess $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: CanvasP.h - ** - ** Project: Cde Help System - ** - ** Description: Private Header file for the UI independent core engine - ** of the help system. It contains function prototypes, - ** structure definitions, typedefs, etc. - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtCanvasP_h -#define _DtCanvasP_h - - -#ifdef __cplusplus -extern "C" { -#endif - -/******** Public Re-defines ********/ -#if !defined(_AIX) -#define _DtCvStrCaseCmp(s1,s2) strcasecmp(s1,s2) -#define _DtCvStrNCaseCmp(s1,s2, n) strncasecmp(s1,s2,n) -#else -#define _DtCvStrCaseCmp(s1,s2) _DtHelpCeStrCaseCmp(s1,s2) -#define _DtCvStrNCaseCmp(s1,s2,n) _DtHelpCeStrNCaseCmp(s1,s2, n) -#endif /* _AIX */ - -/******** Public Defines Declarations ********/ -/* - * true, false and null - */ -#ifndef Null -#define Null 0 -#endif -#ifndef NULL -#define NULL 0 -#endif -#ifndef False -#define False 0 -#endif -#ifndef True -#define True 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef TRUE -#define TRUE 1 -#endif - -/* - * Get Selection Type Declarations - */ -#define _DtCvSELECTED_TEXT (1 << 0) -#define _DtCvSELECTED_REGION (1 << 1) -#define _DtCvSELECTED_ALL (~((unsigned int) 0)) - -/* - * hypertext link types - */ -#define _DtCvLinkType_Execute 3 -#define _DtCvLinkType_ManPage 4 -#define _DtCvLinkType_AppDefine 5 -#define _DtCvLinkType_SameVolume 6 -#define _DtCvLinkType_CrossLink 7 -#define _DtCvLinkType_TextFile 8 - -/* - * hypertext window hints - */ -#define _DtCvWindowHint_PopupWindow 1 -#define _DtCvWindowHint_CurrentWindow 2 -#define _DtCvWindowHint_NewWindow 3 -#define _DtCvWindowHint_Original 4 - -/********************* - * Rendering flags - *********************/ - -/* - * Rendering flags - Link - */ -#define _DtCvLINK_FLAG (0x01 << 0) -#define _DtCvLINK_BEGIN (0x01 << 1) -#define _DtCvLINK_END (0x01 << 2) - -#define _DtCvLINK_POP_UP (0x01 << 3) -#define _DtCvLINK_NEW_WINDOW (0x01 << 4) - -/* - * Rendering flags - Search - * - * a gap is left for the search flags on a segment in CanvasSegP.h. If these - * change value, the other values must move to accommodate it. */ -#define _DtCvSEARCH_FLAG (0x01 << 5) -#define _DtCvSEARCH_BEGIN (0x01 << 6) -#define _DtCvSEARCH_END (0x01 << 7) -#define _DtCvSEARCH_CURR (0x01 << 8) - -/* - * Rendering flags - Mark - */ -#define _DtCvMARK_FLAG (0x01 << 9) -#define _DtCvMARK_BEGIN (0x01 << 10) -#define _DtCvMARK_END (0x01 << 11) -#define _DtCvMARK_ON (0x01 << 12) - -/* - * Rendering flags - Traversal - */ -#define _DtCvTRAVERSAL_FLAG (0x01 << 13) -#define _DtCvTRAVERSAL_BEGIN (0x01 << 14) -#define _DtCvTRAVERSAL_END (0x01 << 15) - -/* - * Rendering flags - Application defined flags. - */ -#define _DtCvAPP_FIELD_OFFSET (16) -#define _DtCvAPP_FIELD_MASK (0x0f << _DtCvAPP_FIELD_OFFSET) -#define _DtCvAPP_FIELD_S_MASK (0x03 << _DtCvAPP_FIELD_OFFSET) -#define _DtCvAPP_FLAG1 (0x01 << (_DtCvAPP_FIELD_OFFSET + 0)) -#define _DtCvAPP_FLAG2 (0x01 << (_DtCvAPP_FIELD_OFFSET + 1)) -#define _DtCvAPP_FLAG3 (0x01 << (_DtCvAPP_FIELD_OFFSET + 2)) -#define _DtCvAPP_FLAG4 (0x01 << (_DtCvAPP_FIELD_OFFSET + 3)) - -/* - * Rendering flags - Selection - */ -#define _DtCvSELECTED_FLAG (0x01 << 20) -#define _DtCvEND_OF_LINE (0x01 << 21) - -/* - * Activation masks - */ -#define _DtCvACTIVATE_SELECTION (0x01 << 0) -#define _DtCvACTIVATE_MARK (0x01 << 1) -#define _DtCvDEACTIVATE (0x01 << 2) -#define _DtCvACTIVATE_MARK_ON (0x01 << 3) -#define _DtCvACTIVATE_MARK_OFF (0x01 << 4) - -/******** Public Enum Declarations ********/ - -/* - * Element types - */ -enum _dtCvElemType - { - _DtCvBAD_TYPE, - _DtCvCANVAS_TYPE, - _DtCvLINE_TYPE, - _DtCvLINK_TYPE, - _DtCvLOCALE_TYPE, - _DtCvMARK_TYPE, - _DtCvREGION_TYPE, - _DtCvSTRING_TYPE, - _DtCvTRAVERSAL_TYPE - }; - -typedef enum _dtCvElemType _DtCvElemType; - -/* - * Canvas Engine values. Either parameters or return values. - */ -enum _dtCvValue - { -/* - * status types. i.e. True/False, Ok/Bad, etc. - */ - _DtCvFALSE = False, - _DtCvSTATUS_OK = False, - _DtCvTRUE = True, - _DtCvSTATUS_BAD = True, - _DtCvSTATUS_ID_BAD, - _DtCvSTATUS_NONE, - _DtCvSTATUS_LINK, - _DtCvSTATUS_MARK, -/* - * Render types - */ - _DtCvRENDER_PARTIAL, - _DtCvRENDER_COMPLETE, -/* - * Traversal defines - */ - _DtCvTRAVERSAL_OFF, - _DtCvTRAVERSAL_ON, - _DtCvTRAVERSAL_TOP, - _DtCvTRAVERSAL_NEXT, - _DtCvTRAVERSAL_PREV, - _DtCvTRAVERSAL_BOTTOM, - _DtCvTRAVERSAL_ID, - _DtCvTRAVERSAL_MARK, -/* - * processing a selection types - */ - _DtCvSELECTION_CLEAR, - _DtCvSELECTION_START, - _DtCvSELECTION_UPDATE, - _DtCvSELECTION_END, -/* - * honor the right boundary when laying out information - */ - _DtCvUSE_BOUNDARY, - _DtCvUSE_BOUNDARY_MOVE, - _DtCvIGNORE_BOUNDARY - }; - -typedef enum _dtCvValue _DtCvValue; -typedef enum _dtCvValue _DtCvStatus; -typedef enum _dtCvValue _DtCvRenderType; -typedef enum _dtCvValue _DtCvTraversalCmd; -typedef enum _dtCvValue _DtCvSelectMode; - -/* - * line wrap mode types. - */ -enum _dtCvModeType - { - _DtCvModeWrapNone, - _DtCvModeWrapDown, - _DtCvModeWrapUp - }; - -typedef enum _dtCvModeType _DtCvModeType; - -/******** Public Typedef Declarations ********/ -typedef void* _DtCvPointer; -typedef void* _DtCvHandle; - -typedef int _DtCvUnit; - -typedef unsigned long _DtCvFlags; - -typedef struct _dtCvSegPts _DtCvSegPts; -typedef struct _dtCvSegment _DtCvSegment; - -/******** Public Structures Declarations ********/ -typedef struct _dtCvMetrics { - _DtCvUnit width; /* max width of canvas area */ - _DtCvUnit height; /* max height of canvas area */ - _DtCvUnit top_margin; /* top margin to allow for */ - _DtCvUnit side_margin; /* left margin to allow for */ - _DtCvUnit line_height; /* the height of an average line of */ - /* text */ - _DtCvUnit horiz_pad_hint; /* the optimul spacing to use if */ - /* lines have to be squeezed for */ - /* _DtCvUSE_BOUNDARY */ -} _DtCvMetrics; - -typedef struct _dtCvSpaceMetrics { - _DtCvUnit space_before; - _DtCvUnit space_after; - _DtCvUnit space_above; - _DtCvUnit space_below; -} _DtCvSpaceMetrics; - -typedef struct _dtCvLocale { - _DtCvModeType line_wrap_mode; /* specifies the wrap mode */ - const wchar_t *cant_begin_chars; /* specifies the characters */ - /* that can't begin a line */ - const wchar_t *cant_end_chars; /* specifies the characters */ - /* that can't end a line */ -} _DtCvLocale; - -typedef struct _dtCvStringInfo { - const void *string; - int byte_len; - int wc; - _DtCvPointer font_ptr; - _DtCvPointer csd; -} _DtCvStringInfo; - -typedef struct _dtCvLineInfo { - _DtCvUnit x2; - _DtCvUnit y2; - _DtCvUnit width; - _DtCvPointer data; -} _DtCvLineInfo; - -typedef struct _dtCvRenderInfo { - _DtCvPointer info; - _DtCvUnit box_x; - _DtCvUnit box_y; - _DtCvUnit box_height; - _DtCvUnit box_width; -} _DtCvRenderInfo; - -typedef struct _dtCvLinkInfo { - char *specification; - char *description; - int hyper_type; - int win_hint; - _DtCvUnit offset_x; - _DtCvUnit offset_y; -} _DtCvLinkInfo; - -typedef struct _dtCvPointInfo { - _DtCvPointer client_data; - _DtCvSegPts **segs; -} _DtCvPointInfo; - -/******** Public Structure Typedef Declarations ********/ -typedef struct _dtCvTopicInfo* _DtCvTopicPtr; - -/******** Public Prototyped Procedures ********/ -typedef void (*_DtCvGetMetrics)( - _DtCvPointer /* client_data */, - _DtCvElemType /* elem_type */, - _DtCvPointer /* ret_metrics */ -); - -typedef void (*_DtCvRenderElem)( - _DtCvPointer /* client_data */, - _DtCvElemType /* elem_type */, - _DtCvUnit /* x */, - _DtCvUnit /* y */, - int /* link_type */, - _DtCvFlags /* old_flags */, - _DtCvFlags /* new_flags */, - _DtCvElemType /* trav_type */, - _DtCvPointer /* trav_data */, - _DtCvPointer /* data */ -); - -typedef _DtCvUnit (*_DtCvGetElemWidth)( - _DtCvPointer /* client_data */, - _DtCvElemType /* elem_type */, - _DtCvPointer /* data */ -); - -typedef void (*_DtCvGetFontMetrics)( - _DtCvPointer /* client_data */, - _DtCvPointer /* font_ptr */, - _DtCvUnit* /* *ret_ascent */, - _DtCvUnit* /* *ret_descent */, - _DtCvUnit* /* *ret_width */, - _DtCvUnit* /* *ret_super */, - _DtCvUnit* /* *ret_sub */ -); - -typedef _DtCvStatus (*_DtCvBuildSelection)( - _DtCvPointer /* client_data */, - _DtCvElemType /* elem_type */, - unsigned int /* mask */, - _DtCvPointer* /* prev_info */, - _DtCvUnit /* space */, - _DtCvUnit /* width */, - _DtCvFlags /* flags */, - _DtCvPointer /* data */ -); - -typedef int (*_DtCvFilterExecCmd)( - _DtCvPointer /* client_data */, - const char* /* cmd */, - char** /* ret_cmd */ -); - -/******** Public Structures Declarations ********/ -typedef struct _dtCvVirtualInfo { - _DtCvGetMetrics get_metrics; - _DtCvRenderElem render_elem; - _DtCvGetElemWidth get_width; - _DtCvGetFontMetrics get_font_metrics; - _DtCvBuildSelection build_selection; - _DtCvFilterExecCmd exec_cmd_filter; -} _DtCvVirtualInfo; - -typedef struct _dtCvMarkPos { - _DtCvPointer client_data; - _DtCvUnit x1; - _DtCvUnit y1; - _DtCvUnit baseline1; - _DtCvUnit x2; - _DtCvUnit y2; - _DtCvUnit baseline2; -} _DtCvMarkPos; - -/******** Public Macro Declarations ********/ - -/******** Semi-Public Function Declarations ********/ -extern int _DtCvGetSearchLineMetrics( - _DtCvHandle canvas_handle, - int search_hit_index, - _DtCvUnit* baseline, - _DtCvUnit* descent, - _DtCvUnit* ascent); - -/******** Public Function Declarations ********/ -extern _DtCvStatus _DtCanvasActivatePts( - _DtCvHandle canvas_handle, - unsigned int mask, - _DtCvPointInfo *info, - _DtCvUnit *ret_y1, - _DtCvUnit *ret_y2); -extern void _DtCanvasClean( - _DtCvHandle canvas_handle); -extern _DtCvHandle _DtCanvasCreate( - _DtCvVirtualInfo virt_info, - _DtCvPointer client_data); -extern void _DtCanvasDestroy( - _DtCvHandle canvas_handle); -extern _DtCvStatus _DtCanvasGetCurLink( - _DtCvHandle canvas_handle, - _DtCvLinkInfo *ret_info); -extern _DtCvStatus _DtCanvasGetCurTraversal( - _DtCvHandle canvas_handle, - _DtCvLinkInfo *ret_info, - _DtCvPointer *ret_data); -extern _DtCvStatus _DtCanvasGetMarkPositions( - _DtCvHandle canvas_handle, - _DtCvMarkPos ***ret_pos); -extern _DtCvStatus _DtCanvasGetPosLink( - _DtCvHandle canvas_handle, - _DtCvUnit x1, - _DtCvUnit y1, - _DtCvUnit x2, - _DtCvUnit y2, - _DtCvLinkInfo *ret_info); -extern _DtCvStatus _DtCanvasGetSelection( - _DtCvHandle canvas_handle, - unsigned int mask, - _DtCvPointer *ret_select); -extern _DtCvStatus _DtCanvasGetSelectionPoints( - _DtCvHandle canvas_handle, - _DtCvSegPts ***ret_segs, - _DtCvUnit *ret_y1, - _DtCvUnit *ret_y2); -extern _DtCvStatus _DtCanvasGetSpotInfo( - _DtCvHandle canvas_handle, - _DtCvUnit x, - _DtCvUnit y, - _DtCvSegment **ret_seg, - _DtCvUnit *ret_offx, - _DtCvUnit *ret_offy, - _DtCvElemType *ret_element); -extern _DtCvStatus _DtCanvasMoveTraversal( - _DtCvHandle canvas_handle, - _DtCvTraversalCmd cmd, - _DtCvValue wrap, - _DtCvValue render, - _DtCvPointer rid, - _DtCvUnit *ret_x, - _DtCvUnit *ret_y, - _DtCvUnit *ret_baseline, - _DtCvUnit *ret_height); -extern void _DtCanvasProcessSelection ( - _DtCvHandle canvas_handle, - _DtCvUnit x, - _DtCvUnit y, - _DtCvSelectMode mode); -extern void _DtCanvasRender( - _DtCvHandle canvas_handle, - _DtCvUnit x1, - _DtCvUnit y1, - _DtCvUnit x2, - _DtCvUnit y2, - _DtCvRenderType flag, - _DtCvValue pg_break, - _DtCvUnit *max_y, - _DtCvUnit *next_y); -extern _DtCvStatus _DtCanvasResize( - _DtCvHandle canvas_handle, - _DtCvValue force, - _DtCvUnit *ret_width, - _DtCvUnit *ret_height); -extern _DtCvStatus _DtCanvasSetTopic( - _DtCvHandle canvas_handle, - _DtCvTopicPtr topic_handle, - _DtCvValue honor_size, - _DtCvUnit *ret_width, - _DtCvUnit *ret_height, - _DtCvUnit *ret_y); -extern void _DtCanvasLoadMetrics( - _DtCvHandle canvas_handle); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - - -#endif /* _DtCanvasP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/CanvasSegP.h b/cde/lib/DtHelp/CanvasSegP.h deleted file mode 100644 index 43cd052d..00000000 --- a/cde/lib/DtHelp/CanvasSegP.h +++ /dev/null @@ -1,538 +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: CanvasSegP.h /main/19 1996/10/04 18:30:19 rswiston $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: CanvasSegP.h - ** - ** Project: - ** - ** Description: Public Header file for Canvas Engine - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtCanvasSegP_h -#define _DtCanvasSegP_h - -#ifdef __cplusplus -extern "C" { -#endif - -/******** Public Defines Declarations ********/ -/***************************************************************************** - * Some bits in passed in as a _DtCvFlags and the 'type' in _DtCvSegment - * must match because they are passed straight thought from the segment - * to the application. The following map is to help prevent colisions. - * - * (-------------------------> _DtCvEND_OF_LINE - * | (-----------------------> _DtCvSELECTED_FLAG - * | | - * | | (-------------------------> _DtCvAPP_FLAG4 \ - * | | | (-----------------------> _DtCvAPP_FLAG3 \ - * | | | | (---------------------> _DtCvAPP_FLAG2 / _DtCvAPP_FIELD - * | | | | | (-------------------> _DtCvAPP_FLAG1 / - * | | | | | | - * | | | | | | (---------------------> _DtCvTRAVERSAL_END - * | | | | | | | (-------------------> _DtCvTRAVERSAL_BEGIN - * | | | | | | | | (-----------------> _DtCvTRAVERSAL_FLAG - * | | | | | | | | | - * | | | | | | | | | (-------------------> _DtCvMARK_ON - * | | | | | | | | | | (-----------------> _DtCvMARK_END - * | | | | | | | | | | | (---------------> _DtCvMARK_BEGIN - * | | | | | | | | | | | | (-------------> _DtCvMARK_FLAG - * | | | | | | | | | | | | | - * | | | | | | | | | | | | | (-------------> _DtCvSEARCH_CURR - * | | | | | | | | | | | | | | (-----------> _DtCvSEARCH_END - * | | | | | | | | | | | | | | | (---------> _DtCvSEARCH_BEGIN - * | | | | | | | | | | | | | | | | (-------> _DtCvSEARCH_FLAG - * | | | | | | | | | | | | | | | | | - * | | | | | | | | | | | | | | | | | (---------> _DtCvLINK_NEW_WINDOW - * | | | | | | | | | | | | | | | | | | (-------> _DtCvLINK_POP_UP - * | | | | | | | | | | | | | | | | | | | (-----> _DtCvLINK_END - * | | | | | | | | | | | | | | | | | | | | (---> _DtCvLINK_BEGIN - * | | | | | | | | | | | | | | | | | | | | | (-> _DtCvLINK_FLAG - * | | | | | | | | | | | | | | | | | | | | | | - * v v v v v v#v v v v v v v v#v v v v v v v v - * 1 0 9 8 7 6#5 4 3 2 1 0 9 8#7 6 5 4 3 2 1 0 - * ------------#---------------#---------------- - * |.|.|.|.|.|.#.|.|.|.|.|.|.|.#.|.|.|.|.|.|.|.| - * ------------#---------------#---------------- - * ^ ^ ^ ^ ^#^ ^ ^ ^ ^ ^ ^ ^#^ ^ ^ ^ ^^^^^ - * | | | | | | | | | | | | | | | | | \|/ - * | | | | | | | | | | | | | | | | | | - * | | | | | | | | | | | | | | | | | (-> Segment type - * | | | | | | | | | | | | | | | | (-----> _DtCvWIDE_CHAR - * | | | | | | | | | | | | | | | | - * | | | | | | | | | | | | | | | (-----> _DtCvSEARCH_FLAG - * | | | | | | | | | | | | | | (-------> _DtCvSEARCH_BEGIN - * | | | | | | | | | | | | | (---------> _DtCvSEARCH_END - * | | | | | | | | | | | | (-----------> _DtCvSEARCH_CURR - * | | | | | | | | | | | | - * | | | | | | | | | | | (---------> _DtCvCONTROLLER/_DtCvBLOCK_LINE/ - * | | | | | | | | | | | _DtCvNEW_LINE - * | | | | | | | | | | (-----------> _DtCvSUB_SCRIPT - * | | | | | | | | | (-------------> _DtCvSUPER_SCRIPT - * | | | | | | | | (---------------> _DtCvGHOST_LINK - * | | | | | | | (-----------------> _DtCvHYPER_TEXT - * | | | | | | (-------------------> _DtCvNON_BREAK - * | | | | | (---------------------> _DtCvIN_LINE - * | | | | | - * | | | | (---------------> _DtCvAPP_FLAG1 \ - * | | | (-----------------> _DtCvAPP_FLAG2 \ _DtCvAPP_FIELD - * | | (-------------------> _DtCvAPP_FLAG3 / - * | (---------------------> _DtCvAPP_FLAG4 / - * | - * (------------------> _DtCvPAGE_BREAK - * - *****************************************************************************/ -/* - * segment types - */ -#define _DtCvNOOP (0x00) -#define _DtCvCONTAINER (0x01) -#define _DtCvLINE (0x02) -#define _DtCvMARKER (0x03) -#define _DtCvREGION (0x04) -#define _DtCvSTRING (0x05) -#define _DtCvTABLE (0x06) - -#define _DtCvPRIMARY_MASK (0x07) -#define _DtCvSHIFT_PAST_PRIMARY 3 - -/* - * character size manipulation - */ -#define _DtCvWIDE_CHAR (0x01 << _DtCvSHIFT_PAST_PRIMARY) - -/* - * segment flags - */ -/* leave a gap for the search flags defined in CanvasP.h */ -#define _DtCvSHIFT_TO_FLAGS 9 - -/* container only */ -#define _DtCvCONTROLLER (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) - -/* line type */ -#define _DtCvBLOCK_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) - -/* string & region (_DtCvNEW_LINE works on _DtCvNOOP too) */ -#define _DtCvNEW_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 0)) -#define _DtCvSUB_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 1)) -#define _DtCvSUPER_SCRIPT (0x01 << (_DtCvSHIFT_TO_FLAGS + 2)) -#define _DtCvGHOST_LINK (0x01 << (_DtCvSHIFT_TO_FLAGS + 3)) -#define _DtCvHYPER_TEXT (0x01 << (_DtCvSHIFT_TO_FLAGS + 4)) -#define _DtCvNON_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 5)) - -/* region only */ -#define _DtCvIN_LINE (0x01 << (_DtCvSHIFT_TO_FLAGS + 6)) - -/* application flags - defined in CanvasP.h (starting at 16th bit for 4 bits) */ - -/* valid on any segment */ -#define _DtCvPAGE_BREAK (0x01 << (_DtCvSHIFT_TO_FLAGS + 11)) - -/* highlight macros */ -#define HILITE_OVERLINE 0 -#define HILITE_STRIKETHROUGH 1 -#define HILITE_UNDERLINE 2 - -/******** Public Enum Declarations ********/ -enum _dtCvFrmtOption - { - _DtCvOPTION_BAD, -/* - * string breaking types - */ - _DtCvLITERAL, - _DtCvDYNAMIC, -/* - * table border types - */ - _DtCvBORDER_NONE, - _DtCvBORDER_FULL, - _DtCvBORDER_HORZ, - _DtCvBORDER_VERT, - _DtCvBORDER_TOP, - _DtCvBORDER_BOTTOM, - _DtCvBORDER_LEFT, - _DtCvBORDER_RIGHT, - _DtCvBORDER_TOP_LEFT, - _DtCvBORDER_TOP_RIGHT, - _DtCvBORDER_BOTTOM_LEFT, - _DtCvBORDER_BOTTOM_RIGHT, -/* - * controller horizontal orientation - */ - _DtCvJUSTIFY_LEFT_CORNER, - _DtCvJUSTIFY_LEFT, /* also container horizontal text placement */ - _DtCvJUSTIFY_LEFT_MARGIN, - _DtCvJUSTIFY_CENTER, /* also container horiz/vert text placement */ - _DtCvJUSTIFY_RIGHT_MARGIN, - _DtCvJUSTIFY_RIGHT, /* also container horizontal text placement */ - _DtCvJUSTIFY_RIGHT_CORNER, -/* - * extra container horizontal text placement - */ - _DtCvJUSTIFY_NUM, - _DtCvJUSTIFY_CHAR, -/* - * inherit the parent's horizontal text placement - */ - _DtCvINHERIT, -/* - * controller vertical orientation, includes _DtCvJUSTIFY_CENTER - */ - _DtCvJUSTIFY_TOP, /* also container vertical text placement */ - _DtCvJUSTIFY_BOTTOM, /* also container vertical text placement */ -/* - * controller flow types - */ - _DtCvWRAP, - _DtCvWRAP_NONE, - _DtCvWRAP_JOIN - }; - -typedef enum { - hilite_overline = 0x01 << HILITE_OVERLINE, - hilite_strikethrough = 0x01 << HILITE_STRIKETHROUGH, - hilite_underline = 0x01 << HILITE_UNDERLINE -} text_hilite_t; - -/******** Public Enum Typedef Declarations ********/ -typedef enum _dtCvFrmtOption _DtCvFrmtOption; - -/******** Public Structures Declarations ********/ -typedef struct _dtCvLine { - _DtCvUnit width; - _DtCvPointer data; -} _DtCvLine; - -typedef struct _dtCvContainer { - char *id; - char *justify_char; - _DtCvFrmtOption type; - _DtCvFrmtOption border; - _DtCvFrmtOption justify; - _DtCvFrmtOption vjustify; - _DtCvFrmtOption orient; - _DtCvFrmtOption vorient; - _DtCvFrmtOption flow; - int percent; - _DtCvUnit leading; - _DtCvUnit fmargin; - _DtCvUnit lmargin; - _DtCvUnit rmargin; - _DtCvUnit tmargin; - _DtCvUnit bmargin; - _DtCvLine bdr_info; - struct _dtCvSegment *seg_list; -} _DtCvContainer; - -typedef struct _DtCvString { - void *string; - _DtCvPointer font; -} _DtCvString; - -typedef struct _dtCvRegion { - _DtCvPointer info; - _DtCvUnit width; - _DtCvUnit height; - _DtCvUnit ascent; -} _DtCvRegion; - -typedef struct _dtCvTable { - int num_cols; - char **col_w; - _DtCvFrmtOption *col_justify; - char *justify_chars; - char **cell_ids; - struct _dtCvSegment **cells; -} _DtCvTable; - -typedef union _dtCvSegHandles { - _DtCvContainer container; - _DtCvString string; - _DtCvRegion region; - _DtCvTable table; - _DtCvLine rule; - char *marker; -} _DtCvSegHandles; - -struct _dtCvSegment { - unsigned long type; - int link_idx; - _DtCvSegHandles handle; - struct _dtCvSegment *next_seg; - struct _dtCvSegment *next_disp; - _DtCvPointer client_use; - _DtCvPointer internal_use; -}; - -struct _dtCvSegPts { - struct _dtCvSegment *segment; - int offset; - int len; -}; - -typedef struct _dtCvTopicInfo { - char *id_str; - struct _dtCvSegment *seg_list; - _DtCvPointInfo **mark_list; - struct _dtCvLinkDb *link_data; -} _DtCvTopicInfo; - -typedef struct _dtCvStringClientData { - unsigned int vcc; - unsigned int vclen; - - unsigned int hilite_type; - - char* bg_color; - char* fg_color; - unsigned long bg_pixel; - unsigned long fg_pixel; -} _DtCvStringClientData; - -typedef struct _dtCvRegionClientData { - _DtCvPointer GraphicHandle; -} _DtCvRegionClientData; - -typedef union _dtCvClientData { - _DtCvRegionClientData region; - _DtCvStringClientData string; -} _DtCvClientData; - -/******** Public Structure Typedef Declarations ********/ - -/******** Public Prototyped Procedures ********/ - -/******** Public Macro Declarations ********/ -/* - * set segment type - */ -#define _DtCvSetTypeToContainer(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvCONTAINER) -#define _DtCvSetTypeToLine(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvLINE) -#define _DtCvSetTypeToMarker(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvMARKER) -#define _DtCvSetTypeToNoop(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvNOOP) -#define _DtCvSetTypeToRegion(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvREGION) -#define _DtCvSetTypeToString(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvSTRING) -#define _DtCvSetTypeToTable(x) \ - (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvTABLE) -/* - * set segment flags - */ -#define _DtCvSetTypeToBlockLine(x) ((x) | _DtCvBLOCK_LINE) -#define _DtCvSetTypeToController(x) ((x) | _DtCvCONTROLLER) -#define _DtCvSetTypeToGhostLink(x) ((x) | _DtCvGHOST_LINK) -#define _DtCvSetTypeToHyperText(x) ((x) | _DtCvHYPER_TEXT) -#define _DtCvSetTypeToInLine(x) ((x) | _DtCvIN_LINE) -#define _DtCvSetTypeToNewLine(x) ((x) | _DtCvNEW_LINE) -#define _DtCvSetTypeToNonBreak(x) ((x) | _DtCvNON_BREAK) -#define _DtCvSetTypeToSearch(x) ((x) | _DtCvSEARCH_FLAG) -#define _DtCvSetTypeToSearchBegin(x) ((x) | _DtCvSEARCH_BEGIN) -#define _DtCvSetTypeToSearchEnd(x) ((x) | _DtCvSEARCH_END) -#define _DtCvSetTypeToSubScript(x) ((x) | _DtCvSUB_SCRIPT) -#define _DtCvSetTypeToSuperScript(x) ((x) | _DtCvSUPER_SCRIPT) - -/* - * set character size - */ -#define _DtCvSetTypeToWideChar(x) ((x) | _DtCvWIDE_CHAR) - -/* - * set application flags and/or field - */ -#define _DtCvSetAppFlag1(x) ((x) | _DtCvAPP_FLAG1) -#define _DtCvSetAppFlag2(x) ((x) | _DtCvAPP_FLAG2) -#define _DtCvSetAppFlag3(x) ((x) | _DtCvAPP_FLAG3) -#define _DtCvSetAppFlag4(x) ((x) | _DtCvAPP_FLAG4) -#define _DtCvSetAppField(x,y) \ - (((x) & ~(_DtCvAPP_FIELD_MASK)) | \ - ((y & _DtCvAPP_FIELD_MASK) << _DtCvAPP_FIELD_OFFSET)) -#define _DtCvSetAppFieldSmall(x,y) \ - (((x) & ~(_DtCvAPP_FIELD_S_MASK)) | \ - ((y & _DtCvAPP_FIELD_S_MASK) << _DtCvAPP_FIELD_OFFSET)) - -/* - * get the application field value - */ -#define _DtCvGetAppField(x) \ - (((x) & _DtCvAPP_FIELD_MASK) >> _DtCvAPP_FIELD_OFFSET) -#define _DtCvGetAppFieldSmall(x) \ - (((x) & _DtCvAPP_FIELD_S_MASK) >> _DtCvAPP_FIELD_OFFSET) - -/******** Semi-Public Macro Declarations ********/ -/* - * get segment type - */ -#define _DtCvPrimaryTypeOfSeg(x) ((x->type) & _DtCvPRIMARY_MASK) -#define _DtCvIsSegContainer(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvCONTAINER) ? 1 : 0) -#define _DtCvIsSegLine(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvLINE) ? 1 : 0) -#define _DtCvIsSegMarker(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvMARKER) ? 1 : 0) -#define _DtCvIsSegNoop(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0) -#define _DtCvIsSegRegion(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvREGION) ? 1 : 0) -#define _DtCvIsSegString(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvSTRING) ? 1 : 0) -#define _DtCvIsSegTable(x) \ - (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvTABLE) ? 1 : 0) - -/* - * get segment flags - */ -#define _DtCvIsSegController(x) \ - ((((x)->type) & _DtCvCONTROLLER) ? 1 : 0) -#define _DtCvIsSegBlockLine(x) \ - ((((x)->type) & _DtCvBLOCK_LINE) ? 1 : 0) -#define _DtCvIsSegGhostLink(x) \ - ((((x)->type) & _DtCvGHOST_LINK) ? 1 : 0) -#define _DtCvIsSegHyperText(x) \ - ((((x)->type) & _DtCvHYPER_TEXT) ? 1 : 0) -#define _DtCvIsSegInLine(x) \ - ((((x)->type) & _DtCvIN_LINE) ? 1 : 0) -#define _DtCvIsSegNewLine(x) \ - ((((x)->type) & _DtCvNEW_LINE) ? 1 : 0) -#define _DtCvIsSegNonBreakingChar(x) \ - ((((x)->type) & _DtCvNON_BREAK) ? 1 : 0) -#define _DtCvIsSegPageBreak(x) \ - ((((x)->type) & _DtCvPAGE_BREAK) ? 1 : 0) -#define _DtCvIsSegRegChar(x) \ - ((((x)->type) & _DtCvWIDE_CHAR) ? 0 : 1) -#define _DtCvIsSegSubScript(x) \ - ((((x)->type) & _DtCvSUB_SCRIPT) ? 1 : 0) -#define _DtCvIsSegSuperScript(x) \ - ((((x)->type) & _DtCvSUPER_SCRIPT) ? 1 : 0) -#define _DtCvIsSegWideChar(x) \ - ((((x)->type) & _DtCvWIDE_CHAR) ? 1 : 0) -/* - * segment access - */ -#define _DtCvNextSeg(x) ((x)->next_seg) -#define _DtCvNextDisp(x) ((x)->next_disp) - -/* - * container access - */ -#define _DtCvContainerOfSeg(x) \ - ((x)->handle.container) -#define _DtCvContainerBMarginOfSeg(x) \ - ((x)->handle.container.bmargin) -#define _DtCvContainerBorderOfSeg(x) \ - ((x)->handle.container.border) -#define _DtCvContainerFlowOfSeg(x) \ - ((x)->handle.container.flow) -#define _DtCvContainerFMarginOfSeg(x) \ - ((x)->handle.container.fmargin) -#define _DtCvContainerIdOfSeg(x) \ - ((x)->handle.container.id) -#define _DtCvContainerJustifyCharOfSeg(x) \ - ((x)->handle.container.justify_char) -#define _DtCvContainerJustifyOfSeg(x) \ - ((x)->handle.container.justify) -#define _DtCvContainerLeadingOfSeg(x) \ - ((x)->handle.container.leading) -#define _DtCvContainerLineWidthOfSeg(x) \ - ((x)->handle.container.bdr_info.width) -#define _DtCvContainerLineDataOfSeg(x) \ - ((x)->handle.container.bdr_info.data) -#define _DtCvContainerListOfSeg(x) \ - ((x)->handle.container.seg_list) -#define _DtCvContainerLMarginOfSeg(x) \ - ((x)->handle.container.lmargin) -#define _DtCvContainerOrientOfSeg(x) \ - ((x)->handle.container.orient) -#define _DtCvContainerPercentOfSeg(x) \ - ((x)->handle.container.percent) -#define _DtCvContainerRMarginOfSeg(x) \ - ((x)->handle.container.rmargin) -#define _DtCvContainerTMarginOfSeg(x) \ - ((x)->handle.container.tmargin) -#define _DtCvContainerTypeOfSeg(x) \ - ((x)->handle.container.type) -#define _DtCvContainerVJustifyOfSeg(x) \ - ((x)->handle.container.vjustify) -#define _DtCvContainerVOrientOfSeg(x) \ - ((x)->handle.container.vorient) - -/* - * marker access - */ -#define _DtCvIdOfMarkerSeg(x) ((x)->handle.marker) - -/* - * marker access - */ -#define _DtCvDataOfLineSeg(x) ((x)->handle.rule.data) -#define _DtCvWidthOfLineSeg(x) ((x)->handle.rule.width) - -/* - * string access - */ -#define _DtCvStringOfStringSeg(x) ((x)->handle.string.string) -#define _DtCvFontOfStringSeg(x) ((x)->handle.string.font) - -/* - * region access - */ -#define _DtCvInfoOfRegionSeg(x) ((x)->handle.region.info) -#define _DtCvWidthOfRegionSeg(x) ((x)->handle.region.width) -#define _DtCvHeightOfRegionSeg(x) ((x)->handle.region.height) -#define _DtCvAscentOfRegionSeg(x) ((x)->handle.region.ascent) - -/* - * table access - */ -#define _DtCvNumColsOfTableSeg(x) ((x)->handle.table.num_cols) -#define _DtCvColWOfTableSeg(x) ((x)->handle.table.col_w) -#define _DtCvColJustifyOfTableSeg(x) ((x)->handle.table.col_justify) -#define _DtCvJustifyCharsOfTableSeg(x) ((x)->handle.table.justify_chars) -#define _DtCvCellIdsOfTableSeg(x) ((x)->handle.table.cell_ids) -#define _DtCvCellsOfTableSeg(x) ((x)->handle.table.cells) - -/******** Semi-Public Function Declarations ********/ -/******** Public Function Declarations ********/ - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtCanvasSegP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/DisplayAreaI.h b/cde/lib/DtHelp/DisplayAreaI.h deleted file mode 100644 index 2e15622b..00000000 --- a/cde/lib/DtHelp/DisplayAreaI.h +++ /dev/null @@ -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 - */ -/* $XConsortium: DisplayAreaI.h /main/2 1996/05/09 03:41:47 drk $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: DisplayAreaI.h - ** - ** Project: Cde Help System - ** - ** Description: Defines the Display Area structures and defines. - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpDisplayAreaI_h -#define _DtHelpDisplayAreaI_h - -typedef struct { - int reason; - XEvent *event; - Window window; - char *specification; - int hyper_type; - int window_hint; -} DtHelpHyperTextStruct; - -#endif /* _DtHelpDisplayAreaI_h */ diff --git a/cde/lib/DtHelp/DisplayAreaP.h b/cde/lib/DtHelp/DisplayAreaP.h deleted file mode 100644 index 83db8800..00000000 --- a/cde/lib/DtHelp/DisplayAreaP.h +++ /dev/null @@ -1,264 +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: DisplayAreaP.h /main/18 1996/08/13 11:35:51 cde-hp $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: DisplayAreaP.h - ** - ** Project: Cde Help System - ** - ** Description: Defines the Display Area structures and defines. - ** - **************************************************************************** - ************************************<+>*************************************/ -/* - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, - 1993, 1994, 1996 Hewlett-Packard Company. - * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. - * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. - * (c) Copyright 1993, 1994, 1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef _DtHelpDisplayAreaP_h -#define _DtHelpDisplayAreaP_h - -#include -#include -#include
-#include - -/* - * Traversal flags - */ -#define _DT_HELP_SHADOW_TRAVERSAL (1 << 0) -#define _DT_HELP_NOT_INITIALIZED (1 << 1) -#define _DT_HELP_TRAVERSAL_DRAWN (1 << 2) -#define _DT_HELP_DRAW_TOC_IND (1 << 3) -#define _DT_HELP_CLEAR_TOC_IND (1 << 4) -#define _DT_HELP_TOC_ON (1 << 5) - -/* - * enum states for selection - */ -enum _DtHelpSelectState - { - _DtHelpNothingDoing, - _DtHelpCopyOrLink, - _DtHelpSelectingText - }; - -/* - * Whether the display area has the focus or not - */ -#define _DT_HELP_FOCUS_FLAG 0x04 - -typedef struct { - int used; - int num_pixels; - Pixmap pix; - Pixmap mask; - Dimension width; - Dimension height; - Pixel *pixels; -} DtHelpGraphicStruct; - -typedef struct { - _DtCvPointer font_ptr; - int spc_idx; -} DtHelpSpecialChars; - -typedef struct _dtHelpDAFontMetrics { - _DtCvUnit ascent; /* Maximum ascent */ - _DtCvUnit descent; /* Maximum descent */ - _DtCvUnit average_width; /* Average width of a character */ - _DtCvUnit super; /* Offset from baseline for super scripts */ - _DtCvUnit sub; /* Offset from baseline for sub scripts */ -} _DtHelpDAFontMetrics; - -typedef struct { - short inited; - _DtHelpDAFontMetrics fm; -} DtHelpDAFSMetrics; - -typedef struct _DtHelpDAfontInfo { - char **exact_fonts; /* the list of fonts specified by the - toss element rather than hints. */ - XrmDatabase def_font_db; /* The default font resource db */ - XrmDatabase font_idx_db; /* Which font index goes with which - set of font resources */ - XFontStruct **font_structs; /* The font structures opened */ - XFontSet *font_sets; /* The font sets opened */ - DtHelpDAFSMetrics *fs_metrics; - - XrmQuark lang_charset; /* the char set for current lang */ - int *exact_idx; /* The indexes for the exact fonts */ - int max_structs; /* the max number of font_structs */ - int max_sets; /* The max number of font_sets */ - int struct_cnt; /* the cur number of font_structs */ - int set_cnt; /* The cur number of font_sets */ - long def_idx; /* The default index */ -} DtHelpDAFontInfo; - -/* - * SelectionScroll structure - */ -typedef struct { - int horizontal_reason; - int vertical_reason; -} SelectionScrollStruct; - -/* - * DisplayArea structure - */ -typedef struct _dtHelpDispAreaStruct { - Widget dispWid; /* The text and graphic area. */ - Widget vertScrollWid; /* The vertical scroll bar */ - Widget horzScrollWid; /* The horizontal scroll bar */ - Boolean vertIsMapped; - Boolean horzIsMapped; - short neededFlags; /* _DtHelpAS_NEEDED flags */ - short nl_to_space; /* are newlines in multibyte */ - /* strings turned into spaces? */ - - Dimension formWidth; /* Pixel width of the parent area */ - Dimension formHeight; /* Pixel height of the parent area */ - Dimension dispWidth; /* Pixel width of the display area */ - Dimension dispHeight; /* Pixel height of the display area */ - Dimension dispUseHeight; /* Pixel height of the display area - minus the decor margin. */ - Dimension dispUseWidth; /* Pixel width of the display area - minus the decor margin. */ - Dimension marginWidth; /* Pixel padding at the left and - right of the display area. */ - Dimension marginHeight; /* Pixel padding at the top and - bottom of the display area. */ - - short decorThickness; /* the shadow thickness plus highlight - thickness of the display area */ - - void (*hyperCall)(); /* The hypertext callback */ - void (*resizeCall)(); /* The resize callback */ - int (*exec_filter)(); /* The execution filter callback */ - XtPointer clientData; /* The client's data for the callback */ - - Pixel traversalColor; /* The client's traversal color */ - Pixel foregroundColor; /* The client's foreground color */ - Pixel backgroundColor; /* The client's foreground color */ - Pixel searchColor; /* The client's search hilite color */ - GC pixmapGC; - GC normalGC; - GC invertGC; - Pixmap def_pix; /* the default 'missing pixmap' */ - Dimension def_pix_width; /* the width of the default pixmap */ - Dimension def_pix_height; /* the height of the default pixmap */ - _DtGrContext *context; /* image converter context */ - - Colormap colormap; /* The colormap to use */ - Visual *visual; /* The visual to use */ - - DtHelpDAFontInfo font_info; /* The font information */ - - int depth; /* The depth of the window */ - - int fontAscent; - int lineHeight; - int leading; - long charWidth; /* The average size of a character */ - int moveThreshold; /* The number of pixels that must - be moved before a copy-paste - action occurs. */ - int underLine; - int lineThickness; /* For traversal box and underline */ - int firstVisible; /* The absolute number of the first - line visible in the window. */ - int nextNonVisible; /* The absolute number of the first - line non visible, next to the last - visible window. */ - int visibleCount; /* The number of lines viewable */ - int maxYpos; /* Maximum Y positioning */ - - int virtualX; /* The virtual x of the window */ - int maxX; /* The max virtual x of a line */ - - int max_spc; /* The maximum special characters */ - int cur_spc; /* The current unused structure */ - int timerX; /* Used for button clicks/selections */ - int timerY; /* Used for button clicks/selections */ - int scr_timer_x; /* Used for button clicks/selections */ - int scr_timer_y; /* Used for button clicks/selections */ - int vert_init_scr; /* The initial vert scrolling timeout*/ - int vert_rep_scr; /* The repeat vert scrolling timeout */ - int horz_init_scr; /* The initial horz scrolling timeout*/ - int horz_rep_scr; /* The repeat horz scrolling timeout */ - _DtCvUnit toc_width; /* The width of the toc indicator */ - _DtCvUnit toc_height; /* The height of the toc indicator */ - _DtCvUnit toc_y; /* The y coordinate of the toc */ - _DtCvUnit toc_base; /* The baseline coordinate of the toc*/ - - Time anchor_time; /* Indicates the primary selection - time. */ - Boolean primary; /* Indicates if this widget has the - primary selection */ - Boolean text_selected; /* Indicates if the selection has - occurred */ - enum _DtHelpSelectState select_state; - /* Indicates the state of the current - selection. */ - short toc_flag; /* Indicates if the traversal indicator - is always on. */ - _DtCvPointer toc_indicator; /* The indicator used in the toc */ - - XtIntervalId scr_timer_id; - SelectionScrollStruct scr_timer_data; - DtHelpSpecialChars *spc_chars; /* Structure containing the spc chars */ - _DtCvHandle canvas; - _DtCvTopicPtr lst_topic; - wchar_t *cant_begin_chars; /* characters that cannot */ - /* begin a line of text */ - wchar_t *cant_end_chars; /* characters that cannot */ - /* end a line of text */ - - short dtinfo; /* Indicates if being used by dtinfo */ - Pixmap stipple; /* stippled pixmap */ - - /* callback to be called whenever you manipulate the display */ - /* area's vertical scrollbar directly using XtSetValues, */ - /* because the application (dtinfo) has callbacks on the */ - /* scrollbar, these do not get called when we adjust it with */ - /* XtSetValues() */ - void (*vScrollNotify)(void *,unsigned int); - - /* dtinfo requires this for doing link previews */ - void (*armCallback)(void*); - - _DtCvValue honor_size; /* Layout parameter for _DtCvSetTopic */ - _DtCvRenderType render_type; /* Render type performed on expose */ - unsigned short media_resolution; /* used for scaling images */ - -} DtHelpDispAreaStruct; - -#endif /* _DtHelpDisplayAreaP_h */ diff --git a/cde/lib/DtHelp/FileUtilsI.h b/cde/lib/DtHelp/FileUtilsI.h deleted file mode 100644 index 99f34547..00000000 --- a/cde/lib/DtHelp/FileUtilsI.h +++ /dev/null @@ -1,84 +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: FileUtilsI.h /main/5 1995/10/26 12:19:41 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: FileUtilsI.h - ** - ** Project: DtHelp Project - ** - ** Description: File locating and handling utilities - ** - ** (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 _DtHelpFileUtilsI_h -#define _DtHelpFileUtilsI_h - -#define DtHelpVOLUME_TYPE "volumes" /* dir for %T in XtResolvePathname */ -#define DtHelpCCDF_VOL_SUFFIX ".hv" /* possible basename suffix */ -#define DtHelpSDL_VOL_SUFFIX ".sdl" /* possible basename suffix */ - -/* array indices and size for use with _DtHelpFileGetSearchPaths() */ -#define _DtHELP_FILE_USER_PATH 0 -#define _DtHELP_FILE_SYS_PATH 1 -#define _DtHELP_FILE_HOME_PATH 2 -#define _DtHELP_FILE_NUM_PATHS 3 - -typedef struct _dtHelpCeDirStruct { - char *dir_name; - int type; - int user_flag; - struct _dtHelpCeDirStruct *next_dir; -} _DtHelpCeDirStruct; - -/* list of suffixes that help volumes may have */ -extern const char * _DtHelpFileSuffixList[]; - -extern int _DtHelpCeCheckAndCacheDir(char *dir); -extern void _DtHelpFileGetSearchPaths( - char * paths[], - Boolean searchHomeDir); -extern char *_DtHelpFileLocate ( - char * type, - char * base, - const char * suffixList[], - Boolean searchCurDir, - int accessMode); -extern Boolean _DtHelpFileTraceLinks ( - char * * pPathName); -extern Boolean _DtHelpFileTraceToFile ( - char * * pPathName, - int accessMode, - char * * pFoundPath); - -#endif /* _DtHelpFileUtilsI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ - diff --git a/cde/lib/DtHelp/FontAttrI.h b/cde/lib/DtHelp/FontAttrI.h deleted file mode 100644 index 1d23339b..00000000 --- a/cde/lib/DtHelp/FontAttrI.h +++ /dev/null @@ -1,191 +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: FontAttrI.h /main/7 1995/12/06 18:36:56 cde-hp $ */ -/************************************<+>************************************* - **************************************************************************** - ** File: FontAttrI.h - ** Project: Common Desktop Environment - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpFontAttrI_h -#define _DtHelpFontAttrI_h - -#ifdef __cplusplus -extern "C" { -#endif - -/******** Public Defines Declarations ********/ -/* - * font attributes - */ -#define _CEFONT_CHAR_SET 6 -#define _CEFONT_LANG_TER 5 -#define _CEFONT_TYPE 4 -#define _CEFONT_WEIGHT 3 -#define _CEFONT_ANGLE 2 -#define _CEFONT_SIZE 1 -#define _CEFONT_SPACING 0 - -#define _CEFONT_END 7 - -#define _CEFontAttrNumber 8 - -/******** Public Enum Declarations ********/ -enum _dtHelpFontValue - { - _DtHelpFontValueBad, -/* styles */ - _DtHelpFontStyleSerif , - _DtHelpFontStyleSanSerif , - _DtHelpFontStyleSymbol, -/* spacing */ - _DtHelpFontSpacingMono , - _DtHelpFontSpacingProp , -/* weights */ - _DtHelpFontWeightMedium , - _DtHelpFontWeightBold , -/* slant */ - _DtHelpFontSlantRevItalic , - _DtHelpFontSlantItalic , - _DtHelpFontSlantRoman , -/* special */ - _DtHelpFontSpecialUnderLine, - _DtHelpFontSpecialStrikeOut, - _DtHelpFontSpecialNone - }; - -/******** Public Typedef Declarations ********/ - -typedef enum _dtHelpFontValue _DtHelpFontValue; - -/******** Public Structures Declarations ********/ - -typedef struct _dtHelpFontHints { - char *language; - char *char_set; - int pointsz; /* height of font in points */ - int set_width; /* width of font in points */ - char *color; /* 1 of 42 UDT colors or 'RGB:rrrr/gggg/bbbb */ - char *xlfd; /* xlfd name for use on X Window System */ - char *xlfdb; /* xlfd name for use on X Window System */ - char *xlfdi; /* xlfd name for use on X Window System */ - char *xlfdib; /* xlfd name for use on X Window System */ - char *typenam; /* typeface spec for MS-Windows interface */ - char *typenamb; /* typeface spec for MS-Windows interface */ - char *typenami; /* typeface spec for MS-Windows interface */ - char *typenamib; /* typeface spec for MS-Windows interface */ - _DtHelpFontValue style; /* font style */ - _DtHelpFontValue spacing; /* font spacing */ - _DtHelpFontValue weight; /* font weight */ - _DtHelpFontValue slant; /* font slant */ - _DtHelpFontValue special; /* special characteristics */ - void *expand; /* reserved pointer for later expansion */ -} _DtHelpFontHints; - -/******** Public Structure Typedef Declarations ********/ - -/******** Public Prototyped Procedures ********/ - -/******** Public Macro Declarations ********/ -#ifndef _DtHelpFontHintsColor -#define _DtHelpFontHintsColor(x) ((x).color) -#endif - -#ifndef _DtHelpFontHintsLang -#define _DtHelpFontHintsLang(x) ((x).language) -#endif - -#ifndef _DtHelpFontHintsCharSet -#define _DtHelpFontHintsCharSet(x) ((x).char_set) -#endif - -#ifndef _DtHelpFontHintsPtSize -#define _DtHelpFontHintsPtSize(x) ((x).pointsz) -#endif - -#ifndef _DtHelpFontHintsWeight -#define _DtHelpFontHintsWeight(x) ((x).weight) -#endif - -#ifndef _DtHelpFontHintsXlfd -#define _DtHelpFontHintsXlfd(x) ((x).xlfd) -#endif - -#ifndef _DtHelpFontHintsXlfdb -#define _DtHelpFontHintsXlfdb(x) ((x).xlfdb) -#endif - -#ifndef _DtHelpFontHintsXlfdi -#define _DtHelpFontHintsXlfdi(x) ((x).xlfdi) -#endif - -#ifndef _DtHelpFontHintsXlfdib -#define _DtHelpFontHintsXlfdib(x) ((x).xlfdib) -#endif - -#ifndef _DtHelpFontHintsTypeNam -#define _DtHelpFontHintsTypeNam(x) ((x).typenam) -#endif - -#ifndef _DtHelpFontHintsTypeNamb -#define _DtHelpFontHintsTypeNamb(x) ((x).typenamb) -#endif - -#ifndef _DtHelpFontHintsTypeNami -#define _DtHelpFontHintsTypeNami(x) ((x).typenami) -#endif - -#ifndef _DtHelpFontHintsTypeNamib -#define _DtHelpFontHintsTypeNamib(x) ((x).typenamib) -#endif - -#ifndef _DtHelpFontPtrPtSize -#define _DtHelpFontPtrPtSize(x) ((x)->pointsz) -#endif - -#ifndef _DtHelpFontPtrWeight -#define _DtHelpFontPtrWeight(x) ((x)->weight) -#endif - -/******** Semi-Public Function Declarations ********/ - -/******** Public Function Declarations ********/ -extern void _DtHelpCeCopyDefFontAttrList(_DtHelpFontHints *font_attr ); -extern int _DtHelpDupFontHints(_DtHelpFontHints *font_attr ); -extern void _DtHelpFreeFontHints(_DtHelpFontHints *font_attr ); - -/******** End Public Function Declarations ********/ - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtHelpFontAttrI_h */ diff --git a/cde/lib/DtHelp/FontI.h b/cde/lib/DtHelp/FontI.h deleted file mode 100644 index e1477f1e..00000000 --- a/cde/lib/DtHelp/FontI.h +++ /dev/null @@ -1,125 +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: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: FontI.h - ** - ** Project: TextGraphic Display routines - ** - ** Description: Header file for Font.c - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtFontI_h -#define _DtFontI_h - -#ifdef __cplusplus -extern "C" { -#endif -/**************************************************************************** - * Semi Public Defines - ****************************************************************************/ -/* - * resource database types - */ -#define _DtHelpXrmInt 0 -#define _DtHelpXrmQuark 1 - -/* - * font quarks - */ -#define _DT_HELP_FONT_CHAR_SET 6 -#define _DT_HELP_FONT_LANG_TER 5 -#define _DT_HELP_FONT_TYPE 4 -#define _DT_HELP_FONT_WEIGHT 3 -#define _DT_HELP_FONT_ANGLE 2 -#define _DT_HELP_FONT_SIZE 1 -#define _DT_HELP_FONT_SPACING 0 - -#define _DT_HELP_FONT_END 7 - -#define _DtHelpFontQuarkNumber 8 - -/**************************************************************************** - * Semi Public Structures - ****************************************************************************/ -/**************************************************************************** - * Semi Public Routines - ****************************************************************************/ -extern void _DtHelpCopyDefaultList(XrmName *xrm_list); -extern long __DtHelpDefaultFontIndexGet ( - DtHelpDispAreaStruct *pDAS); -extern void _DtHelpGetStringQuarks(XrmName *xrm_list); -extern int __DtHelpFontCharSetQuarkGet( - DtHelpDispAreaStruct *pDAS, - long font_index, - XrmQuark *ret_quark); -extern void __DtHelpFontDatabaseInit ( - DtHelpDispAreaStruct *pDAS, - XtPointer default_font, - XmFontType entry_type, - XFontStruct *user_font); -extern int __DtHelpFontIndexGet ( - DtHelpDispAreaStruct *pDAS, - XrmQuarkList xrm_list, - long *ret_idx); -extern int __DtHelpFontLangQuarkGet( - DtHelpDispAreaStruct *pDAS, - long font_index, - XrmQuark *ret_quark); -extern void __DtHelpFontMetrics ( - DtHelpDAFontInfo font_info, - long font_index, - _DtCvUnit *ret_ascent, - _DtCvUnit *ret_descent, - _DtCvUnit *ret_char_width, - _DtCvUnit *ret_super, - _DtCvUnit *ret_sub); -extern XFontSet __DtHelpFontSetGet ( - DtHelpDAFontInfo font_info, - long font_index ); -extern XFontStruct *__DtHelpFontStructGet ( - DtHelpDAFontInfo font_info, - long font_index); -extern int _DtHelpGetExactFontIndex( - DtHelpDispAreaStruct *pDAS, - const char *lang, - const char *char_set, - char *xlfd_spec, - long *ret_idx); - -#ifdef __cplusplus -} -#endif -#endif /* _DtHelpFontI_h */ diff --git a/cde/lib/DtHelp/GifUtilsI.h b/cde/lib/DtHelp/GifUtilsI.h deleted file mode 100644 index 9a443d76..00000000 --- a/cde/lib/DtHelp/GifUtilsI.h +++ /dev/null @@ -1,146 +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: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */ -#ifndef _DtGifUtilsI_h -#define _DtGifUtilsI_h - -/* Include files */ -#include -#include "GraphicsP.h" - -/* Enumerated values */ -enum op_t { DO_COLOR, DO_GREY }; - -/* Type definitions */ -typedef unsigned char byte; -typedef unsigned long pixel; - -/* Data structures */ - -typedef struct - { - unsigned long pixel; - unsigned short red, green, blue; - unsigned short grey; - } GifColors; - -typedef struct -{ - XImage *f_ximage; - Display *f_dpy; - int f_screen; - Colormap f_cmap; - Drawable f_drawable; - GC f_gc; - Visual *f_visual; - unsigned int f_ncells; - unsigned int f_nplanes; - unsigned long f_black; - unsigned long f_white; - unsigned long f_fg; - unsigned long f_bg; - int f_dft_depth; - int f_visual_class; - int f_color_map_constructed; - int f_do_visual; - int bits_per_pixel ; - int colors_per_pixel; - int total_colors ; - int f_total_greys; - int f_init_total_greys; - Boolean f_allow_reduced_colors; - Boolean f_color_reduction_used; - GifColors GifCMap[64]; - unsigned long GifGMap[32]; -} GifObj; - -/* Function prototypes */ - -/* Initializes a gif object structure */ -enum _DtGrLoadStatus InitGifObject( - GifObj *g, - Display *dpy, - Drawable drawable, - Screen *screen, - int depth, - Colormap colormap, - Visual *visual, - GC gc, - enum _DtGrColorModel colorModel, - Boolean allowReducedColors -); - -/* Deletes resources associated with a gif object structure */ -void DeleteGifObjectResources( - GifObj *g -); - -/* Converts a gif buffer to an X pixmap */ -Pixmap gif_to_pixmap( - GifObj *g, - byte *inbuf, - unsigned int buflen, - Dimension *w, - Dimension *h, - Pixel fg, - Pixel bg, - float ratio -); - -/* Creates a raw PPM-style image from a GIF buffer */ -pixel **create_raw_image( - byte *inbuf, - unsigned int buflen, - int *width, - int *height, - int imageNumber -); - -/* Creates an X pixmap from a raw PPM-style image */ -Pixmap create_pixmap( - GifObj *g, - pixel **image, - int width, - int height, - Pixel fg, - Pixel bg, - float ratio -); - -/* Frees raw image data */ -void free_raw_image( - pixel **image -); - -/* Allocates X pixels needed for the color cube */ -int allocate_colors( - GifObj *g -); - -/* Allocates X pixels needed for greyscale rendering */ -int allocate_greys( - GifObj *g -); - -#endif /* _DtGifUtilsI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/GraphicsP.h b/cde/lib/DtHelp/GraphicsP.h deleted file mode 100644 index fc26ada9..00000000 --- a/cde/lib/DtHelp/GraphicsP.h +++ /dev/null @@ -1,197 +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: GraphicsP.h /main/4 1996/05/09 03:43:09 drk $ */ -#ifndef _DtGraphicsP_h -#define _DtGraphicsP_h - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif -/* - * Input stream data structures - */ - -/* Stream source types */ -enum _DtGrStreamType { _DtGrNONE, _DtGrBUFFER, _DtGrFILE }; - -/* Stream file data */ -typedef struct -{ - FILE *fileptr; - char *filename; - char *uncompressed_filename; -} _DtGrFile; - -/* Stream buffer data */ -typedef struct -{ - const char *base; - long size; - char *current; - char *end; -} _DtGrBuffer; - -/* Stream data */ -typedef struct -{ - enum _DtGrStreamType type; - union - { - _DtGrFile file; - _DtGrBuffer buffer; - } source; -} _DtGrStream; - -/* - * Input stream function prototypes - */ - -/* Open a file stream */ -int _DtGrOpenFile( - _DtGrStream *stream, - char *path -); - -/* Open a buffer stream */ -int _DtGrOpenBuffer( - _DtGrStream *stream, - const char *buffer, - int buffer_size -); - -/* Close a stream */ -int _DtGrCloseStream( - _DtGrStream *stream -); - -/* Reads data from a stream into a buffer */ -size_t _DtGrRead( - void *buffer, - size_t size, - size_t num_items, - _DtGrStream *stream -); - -/* Sets the position of the next input operation on a stream */ -int _DtGrSeek( - _DtGrStream *stream, - long offset, - int whence -); - -/* Reads a character from a stream and advances the stream position */ -int _DtGrGetChar( - _DtGrStream *stream -); - -/* Reads a string from a stream and advances the stream position */ -char *_DtGrGetString( - char *buffer, - int num_bytes, - _DtGrStream *stream -); - -/* - * Inline graphics data structures - */ - -enum _DtGrColorModel { _DtGrCOLOR, _DtGrGRAY_SCALE, _DtGrBITONAL }; -enum _DtGrLoadStatus { _DtGrSUCCESS, _DtGrCOLOR_REDUCE,_DtGrCONVERT_FAILURE, - _DtGrOPEN_FAILED, _DtGrFILE_INVALID, _DtGrNO_MEMORY, - _DtGrCOLOR_FAILED }; - -/* Context structure used by image type converters */ -typedef struct { - char *image_type; - XPointer context; -} _DtGrContext; - -typedef enum _DtGrLoadStatus (*_DtGrLoadProc)( - _DtGrStream *stream, - Screen *screen, - int depth, - Colormap colormap, - Visual *visual, - Pixel foreground, - Pixel background, - GC gc, - enum _DtGrColorModel color_model, - Boolean allow_reduced_colors, - Dimension *in_out_width, - Dimension *in_out_height, - unsigned short media_resolution, - Pixmap *ret_pixmap, - Pixmap *ret_mask, - Pixel **ret_colors, - int *ret_num_colors, - _DtGrContext *context); - -typedef void (*_DtGrDestroyContextProc)( - _DtGrContext *context); - -/* - * Inline graphics function prototypes - */ - -/* Loads an image into a pixmap */ -enum _DtGrLoadStatus _DtGrLoad( - _DtGrStream *stream, - char **image_type, - Screen *screen, - int depth, - Colormap colormap, - Visual *visual, - Pixel foreground, - Pixel background, - GC gc, - enum _DtGrColorModel color_model, - Boolean allow_reduced_colors, - Dimension *in_out_width, - Dimension *in_out_height, - unsigned short media_resolution, - Pixmap *ret_pixmap, - Pixmap *ret_mask, - Pixel **ret_colors, - int *ret_num_colors, - _DtGrContext *context); - -/* Destroys a context */ -void _DtGrDestroyContext( - _DtGrContext *context); - -/* Registers a converter for a graphic type */ -void _DtGrRegisterConverter( - char *image_type, - _DtGrLoadProc convert_proc, - _DtGrDestroyContextProc destroy_context_proc, - _DtGrLoadProc *current_convert_proc, - _DtGrDestroyContextProc *current_destroy_proc); - -#ifdef __cplusplus -} -#endif -#endif /* _DtGraphicsP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/Help.h b/cde/lib/DtHelp/Help.h deleted file mode 100644 index 29921a1c..00000000 --- a/cde/lib/DtHelp/Help.h +++ /dev/null @@ -1,266 +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: Help.h /main/3 1995/10/26 12:23:24 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. - */ - -#ifndef _Dt_Help_h -#define _Dt_Help_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Common DtHelp Resources */ - -#ifndef DtNcloseCallback -#define DtNcloseCallback "closeCallback" -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNexecutionPolicy -#define DtNexecutionPolicy "executionPolicy" -#endif -#ifndef DtNhelpFile -#define DtNhelpFile "helpFile" -#endif -#ifndef DtNhelpOnHelpVolume -#define DtNhelpOnHelpVolume "helpOnHelpVolume" -#endif -#ifndef DtNhelpPrint -#define DtNhelpPrint "helpPrint" -#endif -#ifndef DtNhelpType -#define DtNhelpType "helpType" -#endif -#ifndef DtNhelpVolume -#define DtNhelpVolume "helpVolume" -#endif -#ifndef DtNhyperLinkCallback -#define DtNhyperLinkCallback "hyperLinkCallback" -#endif -#ifndef DtNlocationId -#define DtNlocationId "locationId" -#endif -#ifndef DtNmanPage -#define DtNmanPage "manPage" -#endif -#ifndef DtNminimizeButtons -#define DtNminimizeButtons XmNminimizeButtons -#endif -#ifndef DtNpaperSize -#define DtNpaperSize "paperSize" -#endif -#ifndef DtNprinter -#define DtNprinter "printer" -#endif -#ifndef DtNrows -#define DtNrows XmNrows -#endif -#ifndef DtNscrollBarPolicy -#define DtNscrollBarPolicy "scrollBarPolicy" -#endif -#ifndef DtNstringData -#define DtNstringData "stringData" -#endif - -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif - -#ifndef DtCCloseCallback -#define DtCCloseCallback "CloseCallback" -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCExecutionPolicy -#define DtCExecutionPolicy "ExecutionPolicy" -#endif -#ifndef DtCHelpFile -#define DtCHelpFile "HelpFile" -#endif -#ifndef DtCHelpOnHelpVolume -#define DtCHelpOnHelpVolume "HelpOnHelpVolume" -#endif -#ifndef DtCHelpPrint -#define DtCHelpPrint "HelpPrint" -#endif -#ifndef DtCHelpType -#define DtCHelpType "HelpType" -#endif -#ifndef DtCHelpVolume -#define DtCHelpVolume "HelpVolume" -#endif -#ifndef DtCHyperLinkCallback -#define DtCHyperLinkCallback "HyperLinkCallback" -#endif -#ifndef DtCLocationId -#define DtCLocationId "LocationId" -#endif -#ifndef DtCManPage -#define DtCManPage "ManPage" -#endif -#ifndef DtCMinimizeButtons -#define DtCMinimizeButtons XmCMinimizeButtons -#endif -#ifndef DtCPaperSize -#define DtCPaperSize "PaperSize" -#endif -#ifndef DtCPrinter -#define DtCPrinter "Printer" -#endif -#ifndef DtCRows -#define DtCRows XmCRows -#endif -#ifndef DtCScrollBarPolicy -#define DtCScrollBarPolicy "ScrollBarPolicy" -#endif -#ifndef DtCStringData -#define DtCStringData "StringData" -#endif - -/* Representation types */ - -#ifndef DtRDtExecutionPolicy -#define DtRDtExecutionPolicy "DtExecutionPolicy" -#endif -#ifndef DtRDtHelpType -#define DtRDtHelpType "DtHelpType" -#endif -#ifndef DtRDtPaperSize -#define DtRDtPaperSize "DtPaperSize" -#endif -#ifndef DtRDtScrollBarPolicy -#define DtRDtScrollBarPolicy "DtScrollBarPolicy" -#endif - -/* DtHelpDialogCallbackStruct windowHint field */ - -#define DtHELP_POPUP_WINDOW 1 -#define DtHELP_CURRENT_WINDOW 2 -#define DtHELP_NEW_WINDOW 3 - -/* DtHelpDialogCallbackStruct hyperType field */ - -#define DtHELP_LINK_JUMP_NEW 1 -#define DtHELP_LINK_TOPIC 1 -#define DtHELP_LINK_MAN_PAGE 4 -#define DtHELP_LINK_APP_DEFINE 5 -#define DtHELP_LINK_TEXT_FILE 8 - -/* DtHelpDialogCallbackStruct reason field */ - -#define DtCR_HELP_LINK_ACTIVATE 1 -#define DtCR_HELP_CLOSE 2 -#define DtCR_HELP_HELP 3 - -/* Possible values for DtNscrollBarPolicy resource */ - -#define DtHELP_NO_SCROLLBARS 0 -#define DtHELP_STATIC_SCROLLBARS 1 -#define DtHELP_AS_NEEDED_SCROLLBARS 2 - -/* Possible values for DtNexecutionPolicy resource */ -#define DtHELP_EXECUTE_NONE 0 -#define DtHELP_EXECUTE_QUERY_ALL 1 -#define DtHELP_EXECUTE_QUERY_UNALIASED 2 -#define DtHELP_EXECUTE_ALL 3 - -/* Possible values for DtNhelpType resource */ - -#define DtHELP_TYPE_TOPIC 0 -#define DtHELP_TYPE_STRING 1 -#define DtHELP_TYPE_MAN_PAGE 2 -#define DtHELP_TYPE_FILE 3 -#define DtHELP_TYPE_DYNAMIC_STRING 4 - -/* Possible values for DtNpaperSize resource */ - -#define DtHELP_PAPERSIZE_LETTER 0 -#define DtHELP_PAPERSIZE_LEGAL 1 -#define DtHELP_PAPERSIZE_EXECUTIVE 2 -#define DtHELP_PAPERSIZE_A4 3 -#define DtHELP_PAPERSIZE_B5 4 - -/* DtHelpQuickGetChildGetChild() function */ - -#define DtHELP_QUICK_CLOSE_BUTTON 1 -#define DtHELP_QUICK_PRINT_BUTTON 2 -#define DtHELP_QUICK_HELP_BUTTON 3 -#define DtHELP_QUICK_SEPARATOR 4 -#define DtHELP_QUICK_MORE_BUTTON 5 -#define DtHELP_QUICK_BACK_BUTTON 6 - -/* Return values for DtHelpReturnSelectedWidgetId() */ - -#define DtHELP_SELECT_ERROR -1 -#define DtHELP_SELECT_VALID 0 -#define DtHELP_SELECT_ABORT 1 -#define DtHELP_SELECT_INVALID 2 - - -/* - * Types - */ - -typedef struct { - int reason; - XEvent *event; - char *locationId; - char *helpVolume; - char *specification; - int hyperType; - int windowHint; -} DtHelpDialogCallbackStruct; - - -/* - * Functions - */ - -extern void DtHelpSetCatalogName( - char *catFile); - -extern int DtHelpReturnSelectedWidgetId( - Widget parent, - Cursor cursor, - Widget *widget); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Help_h */ diff --git a/cde/lib/DtHelp/HelpDialog.h b/cde/lib/DtHelp/HelpDialog.h deleted file mode 100644 index 0c810a8b..00000000 --- a/cde/lib/DtHelp/HelpDialog.h +++ /dev/null @@ -1,117 +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: HelpDialog.h /main/3 1995/10/26 12:24:05 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. - */ - -#ifndef _Dt_HelpDialog_h -#define _Dt_HelpDialog_h - -#include
- -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* General Help Dialog-specific Resources */ - -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNshowNewWindowButton -#define DtNshowNewWindowButton "showNewWindowButton" -#endif -#ifndef DtNtopicTitle -#define DtNtopicTitle "topicTitle" -#endif -#ifndef DtNvisiblePathCount -#define DtNvisiblePathCount "visiblePathCount" -#endif - -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif - -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCShowNewWindowButton -#define DtCShowNewWindowButton "ShowNewWindowButton" -#endif -#ifndef DtCTopicTitle -#define DtCTopicTitle "TopicTitle" -#endif -#ifndef DtCVisiblePathCount -#define DtCVisiblePathCount "VisiblePathCount" -#endif - - -/* - * Types - */ - -/* Widget class and instance */ - -typedef struct _DtHelpDialogWidgetClassRec * DtHelpDialogWidgetClass; -typedef struct _DtHelpDialogWidgetRec * DtHelpDialogWidget; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtHelpDialogWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateHelpDialog( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_HelpDialog_h */ diff --git a/cde/lib/DtHelp/HelpDialogP.h b/cde/lib/DtHelp/HelpDialogP.h deleted file mode 100644 index 47d66134..00000000 --- a/cde/lib/DtHelp/HelpDialogP.h +++ /dev/null @@ -1,392 +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: HelpDialogP.h /main/6 1996/04/13 11:55:10 ageorge $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: HelpDialogP.h - ** - ** Project: Cache Creek (Rivers) Project: - ** - ** Description: Privite Header file for HelpDialog.c - ** ----------- - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpDialogP_h -#define _DtHelpDialogP_h - -#include - -#include
- -#include "FileListUtilsI.h" -#include "GlobSearchP.h" - -#define XmDIALOG_SUFFIX "_popup" -#define XmDIALOG_SUFFIX_SIZE 6 - - -/* Defines for use in allocation geometry matrix. */ -#define TB_MAX_WIDGETS_VERT 7 -#define TB_MAX_NUM_WIDGETS 12 - - -/**************************************************************** - * - * Topic List Info Structure Definition (History & Jump Back Lists) - * - ****************************************************************/ -typedef struct _DtTopicListStruct { - char *locationId; - XmString topicTitleLbl; - char *helpVolume; - int topicType; - int pathLevel; - int scrollPosition; - struct _DtTopicListStruct *pNext; - struct _DtTopicListStruct *pPrevious; -} DtTopicListStruct; - - -/**************************************************************** - * - * Volume List Info: History Dialog only. - * - ****************************************************************/ -typedef struct _DtHistoryListStruct { - XmString itemTitle; - int topicType; - int totalNodes; - struct _DtHistoryListStruct *pNext; - struct _DtTopicListStruct *pTopicHead; - struct _DtTopicListStruct *pTopicTale; -} DtHistoryListStruct; - - -/**************************************************************** - * - * Help Callback return structure - * - ****************************************************************/ -typedef struct _DtHelpListStruct { - char * locationId; - Widget widget; - struct _DtHelpCommonHelpStuff * help; - struct _DtHelpListStruct * pNext; - struct _DtHelpListStruct * pPrevious; -} DtHelpListStruct; - - - -/**************************************************************** - * - * Kewword Search entry structure. - * - ****************************************************************/ - -typedef struct { - char * keyWord; - Boolean matchesFindPattern; -} KeyEntry; - - - - -/* Class Part Structure Definition */ - -typedef struct -{ - XtPointer extension; /* Pointer to extension record */ -} DtHelpDialogWidgetClassPart; - - - - -/* Full class record declaration */ - -typedef struct _DtHelpDialogWidgetClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - DtHelpDialogWidgetClassPart selection_box_class; -} DtHelpDialogWidgetClassRec; - -externalref DtHelpDialogWidgetClassRec dtHelpDialogWidgetClassRec; - - -typedef struct _DtHelpDisplayWidgetStuff -{ - short textColumns; /* Columns Resource Value resource */ - short textRows; /* Rows Resource Value resource */ - char * locationId; /* Current Topic String resource */ - char * helpVolume; /* Current Project File resource */ - char * manPage; /* man page resource */ - char * stringData; /* string data resource */ - char * helpFile; /* help file resource */ - unsigned char scrollBarPolicy; /* Scrollbar policy resource */ - unsigned char executionPolicy; /* Link/script exec policy resource */ - XtCallbackList hyperLinkCallback; /* Hypertext Callback resource */ - _DtHelpVolumeHdl volumeHandle; /* handle of current volume */ - unsigned char helpType; /* Current displayed file type resource */ - char * topicTitleStr; /* title of topic */ - int count; /* Nonexistent topic title count */ - XmString topicTitleLbl; /* XmString title of topic */ - Boolean firstTimePopupFlag; /* False, untel we map the widget */ - - -} _DtHelpDisplayWidgetStuff; - -typedef struct _DtHelpCommonHelpStuff -{ - XtPointer pDisplayArea; /* Display widget handle */ - - /* for help on help */ - char * helpOnHelpVolume; /* help on help volume resource */ - DtHelpListStruct * pHelpListHead; /* Help List Pointer */ - Widget onHelpDialog; /* help on help dialog */ - - char * sysVolumeSearchPath; /* system search path */ - char * userVolumeSearchPath; /* user search path */ - - char * currentHelpFile; /* Current help file */ - int topicOffset; /* Offset into help file */ - - char * topLevelId; /* Toplevel topic volume displayed */ - int topLevelTopicOffset; -} _DtHelpCommonHelpStuff; - -typedef struct _DtHelpGeneralHelpStuff -{ - char * parentId; /* used for "Up" menu */ - - Boolean volumeFlag; /* set when to process new vol */ - - Widget definitionBox; - XtCallbackList closeCallback; /* Window Close Callback */ - - Dimension marginHeight; - Dimension marginWidth; -} _DtHelpGeneralHelpStuff; - - -typedef struct _DtHelpBrowserStuff -{ - int visiblePathCount; /* Number of path lines shown */ - XtPointer pTocArea; /* Toc area handle */ - - Widget volumeLabel; - Widget panedWindow; - Widget pathArea; - - Boolean showTopLevelBtn; - Widget btnBoxBackBtn; - Widget btnBoxHistoryBtn; - Widget btnBoxIndexBtn; - Widget btnBoxTopLevelBtn; -} _DtHelpBrowserStuff; - -typedef struct _DtHelpMenuStuff -{ - Boolean showDupBtn; - - /* Help Dialog Widgets */ - Widget menuBar; - - Widget topBtn; - Widget keyBtn; - Widget backBtn; - Widget historyBtn; - Widget printBtn; - Widget closeBtn; - Widget helpBtn; - Widget newWindowBtn; - Widget copyBtn; - - Widget popupMenu; - Widget popupBackBtn; - Widget popupTopBtn; -} _DtHelpMenuStuff; - -typedef struct _DtHelpHistoryStuff -{ - /* Path Area Variables */ - DtTopicListStruct * pPathListHead; - DtTopicListStruct * pPathListTale; - int totalPathNodes; - - /* History Dialog Widgets & variables */ - Widget volumeList; /* Scrolled volume list */ - Widget topicList; /* Scrolled topic list */ - Widget historyWidget; /* Top Level History Shell */ - Widget topicsListLabel; - DtHistoryListStruct * pHistoryListHead; /* Head pointer to history */ -} _DtHelpHistoryStuff; - -typedef struct _DtHelpBacktrackStuff -{ - /* Jump List variables */ - DtTopicListStruct * pJumpListHead; - DtTopicListStruct * pJumpListTale; - int totalJumpNodes; - int scrollPosition; -} _DtHelpBacktrackStuff; - -typedef struct _DtHelpGlobSearchStuff -{ - /* search dialog resource (undocumented) */ - char * hitPrefixFont; /* hit prefix mono-space font resource */ - - /* host application locale settings */ - char * iconv3Codeset; /* iconv3-ok codeset of app */ - _DtHelpCeIconvContext iconv3Context; /* from vol to app locale */ - - /* File Selection Dialog font list */ - XmFontList volTitlesFontList; /*font list req'd by font titles*/ - - /* Search Dialog Widgets & variables */ - Widget srchForm; - Widget actionBtn; - Widget curVolRadBtn; - Widget allVolRadBtn; - Widget selVolRadBtn; - Widget selectBtn; - Widget fullIndexRadBtn; - Widget containsRadBtn; - Widget wordField; - Widget statusLabel; - Widget resultList; - Widget gotoBtn; - Widget closeBtn; - Widget helpBtn; - Widget selectionDlg; /* selectionBox (child of dlg) */ - char * curVolPath; /* cur vol shown in btn label */ - char * rawWordStr; /* word as taken from srchWord */ - char * normWordStr; /* normalized word str */ - char * localeWordStr; /* after iconv() of NormWordStr */ - wchar_t wordFieldFirstChar; - short wordFieldLen; - short statusLineUsage; - _DtHelpGlobSrchSources srchSources; /* current state of radio but */ - _DtHelpFileEntry curSrchVol; /* vol currently being searched */ - unsigned int hitsFontLoaded:1; /* is font loaded? */ - unsigned int volScanDone:1; /* is the volume list complete? */ - unsigned int fullIndex:1; /* state of search */ - unsigned int readyToStart:1; /* state of search */ - unsigned int hitsFound:1; /* state of search */ - unsigned int searchInProgress:1; /* state of search */ - unsigned int curVolRadBtnSens:1; /* state of curVol sens */ - short volLeftCnt; /* updated during search */ - _DtHelpFileList volListHead; /* info on search topics found */ - XtWorkProcId workProcId; /* ID of search proc */ -} _DtHelpGlobSearchStuff; - -typedef struct _DtHelpPrintStuff -{ - /* printing resources */ - char * helpPrint; /* help print command resource */ - unsigned char paperSize; /* paper size resource */ - char * printer; /* printer destination resource */ - char * printVolume; /* volume to print resource */ - - /* Print Dialog widgets & variables */ - Widget printForm; /* Form inside top level print shell */ - Widget subject; /* label for subject matter to print */ - Widget printerField; /* text field for printer */ - Widget copiesField; /* text field for copies */ - Widget letterBtn; /* menu item for letter paper */ - Widget legalBtn; /* menu item for legal paper */ - Widget execBtn; /* menu item for executive paper */ - Widget a4Btn; /* menu item for A4 paper */ - Widget b5Btn; /* menu item for B5 paper */ - Widget paperSizeOptMenu; /* menu item for A4 paper */ - Widget topicsFrame; /* frame holding print topic selection */ - Widget curTopicBtn; /* radio btn for cur topic */ - Widget subTopicsBtn; /* radio btn for cur & sub topics */ - Widget tocBtn; /* radio btn for table of contents */ - Widget allTopicsBtn; /* radio btn for all topics */ - Widget paperTopicsSeparator; /* hidden sep btwn paper size & topic sel */ - Widget topicsBtnsSeparator; /* sep between topic sel & btns */ -} _DtHelpPrintStuff; - - -/* fields for the GeneralHelp widget record */ -typedef struct -{ - _DtHelpDisplayWidgetStuff display; - _DtHelpCommonHelpStuff help; - _DtHelpGeneralHelpStuff ghelp; - _DtHelpBrowserStuff browser; - _DtHelpMenuStuff menu; - _DtHelpHistoryStuff history; - _DtHelpBacktrackStuff backtr; - _DtHelpGlobSearchStuff srch; - _DtHelpPrintStuff print; -} DtHelpDialogWidgetPart; - - -/**************************************************************** - * - * Full instance record declaration - * - ****************************************************************/ - -typedef struct _DtHelpDialogWidgetRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - DtHelpDialogWidgetPart help_dialog; -} DtHelpDialogWidgetRec; - - - -/******** Private Function Declarations ********/ - -extern XmGeoMatrix _DtHelpDialogWidgetGeoMatrixCreate( - Widget wid, - Widget instigator, - XtWidgetGeometry *desired) ; -extern Boolean _DtHelpDialogWidgetNoGeoRequest( - XmGeoMatrix geoSpec) ; - -/******** End Private Function Declarations ********/ - - - -#endif /* _XmTemplateBP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ - diff --git a/cde/lib/DtHelp/HelpP.h b/cde/lib/DtHelp/HelpP.h deleted file mode 100644 index a9dd4d8b..00000000 --- a/cde/lib/DtHelp/HelpP.h +++ /dev/null @@ -1,118 +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: HelpP.h /main/3 1995/10/26 12:24:50 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: HelpP.h - ** - ** Project: CacheCreeek (Rivers) Project. - ** - ** - ** Description: Private header file for Dts. - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpP_h -#define _DtHelpP_h - -/* Privite Argument Resource Definitions for Help Widget */ - -#define DtNshowTopLevelButton "showTopLevelButton" -#ifndef XmNshowTopLevelButton -#define XmNshowTopLevelButton DtNshowTopLevelButton -#endif -#define DtCShowTopLevelButton "ShowTopLevelButton" -#ifndef XmCShowTopLevelButton -#define XmCShowTopLevelButton DtCShowTopLevelButton -#endif - -#define DtNsrchHitPrefixFont "srchHitPrefixFont" -#ifndef XmNsrchHitPrefixFont -#define XmNsrchHitPrefixFont DtNsrchHitPrefixFont -#endif -#define DtCSrchHitPrefixFont "SrchHitPrefixFont" -#ifndef XmCSrchHitPrefixFont -#define XmCSrchHitPrefixFont DtCSrchHitPrefixFont -#endif - - -#ifndef CDE_CONFIGURATION_TOP -#define CDE_CONFIGURATION_TOP "/etc/dt" -#endif - -#ifndef CDE_INSTALLATION_TOP -#define CDE_INSTALLATION_TOP "/usr/dt" -#endif - - -#define DtDEFAULT_SYSTEM_PATH \ - CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H:" \ - CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.sdl:" \ - CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.hv:" \ - CDE_CONFIGURATION_TOP "/appconfig/help/C/%H:" \ - CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.sdl:" \ - CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.hv:" \ - CDE_INSTALLATION_TOP "/appconfig/help/%L/%H:" \ - CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.sdl:" \ - CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.hv" \ - CDE_INSTALLATION_TOP "/appconfig/help/C/%H:" \ - CDE_INSTALLATION_TOP "/appconfig/help/C/%H.sdl:" \ - CDE_INSTALLATION_TOP "/appconfig/help/C/%H.hv:" - - -#define DtDEFAULT_USER_PATH_FORMAT \ - "%s/.dt/help/%s/%%H:" \ - "%s/.dt/help/%s/%%H.sdl:" \ - "%s/.dt/help/%s/%%H.hv:" \ - "%s/.dt/help/%%H:" \ - "%s/.dt/help/%%H.sdl:" \ - "%s/.dt/help/%%H.hv" - -/* this path expects a sprintf usage as follows: - sprintf(buf,DtDEFAULT_USER_PATH_FORMAT, - homedir, dtusersessionname, - homedir, dtusersessionname, - homedir, dtusersessionname, - homedir, homedir, homedir); -*/ - -/* #define DtVOLUMES_TYPE "volumes" */ - -#endif /* _DtHelpP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ - - - - - diff --git a/cde/lib/DtHelp/HelpQuickD.h b/cde/lib/DtHelp/HelpQuickD.h deleted file mode 100644 index e29a4b16..00000000 --- a/cde/lib/DtHelp/HelpQuickD.h +++ /dev/null @@ -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 - */ -/* $XConsortium: HelpQuickD.h /main/3 1995/10/26 12:25:25 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. - */ - -#ifndef _Dt_HelpQuickD_h -#define _Dt_HelpQuickD_h - -#include
- -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Quick help dialog-specific Resources */ - -#ifndef DtNbackLabelString -#define DtNbackLabelString "backLabelString" -#endif -#ifndef DtNhelpLabelString -#define DtNhelpLabelString XmNhelpLabelString -#endif -#ifndef DtNmoreLabelString -#define DtNmoreLabelString "moreLabelString" -#endif -#ifndef DtNcloseLabelString -#define DtNcloseLabelString "closeLabelString" -#endif -#ifndef DtNprintLabelString -#define DtNprintLabelString "printLabelString" -#endif - -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif - -#ifndef DtCBackLabelString -#define DtCBackLabelString "BackLabelString" -#endif -#ifndef DtCHelpLabelString -#define DtCHelpLabelString XmCHelpLabelString -#endif -#ifndef DtCMoreLabelString -#define DtCMoreLabelString "MoreLabelString" -#endif -#ifndef DtCCloseLabelString -#define DtCCloseLabelString "CloseLabelString" -#endif -#ifndef DtCPrintLabelString -#define DtCPrintLabelString "PrintLabelString" -#endif - - -/* - * Types - */ - -/* Widget class and instance */ - -typedef struct _DtHelpQuickDialogWidgetClassRec * DtHelpQuickDialogWidgetClass; -typedef struct _DtHelpQuickDialogWidgetRec * DtHelpQuickDialogWidget; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtHelpQuickDialogWidgetClass; - - -/* - * Functions - */ - -/* tmp backwards compat */ -#define DtCreateQuickHelpDialog DtCreateHelpQuickDialog - -extern Widget DtCreateHelpQuickDialog( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern Widget DtHelpQuickDialogGetChild( - Widget widget, - unsigned char child); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_HelpQuickD_h */ diff --git a/cde/lib/DtHelp/HelpQuickDP.h b/cde/lib/DtHelp/HelpQuickDP.h deleted file mode 100644 index 0ab2cb3e..00000000 --- a/cde/lib/DtHelp/HelpQuickDP.h +++ /dev/null @@ -1,177 +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: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: HelpQuickDP.h - ** - ** Project: CDE 1.0 Common Desktop Environment - ** - ** Description: Privite Header file for HelpQuickD.c - ** ----------- - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpQuickDP_h -#define _DtHelpQuickDP_h - -#include - -#include
- -#include "HelpQuickDI.h" -#include "HelpDialogP.h" - - -#define DtNO_JUMP_UPDATE 1 -#define DtJUMP_UPDATE 2 - - -#define XmDIALOG_SUFFIX "_popup" -#define XmDIALOG_SUFFIX_SIZE 6 - - -/* Defines for use in allocation geometry matrix. */ -#define TB_MAX_WIDGETS_VERT 7 -#define TB_MAX_NUM_WIDGETS 12 - - - -/* Class Part Structure Definition */ - -typedef struct -{ - XtPointer extension; /* Pointer to extension record */ -} DtHelpQuickDialogWidgetClassPart; - - - - -/* Full class record declaration */ - -typedef struct _DtHelpQuickDialogWidgetClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - DtHelpQuickDialogWidgetClassPart selection_box_class; -} DtHelpQuickDialogWidgetClassRec; - -externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec; - - -/* fields for the Quick Help widget record */ - -/* reuse the CommonHelpStuff structure from HelpDialogP.h */ -/* reuse the BacktrackStuff structure from HelpDialogP.h */ -/* reuse the PrintStuff structure from HelpDialogP.h */ - -typedef struct _DtHelpQuickHelpStuff -{ - int pad; - Widget definitionBox; - Boolean minimize_buttons; - - /* Help Dialog Widgets */ - - Widget displayAreaFrame; - Widget separator; - - Widget closeButton; /* close button */ - XmString closeLabelString; - XtCallbackList closeCallback; - - Widget moreButton; /* Application button */ - XmString moreLabelString; - - Widget backButton; /* Backtrack button */ - XmString backLabelString; - - Widget printButton; /* print button */ - XmString printLabelString; - - Widget helpButton; /* help button */ - XmString helpLabelString; -} _DtHelpQuickHelpStuff; - -typedef struct -{ - _DtHelpDisplayWidgetStuff display; - _DtHelpCommonHelpStuff help; - _DtHelpQuickHelpStuff qhelp; - _DtHelpBacktrackStuff backtr; - _DtHelpPrintStuff print; -} _DtHelpQuickDialogWidgetPart; - - -/**************************************************************** - * - * Full instance record declaration - * - ****************************************************************/ - -typedef struct _DtHelpQuickDialogWidgetRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - _DtHelpQuickDialogWidgetPart qhelp_dialog; -} DtHelpQuickDialogWidgetRec; - - - -/******** Private Function Declarations ********/ -extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate( - Widget wid, - Widget instigator, - XtWidgetGeometry *desired) ; -extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest( - XmGeoMatrix geoSpec) ; -extern void _DtHelpQuickDialogGetCloseLabelString( - Widget wid, - int resource_offset, - XtArgVal *value ); -extern void _DtHelpQuickDialogGetHelpLabelString( - Widget wid, - int resource_offset, - XtArgVal *value ); - -/******** End Private Function Declarations ********/ - - - -#endif /* _DtHelpDialogP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/HelpTermP.h b/cde/lib/DtHelp/HelpTermP.h deleted file mode 100644 index cdf6c783..00000000 --- a/cde/lib/DtHelp/HelpTermP.h +++ /dev/null @@ -1,201 +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: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: FormatTerm.h - ** - ** Project: Cache Creek (Rivers) Project: - ** - ** Description: Public Header file for FormatTerm.c, the terminal access - ** functions. - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpFormatTermP_h -#define _DtHelpFormatTermP_h - - -#ifdef __cplusplus -extern "C" { -#endif - -/************************** - * Link Types and Window - * Hints should match what - * is in Canvas.h - **************************/ -/************************** - * Link Types - **************************/ - -#ifndef CELinkType_Execute -#define CELinkType_Execute 3 -#endif -#ifndef CELinkType_ManPage -#define CELinkType_ManPage 4 -#endif -#ifndef CELinkType_AppDefine -#define CELinkType_AppDefine 5 -#endif -#ifndef CELinkType_SameVolume -#define CELinkType_SameVolume 6 -#endif -#ifndef CELinkType_CrossLink -#define CELinkType_CrossLink 7 -#endif -#ifndef CELinkType_TextFile -#define CELinkType_TextFile 8 -#endif - - -/************************** - * Window Hint Kinds - **************************/ - -#ifndef CEWindowHint_PopupWindow -#define CEWindowHint_PopupWindow 1 -#endif -#ifndef CEWindowHint_CurrentWindow -#define CEWindowHint_CurrentWindow 2 -#endif -#ifndef CEWindowHint_NewWindow -#define CEWindowHint_NewWindow 3 -#endif - -/******** Public Defines Declarations ********/ - -/******** Public Structures Declarations ********/ - - -/***************************************************************************** - * Structure: DtHelpHyperLines - * - * Fields: title Indicates the title of the linked topic. - * specification Contains the hypertext link information. - * hyper_type Specifies the hypertext links type. - * - * - *****************************************************************************/ -typedef struct { - char *title; - char *specification; - int hyper_type; - int win_hint; -} DtHelpHyperLines; - - -/******** Public Function Declarations ********/ - -/***************************************************************************** - * Function: extern void _DtHelpFreeTopicData ( - * char **helpList, - * DtHelpHyperLines *hyperList) - * - * - * Parameters: helpList Specifies the parent widget ID. - * hyperList Specifies the name of the created dialog - * - * Return Value: void. - * - * Purpose: Free up the info gotten by _DtHelpGetTopicData. - * - *****************************************************************************/ -extern void _DtHelpFreeTopicData ( - char **helpList, - DtHelpHyperLines *hyperList); - - - -/***************************************************************************** - * Function: extern int _DtHelpGetTopicData( - * char *helpVolume, - * char *locationID, - * int maxColumns, - * char ***helpList, - * DtHelpHyperLines **hyperList); - * - * Parameters: - * - * - * Return Value: int value, -1 implies that the function call failed, a - * value of 0, implies that the call was successful. - * - * Purpose: Allows developers to extract semi-formatted ASCII data - * from a Cache Creek help file. - * - *****************************************************************************/ -extern int _DtHelpGetTopicData ( - char *helpVolume, - char *locationID, - int maxColumns, - char ***helpList, - DtHelpHyperLines **hyperList); - - - -/***************************************************************************** - * Function: extern int _DtHelpProcessLinkData( - * DtHelpHyperLines *hyperLine, - * char **helpVolume, - * char **locationId ) - * - * - * Parameters: - * - * - * Return Value: int value, -1 implies that the function call failed, a - * value of 0, implies that the call was successful. - * - * Purpose: This function is used in conjunction with the - * _DtHelpGetTopicData() function call to provide developers - * with a mechanism in which they can traverse Cache Creek - * hypertext links. This call will return the file and - * locationid information that when used with the - * DtGetTopicData function will retrrieve the help text - * and new hypertext information associated with the previous - * hypertext link information. - * - *****************************************************************************/ -extern int _DtHelpProcessLinkData ( - char *ref_volume, - DtHelpHyperLines *hyperLine, - char **helpVolume, - char **locationId); - - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - - -#endif /* _DtHelpFormatTermP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/HelposI.h b/cde/lib/DtHelp/HelposI.h deleted file mode 100644 index bf405885..00000000 --- a/cde/lib/DtHelp/HelposI.h +++ /dev/null @@ -1,159 +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: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: DtosI.h - ** - ** Project: Rivers Project, - ** - ** Description: Internal header file for our Dtos.c module - ** ----------- - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtosI_h -#define _DtosI_h - - -#ifndef NO_MESSAGE_CATALOG -# define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s) -#else -# define _DTGETMESSAGE(set, n, s) s -#endif - - -/***************************************************************************** - * Function: Boolean _DtHelpOSGetHomeDirName( - * - * - * Parameters: Output string, size of output string buffer - * - * Return Value: String. - * - * - * Description: - * - *****************************************************************************/ -extern void _DtHelpOSGetHomeDirName( - String outptr, - size_t len); - -/***************************************************************************** - * Function: _DtHelpGetUserSearchPath( - * - * - * Parameters: - * - * Return Value: String, owned by caller. - * - * - * Description: - * Gets the user search path for use - * when searching for a volume. - * Takes path from the environment, - * or uses the default path. - * - *****************************************************************************/ -String _DtHelpGetUserSearchPath(void); - - -/***************************************************************************** - * Function: _DtHelpGetSystemSearchPath( - * - * - * Parameters: - * - * Return Value: String, owned by caller. - * - * - * Description: - * Gets the system search path for use - * when searching for a volume. - * Takes path from the environment, - * or uses the default path. - * - *****************************************************************************/ -String _DtHelpGetSystemSearchPath(void); - - - -/***************************************************************************** - * Function: Boolean _DtHelpGetMessage( - * - * - * Parameters: - * - * Return Value: char * - * - * - * Description: This function will retreive the requested message from the - * cache proper cache creek message catalog file. - * - *****************************************************************************/ -extern char *_DtHelpGetMessage( - int set, - int n, - char *s); - - -/***************************************************************************** - * Function: char * _DtHelpGetLocale( - * - * - * Parameters: - * - * Return Value: char * - * - * - * Description: Returns the value of LC_MESSAGES from the environ. - * If that is NULL, returns the value of LANG form the environ. - * If that is NULL, returns NULL. - * - *****************************************************************************/ -extern char *_DtHelpGetLocale(void); - - -#endif /* _DtosI_h */ -/* Do not add anything after this endif. */ - - - - - - - - - - - - - diff --git a/cde/lib/DtHelp/HourGlassI.h b/cde/lib/DtHelp/HourGlassI.h deleted file mode 100644 index 72e96451..00000000 --- a/cde/lib/DtHelp/HourGlassI.h +++ /dev/null @@ -1,120 +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: HourGlassI.h /main/5 1995/10/26 12:27:38 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: HourGlassI.h - ** - ** Project: Cache Creek - ** - ** Description: Internal include file for HourGlass Library. - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _hourglassI_h -#define _hourglassI_h - -/* DtHelpGetHourGlassCursor - - * - * Builds and returns the appropriate HourGlass cursor. - */ - -extern Cursor DtHelpGetHourGlassCursor( - Display *dpy) ; - -/* DtHelpTurnOnHourGlass - - * - * Gets and displays an hourglass cursor in the window of the widget - * which is passed in to the funciton. - */ - -extern void _DtHelpTurnOnHourGlass( - Widget w) ; - - /* Widget widget; - * - * widget is the toplevel shell of the window you want - * the hourglass cursor to appear in. - */ - - -/* DtHelpTurnOffHourGlass - - * - * Removes the hourglass cursor from the window of the widget - * which is passed in to the funciton. - */ - -extern void _DtHelpTurnOffHourGlass( - Widget w) ; - - /* Widget widget; - * - * widget is the toplevel shell of the window you want - * to remove hourglass cursor from. - */ - -/* DtHelpTurnOnNoEnter - - * - * Removes the hourglass cursor from the window of the widget - * which is passed in to the funciton. - */ - -extern void _DtHelpTurnOnNoEnter( - Widget w) ; - - /* Widget widget; - * - * widget is the toplevel shell of the window you want - * to remove hourglass cursor from. - */ - -/* DtHelpTurnOffNoEnter - - * - * Removes the hourglass cursor from the window of the widget - * which is passed in to the funciton. - */ - -extern void _DtHelpTurnOffNoEnter( - Widget w) ; - - /* Widget widget; - * - * widget is the toplevel shell of the window you want - * to remove hourglass cursor from. - */ - - -#endif /* _hourglassI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/JpegUtilsI.h b/cde/lib/DtHelp/JpegUtilsI.h deleted file mode 100644 index 4b51dd45..00000000 --- a/cde/lib/DtHelp/JpegUtilsI.h +++ /dev/null @@ -1,48 +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: JpegUtilsI.h /main/3 1996/10/06 19:37:31 rws $ */ -#ifndef _DtJpegUtilsI_h -#define _DtJpegUtilsI_h - -/* Include files */ - -#include -#include "GraphicsP.h" - -/* Function prototypes */ - -/* Creates a pixmap from a jpeg stream */ -enum _DtGrLoadStatus jpeg_to_ximage ( - _DtGrStream *stream, - Screen *screen, - Visual *visual, - Dimension *in_out_width, - Dimension *in_out_height, - XImage **ximage, - XColor **xcolors, - int *ncolors, - int *xres -); - -#endif /* _DtJpegUtilsI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/LinkMgrP.h b/cde/lib/DtHelp/LinkMgrP.h deleted file mode 100644 index d4983cfa..00000000 --- a/cde/lib/DtHelp/LinkMgrP.h +++ /dev/null @@ -1,81 +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: LinkMgrP.h /main/2 1996/05/09 03:43:50 drk $ */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: LinkMgrP.h - ** - ** Project: - ** - ** Description: Public Header file for the Ling Manager - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtCvLinkMgrP_h -#define _DtCvLinkMgrP_h - - -#ifdef __cplusplus -extern "C" { -#endif - -/******** Typedef Structures Declarations ********/ -#if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrI_h) -typedef struct _dtCvLinkDb* _DtCvLinkDb; -#endif - -/******** Public Function Declarations ********/ - -extern int _DtLinkDbAddLink ( - _DtCvLinkDb link_db, - char *id, - char *spec, - int type, - int hint, - char *description); -extern int _DtLinkDbAddSwitch ( - _DtCvLinkDb link_db, - char *id, - char *interp, - char *cmd, - char *branches); -extern _DtCvLinkDb _DtLinkDbCreate (void); -extern void _DtLinkDbDestroy (_DtCvLinkDb link_db); -extern void _DtLinkDbRemoveLink( - _DtCvLinkDb link_data, - int link_index); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtCvLinkMgrP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/RegionI.h b/cde/lib/DtHelp/RegionI.h deleted file mode 100644 index bde5cc04..00000000 --- a/cde/lib/DtHelp/RegionI.h +++ /dev/null @@ -1,67 +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: RegionI.h /main/3 1996/05/09 03:44:34 drk $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: RegionI.h - ** - ** Project: Cde Help System - ** - ** Description: Defines the Region structure. - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpRegionI_h -#define _DtHelpRegionI_h - -/******** Public Enum Declarations ********/ - -enum _dtHelpDARegType - { - _DtHelpDAGraphic, - _DtHelpDASpc - }; - -typedef enum _dtHelpDARegType _DtHelpDARegType; - -/******** Public Structure Declarations ********/ - -typedef struct _dtHelpDARegion { - short inited; - _DtHelpDARegType type; - _DtCvPointer handle; -} _DtHelpDARegion; - -typedef struct _dtHelpDASpcInfo { - char *name; - _DtHelpFontHints spc_fonts; -} _DtHelpDASpcInfo; - -#endif /* _DtHelpRegionI_h */ diff --git a/cde/lib/DtHelp/SetListI.h b/cde/lib/DtHelp/SetListI.h deleted file mode 100644 index 40e1fd59..00000000 --- a/cde/lib/DtHelp/SetListI.h +++ /dev/null @@ -1,79 +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: SetListI.h /main/6 1995/12/08 13:00:59 cde-hal $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: SetList.h - ** - ** Project: TextGraphic Display routines - ** - ** Description: Header file for SetListTG.h - ** - ** - ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company - ** - ** (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 _DtHelpSetListI_h -#define _DtHelpSetListI_h - -#ifdef __cplusplus -extern "C" { -#endif - -extern XtPointer _DtHelpDisplayAreaData( - XtPointer client_data); -extern void _DtHelpDisplayAreaDimensionsReturn ( - XtPointer client_data, - short *ret_rows, - short *ret_columns ); -extern void _DtHelpDisplayAreaSetList ( - XtPointer client_data, - XtPointer topicHandle, - Boolean append_flag, - int scroll_percent); -extern Widget _DtHelpDisplayAreaWidget( - XtPointer client_data); -extern int _DtHelpGetScrollbarValue ( - XtPointer client_data); -extern Boolean _DtHelpSetScrollBars ( - XtPointer client_data, - Dimension new_width, - Dimension new_height ); -extern int _DtHelpUpdatePath ( - DtHelpDispAreaStruct *pDAS, - _DtHelpVolumeHdl volume_handle, - char *loc_id); - -#ifdef __cplusplus -} -#endif -#endif /* _DtHelpSetListI_h */ diff --git a/cde/lib/DtHelp/XUICreateI.h b/cde/lib/DtHelp/XUICreateI.h deleted file mode 100644 index d5bdcf7d..00000000 --- a/cde/lib/DtHelp/XUICreateI.h +++ /dev/null @@ -1,117 +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: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: XUICreateI.h - ** - ** Project: Cde Help System - ** - ** Description: Internal file for XUICreate.c - ** - **************************************************************************** - ************************************<+>*************************************/ -/* - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, - 1993, 1994, 1996 Hewlett-Packard Company. - * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. - * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. - * (c) Copyright 1993, 1994, 1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef _DtHelpCreateI_h -#define _DtHelpCreateI_h - -#include "Dt/CanvasP.h" - -#ifdef __cplusplus -extern "C" { -#endif -/***************************************************************************** - * Defines - *****************************************************************************/ -/* - * scroll bar flags - */ -#define _DtHelpNONE 0 -#define _DtHelpSTATIC 1 -#define _DtHelpAS_NEEDED 2 - -#define _DtHelpVERTICAL_SCROLLBAR 0 -#define _DtHelpHORIZONTAL_SCROLLBAR 1 - -/* - * scroll bar macros - */ -#define _DtHelpSET_AS_NEEDED(x,y) ((x) | (1 << y)) -#define _DtHelpIS_AS_NEEDED(x, y) ((x) & (1 << y)) - -/***************************************************************************** - * Semi-Public Routines - *****************************************************************************/ -extern void __DtHelpInitializeFontList ( - Display *dpy, - XFontStruct *default_font); - -/***************************************************************************** - * Public Routines - *****************************************************************************/ -extern XtPointer _DtHelpCreateDisplayArea ( - Widget parent, - char *name, - short vert_flag, - short horiz_flag, - Boolean marker_flag, - int rows, - int columns, - void (*hyperTextCB)(), - void (*resizeCB)(), - int (*exec_ok_routine)(), - XtPointer client_data, - XmFontList default_list ); - -extern XtPointer _DtHelpCreateOutputArea ( - Widget parent, - char *name, - short vert_flag, - short horiz_flag, - Boolean marker_flag, - _DtCvValue honor_size, - _DtCvRenderType render_type, - Dimension width, - Dimension height, - unsigned short media_resolution, - void (*hyperTextCB)(), - void (*resizeCB)(), - int (*exec_ok_routine)(), - XtPointer client_data, - XmFontList default_list ); - -#ifdef __cplusplus -} -#endif -#endif /* _DtHelpCreateI_h */ diff --git a/cde/lib/DtHelp/XbmUtilsI.h b/cde/lib/DtHelp/XbmUtilsI.h deleted file mode 100644 index afb4d082..00000000 --- a/cde/lib/DtHelp/XbmUtilsI.h +++ /dev/null @@ -1,57 +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: XbmUtilsI.h /main/2 1996/05/09 03:45:01 drk $ */ -#ifndef _DtXbmUtilsI_h -#define _DtXbmUtilsI_h - -/* Include files */ - -#include -#include "GraphicsP.h" - -/* Function prototypes */ - -/* Reads an XBM stream into a data buffer */ -int _DtGrReadBitmapStreamData ( - _DtGrStream *fstream, - unsigned int *width, /* RETURNED */ - unsigned int *height, /* RETURNED */ - unsigned char **data, /* RETURNED */ - int *x_hot, /* RETURNED */ - int *y_hot /* RETURNED */ -); - -/* Converts an XBM stream into an X pixmap */ -int _DtGrReadBitmapStream ( - Display *display, - Drawable d, - _DtGrStream *stream, - unsigned int *width, /* RETURNED */ - unsigned int *height, /* RETURNED */ - Pixmap *pixmap, /* RETURNED */ - int *x_hot, /* RETURNED */ - int *y_hot /* RETURNED */ -); - -#endif /* _DtXbmUtilsI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtHelp/bufioI.h b/cde/lib/DtHelp/bufioI.h deleted file mode 100644 index b0b9db78..00000000 --- a/cde/lib/DtHelp/bufioI.h +++ /dev/null @@ -1,93 +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: bufioI.h /main/5 1995/10/26 12:36:33 rswiston $ */ -#ifndef _DtHelpbufioI_h -#define _DtHelpbufioI_h - -#include /* for FILE */ - -#ifndef NULL -#define NULL 0 -#endif - -#define BUFFILESIZE 4096 -#define BUFFILEEOF -1 - -typedef unsigned char BufChar; - -typedef struct _buffile { - BufChar *bufp; - int left; - BufChar buffer[BUFFILESIZE]; - int (*io)(/* BufFilePtr f */); - int (*skip)(/* BufFilePtr f, int count */); - int (*close)(/* BufFilePtr f */); - char *hidden; -} BufFileRec, *BufFilePtr; - -typedef struct _compressInfo{ - int fd; - int size; -} CECompressInfo, *CECompressInfoPtr; - -extern BufFilePtr __DtBufFileCreate (); -extern BufFilePtr _DtHelpCeBufFilePushZ (); -extern BufFilePtr _DtHelpCeBufFileOpenWr (); -extern int _DtHelpCeBufFileFlush (); -#define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f)) -#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->io) (c,f)) -#define BufFilePutBack(c,f) { (f)->left++; *(--(f)->bufp) = (c); } -#define BufFileSkip(f,c) ((*(f)->skip) (f, c)) - -#define FileStream(f) ((FILE *)(f)->hidden) - -extern void _DtHelpCeBufFileClose ( - BufFilePtr f, - int doClose); -extern BufFilePtr _DtHelpCeBufFileCreate ( - char *hidden, - int (*io)(), - int (*skip)(), - int (*close)()); -extern int _DtHelpCeBufFileRd ( - BufFilePtr f, - char *buffer, - int request_size); -extern BufFilePtr _DtHelpCeBufFileRdWithFd ( - int fd); -extern BufFilePtr _DtHelpCeBufFileRdRawZ ( - CECompressInfoPtr file_info); -extern BufFilePtr _DtHelpCeCreatePipeBufFile ( - FILE *stream); -extern int _DtHelpCeUncompressFile ( - char *in_file, - char *out_file); - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - -#endif /* _DtHelpbufioI_h */ diff --git a/cde/lib/DtMrm/Mrm.h b/cde/lib/DtMrm/Mrm.h deleted file mode 100644 index 77892626..00000000 --- a/cde/lib/DtMrm/Mrm.h +++ /dev/null @@ -1,60 +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: Mrm.h /main/1 1996/04/05 14:41:44 mgreess $ */ -/* - * Common Desktop Environment - * - * (c) Copyright 1996 Hewlett-Packard Company - * (c) Copyright 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 Digital Equipment Corp. - * (c) Copyright 1995 Fujitsu Limited - * (c) Copyright 1995 Hitachi, Ltd. - * - * - * RESTRICTED RIGHTS LEGEND - * - * Use, duplication, or disclosure by the U.S. Government is subject to - * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in - * Technical Data and Computer Software clause in DFARS 252.227-7013. Rights - * for non-DOD U.S. Government Departments and Agencies are as set forth in - * FAR 52.227-19(c)(1,2). - * - * Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A. - * International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. - * Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A. - * Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A. - * Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A. - * Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan - * Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan - */ -#ifndef MRM_H -#define MRM_H - -/* DtMrmInit.c */ -extern void DtMrmInitialize(void); - -#endif /* MRM_H */ -/* DON'T ADD STUFF AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/Print.h b/cde/lib/DtPrint/Print.h deleted file mode 100644 index 4d72b64f..00000000 --- a/cde/lib/DtPrint/Print.h +++ /dev/null @@ -1,237 +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: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */ -/* - * DtPrint/Print.h - */ -/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC. - * ALL RIGHTS RESERVED - * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. - * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 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 _DtPrint_h -#define _DtPrint_h - -#include -#if 0 && defined(PRINTING_SUPPORTED) -#include -#endif /* PRINTING_SUPPORTED */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class record constants - */ -externalref WidgetClass dtPrintSetupBoxWidgetClass; - -typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass; -typedef struct _DtPrintSetupBoxRec * DtPrintSetupBoxWidget; - - -#ifndef DtIsPrintSetupBox -#define DtIsPrintSetupBox(w) (XtIsSubclass (w, dtPrintSetupBoxWidgetClass)) -#endif - -/* - * Resource Names - */ -#define DtNcancelCallback "cancelCallback" -#define DtNclosePrintDisplayCallback "closePrintDisplayCallback" -#define DtNcopies "copies" -#define DtNdescription "description" -#define DtNdestroyContextCallback "destroyContextCallback" -#define DtNfileName "fileName" -#ifndef DtNminimizeButtons -# define DtNminimizeButtons "minimizeButtons" -#endif -#define DtNoptionCount "optionCount" -#define DtNoptions "options" -#define DtNprintCallback "printCallback" -#define DtNprintDestination "printDestination" -#define DtNprinterInfoProc "printerInfoProc" -#define DtNprinterName "printerName" -#define DtNprintSetupMode "printSetupMode" -#define DtNselectFileProc "selectFileProc" -#define DtNselectPrinterProc "selectPrinterProc" -#define DtNsetupCallback "setupCallback" -#define DtNverifyPrinterProc "verifyPrinterProc" -#define DtNworkAreaLocation "workAreaLocation" - -#define DtCCancelCallback "CancelCallback" -#define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback" -#define DtCCopies "Copies" -#define DtCDescription "Description" -#define DtCDestroyContextCallback "DestroyContextCallback" -#define DtCFileName "FileName" -#ifndef DtCMinimizeButtons -# define DtCMinimizeButtons "MinimizeButtons" -#endif -#define DtCOptionCount "OptionCount" -#define DtCOptions "Options" -#define DtCPrintCallback "PrintCallback" -#define DtCPrintDestination "PrintDestination" -#define DtCPrinterInfoProc "PrinterInfoProc" -#define DtCPrinterName "PrinterName" -#define DtCPrintSetupMode "PrintSetupMode" -#define DtCSelectFileProc "SelectFileProc" -#define DtCSelectPrinterProc "SelectPrinterProc" -#define DtCSetupCallback "SetupCallback" -#define DtCVerifyPrinterProc "VerifyPrinterProc" -#define DtCWorkAreaLocation "WorkAreaLocation" - -#define DtRPrintSetupProc "PrintSetupProc" - -/* - * DtNsetupMode Resource Values - */ -enum { - DtPRINT_SETUP_PLAIN, - DtPRINT_SETUP_XP -}; - -/* - * DtNworkAreaLocation Resource Values - */ -enum { - DtWORK_AREA_NONE, - DtWORK_AREA_TOP, - DtWORK_AREA_TOP_AND_BOTTOM, - DtWORK_AREA_BOTTOM -}; - -/* - * DtNprintDestination Resource Values - */ -enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE }; - -/* - * DtNprinterNameMode Resource Values - */ -enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME }; - -/* - * Mode values for DtPrintSetupBoxResetConnection() - */ -typedef enum { - DtPRINT_CLOSE_CONNECTION, - DtPRINT_RELEASE_CONNECTION -} DtPrintResetConnectionMode; - -/* - * Callback Reasons - */ -enum { - DtPRINT_CR_NONE, - DtPRINT_CR_CANCEL, - DtPRINT_CR_CLOSE_PRINT_DISPLAY, - DtPRINT_CR_PRINT, - DtPRINT_CR_SETUP -}; - -/* - * DtPrint proecdure return values - */ -enum { - DtPRINT_SUCCESS, - DtPRINT_BAD_PARM, - DtPRINT_FAILURE, - DtPRINT_INVALID_DISPLAY, - DtPRINT_NOT_XP_DISPLAY, - DtPRINT_NO_CONNECTION, - DtPRINT_NO_DEFAULT, - DtPRINT_NO_DEFAULT_DISPLAY, - DtPRINT_NO_PRINTER, - DtPRINT_PRINTER_MISSING -}; - -enum { - DtPRINT_HINT_MESSAGES_OK, - DtPRINT_HINT_NO_MESSAGES -}; - -/* - * PrintSetupBox Callback Structure Definition - */ -typedef struct _DtPrintSetupData -{ - String printer_name; - Display *print_display; -#ifdef PRINTING_SUPPORT - XPContext print_context; -#endif /* PRINTING_SUPPORTED */ - XtEnum destination; - String dest_info; - XtEnum messages_hint; -} DtPrintSetupData; - -typedef struct _DtPrintSetupCallbackStruct -{ - int reason; - XEvent *event; - DtPrintSetupData *print_data; -} DtPrintSetupCallbackStruct; - -/* - * PrintSetupBox Procedure Resource Type Definition - */ -typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*); - -/* - * Public Function Declarations - */ -extern Widget DtCreatePrintSetupBox( - Widget p, - String name, - ArgList args, - Cardinal n) ; -extern Widget DtCreatePrintSetupDialog( - Widget ds_p, - String name, - ArgList sb_args, - Cardinal sb_n) ; -extern DtPrintSetupData* DtPrintCopySetupData( - DtPrintSetupData* target, - const DtPrintSetupData* source); -extern XtEnum DtPrintFillSetupData( - Widget psub, - DtPrintSetupData* print_data); -extern void DtPrintFreeSetupData( - DtPrintSetupData* target); -extern XtEnum DtPrintResetConnection( - Widget psub, - DtPrintResetConnectionMode m); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPrint_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PrintDlgMgrP.h b/cde/lib/DtPrint/PrintDlgMgrP.h deleted file mode 100644 index 1f7eaef5..00000000 --- a/cde/lib/DtPrint/PrintDlgMgrP.h +++ /dev/null @@ -1,52 +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: PrintDlgMgrP.h /main/3 1996/08/12 18:40:55 cde-hp $ */ -/* - * DtPrint/PrintDlgMgrP.h - */ -/* - * (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 _PrintDlgMgrP_h -#define _PrintDlgMgrP_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern Widget _DtCreatePDMJobSetup(Widget Parent); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPrintDlgMgrP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PrintI.h b/cde/lib/DtPrint/PrintI.h deleted file mode 100644 index 3b66fac9..00000000 --- a/cde/lib/DtPrint/PrintI.h +++ /dev/null @@ -1,72 +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: PrintI.h /main/1 1996/10/31 11:19:07 drk $ - * - * (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 _DtPrintI_h -#define _DtPrintI_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/******** Conditionally defined macros for thread safe DtPrint ******/ -#ifdef XTHREADS - -#define _DtPrintWidgetToAppContext(w) \ - XtAppContext app = XtWidgetToApplicationContext(w) - -#define _DtPrintDisplayToAppContext(d) \ - XtAppContext app = XtDisplayToApplicationContext(d) - -#define _DtPrintAppLock(app) XtAppLock(app) -#define _DtPrintAppUnlock(app) XtAppUnlock(app) -#define _DtPrintProcessLock() XtProcessLock() -#define _DtPrintProcessUnlock() XtProcessUnlock() - -#else /* XTHREADS */ - -#define _DtPrintWidgetToAppContext(w) -#define _DtPrintDisplayToAppContext(d) -#define _DtPrintAppLock(app) -#define _DtPrintAppUnlock(app) -#define _DtPrintProcessLock() -#define _DtPrintProcessUnlock() - -#endif /* XTHREADS */ - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPrintI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PrintMsgsP.h b/cde/lib/DtPrint/PrintMsgsP.h deleted file mode 100644 index c4ae5ff6..00000000 --- a/cde/lib/DtPrint/PrintMsgsP.h +++ /dev/null @@ -1,203 +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: PrintMsgsP.h /main/9 1996/08/19 17:12:12 cde-hp $ */ -/* - * DtPrint/PrintMsgsP.h - */ -/* - * (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 _DtPrintMsgsP_h -#define _DtPrintMsgsP_h - -#ifdef I18N_MSG -#include -#define DTPRINT_GETMESSAGE(set, number, string) \ - _DtPrintGetMessage(set, number, string) - -#else /* I18N_MSG */ -#define DTPRINT_GETMESSAGE(set, number, string) string -#endif /* I18N_MSG */ - -/*** const causes the HP compiler to complain. Remove reference until *** - *** the build and integration people can figure out how to get this to *** - *** work. ***/ - -/* #define CONST const */ -#define CONST - - -/* - * extern declarations for PrintSetupBox widget messages - */ -extern CONST char _DtPrMsgPrintSetupBox_0000[]; -extern CONST char _DtPrMsgPrintSetupBox_0001[]; -extern CONST char _DtPrMsgPrintSetupBox_0002[]; -extern CONST char _DtPrMsgPrintSetupBox_0003[]; -extern CONST char _DtPrMsgPrintSetupBox_0004[]; -extern CONST char _DtPrMsgPrintSetupBox_0005[]; -extern CONST char _DtPrMsgPrintSetupBox_0006[]; -extern CONST char _DtPrMsgPrintSetupBox_0007[]; -extern CONST char _DtPrMsgPrintSetupBox_0008[]; -extern CONST char _DtPrMsgPrintSetupBox_0009[]; -extern CONST char _DtPrMsgPrintSetupBox_0010[]; -extern CONST char _DtPrMsgPrintSetupBox_0011[]; -extern CONST char _DtPrMsgPrintSetupBox_0012[]; -extern CONST char _DtPrMsgPrintSetupBox_0013[]; -extern CONST char _DtPrMsgPrintSetupBox_0014[]; -extern CONST char _DtPrMsgPrintSetupBox_0015[]; -extern CONST char _DtPrMsgPrintSetupBox_0016[]; -extern CONST char _DtPrMsgPrintSetupBox_0017[]; -extern CONST char _DtPrMsgPrintSetupBox_0018[]; -extern CONST char _DtPrMsgPrintSetupBox_0019[]; -extern CONST char _DtPrMsgPrintSetupBox_0020[]; -extern CONST char _DtPrMsgPrintSetupBox_0021[]; -extern CONST char _DtPrMsgPrintSetupBox_0022[]; -extern CONST char _DtPrMsgPrintSetupBox_0023[]; -extern CONST char _DtPrMsgPrintSetupBox_0024[]; -extern CONST char _DtPrMsgPrintSetupBox_0025[]; -extern CONST char _DtPrMsgPrintSetupBox_0026[]; -extern CONST char _DtPrMsgPrintSetupBox_0027[]; -extern CONST char _DtPrMsgPrintSetupBox_0028[]; -extern CONST char _DtPrMsgPrintSetupBox_0029[]; -extern CONST char _DtPrMsgPrintSetupBox_0030[]; -extern CONST char _DtPrMsgPrintSetupBox_0031[]; -extern CONST char _DtPrMsgPrintSetupBox_0032[]; -extern CONST char _DtPrMsgPrintSetupBox_0033[]; -extern CONST char _DtPrMsgPrintSetupBox_0034[]; -extern CONST char _DtPrMsgPrintSetupBox_0035[]; -extern CONST char _DtPrMsgPrintSetupBox_0036[]; - -/* - * Message set for PrintSetupBox widget - */ -#define MS_PrintSetupBox 1 - -/* Message IDs for PrintSetupBox */ -#define PSUB_WARN_WA_LOCATION 1 -#define PSUB_SELECT_PRINTER 2 -#define PSUB_PRINT_TO_FILE 3 -#define PSUB_SELECT_FILE 4 -#define PSUB_CANCEL 5 -#define PSUB_COPIES 6 -#define PSUB_HELP 7 -#define PSUB_PRINT 8 -#define PSUB_PRINTER_NAME 9 -#define PSUB_SETUP 10 -#define PSUB_DESCRIPTION 11 -#define PSUB_WARN_COPY_COUNT 12 -#define PSUB_WARN_SETUP_MODE 13 -#define PSUB_WARN_SETUP_MODE_CHANGE 14 -#define PSUB_PRINTER_INFO 15 -#define PSUB_INVALID_PRINTER_TITLE 16 -#define PSUB_INVALID_PRINTER_MESSAGE 17 -#define PSUB_INVALID_DISPLAY_MESSAGE 18 -#define PSUB_NOT_XP_DISPLAY_MESSAGE 19 -#define PSUB_NO_DEFAULT_MESSAGE 20 -#define PSUB_NO_DEFAULT_DISPLAY_MESSAGE 21 -#define PSUB_PRINTER_MISSING_MESSAGE 22 -#define PSUB_WARN_PRINT_DESTINATION 23 -#define PSUB_WARN_CT_CONVERSION 24 -#define PSUB_WARN_CONVERSION_ARGS 25 -#define PSUB_PRLIST_ERROR_TITLE 26 -#define PSUB_NO_PRINTERS_MESSAGE 27 -#define PSUB_DESC_UNAVAILABLE 28 -#define PSUB_SELECT_FILE_TITLE 29 -#define PSUB_PRINTER_INFO_TITLE 30 -#define PSUB_FORMAT_LABEL 31 -#define PSUB_MODEL_LABEL 32 -#define PSUB_PRINTER_LIST_LABEL 33 -#define PSUB_MORE_PRINTERS_TITLE 34 -#define PSUB_PRINT_TO_PRINTER 35 -#define PSUB_FILE_NAME 36 -#define PSUB_HELP_DLG_TITLE 37 - -/* - * extern declarations for _DtPrint frame widgets - */ -extern CONST char _DtPrMsgPrintOption_0000[]; -extern CONST char _DtPrMsgPrintOption_0001[]; -extern CONST char _DtPrMsgPrintOption_0002[]; -extern CONST char _DtPrMsgPrintOption_0003[]; -extern CONST char _DtPrMsgPrintOption_0004[]; -extern CONST char _DtPrMsgPrintOption_0005[]; -extern CONST char _DtPrMsgPrintOption_0006[]; -extern CONST char _DtPrMsgPrintOption_0007[]; -extern CONST char _DtPrMsgPrintOption_0008[]; -extern CONST char _DtPrMsgPrintOption_0009[]; - -/* - * Message set for _DtPrint frame widgets - */ -#define MS_PrintOptionsSet 2 - -/* - * Message IDs for _DtPrint frame widgets - */ -#define DTPO_MARGINS 1 -#define DTPO_TOP 2 -#define DTPO_RIGHT 3 -#define DTPO_BOTTOM 4 -#define DTPO_LEFT 5 - -#define DTPO_HEADERS_N_FOOTERS 6 -#define DTPO_TOP_LEFT 7 -#define DTPO_TOP_RIGHT 8 -#define DTPO_BOTTOM_LEFT 9 -#define DTPO_BOTTOM_RIGHT 10 - -/* - * extern declarations for PrintDlgMgr module - */ -extern CONST char _DtPrMsgPrintDlgMgr_0000[]; -extern CONST char _DtPrMsgPrintDlgMgr_0001[]; -extern CONST char _DtPrMsgPrintDlgMgr_0002[]; - -/* - * Message set for PrintDlgMgr module - */ -#define MS_PrintDlgMgrSet 3 - -/* - * Message IDs for PrintDlgMgr module - */ -#define DTPDM_SEND_MAIL_LABEL 1 -#define DTPDM_BANNER_LABEL 2 -#define DTPDM_SPOOL_OPTS_LABEL 3 - - -#ifdef I18N_MSG -extern char * _DtPrintGetMessage( - int set, - int n, - char * s); - -#endif /* I18N_MSG */ - -#endif /* _DtPrintMsgsP_h */ diff --git a/cde/lib/DtPrint/PrintOptionsP.h b/cde/lib/DtPrint/PrintOptionsP.h deleted file mode 100644 index 6a172268..00000000 --- a/cde/lib/DtPrint/PrintOptionsP.h +++ /dev/null @@ -1,199 +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: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */ - -#ifndef _DT_PRINT_OPTIONSP_H -#define _DT_PRINT_OPTIONSP_H - -/* - *+SNOTICE - * - * $:$ - * - * 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. - * - *+ENOTICE - */ -/* - - Common Desktop Environment - - (c) Copyright 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 Digital Equipment Corp. - (c) Copyright 1995 Fujitsu Limited - (c) Copyright 1995 Hitachi, Ltd. - - - RESTRICTED RIGHTS LEGEND - -Use, duplication, or disclosure by the U.S. Government is subject to -restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in -Technical Data and Computer Software clause in DFARS 252.227-7013. Rights -for non-DOD U.S. Government Departments and Agencies are as set forth in -FAR 52.227-19(c)(1,2). - -Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A. -International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. -Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A. -Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A. -Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A. -Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan -Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan - */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Message Catalog Lookup - */ -#define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000) -#define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001) -#define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002) -#define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003) -#define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004) - -#define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005) -#define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006) -#define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007) -#define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008) -#define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009) - - -/* - * Header/Footer Frame API - */ -typedef enum { - DTPRINT_OPTION_HEADER_LEFT, - DTPRINT_OPTION_HEADER_RIGHT, - DTPRINT_OPTION_FOOTER_LEFT, - DTPRINT_OPTION_FOOTER_RIGHT -} _DtPrintHdrFtrEnum; - -extern Widget _DtPrintCreateHdrFtrFrame( - Widget parent, - int nspecs, - char **spec_strings, - void **spec_data - ); - -extern Widget _DtPrintHdrFtrFrameEnumToWidget( - Widget frame, - _DtPrintHdrFtrEnum which - ); - -extern void _DtPrintHdrFtrFrameMenuWidgets( - Widget frame, - Widget *menu, - int *nmenu_buttons, - Widget **menu_buttons - ); - -extern void *_DtPrintGetHdrFtrData( - Widget widget - ); - -extern int _DtPrintGetHdrFtrIndex( - Widget widget - ); - -extern char *_DtPrintGetHdrFtrString( - Widget widget - ); - -extern void _DtPrintSetHdrFtrByData( - Widget widget, - void *data - ); - -extern void _DtPrintSetHdrFtrByIndex( - Widget widget, - int index - ); - -extern void _DtPrintSetHdrFtrByString( - Widget widget, - char *string - ); - - -/* - * Margin Frame API - */ -typedef enum { - DTPRINT_OPTION_MARGIN_TOP, - DTPRINT_OPTION_MARGIN_RIGHT, - DTPRINT_OPTION_MARGIN_BOTTOM, - DTPRINT_OPTION_MARGIN_LEFT -} _DtPrintMarginEnum; - -extern Widget _DtPrintCreateMarginFrame( - Widget parent - ); - -extern Widget _DtPrintMarginFrameEnumToWidget( - Widget frame, - _DtPrintMarginEnum which - ); - -extern char* _DtPrintGetMarginSpec( - Widget margin - ); - -extern void _DtPrintSetMarginSpec( - Widget margin, - char *spec - ); - - - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DT_PRINT_OPTIONSP_H */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PrintSetupBP.h b/cde/lib/DtPrint/PrintSetupBP.h deleted file mode 100644 index b6ff5305..00000000 --- a/cde/lib/DtPrint/PrintSetupBP.h +++ /dev/null @@ -1,536 +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: PrintSetupBP.h /main/16 1996/11/01 15:00:02 cde-hp $ */ -/* - * DtPrint/PrintSetupBP.h - */ -/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC. - * ALL RIGHTS RESERVED - * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. - * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 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 _DtPrintSetupBP_h -#define _DtPrintSetupBP_h - -#include -#include
-#include
- -#ifdef __cplusplus -extern "C" { -#endif - -/* - * ------------------------------------------------------------------------ - * Constant Definitions - * - */ -/* - * Message Catalog Lookup - */ -#define WARN_WORK_AREA_LOCATION DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_WA_LOCATION, _DtPrMsgPrintSetupBox_0000) -#define SELECT_PRINTER_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_SELECT_PRINTER, _DtPrMsgPrintSetupBox_0001) -#define PRINT_TO_FILE_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINT_TO_FILE, _DtPrMsgPrintSetupBox_0002) -#define SELECT_FILE_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_SELECT_FILE, _DtPrMsgPrintSetupBox_0003) -#define CANCEL_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_CANCEL, _DtPrMsgPrintSetupBox_0004) -#define COPIES_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_COPIES, _DtPrMsgPrintSetupBox_0005) -#define HELP_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_HELP, _DtPrMsgPrintSetupBox_0006) -#define PRINT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINT, _DtPrMsgPrintSetupBox_0007) -#define PRINTER_NAME_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINTER_NAME, _DtPrMsgPrintSetupBox_0008) -#define SETUP_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_SETUP, _DtPrMsgPrintSetupBox_0009) -#define DESCRIPTION_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_DESCRIPTION, _DtPrMsgPrintSetupBox_0010) -#define WARN_COPY_COUNT DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_COPY_COUNT, _DtPrMsgPrintSetupBox_0011) -#define WARN_SETUP_MODE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_SETUP_MODE, _DtPrMsgPrintSetupBox_0012) -#define WARN_SETUP_MODE_CHANGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_SETUP_MODE_CHANGE, _DtPrMsgPrintSetupBox_0013) -#define PRINTER_INFO_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINTER_INFO, _DtPrMsgPrintSetupBox_0014) -#define INVALID_PRINTER_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_INVALID_PRINTER_TITLE, _DtPrMsgPrintSetupBox_0015) -#define INVALID_PRINTER_MESSAGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_INVALID_PRINTER_MESSAGE, _DtPrMsgPrintSetupBox_0016) -#define INVALID_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_INVALID_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0017) -#define NOT_XP_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_NOT_XP_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0018) -#define NO_DEFAULT_MESSAGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_NO_DEFAULT_MESSAGE, _DtPrMsgPrintSetupBox_0019) -#define NO_DEFAULT_DISPLAY_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \ - PSUB_NO_DEFAULT_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0020) -#define PRINTER_MISSING_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \ - PSUB_PRINTER_MISSING_MESSAGE, _DtPrMsgPrintSetupBox_0021) -#define WARN_PRINT_DESTINATION DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_PRINT_DESTINATION, _DtPrMsgPrintSetupBox_0022) -#define WARN_CT_CONVERSION DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_CT_CONVERSION, _DtPrMsgPrintSetupBox_0023) -#define WARN_CONVERSION_ARGS DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_WARN_CONVERSION_ARGS, _DtPrMsgPrintSetupBox_0024) -#define PRLIST_ERROR_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRLIST_ERROR_TITLE, _DtPrMsgPrintSetupBox_0025) -#define NO_PRINTERS_MESSAGE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_NO_PRINTERS_MESSAGE, _DtPrMsgPrintSetupBox_0026) -#define DESC_UNAVAILABLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_DESC_UNAVAILABLE, _DtPrMsgPrintSetupBox_0027) -#define SELECT_FILE_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_SELECT_FILE_TITLE, _DtPrMsgPrintSetupBox_0028) -#define PRINTER_INFO_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINTER_INFO_TITLE, _DtPrMsgPrintSetupBox_0029) -#define FORMAT_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_FORMAT_LABEL, _DtPrMsgPrintSetupBox_0030) -#define MODEL_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_MODEL_LABEL, _DtPrMsgPrintSetupBox_0031) -#define PRINTER_LIST_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINTER_LIST_LABEL, _DtPrMsgPrintSetupBox_0032) -#define MORE_PRINTERS_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_MORE_PRINTERS_TITLE, _DtPrMsgPrintSetupBox_0033) -#define PRINT_TO_PRINTER_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_PRINT_TO_PRINTER, _DtPrMsgPrintSetupBox_0034) -#define FILE_NAME_LABEL DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_FILE_NAME, _DtPrMsgPrintSetupBox_0035) -#define HELP_DLG_TITLE DTPRINT_GETMESSAGE( \ - MS_PrintSetupBox, PSUB_HELP_DLG_TITLE, _DtPrMsgPrintSetupBox_0036) -# -/* - * Constants for Use in Allocation Geometry Matrix. - */ -#define DtPSUB_MAX_WIDGETS_VERT 12 - -/* - * ------------------------------------------------------------------------ - * Type Definitions - * - */ -/* - * data private to default resource procedures - */ -typedef struct -{ - String printer_name_ct; - String printer_name; - String description; -} DtPrintSelectPrinterRec, *DtPrintSelectPrinterList; - -typedef struct _DtPrintDefaultProcData -{ - /* - * common data - */ - Widget error_message_box; - XtEnum messages_hint; - Widget help_dialog; - /* - * select file proc - */ - Widget file_selection_box; - /* - * select printer proc - */ - Widget printer_selection_box; - Widget printer_list_box; - String* xp_server_list; - int xp_server_count; - DtPrintSelectPrinterList* printer_lists; - int* printer_counts; - int selected_printer; - Display* select_printer_info_display; -#if 0 && defined(PRINTING_SUPPORTED) - XPContext select_printer_info_context; -#endif /* PRINTING_SUPPORT */ - /* - * printer info proc - */ - Widget printer_info_box; - -} DtPrintDefaultProcData; - -/* - * verify state - */ -typedef enum { - DtPRINT_VERIFIED, - DtPRINT_IN_VERIFY, - DtPRINT_NOT_VERIFIED -} DtPrintVerifyState; - -/* - * Constraint part record for PrintSetupBox widget - */ -typedef struct _DtPrintSetupBoxConstraintPart -{ - char unused; -} DtPrintSetupBoxConstraintPart, * DtPrintSetupBoxConstraint; -/* - * New fields for the PrintSetupBox widget class record - */ -typedef struct -{ - XtCallbackProc list_callback ; - XtPointer extension; /* Pointer to extension record */ -} DtPrintSetupBoxClassPart; -/* - * Full class record declaration - */ -typedef struct _DtPrintSetupBoxClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - DtPrintSetupBoxClassPart print_setup_box_class; -} DtPrintSetupBoxClassRec; - -externalref DtPrintSetupBoxClassRec dtPrintSetupBoxClassRec; - -/* - * New fields for the PrintSetupBox widget record - */ -typedef struct -{ - /* - * synthetic resources - */ - String file_name; - String printer_name; - XmString description_string; - int copies; - /* - * flag resources - */ - Boolean minimize_buttons; - XtEnum print_destination; - XtEnum print_setup_mode; - XtEnum work_area_location; - /* - * procedure resources - */ - DtPrintSetupProc printer_info_proc; - DtPrintSetupProc select_file_proc; - DtPrintSetupProc select_printer_proc; - DtPrintSetupProc verify_printer_proc; - /* - * callback resources - */ - XtCallbackList cancel_callback; - XtCallbackList close_display_callback; - XtCallbackList print_callback; - XtCallbackList setup_callback; - /* - * other resources - */ - XrmOptionDescList options; - Cardinal option_count; - /* - * Xp standard resources - */ - XtEnum xp_printer_name_mode; - /* - * internal flags - */ - Boolean adding_sel_widgets; - DtPrintVerifyState verify_printer_state; - Boolean copy_count_supported; - /* - * internal data - */ - String modal_printer_spec; - Display* print_display; -#if 0 && defined(PRINTING_SUPPORTED) - XPContext print_context; -#endif /* PRINTING_SUPPORTED */ - XtIntervalId timeout_id; - /* - * descendents - */ - Widget bottom_separator; - Widget bottom_work_area; - Widget button_separator; - Widget copies_control; - Widget copies_spin_box; - Widget description; - Widget description_label; - Widget destination_radio_box; - Widget file_name_label; - Widget file_name_text; - Widget help_button; - Widget print_button; - Widget printer_info_button; - Widget printer_name_label; - Widget printer_name_text; - Widget printer_name_combo; - Widget select_file_button; - Widget select_printer_button; - Widget setup_button; - Widget top_separator; - Widget top_work_area; - /* - * data private to the default resource procedures - */ - DtPrintDefaultProcData default_proc_data; - -} DtPrintSetupBoxPart; - -/* - * Full instance record declaration - */ -typedef struct _DtPrintSetupBoxRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - DtPrintSetupBoxPart print_setup_box; -} DtPrintSetupBoxRec; - -/* - * ------------------------------------------------------------------------ - * Macro Definitions - * - */ -/* - * Instance Record Access - */ -#define PSUB_AddingSelWidgets(w) \ - (((DtPrintSetupBoxWidget) w)->print_setup_box.adding_sel_widgets) -#define PSUB_AutoUnmanage(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.auto_unmanage) -#define PSUB_BottomSeparator(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_separator) -#define PSUB_BottomWorkArea(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_work_area) -#define PSUB_ButtonSeparator(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.button_separator) -#define PSUB_ButtonFontList(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.button_font_list) -#define PSUB_CancelButton(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.cancel_button) -#define PSUB_CancelCallback(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.cancel_callback) -#define PSUB_CloseDisplayCallback(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.close_display_callback) -#if 0 && defined(PRINTING_SUPPORTED) -#define PSUB_Context(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_context) -#endif /* PRINTING_SUPPORTED */ -#define PSUB_Copies(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies) -#define PSUB_CopiesControl(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_control) -#define PSUB_CopiesSpinBox(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_spin_box) -#define PSUB_CopyCountSupported(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.copy_count_supported) -#define PSUB_DefaultButton(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.default_button) -#define PSUB_DefaultProcData(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.default_proc_data) -#define PSUB_Description(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.description) -#define PSUB_DescriptionLabel(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_label) -#define PSUB_DescriptionString(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_string) -#define PSUB_DestinationRadioBox(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.destination_radio_box) -#define PSUB_Display(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_display) -#define PSUB_FileName(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name) -#define PSUB_FileNameLabel(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_label) -#define PSUB_FileNameText(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_text) -#define PSUB_HelpButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.help_button) -#define PSUB_LabelFontList(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.label_font_list) -#define PSUB_MarginHeight(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_height) -#define PSUB_MarginWidth(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_width) -#define PSUB_MinimizeButtons(w) \ - (((DtPrintSetupBoxWidget) w)->print_setup_box.minimize_buttons) -#define PSUB_ModalPrinterSpec(w) \ - (((DtPrintSetupBoxWidget) w)->print_setup_box.modal_printer_spec) -#define PSUB_MustMatch(w) \ - (((DtPrintSetupBoxWidget) w)->print_setup_box.must_match) -#define PSUB_OptionCount(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.option_count) -#define PSUB_Options(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.options) -#define PSUB_PrintButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_button) -#define PSUB_PrintCallback(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_callback) -#define PSUB_PrintDestination(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_destination) -#define PSUB_PrinterInfoButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_button) -#define PSUB_PrinterInfoProc(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_proc) -#define PSUB_PrinterName(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name) -#define PSUB_PrinterNameText(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_text) -#define PSUB_PrinterNameCombo(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_combo) -#define PSUB_PrinterNameLabel(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_label) -#define PSUB_PrintSetupMode(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_setup_mode) -#define PSUB_SelectFileButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_button) -#define PSUB_SelectFileProc(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_proc) -#define PSUB_SelectPrinterButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_button) -#define PSUB_SelectPrinterProc(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_proc) -#define PSUB_SetupButton(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_button) -#define PSUB_SetupCallback(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_callback) -#define PSUB_Shell(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.shell) -#define PSUB_StringDirection(w) \ - (((DtPrintSetupBoxWidget)(w))->manager.string_direction) -#define PSUB_Text(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.text) -#define PSUB_TextColumns(w) \ - (((DtPrintSetupBoxWidget) w)->print_setup_box.text_columns) -#define PSUB_TextFontList(w) \ - (((DtPrintSetupBoxWidget) (w))->bulletin_board.text_font_list) -#define PSUB_TimeoutId(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.timeout_id) -#define PSUB_TopSeparator(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_separator) -#define PSUB_TopWorkArea(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_work_area) -#define PSUB_VerifyPrinterProc(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_proc) -#define PSUB_VerifyPrinterState(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_state) -#define PSUB_WorkAreaLocation(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.work_area_location) -#define PSUB_XpPrinterNameMode(w) \ - (((DtPrintSetupBoxWidget) (w))->print_setup_box.xp_printer_name_mode) - -/* - * ------------------------------------------------------------------------ - * Private Function Declarations - * - */ -/* - * Child Widget Creation Functions - */ -extern void _DtPrintSetupBoxCreateButtonSeparator( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateBottomSeparator( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateCancelButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateCopiesControl( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateDescription( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateDescriptionLabel( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateDestinationRadioBox( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateFileNameLabel( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateFileNameText( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateHelpButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreatePrintButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreatePrinterInfoButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreatePrinterNameLabel( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreatePrinterNameCombo( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateSelectFileButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateSelectPrinterButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateSetupButton( - DtPrintSetupBoxWidget psub); -extern void _DtPrintSetupBoxCreateTopSeparator( - DtPrintSetupBoxWidget psub); -/* - * Synthetic resource internal->external conversion functions - */ -extern void _DtPrintSetupBoxGetCopies( - Widget wid, - int resource_offset, - XtArgVal *value); -extern void _DtPrintSetupBoxGetDescription( - Widget wid, - int resource_offset, - XtArgVal *value); -extern void _DtPrintSetupBoxGetFileName( - Widget wid, - int resource_offset, - XtArgVal *value); -extern void _DtPrintSetupBoxGetPrinterName( - Widget wid, - int resource_offset, - XtArgVal *value); -/* - * Geometry Management - */ -extern XmGeoMatrix _DtPrintSetupBoxGeoMatrixCreate( - Widget wid, - Widget instigator, - XtWidgetGeometry *desired); -extern Boolean _DtPrintSetupBoxNoGeoRequest( - XmGeoMatrix geoSpec); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPrintSetupBP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PsubDefProcI.h b/cde/lib/DtPrint/PsubDefProcI.h deleted file mode 100644 index 22248ada..00000000 --- a/cde/lib/DtPrint/PsubDefProcI.h +++ /dev/null @@ -1,75 +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: PsubDefProcI.h /main/10 1996/11/01 15:00:46 cde-hp $ */ -/* - * DtPrint/PsubDefProcI.h - */ -/* - * (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 _DtPsubDefProcI_h -#define _DtPsubDefProcI_h - -#include
-#include
- -#ifdef __cplusplus -extern "C" { -#endif - -/* - * ------------------------------------------------------------------------ - * Private Function Declarations - * - */ -extern void _DtPrintDefProcInitialize(Widget w); -extern void _DtPrintDefProcManageErrorBox(DtPrintDefaultProcData* dpd); - -/* - * Procedure Resource Defaults - */ -extern XtEnum _DtPrintSetupBoxXPrinterInfoProc( - Widget w, - DtPrintSetupData* print_data); -extern XtEnum _DtPrintSetupBoxSelectFileProc( - Widget w, - DtPrintSetupData* print_data); -extern XtEnum _DtPrintSetupBoxSelectXPrinterProc( - Widget w, - DtPrintSetupData* print_data); -extern XtEnum _DtPrintSetupBoxVerifyXPrinterProc( - Widget w, - DtPrintSetupData* print_data); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPsubDefProcI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/PsubUtilI.h b/cde/lib/DtPrint/PsubUtilI.h deleted file mode 100644 index 05a16e95..00000000 --- a/cde/lib/DtPrint/PsubUtilI.h +++ /dev/null @@ -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: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */ -/* - * DtPrint/PsubUtilI.h - */ -/* - * (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 _DtPsubUtilI_h -#define _DtPsubUtilI_h - -#include
- -#ifdef __cplusplus -extern "C" { -#endif - -/* - * ------------------------------------------------------------------------ - * Type Definitions - * - */ -typedef enum { - DtPRINT_DEC_NET, - DtPRINT_TCP_IPC, - DtPRINT_NET_UNSPECIFIED -} DtPrintSpecNet; - -/* - * ------------------------------------------------------------------------ - * Private Function Declarations - * - */ -String _DtPrintCreateXPrinterSpecifier( - String printer_name, - String host_name, - DtPrintSpecNet spec_net, - int display_num, - int screen_num); -void _DtPrintFreeStringList( - String* string_list); -String _DtPrintGetDefaultXPrinterName( - Widget w); -String* _DtPrintGetXpPrinterList( - Widget w); -String* _DtPrintGetXpServerList( - Widget w); -void _DtPrintParseXDisplaySpecifier( - const String display_spec, - String* host_name, - DtPrintSpecNet* spec_net, - int* display_num, - int* screen_num); -void _DtPrintParseXPrinterSpecifier( - const String specifier, - String* printer_name, - String* display_spec); -XtEnum _DtPrintVerifyXPrinter( - Widget w, - String printer_spec, - String* new_printer_spec, - Display** new_display -#if 0 && defined(PRINTING_SUPPORTED) - ,XPContext* new_context -#endif /* PRINTING_SUPPORTED */ - ); - - - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtPsubUtilI_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtPrint/dtpdmd.h b/cde/lib/DtPrint/dtpdmd.h deleted file mode 100644 index 360eb4f9..00000000 --- a/cde/lib/DtPrint/dtpdmd.h +++ /dev/null @@ -1,82 +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: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */ -/****************************************************************************** - ****************************************************************************** - ** - ** File: dtpdmd.h - ** - ** Description: Header file for the "dtpdmd/dtpdm protocol" which - ** consists of a standard command line dtpdmd->dtpdm - ** and starndard exit codes dtpdm->dtpdmd. - ** - ** Other dtpdmd header stuff lives here too. - ** - ** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved. - ** - ****************************************************************************** - *****************************************************************************/ - -/* - * (c) Copyright 1996 Digital Equipment Corporation. - * (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. - */ - -/****************************************************************************** - * - * Standard command line parameters for any PDM which - * will become a child of dtpdmd via fork/exec. - * - * generic_pdm [dt-pdm-command options] [dtpdmd options] - * - * where [dt-pdm-command options] is: - * - any additional options that were specified along with - * the dt-pdm-command attribute from the X Print Server. - * - * where [dtpdmd options] is any of: - * -display dpy Specified the display connection to the Video X-Server. - * -window vwid Specified the window id on dpy. - * -pdisplay pdpy Specified the display connection to the Print X-Server. - * -pcontext pcid Specified the print context id on pdpy. - */ - -/****************************************************************************** - * - * Standard exit() codes for any PDM which is a child of dtpdmd. - */ -#define PDM_EXIT_NONE None -#define PDM_EXIT_OK 191 /* "OK" */ -#define PDM_EXIT_CANCEL 192 /* "CANCEL" */ -#define PDM_EXIT_VXAUTH 193 /* no print display authorization */ -#define PDM_EXIT_PXAUTH 194 /* no video display authorization */ -#define PDM_EXIT_ERROR 195 /* all other error reasons */ - -/* - * Misc information. - */ -#define DEFAULT_PDM_EXECUTABLE "dtpdm" - diff --git a/cde/lib/DtSearch/Search.h b/cde/lib/DtSearch/Search.h deleted file mode 100644 index 57c35dee..00000000 --- a/cde/lib/DtSearch/Search.h +++ /dev/null @@ -1,285 +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: Search.h /main/12 1998/04/03 17:10:35 mgreess $ - * - * (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. - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 27 - * - * - * (C) COPYRIGHT International Business Machines Corp. 1994,1995 - * All Rights Reserved - * Licensed Materials - Property of IBM - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -#ifndef _Search_h -#define _Search_h -/********************** Search.h *********************** - * $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $ - * Jan 1994. - * Public header file for DtSearch/AusText API. - * Formerly named ausapi.h. Externals renamed - * from ausapi_... or aa_... to DtSearch conventions. - * Documentation in dtsearch.doc. - * - */ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 1 -#endif -#include -#include -#include - -#if defined(__linux__) -# define __SVR4_I386_ABI_L1__ -#endif -#include -#if defined(__linux__) -# undef __SVR4_I386_ABI_L1__ -# ifndef WORD_BIT -# define WORD_BIT 32 -# endif -# ifndef LONG_BIT -# define LONG_BIT 32 -# endif -#endif - -#define DtSrVERSION "0.6" -#define DtSrMAXHITS 20 -#define DtSrMAX_KTNAME 13 -#define DtSrMAX_DB_KEYSIZE 32 -#define DtSrMAXWIDTH_HWORD 134 -#define DtSrMAX_STEMCOUNT 8 - -/****************************************/ -/* */ -/* RETURN CODES */ -/* */ -/****************************************/ -#define DtSrOK 0 /* normal, successful response */ -#define DtSrPASSWD 1 /* failed communications authentication */ -#define DtSrNOTAVAIL 2 /* no hits on search, no such rec, etc */ -#define DtSrFAIL 3 /* misc unsuccessful engine returns */ -#define DtSrREINIT 4 /* engine reinitialized, request canceled */ -#define DtSrERROR 5 /* fatal caller (client) program error */ -#define DtSrABORT 6 /* fatal engine failure, caller must abort */ -#define DtSrCOMM 7 /* fatal communications failure */ - -/* In order to share databases among heterogenous machines, - * certain integer types must be defined that are invariably - * 2 and 4 bytes on all architectures. - * Note WORD_BIT == 32 does not guarantee short == 16. - */ -#if (WORD_BIT == 16) - typedef int DtSrINT16; - typedef unsigned int DtSrUINT16; -#elif (WORD_BIT == 32) - typedef short DtSrINT16; - typedef unsigned short DtSrUINT16; -#else -#error Unable to typedef DtSrINT16 and DtSrUINT16 -#endif - -#if (WORD_BIT == 32) - typedef int DtSrINT32; - typedef unsigned int DtSrUINT32; -#elif (LONG_BIT == 32) - typedef long DtSrINT32; - typedef unsigned long DtSrUINT32; -#else -#error Unable to typedef DtSrINT32 and DtSrUINT32 -#endif - -#ifndef DB_ADDR - typedef DtSrINT32 DB_ADDR; /* vista.h: must be 4 bytes */ -#endif - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - -typedef DtSrUINT32 DtSrObjdate; - - -/****************************************/ -/* */ -/* DtSrKeytype */ -/* */ -/****************************************/ -typedef struct { - char is_selected; /* TRUE: user has selected this keytype */ - char ktchar; /* first char of opera record key */ - char name [DtSrMAX_KTNAME+1]; /* label string used in UI */ -} DtSrKeytype; - -/****************************************/ -/* */ -/* DtSrResult */ -/* */ -/****************************************/ -/* DtSrResult ormerly DITTO. DtSrObj types formerly ORT_. */ -typedef struct _DtSrResult { - struct _DtSrResult *link; /* ptr to next list node */ - DtSrUINT32 flags; /* (reserved) */ - DtSrINT32 objflags; /* flags from object record */ -#define DtSrFlDELETE (1<<0) /* (reserved) */ -#define DtSrFlOLDNOTES (1<<1) /* (reserved) */ -#define DtSrFlNOTAVAIL (1<<2) /* object not retrievable from engine */ - DtSrUINT32 objuflags; /* user flags from database rec */ - DtSrINT32 objsize; /* in uncompressed bytes */ - DtSrObjdate objdate; /* zero means object 'undated' */ - DtSrINT16 objtype; /* from database record */ -#define DtSrObjUNKNOWN 0 /* object type unknown or not applicable */ -#define DtSrObjTEXT 1 /* generic, unformatted flat text */ -#define DtSrObjBINARY 2 /* generic binary object */ -#define DtSrObjSGML 3 /* generic SGML formatted document */ -#define DtSrObjHTML 4 /* HTML formatted document */ -#define DtSrObjPOSTSCR 6 /* Postscript document */ -#define DtSrObjINTERLF 7 /* Interleaf document */ -#define DtSrObjDTINFO 8 /* DtInfo document */ - DtSrINT16 objcost; /* (reserved) */ - int dbn; /* dbnamesv index */ - DB_ADDR dba; /* data base addr within database */ - DtSrINT16 language; /* language of the database */ -#define DtSrLaENG 0 /* English, ASCII char set (default) */ -#define DtSrLaENG2 1 /* English, ISO Latin-1 char set */ -#define DtSrLaESP 2 /* Spanish, ISO Latin-1 char set */ -#define DtSrLaFRA 3 /* French, ISO Latin-1 char set */ -#define DtSrLaITA 4 /* Italian, ISO Latin-1 char set */ -#define DtSrLaDEU 5 /* German, ISO Latin-1 char set */ -#define DtSrLaJPN 6 /* Japanese, EUC, auto kanji compounds */ -#define DtSrLaJPN2 7 /* Japanese, EUC, listed kanji compounds */ -#define DtSrLaLAST 7 /* Last supported DtSrLa constant */ - char reckey [DtSrMAX_DB_KEYSIZE]; /* object's db key */ - int proximity; /* 'distance' of object from query */ - char *abstractp; /* object's abstract from db*/ -} DtSrResult; - -/****************************************/ -/* */ -/* DtSrHitword */ -/* */ -/****************************************/ -typedef struct { - long offset; /* word location in cleartext */ - long length; /* length of word */ -} DtSrHitword; - - -/************************************************/ -/* */ -/* Functions */ -/* */ -/************************************************/ -extern void DtSearchAddMessage (char *msg); -extern int DtSearchHasMessages (void); -extern char *DtSearchGetMessages (void); -extern void DtSearchFreeMessages (void); -extern int DtSearchGetMaxResults (void); -extern void DtSearchSetMaxResults (int new_max_results); -extern char *DtSearchFormatObjdate (DtSrObjdate objdate); -extern void DtSearchExit (int return_code); -extern void DtSearchAddUserExit (void (*user_exit)(int)); -extern void DtSearchRemoveUserExit (void); - -extern int DtSearchSortResults (DtSrResult **list, int sort_type); - #define DtSrSORT_PROX 1 /* sort on proximity */ - #define DtSrSORT_DATE 2 /* sort on objdate */ -extern int DtSearchMergeResults (DtSrResult **targ, DtSrResult **src); -extern int DtSearchFreeResults (DtSrResult **list); -extern DtSrObjdate - DtSearchValidDateString (char *date_string); -extern int DtSearchInit ( - char *argv0, - char *userid, - long switches, - char *config_file, - FILE *err_file, - char ***dbnames, - int *dbcount); - /* Bit values valid for switches argument: */ - #define DtSrInNOLOCALE 0x0001L /* do not exec setlocale() */ - #define DtSrInSIGNAL 0x0002L /* register abort signal handlers */ - #define DtSrInUSEROCF 0x0004L /* (reserved) */ - #define DtSrInENAB_NOHUP 0x0008L /* enab nohup for backgnd progms */ - #define DtSrInIDEBUG 0x0010L /* set initialization debugging */ - #define DtSrInSDEBUG 0x0020L /* set search debugging */ - #define DtSrInRDEBUG 0x0040L /* set retrieval debugging */ - #define DtSrInCDEBUG 0x0080L /* set communications debugging */ - #define DtSrInANY_DEBUG \ - (DtSrInIDEBUG | DtSrInSDEBUG | DtSrInRDEBUG | DtSrInCDEBUG) - #define DtSrInRDWR 0x0100L /* open db files for read and write */ - -extern int DtSearchReinit ( - char ***dbnames, - int *dbcount); - -extern int DtSearchGetKeytypes ( - char *dbname, - int *ktcount, - DtSrKeytype **keytypes); - -extern int DtSearchQuery ( - void *qry, - char *dbname, - int search_type, - char *date1, - char *date2, - DtSrResult **results, - long *resultscount, - char *stems, - int *stemcount); - -extern int DtSearchRetrieve ( - char *dbname, - DB_ADDR dba, - char **cleartext, - long *clearlen, - int *fzkeyi); - -extern int DtSearchHighlight ( - char *dbname, - char *cleartext, - DtSrHitword **hitwptr, - long *hitwcount, - int search_type, - char *stems, - int stemcount); - -/********************** Search.h ***********************/ -#endif /* _Search_h */ diff --git a/cde/lib/DtSearch/SearchE.h b/cde/lib/DtSearch/SearchE.h deleted file mode 100644 index d9e7a1d3..00000000 --- a/cde/lib/DtSearch/SearchE.h +++ /dev/null @@ -1,639 +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 - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 27 - * - * - * (C) COPYRIGHT International Business Machines Corp. 1991,1995 - * All Rights Reserved - * Licensed Materials - Property of IBM - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -#ifndef _SearchE_h -#define _SearchE_h -/***************************** SearchE.h ****************************** - * $XConsortium: SearchE.h /main/5 1996/08/12 13:16:47 cde-ibm $ - * August 1991. - * Header file for online DtSearch Engine (OE.C etc). - * SearchE.h was formerly called oe.h (Opera Engine). - * The old OE engine is pretty much invisible now, having - * been surrounded by the ausapi/DtSearch interface. - * - * The main data structure for passing and receiving arguments - * between the callers and the engine is USRBLK which is - * the only argument in the Opera_Engine() call. - * The actual input and output arguments in the USRBLK for each - * function are described below with the function description. - * - * All OE_functions pass a return code - * to the caller. OE_OK = successful completion, - * anything else may be partial completion/success or failure. - * Return code mnemonics are also defined below. - * - * $Log$ - * Revision 2.7 1996/03/20 19:11:21 miker - * Changed prototype of hilite_cleartext(). - * - * Revision 2.6 1996/03/13 22:34:53 miker - * Changed char to UCHAR several places. - * - * Revision 2.5 1996/03/05 19:17:50 miker - * oe_unblob no longer converts to uppercase. - * - * Revision 2.4 1996/03/05 15:54:06 miker - * Minor changes to support yacc-based boolean search. - * - * Revision 2.3 1996/02/01 16:14:38 miker - * Obsoleted requests OE_DITTO2KWIC, OE_VALIDATE_PWD, OE_CHANGE_PWD, - * OE_FINDSTR_REC, OE_FINDSTR_HITL, OE_ASSIST, OE_KILL. - * Restored OE_PING as the official "null" function. - * Added USRDBG_HILITE and USRDBG_PARSE. - * Replaced STRKIND, OE_kind_of_stems, and oe_stems_to_hitwords - * with hilite_cleartext. Deleted oe_ditto2kwic, oe_findstr_hitl. - * Deleted usrblk.kwiclen. - * - * Revision 2.2 1995/10/25 22:35:45 miker - * Added prolog. - * - * Revision 2.1 1995/09/22 22:39:39 miker - * Freeze DtSearch 0.1, AusText 2.1.8 - * - * Revision 1.1 1995/08/31 20:42:33 miker - * Initial revision - * - * The DtSearch return codes wrap around the OE return codes. - */ -#include "SearchP.h" - -#define AUDIT_FORMAT "UID=%-8s TIME=%s ELAP=%-3ld DB=%-8s HITS=%-5ld " -#define AUDIT_WHOWHEN "UID=%-8s TIME=%s" -#define DISCARD_FORMAT "%s\t\"%s\"\t%s\t%s\n" -#define HARDCOPY_SCRIPT "opprt.bat" -#define MAX_HITWCOUNT 200 /* max number hitwords that can be hilited */ -#define WORDS_HITLIMIT 300000L - - -/*-------------------- Request Codes ------------------------ - * All Engine requests, in addition to input below, require valid - * usrblk.userid - * usrblk.request. - * All Engine requests, in addition to output below, - * may return ausapi_msglist. - * There is no zero request code. - * See list of return codes for the ones that are marked 'common retncodes'. - */ - -#define OE_INITIALIZE 1 -/* does lotsa stuff--see the function. - * input: - * .query = AUSAPI_VERSION of UI code - * .dblist = data from user config file - * .dblk = data from user config file - * output: - * .dblist = modified after load of site config file - * .dblk = modified after load of site config file - * .retncode = OE_OK, OE_NOTAVAIL, OE_ABORT - */ - -#define OE_TEXT2FZKEY 2 -/* converts problem description text to fzkey. - * input: - * .query = problem description text - * .dblk = desired database and db parameters - * output: - * .fzkey = inference from query text analysis - * .retncode = common retncodes + OE_BAD_QUERY - */ - -#define OE_SRCH_FZKEY 3 -/* Converts fzkey to hitlist of dba's. - * Not available for databases without semantic dictionaries. - * input: - * .fzkey = database search vector - * .dblk = desired database and db parameters - * output: - * .workproc = function to be called until !OE_SEARCHING - * .dittolist = hitlist sorted by proximity - * .dittocount = # of nodes on dittolist - * .retncode = common retncodes + OE_SEARCHING, OE_NOTAVAIL, - * OE_USER_STOP, OE_SYSTEM_STOP, OE_BAD_QUERY - */ - -#define OE_SRCH_STEMS 4 -/* converts string of wordstems and booleans to - * hitlist of dba's and stems array. - * input: - * .query = text string of wordstems and booleans - * .dblk = desired database and db parameters - * output: - * .fzkey = (value undefined) - * .workproc = function to be called until !OE_SEARCHING - * .dittolist = hitlist - * .dittocount = # of nodes on dittolist - * .stems = array of stems for hiliting in text of hits - * .stemcount = size of 'stems' array - * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, - * OE_NOTAVAIL, OE_USER_STOP - */ - -#define OE_SRCH_WORDS 5 -/* converts string of exact words and booleans to - * hitlist of dba's and stems array. - * input: - * .query = text string of exact words and booleans - * .dblk = desired database and db parameters - * output: - * .fzkey = (value undefined) - * .workproc = function to be called until !OE_SEARCHING - * .dittolist = hitlist - * .dittocount = # of nodes on dittolist - * .stems = array of words for hiliting in text of hits - * .stemcount = size of 'stems' array - * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, - * OE_NOTAVAIL, OE_USER_STOP - */ - -#define OE_STOP_SRCH 6 -/* sets global switch to cancel search work procedure. - * workproc actually cancels itself after reading switch. - * input: .request = OE_STOP_SEARCH - * output: .retncode = 'common retncodes' only - */ - -#define OE_APPEND_NOTES 7 -/* appends user's notes to record at current dba. - * input: - * .query = freeform text of append - * .dba = address of record to append - * .dblk = desired database and db parameters - * output: - * .retncode = common retncodes + OE_TIMEOUT, OE_DISABLED - */ - -#define OE_GETREC 8 -/* retrieves record, cleartext, and notes for specified dba. - * Clears hitwords array, does not use or change stems array. - * input: - * .dba = address of record to retrieve - * .dblk = desired database and db parameters - * output: - * .objrec = austext record itself, as is from vista - * .cleartext = NULL or uncompressed text string - * .clearlen = 0 or size of cleartext - * .hitwords = array pointer cleared to NULL - * .hitwcount = size of hitwords array set to 0 - * .notes = NULL, or list of notes records, as is - * .retncode = common retncodes + OE_NOTAVAIL - */ - -#define OE_GETREC_STEMS 9 -/* retrieves record, cleartext, notes, and hitwords - * array for specified dba and stems (from OE_SRCH_STEMS). - * If no text in repository, equivalent to OE_GETREC. - * input: - * .dba = address of record to retrieve - * .stems = array of word stems to hilite - * .stemcount = size of stems array - * .dblk = desired database and db parameters - * output: - * .objrec = austext record itself, as is from vista - * .cleartext = NULL or uncompressed text string - * .clearlen = 0 or size of cleartext - * .hitwords = NULL or array of words in cleartext to hilite - * .hitwcount = 0 or size of hitwords array - * .notes = NULL, or list of notes records, as is - * .retncode = common retncodes + OE_NOTAVAIL - */ - -#define OE_GETREC_WORDS 10 -/* retrieves record, cleartext, notes, and hitwords - * array for specified dba and stems array (from OE_SRCH_WORDS). - * If no text in repository, equivalent to OE_GETREC. - * input: - * .dba = address of record to retrieve - * .stems = array of exact words to hilite - * .stemcount = size of stems array - * .dblk = desired database and db parameters - * output: - * .objrec = austext record itself, as is from vista - * .cleartext = NULL or uncompressed text string - * .clearlen = 0 or size of cleartext - * .hitwords = NULL or array of words in cleartext to hilite - * .hitwcount = 0 or size of hitwords array - * .notes = NULL, or list of notes records, as is - * .retncode = common retncodes + OE_NOTAVAIL - */ - -#define OE_NEXT_DBA 11 -/* advances dba to next valid b-tree address. Wraps if necessary. - * input: - * .dba = current address of record - * .dblk = desired database and db parameters - * output: - * .dba = address of next record in b-tree - * .retncode = common retncodes + OE_WRAPPED - */ - -#define OE_PREV_DBA 12 -/* retreats dba to previous valid b-tree address. - * Wraps if necessary. - * input: - * .dba = current address of record - * .dblk = desired database and db parameters - * output: - * .dba = address of previous record in b-tree - * .retncode = common retncodes + OE_WRAPPED - */ - -#define OE_RECKEY2DBA 13 -/* converts an austext record key into a dba. Wraps if not found. - * input: - * .query = desired record key - * .dblk = desired database and db parameters - * output: - * .dba = address of record found, - * or next avail address if not found - * .retncode = common retncodes + OE_WRAPPED - */ - -#define OE_MARK_DELETION 14 -/* writes record id to an external file for - * possible later deletion by external program. - * input: - * .query = record key to be marked for deletion - * .dblk = database where record is located - * output: - * .retncode = common retncodes + OE_NOTAVAIL, OE_DISABLED - */ - -#define OE_GETREC_DIC 15 -/* THIS FUNCTION IS NO LONGER SUPPORTED. - * IF RECEIVED BY ENGINE, IT IS TREATED EXACTLY AS OE_GETREC. - * Retrieves record, cleartext, notes, and hitwords - * array for specified dba. Hitwords are not derived from the - * stems array; they are all the cleartext words that are in - * the dictionary. (Compare to OE_GETREC_WORDS and OE_GETREC_STEMS). - * If no text in repository, equivalent to OE_GETREC. - * input: - * .dba = address of record to retrieve - * .dblk = desired database and db parameters - * output: - * .objrec = austext record itself, as is from vista - * .cleartext = NULL or uncompressed text string - * .clearlen = 0 or size of cleartext - * .hitwords = NULL or array of words in cleartext to hilite - * .hitwcount = 0 or size of hitwords array - * .notes = NULL, or list of notes records, as is - * .retncode = common retncodes + OE_NOTAVAIL - */ - -#define OE_DITTO2KWIC 16 -#define OE_VALIDATE_PWD 17 -#define OE_CHANGE_PWD 18 -/* (These functions are obsolete) */ - -#define OE_DELETE_RECID 19 -/* Deletes header record, all text, user notes, - * and word/stems references for specified record. - * Currently can only be called from offline program - * when all online austext users have been logged off. - * THIS FUNCTION IS <<>> SLOW (about 15 min on large dbase)! - * input: - * .query = desired record key - * .dblk = desired database and db parameters - * output: - * .dba = address of record deleted - * THIS ADDRESS IS NO LONGER VALID! - * .dbatab = (undefined) - * .dbacount = 1 - * .retncode = common retncodes + OE_NOTAVAIL - */ - -#define OE_DELETE_BATCH 20 -/* Deletes header records, all text, user notes, - * and word/stems references for all records in a - * datbase address table. Currently can only be called - * from offline program when all online austext users - * have been logged off. This function is the preferred - * deletion method because it is faster than deleting - * single records at a time. Addresses not found are ignored. - * input: - * .dblk = desired database and db parameters - * .dbatab = table of valid addresses to be deleted - * .dbacount = number of addresses on the table - * output: - * .retncode = common retncodes only - */ - -#define OE_ASSIST 21 -#define OE_FINDSTR_REC 22 -#define OE_FINDSTR_HITL 23 -/* (These functions are obsolete) */ - -#define OE_SRCH_STATISTICAL 24 -/* Converts string of natural language text to - * hitlist of dba's and stems array. Uses stems only, - * no booleans, all words are ORed together. Hitlist sorted - * based on statistics of included word stems. - * input: - * .query = natural language text string - * .dblk = desired database and db parameters - * output: - * .stems = array of stems for hiliting in text of hits - * .stemcount = size of 'stems' array (up to max allowed) - * .workproc = function to be called until !OE_SEARCHING - * .dittolist = hitlist - * .dittocount = # of nodes on dittolist - * .retncode = common retncodes + OE_BAD_QUERY, OE_SEARCHING, - * OE_NOTAVAIL, OE_USER_STOP - */ - -#define OE_HILITE_STEMS 25 -/* Creates a hitwords array for hiliting using the text - * in cleartext (however it may have been obtained), - * and the stems array from the last search. - * input: - * .cleartext = text to be hilited - * .clearlen = size of cleartext - * .stems = array of words or stems to hilite - * .stemcount = size of stems array - * .search_type = 'W', 'P' or 'S', indicating type of - * search that generated stems array. - * output: - * .hitwords = array of words in cleartext to hilite - * .hitwcount = size of hitwords array - * .retncode = common retncodes + OE_NOTAVAIL, OE_BAD_QUERY - */ - -#define OE_GET_EXPIRE 26 -/* Returns in 'dba' field the expiration date of OE as a timestamp. - * Zero means no expiration date. Overlays previous value in dba. - * input: .request = OE_GET_EXPIRE - * output: .dba = unix timestamp of expiration date or 0 - * .retncode = common retncodes only - */ - -#define OE_KILL 9997 -#define OE_PING 9998 -#define OE_SHUTDOWN 9999 -/* (These functions are obsolete) */ - -/*-------------------- Return Codes ------------------------ - * The return codes marked 'common retncodes' are OE_OK, OE_NOOP, OE_REINIT, - * and OE_ABORT, and can be returned by almost all functions. - * OE_BAD_QUERY will be returned for any unknown function request. - * There is no zero return code. - */ -#define OE_OK 1 /* normal successful completion */ -#define OE_REINIT 2 /* request canceled: OE reinitialized - * databases so UI's dba's may be bad */ -#define OE_SEARCHING 3 /* keep calling workproc */ -#define OE_BAD_DBLK 4 -#define OE_BAD_REQUEST 5 /* invalid request field */ -#define OE_BAD_QUERY 6 /* invalid query or other input fld */ -#define OE_NOTAVAIL 7 /* no record, hits, function disabled */ -#define OE_TIMEOUT 8 -#define OE_WRAPPED 9 /* got next item instead of reqstd item */ -#define OE_SYSTEM_STOP 10 /* error: search canceled by OE */ -#define OE_BAD_PASSWD 11 /* invalid password */ -#define OE_BAD_HITLIST 12 /* invalid hitlist */ -#define OE_DISABLED 13 /* requested function disabled at this site */ -#define OE_USER_STOP 14 /* search canceled by user */ -#define OE_BAD_COMM 15 /* request canceled by comm layer */ -#define OE_NOOP 888 /* No Operation, nothing done */ -#define OE_ABORT 999 /* fatal OE error, OE permanently disabled */ - - -/****************************************/ -/* */ -/* OEFTAB */ -/* */ -/****************************************/ -/* Table used in load_ocf() oe_uninitialize() to allow overriding default - * locations of various files. Complete discussion in .ocf documentation. - */ -typedef struct - { - char *id; /* keyword identifier */ - char **OEFptr; /* addr of variable to change */ - char previously_specified; /* bool ensures only one spec */ - } OEFTAB; - -/****************************************/ -/* */ -/* USRBLK */ -/* */ -/****************************************/ -typedef struct - { - char userid [10]; /* 1 - 8 alphanumeric char */ - int search_type; /* single char = curr search type. - * 'T' = Semantic Text search - * 'W' = Exact Words search - * 'S' = Stems search - * 'Z' = Fzkey search - * 'N' = Navigator string (unpacked fzk) srch - * 'P' = Statistical (Probabilistic) search - */ - - long flags; /* bit switches... */ -#define USR_BIT_1 0x0001L /* (reserved) */ -#define USR_NO_ITERATE 0x0002L /* override iterations in workprocs */ -#define USR_STOPSRCH 0x0004L /* the "stop" button, cancels workproc */ -#define USR_MAXMIN 0x0008L /* symdif() algorithm = fuzzy max min */ -#define USR_OBJDATES 0x0010L /* restrict hitlists to objdate ranges */ -#define USR_KWIC_ABSTR 0x0020L /* retn KeyWord In Context for abstract */ -#define USR_NO_INFOMSGS 0x0040L /* do not retn information-only msgs to UI */ -#define USR_MAXHITS_MSG 0x0080L /* show # hits each keytype if sum > maxhits */ -#define USR_SORT_WHITL 0x0100L /* sort word/stem hitlists by semantics */ - - long debug; /* Nonproduction bit switches */ -#define USRDBG_RARE 0x0001L /* 1 Misc initialzatn trace msgs */ -#define USRDBG_SRCHCMPL 0x0002L /* 2 trace ui search_completed functions */ -#define USRDBG_RETRVL 0x0004L /* 4 trace record retrieval funcs */ -#define USRDBG_ITERATE 0x0008L /* 8 forces iteration on all iterable cmds */ -#define USRDBG_UTIL 0x0010L /* 16 trace misc utility functions */ -#define USRDBG_MEDPRMPT 0x0020L /* 32 Prints prompt of medley sockets cmds */ -#define USRDBG_HITLIST 0x0040L /* 64 print hitlists after searches */ -#define USRDBG_SYMP 0x0080L /* 128 trace symptom search funcs */ -#define USRDBG_DELETE 0x0100L /* 256 trace record deletion functions */ -#define USRDBG_RPC 0x0200L /* 512 trace RPC communications funcs */ -#define USRDBG_VERBOSE 0x0400L /* 1024 verbose debugging: iterative details */ -#define USRDBG_HILITE 0x0800L /* 2048 trace hiliting functions */ -#define USRDBG_PARSE 0x1000L /* 4096 trace linguistic parse/stem funcs */ -#define USRDBG_BOOL 0x2000L /* 8192 trace boolean parse funcs */ - - int request; - int retncode; - char *query; /* input data for text searches */ - DtSrObjdate objdate1; /* only retn hit objects >= (after) date1 */ - DtSrObjdate objdate2; /* only retn hit objects <= (before) date2 */ - DB_ADDR dba; /* for direct dba reads */ - DB_ADDR *dbatab; /* array of dba's for batch deletes */ - int dbacount; /* # of dba's in dbatab */ - void (*workproc) (void); - /* (1) If single tasking (iterative), OE places ptr to work - procedure. (2) If multitasking (no iterations), UI places - ptr of func to call when OE's spawned subtask is done. */ - - DBLK *dblist; /* linked list of all databases */ - DBLK *dblk; /* users curr database selection */ - - DtSrResult *dittolist; /* hitlist retnd from various searches */ - long dittocount; /* # of items on hitlist */ - int stemcount; /* # of wordstems in 'stems' array */ - char stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD]; - /* for hiliting words in text records */ - - struct or_objrec objrec; /* austext record buffer */ - char *abstrbuf; /* buf to hold abstracts */ - int abstrbufsz; /* maximum abstract size all databases */ - char *cleartext; /* decompressed austext record text */ - long clearlen; /* size of cleartext in bytes */ - LLIST *notes; /* uncompressed, right out of vista */ - DtSrHitword *hitwords; /* array of hit words inside cleartext */ - long hitwcount; /* number of elements in hitwords array */ - - } USRBLK; - - - -/****************************************/ -/* */ -/* SAVEUSR */ -/* */ -/****************************************/ -/* The following data is saved between calls of the workprocs. - * In a future msg passing protocol where there may be multiple UIs - * per OE, this data would be maintained in a list of structures, - * one for each currently active search (UI only passes user id name - * in iterative calls, OE searches list to match curr status). - * But for now, this will have to do. - */ -typedef struct - { - time_t start_time; - int iterations; - int vistano; - DtSrResult *dittolist; - long dittocount; - int stemcount; - char stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD]; - char ktchars [MAX_KTCOUNT + 2]; - char *lastqry; - long ktsum [MAX_KTCOUNT + 1]; - } SAVEUSR; - - -/*--------------- GLOBALS in oe.c, loadocf.c -------------------*/ -extern char **ausapi_dbnamesv; -extern int ausapi_dbnamesc; -extern USRBLK usrblk; - -extern char *global_memory_ptr; -extern OEFTAB oef_table[]; -extern SAVEUSR saveusr; /* (only one for now) */ -extern int shm_id; - -extern int OE_bmhtab_strlen [DtSrMAX_STEMCOUNT]; -extern size_t OE_bmhtables [DtSrMAX_STEMCOUNT] [MAX_BMHTAB]; -extern int OE_dbn; -extern int OE_enable_markdel; -extern int OE_enable_usernotes; -extern time_t *OE_expiration; -extern int OE_fastdecode; -extern char *OE_fileio; -extern long OE_flags; -#define OE_AUDIT 1L /* enables audit file logging */ -#define OE_INITOK (1L<<1) /* ensures first reqst was INITIALIZE */ -#define OE_PERMERR (1L<<2) /* disables engine on fatal errors */ -#define OE_NO_ITERATE (1L<<3) /* override iterations in workprocs */ -extern char *OE_inittab_dir; /* local dir of server daemon */ -extern long OE_objsize; -extern char *OE_prodname; -extern int OE_search_type; -extern char *OE_server_dir; /* local dir of server daemon */ -extern char *OE_sitecnfg_fname; -extern time_t OE_sitecnfg_mtime; -extern int OE_uppercase_keys; -extern long OE_words_hitlimit; - -/* Global pointers to formerly hardcoded path/file names. - * The comment names the #define constant under which the - * filename is/was specified in either fuzzy.h or oe.h. - */ -extern char *OEF_audit; /* FNAME_AUDIT */ -extern char *OEF_discard; /* FNAME_DISCARD_DATA */ -extern char *OEF_news; /* FNAME_SITENEWS */ -extern char *OEF_notesnot; /* FNAME_NOTES_BAC */ -extern char *OEF_notessem; /* FNAME_NOTES_SEM */ -extern char *OEF_readme; /* FNAME_README */ - -/*---------------- FUNCTION PROTOTYPES ----------------------*/ -extern char *calloe_getrec (char *dbname, DB_ADDR dba, - LLIST **global_msglist); -extern long calloe_hilite (char *cleartext, DtSrHitword *hitwords, - LLIST **global_msglist); -extern DtSrResult - *calloe_search (char *qry, char *dbname, - int search_type, LLIST **global_msglist); -extern int call_output_script (char *shellcmd, char *text); -extern void clear_hitwords (void); -extern void clear_usrblk_record (void); -extern void dummy_workproc (void); -extern char *ensure_end_slash (char *charbuf); -extern void fasthuf (UCHAR *input_bitstring, UCHAR *output_charbuf, - int outbuf_size, time_t encode_id); -extern char *get_hitlist_text (int maxlen); -extern long hilite_cleartext (int parse_type, char *stems, int stemcount); -extern int load_ocf (void); -extern char *nowstring (time_t *now); -extern void oe_initialize (void); -extern int oe_unblob (LLIST *bloblist); -extern void oe_write_audit_rec (long numhits); -extern void Opera_Engine (void); -extern void print_dittolist (DtSrResult *dittolist, char *label); -extern void print_stems (int stemcount, void *stems, char *locstr); -extern void print_usrblk_record (char *label); -extern void release_shm_mem (void); -extern char *retncode_str (int num); -extern void symptom_search (void); -extern int ve_append_notes (void); -extern void ve_browse_dba (int direction); -extern LLIST *ve_getblobs (DtSrINT32 dba, int vistano); -extern int ve_getrec_dba (LLIST **bloblist); -extern int ve_initialize (void); -extern void ve_ditto (void); -extern DtSrINT32 ve_reckey2dba (void); -extern void ve_statistical (void); -extern void ve_stem_search (void); -extern void ve_word_search (void); -extern void ve_shutdown (void); - -/***************************** SearchE.h ******************************/ -#endif /* _SearchE_h */ diff --git a/cde/lib/DtSearch/SearchP.h b/cde/lib/DtSearch/SearchP.h deleted file mode 100644 index f6f7cea7..00000000 --- a/cde/lib/DtSearch/SearchP.h +++ /dev/null @@ -1,887 +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 - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: - * - * ORIGINS: 27 - * - * - * (C) COPYRIGHT International Business Machines Corp. 1990,1995 - * All Rights Reserved - * Licensed Materials - Property of IBM - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -#ifndef _SearchP_h -#define _SearchP_h -/************************ SearchP.h ******************************** - * $XConsortium: SearchP.h /main/9 1996/10/12 16:10:00 cde-ibm $ - * June 1990. - * Private header file for DtSearch/AusText used by - * both build tools and search engine. - * Derived from original IBM fuzzy.h. - * - * Hierarchies of DtSearch/AusText Search*.h #includes: - * Search.h is Dt/Aus public header, defines _XOPEN_SOURCE. - * SearchP.h is private Dt/Aus, includes Search.h. - * semantic.h is private Aus only, defines _ALL_SOURCE, - * includes SearchP.h. - * (Should be specified in place of SearchP.h). - * SearchE.h is private engine header Dt/Aus. Invokes either - * SearchP.h or semantic.h depending on whether DTSEARCH defined. - * Only one of the above should be specified. They should always - * be first include to get the _SOURCE defines right. - * DTSEARCH should be defined on compiler cmd line. - * - * $Log$ - * Revision 2.11 1996/04/10 19:44:43 miker - * AusText 2.1.13, DtSearch 0.5. Documentation cleanup. - * - * Revision 2.10 1996/03/13 22:35:14 miker - * Added UCHAR definition. Changed char to UCHAR several places. - * - * Revision 2.9 1996/03/05 16:48:56 miker - * Add COMMENT_CHARS from lang.c. - * - * Revision 2.8 1996/03/05 15:58:57 miker - * Replace vewords with yacc-based boolean search. - * - * Revision 2.7 1996/02/01 16:26:06 miker - * AUSAPI_VERSION 2.1.11, DtSearch 0.3: - * Changed parsers to use character reading cofunctions. - * - * Revision 2.6 1995/12/27 15:51:36 miker - * Version 2.1.10: First GA release of AusBuild. - * - * Revision 2.5 1995/12/07 23:24:38 miker - * Version 2.1.9e: Freezing AusBuild version with - * everything except multiple source files dialog box. - * - * Revision 2.4 1995/10/25 22:29:29 miker - * Added prolog. - * - * Revision 2.3 1995/10/19 19:07:42 miker - * Changed AUSAPI_VERSION to 2.1.9 (but not yet released). - * - * Revision 2.2 1995/10/03 21:36:13 miker - * Added 'const' to strdup prototype for greater portability. - * - * Revision 2.1 1995/09/22 22:39:41 miker - * Freeze DtSearch 0.1, AusText 2.1.8 - * - * Revision 1.3 1995/09/19 21:38:59 miker - * Removed debugging #defines. - */ -#include "Search.h" /* the "public" header file */ -#include /* for nl_catd below and all cat...() funcs */ -#include -#include - -#define AUSAPI_VERSION "2.1.13" - /* Format: "v.r.m", where v,r,m are integer substrings - * meaning version, revision, and mod respectively. - * Complete new version austomatically sets revision=1, mod=0. - * New revision within a version just sets mod=0. - * When mod=0, full string may be abbreviated to "v.r". - * Full string will contain no whitespace. - * AUSAPI_VERSION is compared to current versions of database - * schemas and client/server protocols by ausapi_init(). - * By convention, AusText programs display AUSAPI_VERSION - * at the top of the main gui window and in usage statements. - */ -#define SCHEMA_VERSION "2.0" - /* Identifies when schema last changed. - * Same format as AUSAPI_VERSION, except only "v.r" substring used. - * To ensure compatibility, database programs must have v.r integers - * within the range between SCHEMA_VERSION and AUSAPI_VERSION. - * The 3rd integer, the 'mod' number, never matters. - */ -#define PROTOCOL_VERSION "2.1" - /* Identifies when protocol between ui and engine/ausapi - * last changed. Typical changes would be changes to major - * structures like usrblk, dblk, and socblk, or changes to - * the arguments for either ausapi or Opera_Engine calls. - * Only meaningful for client/server systems. - * Same format as AUSAPI_VERSION, except only "v.r" substring used. - * To ensure compatibility, clients must have v.r integers - * within the range between PROTOCOL_VERSION and AUSAPI_VERSION - * of the engine. The 3rd integer, the 'mod' number, never matters. - */ - -/*------------- #define Compiler and related #defines ------------------ - * #define TURBO_COMPILER... - * #define PS2AIX_COMPILER... - * #define AIX370_COMPILER... - * #define HP_COMPILER... - * #define _AIX... - * ... define one of the above at top of Search.h to provide - * structures and functions that are compiler dependent. - * Since the compiler definition must precede all other headers, - * the #include for Search.h must be the first statement of all source - * files. - * - * UCHAR corrects for compilers whose default char is signed. - */ -#define UCHAR unsigned char -#ifdef TURBO_COMPILER -#define LINT_ARGS /* establishes strong prototyping in vista */ -#define ANSI /* allow multiple databases in vista */ - -#else -#define SINGLE_USER /* eliminate vista lockmgr */ -#define UNIX /* used in vista.h and elsewhere */ -#endif - -#ifdef HP_COMPILER -#define _INCLUDE_HPUX_SOURCE -#define _INCLUDE_POSIX_SOURCE -#define _INCLUDE_XOPEN_SOURCE -#endif - - -/*----------------------- AUSTEXT.H --------------------- - * DBMS record/key structure and constant declarations. - * These represent the database schema formerly in austext.h - * and derived from austext.sch. - */ -typedef struct or_dbrec { - DtSrUINT32 or_dbflags; - DtSrUINT32 or_dbuflags; - DtSrINT32 or_reccount; - DtSrINT32 or_maxdba; - DtSrINT32 or_availd99; - DtSrINT32 or_unavaild99; - DtSrINT32 or_hufid; - DtSrINT32 or_dbsecmask; - char or_version[8]; - char or_dbfill[50]; - DtSrINT16 or_dbotype; - DtSrINT16 or_compflags; - DtSrINT16 or_dbaccess; - DtSrINT16 or_minwordsz; - DtSrINT16 or_maxwordsz; - DtSrINT16 or_recslots; - DtSrINT16 or_fzkeysz; - DtSrINT16 or_abstrsz; - DtSrINT16 or_language; -} DBREC; - -struct or_dbmiscrec { - DtSrINT16 or_dbmisctype; - char or_dbmisc[1][106]; -}; -struct or_objrec { - DtSrUINT32 or_objflags; - DtSrUINT32 or_objuflags; - DtSrINT32 or_objsize; - DtSrINT32 or_objdate; - DtSrINT32 or_objsecmask; - char or_objkey[32]; - char or_objfill[34]; - DtSrINT16 or_objaccess; - DtSrINT16 or_objtype; - DtSrINT16 or_objcost; - DtSrINT16 or_objhdroffset; - DtSrINT16 or_objeureka; -}; -struct or_miscrec { - DtSrINT16 or_misctype; - char or_misc[1][105]; -}; -struct or_blobrec { - DtSrINT16 or_bloblen; - char or_blob[234][1]; -}; -struct or_swordrec { - char or_swordkey[16]; - DtSrINT32 or_swoffset; - DtSrINT32 or_swfree; - DtSrINT32 or_swaddrs; -}; -struct or_lwordrec { - char or_lwordkey[40]; - DtSrINT32 or_lwoffset; - DtSrINT32 or_lwfree; - DtSrINT32 or_lwaddrs; -}; -struct or_hwordrec { - char or_hwordkey[134]; - DtSrINT32 or_hwoffset; - DtSrINT32 or_hwfree; - DtSrINT32 or_hwaddrs; -}; - -/* File Id Constants */ -#define OR_D00 0 -#define OR_D01 1 -#define OR_D21 2 -#define OR_D22 3 -#define OR_D23 4 -#define OR_K00 5 -#define OR_K01 6 -#define OR_K21 7 -#define OR_K22 8 -#define OR_K23 9 - -/* Record Name Constants */ -#define OR_DBREC 10000 -#define OR_DBMISCREC 10001 -#define OR_OBJREC 10002 -#define OR_MISCREC 10003 -#define OR_BLOBREC 10004 -#define OR_SWORDREC 10005 -#define OR_LWORDREC 10006 -#define OR_HWORDREC 10007 - -/* Field Name Constants */ -#define OR_DBFLAGS 0L -#define OR_DBUFLAGS 1L -#define OR_RECCOUNT 2L -#define OR_MAXDBA 3L -#define OR_AVAILD99 4L -#define OR_UNAVAILD99 5L -#define OR_HUFID 6L -#define OR_DBSECMASK 7L -#define OR_VERSION 8L -#define OR_DBFILL 9L -#define OR_DBOTYPE 10L -#define OR_COMPFLAGS 11L -#define OR_DBACCESS 12L -#define OR_MINWORDSZ 13L -#define OR_MAXWORDSZ 14L -#define OR_RECSLOTS 15L -#define OR_FZKEYSZ 16L -#define OR_ABSTRSZ 17L -#define OR_LANGUAGE 18L -#define OR_DBMISCTYPE 1000L -#define OR_DBMISC 1001L -#define OR_OBJFLAGS 2000L -#define OR_OBJUFLAGS 2001L -#define OR_OBJSIZE 2002L -#define OR_OBJDATE 2003L -#define OR_OBJSECMASK 2004L -#define OR_OBJKEY 2005L -#define OR_OBJFILL 2006L -#define OR_OBJACCESS 2007L -#define OR_OBJTYPE 2008L -#define OR_OBJCOST 2009L -#define OR_OBJHDROFFSET 2010L -#define OR_OBJEUREKA 2011L -#define OR_MISCTYPE 3000L -#define OR_MISC 3001L -#define OR_BLOBLEN 4000L -#define OR_BLOB 4001L -#define OR_SWORDKEY 5000L -#define OR_SWOFFSET 5001L -#define OR_SWFREE 5002L -#define OR_SWADDRS 5003L -#define OR_LWORDKEY 6000L -#define OR_LWOFFSET 6001L -#define OR_LWFREE 6002L -#define OR_LWADDRS 6003L -#define OR_HWORDKEY 7000L -#define OR_HWOFFSET 7001L -#define OR_HWFREE 7002L -#define OR_HWADDRS 7003L - -/* Set Name Constants */ -#define OR_DB_MISCS 20000 -#define OR_OBJ_BLOBS 20001 -#define OR_OBJ_MISCS 20002 -/*----------------------- end AUSTEXT.H ---------------------*/ - - - -/*------------- DMACROS.H ------------------- - * The following were formerly in dmacros.h. - * They provide macro enhancements to the - * DBMS function prototypes in vista.h. - * Each DBMS function is coded in a macro which includes - * a location string (usually module name + line number). - * The location string is printed whenever there is - * a user or system failure. - * Warning: These should not be coded naked within 'if-else' statements - * because the 'if' in the macros will interfere with the outside else. - */ -#define CMSTAT(s,a,b) if(d_cmstat(a,b) < S_OKAY) vista_abort(s) -#define CMTYPE(s,a,b,c) if(d_cmtype(a,b,c) < S_OKAY) vista_abort(s) -#define CONNECT(s,a,b) if(d_connect(a,b) < S_OKAY) vista_abort(s) -#define COSTAT(s,a,b) if(d_costat(a,b) < S_OKAY) vista_abort(s) -#define COTYPE(s,a,b,c) if(d_cotype(a,b,c) < S_OKAY) vista_abort(s) -#define CRGET(s,a,b) if(d_crget(a,b) < S_OKAY) vista_abort(s) -#define CRREAD(s,a,b,c) if(d_crread(a,b,c) < S_OKAY) vista_abort(s) -#define CRSET(s,a,b) if(d_crset(a,b) < S_OKAY) vista_abort(s) -#define CRSTAT(s,a) if(d_crstat(a) < S_OKAY) vista_abort(s) -#define CRTYPE(s,a,b) if(d_crtype(a,b) < S_OKAY) vista_abort(s) -#define CRWRITE(s,a,b,c) if(d_crwrite(a,b,c) < S_OKAY) vista_abort(s) -#define CSMGET(s,a,b,c) if(d_csmget(a,b,c) < S_OKAY) vista_abort(s) -#define CSMREAD(s,a,b,c,d) if(d_csmread(a,b,c,d) < S_OKAY) vista_abort(s) -#define CSMSET(s,a,b,c) if(d_csmset(a,b,c) < S_OKAY) vista_abort(s) -#define CSMWRITE(s,a,b,c,d) if(d_csmwrite(a,b,c,d) < S_OKAY) vista_abort(s) -#define CSOGET(s,a,b,c) if(d_csoget(a,b,c) < S_OKAY) vista_abort(s) -#define CSOREAD(s,a,b,c,d) if(d_csoread(a,b,c,d) < S_OKAY) vista_abort(s) -#define CSOSET(s,a,b,c) if(d_csoset(a,b,c) < S_OKAY) vista_abort(s) -#define CSOWRITE(s,a,b,c,d) if(d_csowrite(a,b,c,d) < S_OKAY) vista_abort(s) -#define CSSTAT(s,a,b) if(d_csstat(a,b) < S_OKAY) vista_abort(s) -#define CTBPATH(s,a) if(d_ctbpath(a) < S_OKAY) vista_abort(s) -#define CTSCM(s,a,b,c) if(d_ctscm(a,b,c) < S_OKAY) vista_abort(s) -#define CTSCO(s,a,b,c) if(d_ctsco(a,b,c) < S_OKAY) vista_abort(s) -#define CTSCR(s,a,b) if(d_ctscr(a,b) < S_OKAY) vista_abort(s) -#define DBDPATH(s,a) if(d_dbdpath(a) < S_OKAY) vista_abort(s) -#define DBFPATH(s,a) if(d_dbfpath(a) < S_OKAY) vista_abort(s) -#define DBLOG(s,a) if(d_dblog(a) < S_OKAY) vista_abort(s) -#define DBTAF(s,a) if(d_dbtaf(a) < S_OKAY) vista_abort(s) -#define DBUSERID(s,a) if(d_dbuserid(a) < S_OKAY) vista_abort(s) -#define DECODE_DBA(s,a,b,c) if(d_decode_dba(a,b,c) < S_OKAY) vista_abort(s) -#define DELETE(s,a) if(d_delete(a) < S_OKAY) vista_abort(s) -#define DESTROY(s,a) if(d_desoy(a) < S_OKAY) vista_abort(s) -#define DISCON(s,a,b) if(d_discon(a,b) < S_OKAY) vista_abort(s) -#define DISDEL(s,a) if(d_disdel(a) < S_OKAY) vista_abort(s) -#define ENCODE_DBA(s,a,b,c) if(d_encode_dba(a,b,c) < S_OKAY) vista_abort(s) -#define FILLNEW(s,a,b,c) if(d_fillnew(a,b,c) < S_OKAY) vista_abort(s) -#define FINDCO(s,a,b) if(d_findco(a,b) < S_OKAY) vista_abort(s) -#define FINDFM(s,a,b) if(d_findfm(a,b) < S_OKAY) vista_abort(s) -#define FINDLM(s,a,b) if(d_findlm(a,b) < S_OKAY) vista_abort(s) -#define FINDNM(s,a,b) if(d_findnm(a,b) < S_OKAY) vista_abort(s) -#define FINDPM(s,a,b) if(d_findpm(a,b) < S_OKAY) vista_abort(s) -#define FREEALL(s) if(d_freeall() < S_OKAY) vista_abort(s) -#define GTSCM(s,a,b,c) if(d_gtscm(a,b,c) < S_OKAY) vista_abort(s) -#define GTSCO(s,a,b,c) if(d_gtsco(a,b,c) < S_OKAY) vista_abort(s) -#define GTSCR(s,a,b) if(d_gtscr(a,b) < S_OKAY) vista_abort(s) -#define GTSCS(s,a,b,c) if(d_gtscs(a,b,c) < S_OKAY) vista_abort(s) -#define INITFILE(s,a,b) if(d_initfile(a,b) < S_OKAY) vista_abort(s) -#define INITIALIZE(s,a) if(d_initialize(a) < S_OKAY) vista_abort(s) -#define ISMEMBER(s,a,b) if(d_ismember(a,b) < S_OKAY) vista_abort(s) -#define ISOWNER(s,a,b) if(d_isowner(a,b) < S_OKAY) vista_abort(s) -#define KEYDEL(s,a,b) if(d_keydel(a,b) < S_OKAY) vista_abort(s) -#define KEYEXIST(s,a,b) if(d_keyexist(a,b) < S_OKAY) vista_abort(s) -#define KEYFIND(s,a,b,c) if(d_keyfind(a,b,c) < S_OKAY) vista_abort(s) -#define KEYFREE(s,a,b) if(d_keyfree(a,b) < S_OKAY) vista_abort(s) -#define KEYFRST(s,a,b) if(d_keyfrst(a,b) < S_OKAY) vista_abort(s) -#define KEYLAST(s,a,b) if(d_keylast(a,b) < S_OKAY) vista_abort(s) -#define KEYLOCK(s,a,b,c) if(d_keylock(a,b,c) < S_OKAY) vista_abort(s) -#define KEYLSTAT(s,a,b,c) if(d_keylstat(a,b,c) < S_OKAY) vista_abort(s) -#define KEYNEXT(s,a,b) if(d_keynext(a,b) < S_OKAY) vista_abort(s) -#define KEYPREV(s,a,b) if(d_keyprev(a,b) < S_OKAY) vista_abort(s) -#define KEYREAD(s,a) if(d_keyread(a) < S_OKAY) vista_abort(s) -#define KEYSTORE(s,a,b) if(d_keystore(a,b) < S_OKAY) vista_abort(s) -#define LOCK(s,a,b,c) if(d_lock(a,b,c) < S_OKAY) vista_abort(s) -#define MAKENEW(s,a,b) if(d_makenew(a,b) < S_OKAY) vista_abort(s) -#define MAPCHAR(s,a,b,c,d) if(d_mapchar(a,b,c,d) < S_OKAY) vista_abort(s) -#define MEMBERS(s,a,b,c) if(d_members(a,b,c) < S_OKAY) vista_abort(s) -#define OFF_OPT(s,a) if(d_off_opt(a) < S_OKAY) vista_abort(s) -#define ON_OPT(s,a) if(d_on_opt(a) < S_OKAY) vista_abort(s) -#define OPEN(s,a,b) if(d_open(a,b) < S_OKAY) vista_abort(s) -#define RDCURR(s,a,b) if(d_rdcurr(a,b) < S_OKAY) vista_abort(s) -#define RECFREE(s,a,b) if(d_recfree(a,b) < S_OKAY) vista_abort(s) -#define RECFRST(s,a,b) if(d_recfrst(a,b) < S_OKAY) vista_abort(s) -#define RECLAST(s,a,b) if(d_reclast(a,b) < S_OKAY) vista_abort(s) -#define RECLOCK(s,a,b,c) if(d_reclock(a,b,c) < S_OKAY) vista_abort(s) -#define RECLSTAT(s,a,b,c) if(d_reclstat(a,b,c) < S_OKAY) vista_abort(s) -#define RECNEXT(s,a) if(d_recnext(a) < S_OKAY) vista_abort(s) -#define RECOVER(s,a) if(d_recover(a) < S_OKAY) vista_abort(s) -#define RECPREV(s,a) if(d_recprev(a) < S_OKAY) vista_abort(s) -#define RECREAD(s,a,b) if(d_recread(a,b) < S_OKAY) vista_abort(s) -#define RECSET(s,a,b) if(d_recset(a,b) < S_OKAY) vista_abort(s) -#define RECSTAT(s,a,b,c) if(d_recstat(a,b,c) < S_OKAY) vista_abort(s) -#define RECWRITE(s,a,b) if(d_recwrite(a,b) < S_OKAY) vista_abort(s) -#define RENFILE(s,a,b,c) if(d_renfile(a,b,c) < S_OKAY) vista_abort(s) -#define RLBCLR(s,a) if(d_rlbclr(a) < S_OKAY) vista_abort(s) -#define RLBSET(s,a) if(d_rlbset(a) < S_OKAY) vista_abort(s) -#define RLBTST(s,a) if(d_rlbtst(a) < S_OKAY) vista_abort(s) -#define SETDB(s,a) if(d_setdb(a) < S_OKAY) vista_abort(s) -#define SETFILES(s,a) if(d_setfiles(a) < S_OKAY) vista_abort(s) -#define SETFREE(s,a,b) if(d_setfree(a,b) < S_OKAY) vista_abort(s) -#define SETLOCK(s,a,b,c) if(d_setlock(a,b,c) < S_OKAY) vista_abort(s) -#define SETLSTAT(s,a,b,c) if(d_setlstat(a,b,c) < S_OKAY) vista_abort(s) -#define SETMM(s,a,b,c) if(d_setmm(a,b,c) < S_OKAY) vista_abort(s) -#define SETMO(s,a,b,c) if(d_setmo(a,b,c) < S_OKAY) vista_abort(s) -#define SETMR(s,a,b) if(d_setmr(a,b) < S_OKAY) vista_abort(s) -#define SETOM(s,a,b,c) if(d_setom(a,b,c) < S_OKAY) vista_abort(s) -#define SETOO(s,a,b,c) if(d_setoo(a,b,c) < S_OKAY) vista_abort(s) -#define SETOR(s,a,b) if(d_setor(a,b) < S_OKAY) vista_abort(s) -#define SETPAGES(s,a,b) if(d_setpages(a,b) < S_OKAY) vista_abort(s) -#define SETRM(s,a,b) if(d_setrm(a,b) < S_OKAY) vista_abort(s) -#define SETRO(s,a,b) if(d_setro(a,b) < S_OKAY) vista_abort(s) -#define STSCM(s,a,b,c) if(d_stscm(a,b,c) < S_OKAY) vista_abort(s) -#define STSCO(s,a,b,c) if(d_stsco(a,b,c) < S_OKAY) vista_abort(s) -#define STSCR(s,a,b) if(d_stscr(a,b) < S_OKAY) vista_abort(s) -#define STSCS(s,a,b,c) if(d_stscs(a,b,c) < S_OKAY) vista_abort(s) -#define TIMEOUT(s,a) if(d_timeout(a) < S_OKAY) vista_abort(s) -#define TRABORT(s) if(d_trabort() < S_OKAY) vista_abort(s) -#define TRBEGIN(s,a) if(d_trbegin(a) < S_OKAY) vista_abort(s) -#define TREND(s) if(d_trend() < S_OKAY) vista_abort(s) -#define UTSCM(s,a,b,c) if(d_utscm(a,b,c) < S_OKAY) vista_abort(s) -#define UTSCO(s,a,b,c) if(d_utsco(a,b,c) < S_OKAY) vista_abort(s) -#define UTSCR(s,a,b) if(d_utscr(a,b) < S_OKAY) vista_abort(s) -#define UTSCS(s,a,b,c) if(d_utscs(a,b,c) < S_OKAY) vista_abort(s) -#define WRCURR(s,a) if(d_wrcurr(a) < S_OKAY) vista_abort(s) -/*------------- end DMACROS.H -------------------*/ - - -/*------------- COMPILER DEPENDENT CONSTANTS -------------------*/ -#ifdef TURBO_COMPILER - #define FNAME_NULL "nul" - #define LOCAL_SLASH 92 /* ascii back slash char (\) */ -#endif - -#ifdef UNIX - #define FNAME_NULL "/dev/null" - #define LOCAL_SLASH 47 /* ascii forward slash char (/) */ -#endif - -/*------------ COMPILER INDEPENDENT CONSTANTS -------------------*/ - -#define CACHE_SIZE 64 /* used in vista d_setpages() function */ -#define COMMENT_CHARS "#*$!\n" /* identify comment lines in AusText files */ -#define CTRL_Z 26 -#define DIT_FINDSTR 1L /* DITTO.flags: retained aft FINDSTR srch */ -#define DIT_STOP 2L /* DITTO.flags: node where user pushed stop */ -#define END_RETAIN_PAGE 11 /* VT = marks end of RETAIN page */ -/***#define END_RETAIN_REC '\f'****/ -#define EXT_CHARTYPE ".chr" /* user definable wildcards (from LOADCHR) */ -#define EXT_CANDI ".can" /* candidate dictionary words format */ -#define EXT_CONFIG ".ocf" /* standard opera configuration file */ -#define EXT_DTBS ".d99" /* inverted index file for dbase addrs */ -#define EXT_FZKEY ".fzk" /* output of all opera text anal pgms */ -#define EXT_HANDEL ".han" /* standard handel profile file format */ -#define EXT_HUFFCODE ".huf" /* huffman encode tree (from HUFFCODE) */ -#define EXT_HDECODE ".c" /* huffman decode tree (from HUFFCODE) */ -#define EXT_INCLIST ".inc" /* "include" list file name extension */ -#define EXT_LIST ".lst" /* standard wordlist format: 1 word/line */ -#define EXT_SCHEMA ".sch" /* vista database schema format */ -#define EXT_STOPLIST ".stp" /* standard stop list format */ -#define EXT_SURVEY ".sur" /* standard survey file format */ -#define EXT_TEMP ".tmp" /* any kind of temporary file */ -#define EXT_TEXT ".txt" /* freeform ascii text format */ -#define EXT_USRNOTES ".not" /* user notes flatfile format */ -#define ETXDELIM "\f\n" /* default end-of-text (ETX) delim str */ -#define FNAME_AUDIT "opaudit.lst" -#define FNAME_AUSCAT "austools.cat" /* Austools msgs catalog */ -#define FNAME_AUSTEXT_TUTORIAL "austext.tut" -#define FNAME_CONFIRM_LIST "todscrd.lst" /* Shankar/Tomita files */ -#define FNAME_DISCARD_DATA "shdscrd.lst" /* OEF_discard */ -#define FNAME_DTSRCAT "dtsearch" /* DtSearch msgs catalog */ -#define FNAME_HUFFCODE_TAB "ophuf.huf" /* huffman encode table */ -#define FNAME_MUIRES "mui.res" /* motif class resources file */ -#define FNAME_NOTES_BAC "usrnotes.not" -#define FNAME_NOTES_SEM "usrnotes.sem" -#define FNAME_ORIGSTOP "orig.stp" -#define FNAME_README "readme.txt" -#define FNAME_SITECONFIG "dtsearch.ocf" -#define FNAME_SITENEWS "sitenews.txt" -#define MINWIDTH_TOKEN 2 /* default smallest word/stem allowed */ -#define MAX_BMHTAB 256 /* max alphabet size in bmstrstr tables */ -#define MAX_ETXDELIM 100 /* max size of ETX delim string */ -#define MAX_KTCOUNT 64 /* max number of keytypes */ -#define MAXWIDTH_LWORD 40 /* = sizeof(or_lwordrec.or_lwordkey) */ -#define MAXWIDTH_SWORD 16 /* = sizeof(or_swordrec.or_swordkey) */ -#define NULLDATESTR "0/0/0~0:0" -#define NUM_HOLES 256 /* array size for defragmentation */ -#define OBJDATESTR "%02d/%02d/%02d~%02d:%02d" -#define PRODNAME "DtSearch" -#define PWDMASKSZ 20 -#define SCREEN_WIDTH 80 /* max len text line in online OPERA pgms */ -#define STEM_CH 15 /* Ctrl-O stemmed word prefix character */ - -/*--------------- BYTE SWAP DECLARATIONS ------------ - * The default database record format is the data ordering - * for big endian machines (most significant byte first), - * also known as "network" order. For non big_endian platforms, - * all compiles should include the BYTE_SWAP define. - * SWABDIR is direction of io to indicate correct byte swap function. - * HTON is host to network, internal memory to external database file. - * NTOH is network to host, file to memory. - * Actual host_to_network functions defined in - * which is not yet standardized. - */ -typedef enum {HTON=1, NTOH} SWABDIR; - -extern void swab_dbrec (struct or_dbrec *rec, SWABDIR direction); -extern void swab_objrec (struct or_objrec *rec, SWABDIR direction); - -#ifdef BYTE_SWAP /* ie (BYTE_ORDER != BIG_ENDIAN) */ - -#define HTONL(x) x = htonl(x) -#define HTONS(x) x = htons(x) -#define NTOHL(x) x = ntohl(x) -#define NTOHS(x) x = ntohs(x) - -#else /* !BYTE_SWAP, ie (BYTE_ORDER == BIG_ENDIAN) */ - -#define HTONL(x) -#define HTONS(x) -#define NTOHL(x) -#define NTOHS(x) - -#endif /* BYTE_SWAP */ - - -/*--------------- TESKEY PARSE CHARACTER TYPES ------------ - * Used in langmap.c for linguistic parsing modules. - * Low order byte reserved for uppercase image of character - * as locale independent replacement for toupper() and strupr(). - */ -#define CONCORDABLE 0x4000 /* alpha, numeric: inside word */ -#define OPT_CONCORD 0x2000 /* "./-": maybe inside word, maybe outside */ -#define NON_CONCORD 0x1000 /* space, punctuation, etc: outside word */ - -#define VOWEL 0x0800 /* concordable subtype: aeiou */ -#define CONSONANT 0x0400 /* concordable subtype: all alpha - vowels */ -#define NUMERAL 0x0200 /* concordable subtype: 0-9 */ -#define WHITESPACE 0x0100 /* locale indep replacement for isspace() */ - - -/*--------------- SCHEMA CONSTANTS ---------------- - * Associated with fields in database schema (austext.h) - * and in DITTO structures. - * Values 20000 - 29999 reserved for custom user applic in all cardinal ints. - * ORA_ retrieval access location cardinal integers in or_access. - * ORC_ compression id bit switches in or_compflags. - * ORD_ bit switches in or_dbflags. - * (ORO_ bit switches in or_objflags - * renamed to DtSrFlxxx and moved to Search.h) - * ORM_ type cardinal integers in or_misctype. - * (ORT_ object type (or_objtype, or_dbotype, DITTO) - * renamed to DtSrObj... and moved to Search.h) - * (ORL_ language id cardinal integers in or_language - * renamed to DtSrLa... and moved to Search.h) - */ -#define ORA_VARIES 0 /* object accessibility unspec at curr lvl */ -#define ORA_NOTAVAIL 1 /* obj not directly accessible from engine */ -#define ORA_BLOB 2 /* obj stored in blob recs */ -#define ORA_REFBLOB 3 /* svr ref (filename of object) in blob */ -#define ORA_REFKEY 4 /* svr ref in or_objkey */ -#define ORA_REFHUGEKEY 5 /* svr ref in 'huge' key (misc) rec */ -#define ORA_REFABSTR 6 /* svr ref in abstract (misc rec) */ -#define ORA_CREFBLOB 13 /* clt ref (filename of object) in blob */ -#define ORA_CREFKEY 14 /* clt ref in or_objkey */ -#define ORA_CREFABSTR 16 /* clt ref in abstract (misc rec) */ - -#define ORC_COMPBLOB (1<<0) /* blobs are compressed */ -#define ORC_COMPABSTR (1<<1) /* abstracts are compressed */ - -#define ORD_XWORDS (1L<<0) /* inverted index includes exact words */ -#define ORD_XSTEMS (1L<<1) /* inverted index includes word stems */ -#define ORD_USEHUGEKEYS (1L<<4) /* all direct user access via huge keys */ -#define ORD_NOMARKDEL (1L<<8) /* permanently disables mark-for-deletion */ -#define ORD_NONOTES (1L<<9) /* permanently disables user notes */ -#define ORD_WIDECHAR (1L<<10) /* text is multibyte or wide chars */ - -#define ORO_DELETE (1L<<0) /* obj is marked for deletion */ -#define ORO_OLDNOTES (1L<<1) /* obj has old style usernotes in misc rec */ - -#define ORM_FZKABS 1 /* fzkey[fzkeysz] + abstract[abstrsz] */ -#define ORM_HUGEKEY 2 /* optional 'huge' key */ -#define ORM_OLDNOTES 3 /* old style user notes */ -#define ORM_KEYTYPE 4 /* database keytype rec (KEYTYPE struct) */ - -/*------------------------- MACROS ---------------------------*/ -/* (Use offsetof() in stddef.h to replace my old OFFSET macro) */ -#define NULLORSTR(str) ((str)?str:catgets(dtsearch_catd,1,1,"")) -#define NUMARRAY(arr) ((sizeof(arr) / sizeof(arr[0]))) - -/****************************************/ -/* */ -/* LLIST */ -/* */ -/****************************************/ -typedef struct llist_tag { - struct llist_tag *link; - void *data; -} LLIST; - -/****************************************/ -/* */ -/* FREE_SPACE_STR */ -/* */ -/****************************************/ -/* 'holes' structure used for dynamic defragmentation */ -typedef struct holes_str { - DtSrINT32 hole_size; - DtSrINT32 offset; - } FREE_SPACE_STR; - -/****************************************/ -/* */ -/* FILE_HEADER */ -/* */ -/****************************************/ -/* 'holes' structure used for dynamic defragmentation */ -typedef struct fl_head { - DtSrINT32 hole_count [2]; - FREE_SPACE_STR hole_array [2] [NUM_HOLES]; - } FILE_HEADER; - -/****************************************/ -/* */ -/* CMPLL, sort_llist, compare_llist */ -/* */ -/****************************************/ -/* Generic LLIST structure typically used for 'lines' of text, - * as in ausapi.msglist and usrblk.msgs, and binary blobs. - * See structure typedef below for blob list structure. - * LLISTs can be sorted by calling sort_llist(). - * The compare function is stored in global pointer 'compare_llist' - * prior to calling the sort function. - */ -typedef int (*CMPLL) (LLIST *left, LLIST *right); - -/****************************************/ -/* */ -/* READCFP */ -/* */ -/****************************************/ -/* Pointer to a function that takes a void - * pointer and returns a C char (1 octet). - * Used by linguistic parsers as a character reading cofunction. - * When parser is reading from a file stream as in dtsrindex, - * usual cofunction is readchar_ftext(). When parser is reading - * from a text string as in queries, the usual cofunction - * is readchar_string() which just accesses next char in string. - */ -typedef UCHAR (*READCFP) (void *); - -/********************************************************/ -/* */ -/* WORDTREE */ -/* */ -/********************************************************/ -/* A generic structure for creating binary trees of words - * from stoplists, include-lists, etc. - */ -typedef struct _bintree_tag { - struct _bintree_tag *rlink; /* ptr to right node */ - struct _bintree_tag *llink; /* ptr to left node */ - int len; /* length of word */ - void *word; - } WORDTREE; - - -/************************************************/ -/* */ -/* PARG */ -/* */ -/************************************************/ -/* Single argument for first parser call for a text block */ -typedef struct { - void *dblk; /* dblk is (DBLK *) */ - FILE *ftext; /* Text file being parsed in dtsrindex */ - void *string; /* Query or other string being parsed */ - void *etxdelim; /* End of text (ETX) delimiter string */ - long *offsetp; /* where parser stores word offset */ - long flags; -#define PA_INDEXING 0x0001 /* parse for indexing purposes (dtsrindex) */ -#define PA_HILITING 0x0002 /* parse for hiliting purposes */ -#define PA_MSGS 0x0004 /* explain parse failures with msgs */ - void *extra; /* reserved for generic use by parsers */ - } PARG; - - -/********************************************************/ -/* */ -/* DBLK */ -/* */ -/********************************************************/ -/* One element of a linked list of universal information - * about all databases accessible, - * to an online search engine instance, chained off of - * the global OE_dblist. It is also used individually - * by offline build tools to store database data. - * It contains pointers to linguistic processors and data structures, - * data derived from the site configuration file, - * data derived and used by the DBMS, - * and some fields reflecting recommended initial user choices. - * Changes here should also be reflected in initblks.c, - * austext.sch, initausd.c, and in oeinit.c. - */ -typedef struct dblk_tag - { - struct dblk_tag *link; /* ptr to next dblk in list */ - char name [11]; /* 1 - 8 char dictionary name */ - char is_selected; /* bool: initial gui selection status */ - char *label; /* database description/label string for UI */ - long flags; - char *path; /* where to find all database files */ - FILE *syofile; /* symptom offset (ranges) d97 file */ - FILE *syifile; /* symptom index d98 file */ - void *ranges; /* contents of syofile read into ram */ - FILE *iifile; /* inverted words index d99 file */ - time_t iimtime; /* last time d99 was modified */ - int vistano; /* vista database number */ - int ktcount; /* number of nodes in keytypes array */ - DtSrKeytype *keytypes; /* record types in this database */ - DBREC dbrec; /* copy of database's dbrec record */ - void *zblk; /* used only for semantic processing */ - - /*----- Huffman Compression -----*/ - time_t hufid; /* tree identification atom */ - int hufroot; /* index to inverted tree root (array bottom) */ - int *huftree; /* beginning of huffman tree array */ - - /*----- Language Fields -----*/ - char *fname_stp; /* name of stoplist file */ - char *fname_inc; /* name of include-list file */ - char *fname_sfx; /* name of suffixes file */ - int *charmap; /* parse/stem table for char set */ - WORDTREE *stoplist; /* root of stoplist tree */ - WORDTREE *inclist; /* root of include-list tree */ - char *(*lstrupr) (char *string, struct dblk_tag *dblk); - char *(*parser) (PARG *parg); - void *parse_extra; /* eg additional word trees */ - char *(*stemmer) (char *wordin, struct dblk_tag *dblk); - long stem_flags; /* stemmer options */ - void *stem_extra; /* eg suffix tables */ - void *lang_extra; /* additional language dependent data */ - long lang_flags; /* language dependent switches */ -#define LF_DUP_STP 0x0001 /* duplicate stop list */ -#define LF_DUP_INC 0x0002 /* duplicate include list */ -#define LF_DUP_SFX 0x0004 /* duplicate suffixes list */ - - /*----- User Search Parameters -----*/ - int maxhits; /* max # hits to be returned from searches */ - void *resuser; /* reserved for private use by users */ - } DBLK; - - -/*------------------------- GLOBALS -------------------------*/ -/* DtSearchExit (austext_exit) and DtSearchExitUser (austext_exit_user) - * are in ausexit.c too but are "public" in DtSearch (defined in Search.h). - */ -extern char *aa_argv0; /* globals.c */ -extern int aa_maxhits; /* aajoint.c */ -extern FILE *aa_stderr; /* globals.c */ -extern int ascii_charmap[]; /* langmap.c */ -extern LLIST *ausapi_msglist; /* globals.c */ -extern void (*austext_exit_first) (int); /* ausexit.c */ -extern void (*austext_exit_dbms) (int); /* ausexit.c */ -extern void (*austext_exit_comm) (int); /* ausexit.c */ -extern void (*austext_exit_endwin) (int); /* ausexit.c */ -extern void (*austext_exit_mem) (int); /* ausexit.c */ -extern void (*austext_exit_last) (int); /* ausexit.c */ -extern void (*austext_exit_user) (int); /* ausexit.c */ -extern nl_catd austools_catd; /* globals.c */ -extern CMPLL compare_llist; -extern nl_catd dtsearch_catd; /* globals.c */ -extern unsigned long - duprec_hashsize; /* isduprec.c */ -extern int latin_charmap[]; /* langmap.c */ - - -/*------------------------ FUNCTION PROTOTYPES ------------------------*/ -extern void add_free_space(FREE_SPACE_STR *del_rec, FILE_HEADER *flh); -extern void append_ext (char *buffer, int buflen, - char *fname, char *fext); -extern int austext_dopen ( - char *dbname, - char *dbpath, - char *d2xpath, - int cache_size, - DBREC *bufptr); -extern void *austext_malloc (size_t size, char *location, void *ignored); -extern char *bmhcore ( - UCHAR *text, - size_t txtlen, - UCHAR *pattern, - size_t patlen, - size_t *bmhtable); -extern void bmhtable_build ( - UCHAR *pattern, - size_t patlen, - size_t *bmhtable); -extern char *bmstrstr ( - UCHAR *text, - size_t txtlen, - UCHAR *pattern, - size_t patlen); -extern int clean_wrap (char *string, int linelen); -extern LLIST *cutnode_llist (LLIST *node, LLIST **llistp); -extern void (*dberr_exit)(int exitcode); /* defaults to exit() */ -extern void delete_whitespace (char *linebuf); -extern void discard_to_ETX (PARG *parg); -extern int endstroke (int c); -extern void put_new_word(struct or_hwordrec *recbuf, int vistano); -extern FREE_SPACE_STR - *find_free_space (DtSrINT32 req_size, FILE_HEADER *flh); -extern void free_llist (LLIST **llhead); -extern int fread_d99_header (FILE_HEADER *flh, FILE *fp); -extern int fwrite_d99_header (FILE_HEADER *flh, FILE *fp); -extern char *get_email_addr (void); -extern char *getnews (char *fname, int use_copyr); -extern void hc_decode (UCHAR *input_bitstring, UCHAR *output_charbuf, - int outbuf_size, time_t encode_id); -extern int hc_encode (struct or_blobrec *targ, UCHAR *src, - int srclen, int force_flush); -extern void init_header (FILE *fp, FILE_HEADER *flh); -extern int is_compatible_version (char *callers_vers, char *local_vers); -extern int is_concordable (char *word, int *charmap); -extern int is_duprec (char *recid); -extern int is_objdatestr (char *string, DtSrObjdate *objdptr); -extern int is_objdatetm (struct tm *objdatetm); -extern void join_llists (LLIST **mainlist, LLIST **sublist); -extern char *jpn_parser (PARG *parg); -extern int load_custom_language (DBLK *dblk, DBLK *dblist); -extern int load_jpn_language (DBLK *dblk, DBLK *dblist); -extern int load_language (DBLK *dblk, DBLK *dblist); -extern int load_wordtree ( - WORDTREE **treetop, - DBLK *dblk, - char *fname, - int do_teskey_test); -extern char *null_stemmer (char *word, DBLK *dblk); -extern char *null_lstrupr (char *string, DBLK *dblk); -extern char *objdate2fzkstr (DtSrObjdate objdate); -extern struct tm - *objdate2tm (DtSrObjdate objdate); -extern int objdate_in_range (DtSrObjdate recdate, - DtSrObjdate date1, DtSrObjdate date2); -extern int offline_kbhit (void); -extern int open_dblk (DBLK **dblist, int numpages, int debugging); -extern LLIST *pop_llist (LLIST **llistp); -extern void print_dbrec (char *dbname, struct or_dbrec *dbrec); -extern int quit_escape(void); -extern UCHAR readchar_ftext (PARG *parg); -extern UCHAR readchar_string (UCHAR *string); -extern char *remove_spaces (char *string); -extern void replace_ext (char *buffer, int buflen, - char *fname, char *fext); -extern LLIST *sort_llist (LLIST *list_header); -extern char *teskey_parser (PARG *parg); -extern DtSrObjdate - tm2objdate (struct tm *tmptr); -#if !defined(__linux__) -#ifndef _ALL_SOURCE -extern char *strdup (const char *s); -#endif -#endif -extern void toggle_insert (void); -extern void unload_custom_language (DBLK *dblk); -extern void unload_language (DBLK *dblk); -extern void vista_abort (char *location); -extern char *vista_msg (char *location); - -/************************ SearchP.h ********************************/ -#endif /* _SearchP_h */ - diff --git a/cde/lib/DtSearch/boolpars.h b/cde/lib/DtSearch/boolpars.h deleted file mode 100644 index ef21f96b..00000000 --- a/cde/lib/DtSearch/boolpars.h +++ /dev/null @@ -1,137 +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: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $ - * - * (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. - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 27 - * - * - * (C) COPYRIGHT International Business Machines Corp. 1996 - * All Rights Reserved - * Licensed Materials - Property of IBM - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -#ifndef _boolpars_h -#define _boolpars_h -/******************** BOOLPARS.H ******************** - * $Id: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $ - * February 1996. - * Header for boolpars.c AusText/DtSearch yacc-based boolean query parser. - * - * FORMAT OF TRUTH TABLE: - * Pointer to TRUTHTAB struct is main yacc stack value. - * Represents 256 unsigned chars, every possible permutation of 8 (max) - * query stems. The unsigned chars ("permutes") are bit vectors. - * Bit #0 (lowest order) is for first word in stemsarray stems[0], - * bit #1 is stems[1], etc. - * Example: truthtab for query consisting of a single word, - * call it 'A' (assigned bit #0), is the 128 chars 1, 3, 5, 7, ..., - * ie all bitvector permutations with low order bit turned on. - * B: (bit #1) is the 128 chars 2, 3, 6, 7, ..., ie all permutations - * with 2nd bit turned on. - * A & B: Intersection of truth tables: the 64 chars 3, 7, ..., - * all the bit vector permutations they have in common. - * A | B: Union of truth tables: the 192 permutes 1,2,3, 5,6,7, 9,10,11... - * ~B: Complement of truth table, U - B: the 128 chars 0, 1, 4, 5, ..., - * ie every bitvector permutation NOT in B. - * - * The zero permute (all bits zero) refers to the entire - * balance of the database containing none of the query stems. - * Needless to say searches with the zero permute in their - * truth table will take an incredibly long time! - * - * The 'universal set' U is all 256 possible permutes. - * The 'empty set' is indicated by truthtab.pmsz == 0; - * - * The permutes in a truth table are maintained in - * ascending order for ease of comparisons. - * - * Truth table manipulations require and depend on - * DtSrMAX_STEMCOUNT being defined only as 8. - * - * Newly allocated truth tables are maintained on the 'ttlist' - * using the 'next' field. This is to ensure they are eventually - * freed to prevent memory leaks. - * - * If 'stemno' >= 0 it points to the word in usrblk.stems to which - * it applies. Stemno == -1 means truth table is not directly - * associated with a word in usrblk.stems. - * - * $Log$ - * Revision 1.1 1996/03/05 15:52:06 miker - * Initial revision - * - */ - -#define COLLOC_STEM_FORMAT "@%02d%02d%d" - -/****************************************/ -/* */ -/* TRUTHTAB */ -/* */ -/****************************************/ -/* Truth table returned from boolean_parse() */ -typedef struct tttag { - struct tttag *next; - int stemno; /* -1 means not assoc with stems[] array */ - int pmsz; /* number of bytes in permutes array */ - unsigned char *permutes; /* array of bit vector permutations */ - } TRUTHTAB; - -/****************************************/ -/* */ -/* Globals */ -/* */ -/****************************************/ -extern int qry_has_no_NOTs; -extern int qry_is_all_ANDs; -extern int parser_invalid_wordcount; -extern TRUTHTAB final_truthtab; - -/****************************************/ -/* */ -/* Function Prototypes */ -/* */ -/****************************************/ -extern void add_syntax_errmsg (int msgno); -extern TRUTHTAB *boolyac_AND (TRUTHTAB *tt1, TRUTHTAB *tt2); -extern TRUTHTAB *boolyac_COLLOC (TRUTHTAB *tt1, int colval, TRUTHTAB *tt2); -extern TRUTHTAB *boolyac_NOT (TRUTHTAB *tt1); -extern TRUTHTAB *boolyac_OR (TRUTHTAB *tt1, TRUTHTAB *tt2); -extern TRUTHTAB *copy_final_truthtab (TRUTHTAB *tt); - -/******************** BOOLPARS.H *********************/ -#endif /* _boolpars_h */ diff --git a/cde/lib/DtSearch/dberr.h b/cde/lib/DtSearch/dberr.h deleted file mode 100644 index dedb3f87..00000000 --- a/cde/lib/DtSearch/dberr.h +++ /dev/null @@ -1,117 +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: dberr.h /main/5 1996/09/23 21:00:53 cde-ibm $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 27 - * - * (C) COPYRIGHT International Business Machines Corp. 1995 - * All Rights Reserved - * Licensed Materials - Property of IBM - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -/* $Log$ - * Revision 2.2 1995/10/24 21:37:15 miker - * Add prolog. - * */ -/* dberr error/status codes */ -static char *user_error[] = { - "database not opened", - "invalid set", - "invalid record", - "invalid database", - "invalid field name", - "invalid db_address", - "no current record", - "set has no current owner", - "set has no current member", - "key value required", - "invalid lock value", - "record is owner of non-empty set(s)", - "record is member of set(s)", - "member already owned", - "field is a compound key", - "record not connected to set", - "field is not a valid key", - "record not legal owner of set", - "record not legal member of set", - "error in d_setpages (database open or bad param)", - "incompatible dictionary file", - "illegal attempt to delete system record", - "illegal attempt to lock locked set/record", - "attempt to access unlocked set/record", - "transaction id not supplied", - "transaction already active", - "transaction not active", - "transaction cannot begin due to locked files", - "cannot free locks within a transaction", - "too many changed database pages", - "cannot update database outside a transaction", - "exclusive access required", - "write locks not allowed on static files", - "unspecified or duplicate user id", - "database, path or file name too long", - "invalid file number was passed to d_renfile", - "field is not an optional key field", - "field is not defined in current record type", - "record/field has/in a compound key", - "invalid record or set number", - "record/set not timestamped", - "bad DBUSERID (contains non-alphanumeric)", - "NetBIOS has not been installed on machine", - "wrong number of elements in DBDPATH", - "wrong number of elements in DBFPATH", - "no current record type", - "invalid country table sort string", - "database not closed" -}; -static char *system_error[] = { - "no more space on file", - "system error", - "page fault", - "no working file in dio", - "unable to allocate sufficient memory", - "error opening file", - "unable to get access to database taf file", - "database taf/log file error", - "inconsistent database locks", - "file record limit exceeded", - "key file inconsistency", - "maximum concurrent user limit exceeded", - "error seeking in database file", - "invalid file specified", - "error reading from a database/overflow file", - "lock manager synchronization error", - "debug check interrupt", - "network communications error", - "auto-recovery in process", - "error writing to a database/overflow file", - "no lock manager is installed", - "DBUSERID is already being used", - "the lock manager is busy" -}; -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dberr.h */ diff --git a/cde/lib/DtSearch/dproto.h b/cde/lib/DtSearch/dproto.h deleted file mode 100644 index e0fd4530..00000000 --- a/cde/lib/DtSearch/dproto.h +++ /dev/null @@ -1,209 +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: dproto.h /main/2 1996/05/09 03:55:20 drk $ */ -/*---------------------------------------------------------------------------- - dproto.h: db_VISTA (user) function declaration header file - - (C) Copyright 1988 by Raima Corporation. -----------------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP -*/ - - -int d_setfiles(P1(int)); /* dio.c */ -int d_setpages(P1(int) Pi(int)); /* dio.c */ -int d_trbound(P0); /* trlog.c */ -int d_trlog(P1(int) Pi(int) Pi(CONST char FAR *) Pi(int)); - /* trlog.c */ -int d_trmark(P0); /* trlog.c */ -int d_tron(P0); /* trlog.c */ -int d_troff(P0); /* trlog.c */ -int d_decode_dba(P1(DB_ADDR) Pi(int FAR *) Pi(long FAR *)); - /* dbacode.c */ -int d_encode_dba(P1(int) Pi(long) Pi(DB_ADDR FAR *)); - /* dbacode.c */ - -#define d_memlock(p) /**/ -#define d_memlock_group(lg) S_OKAY -#define d_memunlock(p) /**/ -#define d_memunlock_group(lg) /**/ -char FAR * d_alloc(P1(unsigned)); /* alloc.c */ -char FAR * d_calloc(P1(unsigned) Pi(unsigned)); /* alloc.c */ -void d_free(P1(CHAR_P FAR *)); /* alloc.c */ - -#ifndef MULTI_TASK /* MULTI_TASK */ -#define dt_opentask(a) S_OKAY -#define dt_closetask(a) S_OKAY - -int d_close(P0); /* dblfcns.c */ -int d_cmstat(P1(int) DBN_Dn); /* cmstat.c */ -int d_cmtype(P1(int) Pi(int FAR *) DBN_Dn); /* cmtype.c */ -int d_connect(P1(int) DBN_Dn); /* connect.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_costat(P1(int) DBN_Dn); /* costat.c */ -#endif /* NO_TIMESTAMP */ -int d_cotype(P1(int) Pi(int FAR *) DBN_Dn); /* cotype.c */ -int d_crget(P1(DB_ADDR FAR *) DBN_Dn); /* crget.c */ -int d_crread(P1(long) Pi(char FAR *) DBN_Dn); /* crread.c */ -int d_crset(P1(DB_ADDR FAR *) DBN_Dn); /* crset.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_crstat(P0); /* crstat.c */ -#endif /* NO_TIMESTAMP */ -int d_crtype(P1(int FAR *) DBN_Dn); /* crtype.c */ -int d_crwrite(P1(long) Pi(char FAR *) DBN_Dn); /* crwrite.c */ -int d_csmget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csmget.c */ -int d_csmread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); - /* csmread.c */ -int d_csmset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csmset.c */ -int d_csmwrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); - /* csmwrite.c */ -int d_csoget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csoget.c */ -int d_csoread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); - /* csoread.c */ -int d_csoset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn); /* csoset.c */ -int d_csowrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); - /* csowrite.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_csstat(P1(int) DBN_Dn); /* csstat.c */ -int d_ctscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* ctscm.c */ -int d_ctsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* ctsco.c */ -int d_ctscr(P1(ULONG FAR *)); /* ctscr.c */ -#endif /* NO_TIMESTAMP */ -#ifndef NO_COUNTRY -int d_ctbpath(P1(CONST char FAR *)); /* pathfcns.c */ -#endif /* NO_COUNTRY */ -int d_dbdpath(P1(CONST char FAR *)); /* dbdpath.c */ -int d_dbfpath(P1(CONST char FAR *)); /* dbfpath.c */ -int d_dblog(P1(CONST char FAR *)); /* dblog.c */ -int d_dbtaf(P1(CONST char FAR *)); /* dbtaf.c */ -int d_dbuserid(P1(CONST char FAR *)); /* dbuserid.c */ -int d_delete(DBN_D1); /* delete.c */ -int d_disdel(DBN_D1); /* disdel.c */ -int d_recnext(DBN_D1); /* recnext.c */ -int d_recprev(DBN_D1); /* recprev.c */ -int d_destroy(P1(CONST char FAR *)); /* destroy.c */ -int d_discon(P1(int) DBN_Dn); /* discon.c */ -int d_fillnew(P1(int) Pi(CONST char FAR *) DBN_Dn); /* fillnew.c */ -int d_findco(P1(int) DBN_Dn); /* findco.c */ -int d_findfm(P1(int) DBN_Dn); /* findfm.c */ -int d_findlm(P1(int) DBN_Dn); /* findlm.c */ -int d_findnm(P1(int) DBN_Dn); /* findnm.c */ -int d_findpm(P1(int) DBN_Dn); /* findpm.c */ -int d_freeall(P0); /* dblfcns.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_gtscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtscm.c */ -int d_gtsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtsco.c */ -int d_gtscr(P1(ULONG FAR *)); /* gtscr.c */ -int d_gtscs(P1(int) Pi(ULONG FAR *) DBN_Dn); /* gtscs.c */ -#endif /* NO_TIMESTAMP */ -int d_initialize(DBN_D1); /* initial.c */ -int d_initfile(P1(FILE_NO) DBN_Dn); /* initial.c */ -int d_ismember(P1(int) DBN_Dn); /* ismember.c */ -int d_isowner(P1(int) DBN_Dn); /* isowner.c */ -int d_keydel(P1(long) DBN_Dn); /* keydel.c */ -int d_keyexist(P1(long) DBN_Dn); /* keyexist.c */ -int d_keyfind(P1(long) Pi(CONST char FAR *) DBN_Dn); - /* keyfind.c */ -int d_keyfree(P1(long) DBN_Dn); /* dblfcns.c */ -int d_keyfrst(P1(long) DBN_Dn); /* keyfrst.c */ -int d_keylast(P1(long) DBN_Dn); /* keylast.c */ -int d_keylock(P1(long) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_keylstat(P1(long) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_keynext(P1(long) DBN_Dn); /* keynext.c */ -int d_keyprev(P1(long) DBN_Dn); /* keyprev.c */ -int d_keyread(P1(char FAR *)); /* keyfcns.c */ -int d_keystore(P1(long) DBN_Dn); /* keystore.c */ -int d_lock(P1(int) Pi(LOCK_REQUEST FAR *) DBN_Dn); /* dblfcns.c */ -int d_makenew(P1(int) DBN_Dn); /* makenew.c */ -int d_mapchar(P1(unsigned char) Pi(unsigned char) - Pi(CONST char FAR *) Pi(unsigned char)); /* mapchar.c */ -int d_members(P1(int) Pi(LONG FAR *) DBN_Dn); /* members.c */ -int d_off_opt(P1(int)); /* options.c */ -int d_on_opt(P1(int)); /* options.c */ -int d_open(P1(CONST char FAR *) Pi(CONST char FAR *)); - /* dblfcns.c */ -int d_rerdcurr(P1(DB_ADDR FAR **)); /* rwcurr.c */ -int d_rdcurr(P1(DB_ADDR FAR **) Pi(int FAR *)); /* rwcurr.c */ -int d_wrcurr(P1(DB_ADDR FAR *)); /* rwcurr.c */ -int d_recfree(P1(int) DBN_Dn); /* dblfcns.c */ -int d_recfrst(P1(int) DBN_Dn); /* recfrst.c */ -int d_reclast(P1(int) DBN_Dn); /* reclast.c */ -int d_reclock(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_reclstat(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_recover(P1(CONST char FAR *)); /* recover.c */ -int d_recread(P1(char FAR *) DBN_Dn); /* recread.c */ -int d_recset(P1(int) DBN_Dn); /* recset.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_recstat(P1(DB_ADDR) Pi(ULONG)); /* recstat.c */ -#endif /* NO_TIMESTAMP */ -int d_recwrite(P1(CONST char FAR *) DBN_Dn); /* recwrite.c */ -int d_renfile(P1(CONST char FAR *) Pi(FILE_NO) - Pi(CONST char FAR *)); /* renfile.c */ -int d_retries(P1(int)); /* dblfcns.c */ -int d_rlbclr(P0); /* dblfcns.c */ -int d_rlbset(P0); /* dblfcns.c */ -int d_rlbtst(P0); /* dblfcns.c */ -int d_set_dberr(P1(FARPROC)); /* dberr.c */ -#ifndef ONE_DB /* ONE_DB */ -int d_setdb(P1(int)); /* setdb.c */ -#endif /* ONE_DB */ -int d_setfree(P1(int) DBN_Dn); /* dblfcns.c */ -int d_setkey(P1(long) Pi(CONST char FAR *) DBN_Dn); /* makenew.c */ -int d_setlock(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_setlstat(P1(int) Pi(char FAR *) DBN_Dn); /* dblfcns.c */ -int d_setmm(P1(int) Pi(int) DBN_Dn); /* setmm.c */ -int d_setmo(P1(int) Pi(int) DBN_Dn); /* setmo.c */ -int d_setmr(P1(int) DBN_Dn); /* setmr.c */ -int d_setom(P1(int) Pi(int) DBN_Dn); /* setom.c */ -int d_setoo(P1(int) Pi(int) DBN_Dn); /* setoo.c */ -int d_setor(P1(int) DBN_Dn); /* setor.c */ -int d_setrm(P1(int) DBN_Dn); /* setrm.c */ -int d_setro(P1(int) DBN_Dn); /* setro.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_stscm(P1(int) Pi(ULONG) DBN_Dn); /* stscm.c */ -int d_stsco(P1(int) Pi(ULONG) DBN_Dn); /* stsco.c */ -int d_stscr(P1(ULONG)); /* stscr.c */ -int d_stscs(P1(int) Pi(ULONG) DBN_Dn); /* stscs.c */ -#endif /* NO_TIMESTAMP */ -int d_timeout(P1(int)); /* dblfcns.c */ -int d_trabort(P0); /* dblfcns.c */ -int d_trbegin(P1(CONST char FAR *)); /* dblfcns.c */ -int d_trend(P0); /* dblfcns.c */ -#ifndef NO_TIMESTAMP /* NO_TIMESTAMP */ -int d_utscm(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utscm.c */ -int d_utsco(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utsco.c */ -int d_utscr(P1(ULONG FAR *)); /* utscr.c */ -int d_utscs(P1(int) Pi(ULONG FAR *) DBN_Dn); /* utscs.c */ -#endif /* NO_TIMESTAMP */ - -#endif /* MULTI_TASK */ - -int dberr(P1(int)); /* dberr.c */ - -#define D_FUNCTIONS_H -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */ diff --git a/cde/lib/DtSearch/raima/dblock.h b/cde/lib/DtSearch/raima/dblock.h deleted file mode 100644 index 3614eae8..00000000 --- a/cde/lib/DtSearch/raima/dblock.h +++ /dev/null @@ -1,194 +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: dblock.h /main/2 1996/05/09 04:02:57 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: FCNINIT - * - * ORIGINS: 157 - * - */ -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 368 28-Jul-88 RSC Integrate BSD changes into code - 115 16-Aug-88 RSC Integrate VAX/VMS changes into source code - 423 09-Sep-88 RSC Change variables to be compatible with MULTI_TASK - 420 07-Oct-88 RSC Unoptimized use of fl_list (full of bugs) - 441 09-Dec-88 RSC Modified defn of FCNPID for general lockmgr -*/ - -/* Lock Manager/Runtime function interaction */ - -/* Network Bios Status codes */ -#define N_BUSY 0xff -#define N_OKAY 0x00 -#define N_TIMEOUT 0x05 -#define N_SESCLOSED 0x0a -#define N_DUPNAME 0x0d -#define N_TABFULL 0x11 -#define N_OPENREJ 0x12 -#define N_CALLNAME 0x14 -#define N_NAMEUSED 0x16 -#define N_NAMEDEL 0x17 -#define N_SESABORT 0x18 -#define N_INTFBUSY 0x21 -#define N_COMMANDS 0x22 - -/* Function/Status codes */ -#define L_RECOVER -5 -#define L_QUEUEFULL -4 -#define L_TIMEOUT -3 -#define L_UNAVAIL -2 -#define L_SYSERR -1 - -#define L_OKAY 0 - -#define L_DBOPEN 1 -#define L_DBCLOSE 2 -#define L_LOCK 3 -#define L_FREE 4 -#define L_TRCOMMIT 5 -#define L_TREND 6 -#define L_SETTIME 7 -#define L_RECDONE 8 -#define L_LOGIN 9 -#define L_DELETE 10 - -#ifndef LOGFILELEN -#define LOGFILELEN 48 -#endif - -/* Macros for VMS mailbox usage */ - - -typedef struct LM_LOCKREQ_S { - INT fref; - INT type; -} LM_LOCKREQ; - -/* Message packets, Runtime to Lock Manager */ - -/* Some macro / typdefs to make this file much more readable */ - -#define PERMISSION 0666 - -#ifdef GENERAL - -/* Defines for GENERAL LOCKMGR */ - -#define FCNPID INT fcn; -#define FCNDEF INT fcn; -#define FCNINIT() 0 -typedef char LM_FILEID; - -#else /* GENERAL */ - - -/* Defines for UNIX SYS-V */ - -#define FCNPID LONG fcn;\ - int pid; -#define FCNDEF LONG fcn; -#define FCNINIT() 0 - -/* Defines for both UNIX SYS-V and BSD */ - -typedef struct LM_FILEID_S { - ino_t inode; - dev_t device; -} LM_FILEID; - -#endif /* GENERAL */ - -typedef struct LM_LOGIN_S { - FCNPID - char dbusrid[80]; -} LM_LOGIN; - -typedef struct LM_DBOPEN_S { - FCNPID - INT nfiles; - INT type; - LM_FILEID fnames[1]; -} LM_DBOPEN; - -typedef struct LM_DBCLOSE_S { - FCNPID - INT nfiles; - INT frefs[1]; -} LM_DBCLOSE; - -typedef struct LM_LOCK_S { - FCNPID - INT nfiles; - LM_LOCKREQ locks[1]; -} LM_LOCK; - -typedef struct LM_RECOVERED_S { - FCNPID -} LM_RECOVERED; - -typedef struct LM_FREE_S { - FCNPID - INT nfiles; - INT frefs[1]; -} LM_FREE; - -typedef struct LM_TRCOMMIT_S { - FCNPID - char logfile[LOGFILELEN]; -} LM_TRCOMMIT; - -typedef struct LM_TREND_S { - FCNPID -} LM_TREND; - -typedef struct LM_SETTIME_S { - FCNPID - INT secs; -} LM_SETTIME; - - -/* Message packets, Lock Manager to Runtime */ - - -typedef struct LR_DBOPEN_S { - FCNDEF - INT status; - char logfile[LOGFILELEN]; - INT nusers; - INT nfiles; - INT frefs[1]; -} LR_DBOPEN; - -typedef struct LR_LOCK_S { - FCNDEF - INT status; - char logfile[LOGFILELEN]; -} LR_LOCK; - -#define DBLOCK_H -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dblock.h */ diff --git a/cde/lib/DtSearch/raima/dbtype.h b/cde/lib/DtSearch/raima/dbtype.h deleted file mode 100644 index 5c7eea81..00000000 --- a/cde/lib/DtSearch/raima/dbtype.h +++ /dev/null @@ -1,534 +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 - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: ALLOC - * BITS - * CALLOC - * DB_ENTER - * DB_REF - * FREE - * LOCK_SET - * MEM_LOCK - * MEM_UNLOCK - * NUM2EXT - * NUM2INT - * ORIGIN - * RETURN - * RN_REF - * TABLE_SIZE - * arraysize - * bytecmp - * bytecpy - * byteset - * - * ORIGINS: 27,157 - * - * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 - * All Rights Reserved - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -/*---------------------------------------------------------------------------- - $TOG: dbtype.h /main/6 1998/03/19 19:00:38 mgreess $ - dbtype.h: Standard db_VISTA header file containing: - - - DDL dictionary type definitions - - Machine dependent constant definitions - - Miscellaneous constants used by runtime functions - - Virtual memory page table type definitions - - (An #include "vista.h" must precede this include) - - (C) Copyright 1984, 1985, 1986 by Raima Corporation. -----------------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 101 21-Jun-88 RSC Added rn_type and rn_dba to database table - 344 06-Jul-88 RSC LOGFILELEN also defined in dblock.h - add ifndef - 115 18-Jul-88 RSC Integrate VAX VMS changes - 21-Jul-88 RSC Fix bugaboo in VAX integration - 368 28-Jul-88 RSC Integrate BSD changes into code - 310 10-Aug-88 RSC Cleanup function prototype - 19-Aug-88 RSC Moved rn_type,rn_dba to separate table for compatibility - with db_QUERY and db_REVISE - 423 10-Sep-88 RSC Add dbpush names for netunix.c - 423 22-Sep-88 RSC Modify/simplify DB_ENTER macro for Lattice compiler - 368 23-Sep-88 RSC Change type of pid from INT to int and - corrected defn of MESSAGE - 423 26-Sep-88 RSC Moved INIT_PAGE_P defn to initial.c - 11-Oct-88 RSC Fix for ONE_DB compile - 441 06-Dec-88 RSC Move defn of MESSAGE from netgen.h to here - 532 06-Jan-89 RSC Fixed defn of DB_ID for ONE_DB - - $Log$ - * Revision 1.2 1995/10/13 18:29:38 miker - * Added #define DtSrFILENMLEN to expand max filename len. - * Changed FILENMLEN from 48 to DtSrFILENMLEN (240: 256 - 16). - */ - -/* Compiler dependencies are handled with ifdef macros: -NOTE: One of these macros should be defined on the compile command, -for example - cc -c -DUNIX fillnew.c -Failure to do so will produce compilation errors. - - UNIX = Unix C compiler - LAT = Lattice - MSC = Microsoft - AZ = Aztec - C86 = CI C86 - DS = DeSmet - VMS = Vax/VMS - HHS = Harris H-series -*/ - - -#define PGHOLD 1 -#define NOPGHOLD 0 -#define PGFREE 1 -#define NOPGFREE 0 - -#define KEYFIND 0 -#define KEYNEXT 1 -#define KEYPREV 2 -#define KEYFRST 3 -#define KEYLAST 4 - -/* dictionary attribute flags */ -#define SORTFLD 0x0001 /* field is a set sort field */ -#define STRUCTFLD 0x0002 /* field is sub-field of struct */ -#define UNSIGNEDFLD 0x0004 /* field is unsigned */ -#define STATIC 0x0002 /* file/record is static */ -#define LOCAL 0x0004 /* file/record is local */ -#define COMKEYED 0x0010 /* record/field contains/included in compound key */ -#define TIMESTAMPED 0x0001 /* record/set is timestamped */ - -#define TRUE 1 -#define FALSE 0 -#define YES 1 -#define NO 0 - -#define BITS_PER_BYTE 8 - -/* Number of bits in a "type" */ -#define BITS( type ) (BITS_PER_BYTE * sizeof( type )) - -/* Number of elements in a vector */ -#define arraysize(v) (sizeof(v)/sizeof(*(v))) - -/* Number of bytes in a disk block */ -#define D_BLKSZ 512 - -#define DBD_COMPAT_LEN 6 -#define INT_SIZE sizeof(int) -#define SHORT_SIZE sizeof(short) -#define LONG_SIZE sizeof(long) -#ifndef NO_FLOAT -#define FLOAT_SIZE sizeof(float) -#define DOUBLE_SIZE sizeof(double) -#endif -#define CHAR_SIZE sizeof(char) -#define DB_ADDR_SIZE sizeof(LONG) -#define PGHDRSIZE 4 -#define CTBNAME "vista.ctb" - -#define RECHDRSIZE 6 -#define NONE -1 - -/* FILEMASK, ADDRMASK, FILESHIFT always operate on 4-byte variables */ -#define FILEMASK 0x000000FF -#define ADDRMASK 0x00FFFFFF -#define FILESHIFT 24 - -#define OPTKEYSHIFT 10 -#define OPTKEYMASK 0xFC00 -#define OPTKEYNDX 0x003F -#define OPTKEY_LIMIT 63 -#define RLBMASK 0x4000 - -/* The following constants all depend on the size of INT and DB_ADDR */ - -/* creation timestamp in rec hdr = sizeof(INT) + DB_ADDR_SIZE */ -#define RECCRTIME 6 -/* update timestamp in rec hdr = RECCRTIME + sizeof(LONG) */ -#define RECUPTIME 10 - -/* member count prior + next timestamp (opt) */ -/* max size of set pointer = sizeof(LONG) + 2*DB_ADDR_SIZE + sizeof(ULONG) */ -#define SETPSIZE 16 -/* Offset to total members in set ptr */ -#define SP_MEMBERS 0 -/* Offset to first member ptr in set ptr */ -#define SP_FIRST 4 -/* Offset to last member ptr in set ptr = 2+DB_ADDR_SIZE */ -#define SP_LAST 8 -/* Size of member pointer = 3*DB_ADDR_SIZE */ -#define MEMPSIZE 12 -/* Offset to owner ptr in member ptr */ -#define MP_OWNER 0 -/* Offset to previous member ptr in member ptr = DB_ADDR_SIZE */ -#define MP_PREV 4 -/* Offset to next member ptr in member ptr = 2*DB_ADDR_SIZE */ -#define MP_NEXT 8 - -/* maximum length of a database file name */ -#define DtSrFILENMLEN 240 /* expand max filename len from 48 */ -#ifndef FILENMLEN -#define FILENMLEN DtSrFILENMLEN -#endif -#ifndef LOGFILELEN -#define LOGFILELEN 48 -#endif -/* maximum length of a database name */ -#define DBNMLEN 12 -/* maximum length of a database path */ -#define PATHLEN FILENMLEN-15 - -#define MAXDIMS 3 - -#define OPEN 'o' -#define CLOSED 'c' -#define DATA 'd' -#define KEY 'k' -#define OVERFLOW 'o' - -typedef struct FILE_ENTRY_S { - char ft_name[FILENMLEN]; /* name of file */ - INT ft_desc; /* file descriptor */ - char ft_status; /* 'o'=opened, 'c'=closed */ - char ft_type; /* 'd'=data, 'k'=key, 'o'=overflow */ - INT ft_slots; /* record slots per page */ - INT ft_slsize; /* size of record slots in bytes */ - INT ft_pgsize; /* size of page */ - INT ft_flags; /* 0x0002 is set if file is static */ -} FILE_ENTRY; - -typedef struct RECORD_ENTRY_S { - INT rt_file; /* file table entry of file containing record */ - INT rt_len; /* total length of record */ - INT rt_data; /* offset to start of data in record */ - INT rt_fields; /* first field def in field_table */ - INT rt_fdtot; /* total number of fields in record */ - INT rt_flags; /* 0x0001 is set if record is timestamped - 0x0002 is set if record is static */ -} RECORD_ENTRY; - - -#define FIRST 'f' -#define LAST 'l' -#define ASCENDING 'a' -#define DESCENDING 'd' -#define NOORDER 'n' -#define NEXT 'n' -typedef struct SET_ENTRY_S { - INT st_order; /* 'f'=first, 'l'=last, 'a'=ascending, - 'd'=descending, 'n'=no order */ - INT st_own_rt; /* record table entry of owner */ - INT st_own_ptr; /* offset to set pointers in record */ - INT st_members; /* index of first member record in member table */ - INT st_memtot; /* total number of members of set */ - INT st_flags; /* 0x0001 is set if record is timestamped */ -} SET_ENTRY; - - -typedef struct MEMBER_ENTRY_S { - INT mt_record; /* record table entry for this member */ - INT mt_mem_ptr; /* offset to member ptrs in record */ - INT mt_sort_fld; /* sort table entry of first sort field */ - INT mt_totsf; /* total number of sort fields */ -} MEMBER_ENTRY; - - -typedef struct SORT_ENTRY_S { - INT se_fld; /* field table entry of sort field */ - INT se_set; /* set table entry of sorted set */ -} SORT_ENTRY; - - -#define NOKEY 'n' -#define DUPLICATES 'd' -#define UNIQUE 'u' -#define CHARACTER 'c' -#define SHORTINT 's' -#define REGINT 'i' -#define LONGINT 'l' -#ifndef NO_FLOAT -#define FLOAT 'f' -#define DOUBLE 'F' -#endif -#define DBADDR 'd' -#define GROUPED 'g' -#define COMKEY 'k' -typedef struct FIELD_ENTRY_S { - char fd_key; /* 'n'=none, 'd'=duplicates, 'u'=unique */ - char fd_type; /* 'c'=char, 's'=short, 'i'=int, 'l'=long, 'd'=DB_ADDR, - 'f' = float, 'D' = double, 'g'=grouped field, - 'k' = compound key */ - INT fd_len; /* length of field in bytes */ - INT fd_dim[MAXDIMS]; /* size of each array dimension */ - INT fd_keyfile; /* file_table entry for key file */ - INT fd_keyno; /* key prefix number */ - INT fd_ptr; /* offset to field in record or - 1st compound key field in key_table */ - INT fd_rec; /* record table entry of record containing field */ - INT fd_flags; /* 0x0001 is set if field in "by" clause of set spec - 0x0002 is set if field member of struct field - 0x0004 is set if field is unsigned data type - 0x0008 is set if field is an optional key */ -} FIELD_ENTRY; - -/* compound key table entry declaration */ -typedef struct KEY_ENTRY_S { - INT kt_key; /* compound key field number */ - INT kt_field; /* field number of included field */ - INT kt_ptr; /* offset to start of field data in key */ - INT kt_sort; /* 'a' = ascending, 'd' = descending */ -} KEY_ENTRY; - -/* database table entry declaration */ -typedef struct DB_ENTRY_S { - char db_name[DBNMLEN]; /* name of this database */ - char db_path[PATHLEN]; /* name of path to this database */ - DB_ADDR sysdba; /* database address of system record */ - DB_ADDR curr_dbt_rec;/* this db's current record */ - INT Page_size; /* size of this db's page */ - INT Size_ft; /* size of this db's file_table */ - INT ft_offset; /* offset to start of this db's file_table entries */ - INT Size_rt; /* size of this db's record_table */ - INT rt_offset; /* offset to start of this db's record_table entries */ - INT Size_fd; /* size of this db's field_table */ - INT fd_offset; /* offset to start of this db's field_table entries */ - INT Size_st; /* size of this db's set_table */ - INT st_offset; /* offset to start of this db's set_table entries */ - INT Size_mt; /* size of this db's member_table */ - INT mt_offset; /* offset to start of this db's member_table entries */ - INT Size_srt; /* size of this db's sort_table */ - INT srt_offset; /* offset to start of this db's sort_table entries */ - INT Size_kt; /* size of this db's key_table */ - INT kt_offset; /* offset to strary of this db's key table entries */ - INT key_offset; /* key prefix offset for this db */ -} DB_ENTRY; - -/* Structure containing current record type & address for recfrst/set/next..*/ -typedef struct RN_ENTRY_S { - INT rn_type; /* Last record type supplied to recfrst/recset */ - DB_ADDR rn_dba; /* Last db addr computed by recfrst/recset/recnext */ -} RN_ENTRY; -#define DB_REF(item) (db_global.Curr_db_table->item) -#define RN_REF(item) (curr_rn_table->item) -#define NUM2INT(num, offset) ((num) + db_global.Curr_db_table->offset) -#define NUM2EXT(num, offset) ((num) - db_global.Curr_db_table->offset) -#define ORIGIN(offset) (curr_db_table->offset) -#define TABLE_SIZE(size) DB_REF(size) - -/* Country code table definition */ -typedef struct CNTRY_TBL_S { - unsigned char out_chr; - unsigned char sort_as1; - unsigned char sort_as2; - unsigned char sub_sort; -} CNTRY_TBL; - -/* names lists structure declaration */ -typedef struct OBJNAMES_S { - char **recs; - char **flds; - char **sets; -} OBJNAMES; - - -/* directory separator character: - MS-DOS: '\' - UNIX: '/' -*/ -#ifdef HHS -#define DIRCHAR '*' -#else -#define DIRCHAR '/' -#endif - -/* The following define aid in the use of a set of routines which use RMS - directly to do the i/o to database files. */ - -#define DB_OPEN open_b -#define DB_CLOSE close -#define DB_LSEEK lseek -#define DB_WRITE write -#define DB_READ read - -typedef struct {FILE_NO *ptr; LOCK_DESC} FILE_NO_P; -typedef struct {int *ptr; LOCK_DESC} INT_P; -typedef struct {struct NODE_PATH_S *ptr; LOCK_DESC} NODE_PATH_P; -typedef struct {struct KEY_INFO_S *ptr; LOCK_DESC} KEY_INFO_P; -typedef struct {struct ren_entry *ptr; LOCK_DESC} REN_ENTRY_P; -typedef struct {struct RN_ENTRY_S *ptr; LOCK_DESC} RN_ENTRY_P; -typedef struct {struct LOOKUP_ENTRY_S *ptr; LOCK_DESC} LOOKUP_ENTRY_P; -typedef struct {struct page_entry *ptr; LOCK_DESC} PAGE_ENTRY_P; -typedef struct {struct DB_ENTRY_S *ptr; LOCK_DESC} DB_ENTRY_P; -typedef struct {struct FILE_ENTRY_S *ptr; LOCK_DESC} FILE_ENTRY_P; -typedef struct {struct RECORD_ENTRY_S *ptr; LOCK_DESC} RECORD_ENTRY_P; -typedef struct {struct SET_ENTRY_S *ptr; LOCK_DESC} SET_ENTRY_P; -typedef struct {struct MEMBER_ENTRY_S *ptr; LOCK_DESC} MEMBER_ENTRY_P; -typedef struct {struct SORT_ENTRY_S *ptr; LOCK_DESC} SORT_ENTRY_P; -typedef struct {struct FIELD_ENTRY_S *ptr; LOCK_DESC} FIELD_ENTRY_P; -typedef struct {struct KEY_ENTRY_S *ptr; LOCK_DESC} KEY_ENTRY_P; -typedef struct {struct PGZERO_S *ptr; LOCK_DESC} PGZERO_P; -typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P; -typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P; -typedef struct {LONG *ptr; LOCK_DESC} LONG_P; -typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P; -struct sk { - INT sk_fld; - CHAR_P sk_val; -} __SK__; -typedef struct { struct sk *ptr; LOCK_DESC } SK_P; - -/* node key search path stack entry: one per level per key field */ -typedef struct NODE_PATH_S { - F_ADDR node; /* node (page) number */ - INT slot; /* slot number of key */ -} NODE_PATH; - -/* index key information: one entry per key field */ -typedef struct KEY_INFO_S { - NODE_PATH_P Node_path; /* stack of node #s in search path */ - INT level; /* current level # in node path */ - INT max_lvls; /* maximum possible levels for key */ - INT lstat; /* last key function status */ - INT fldno; /* field number of key */ - FILE_NO keyfile; /* key file containing this key */ - CHAR_P Keyval; /* ptr to last key value */ - DB_ADDR dba; /* db address of last key */ -} KEY_INFO; -#define node_path Node_path.ptr -#define keyval Keyval.ptr - -/* key slot structure */ -typedef struct key_slot { - F_ADDR child; /* child node pointer */ - INT keyno; /* key number */ - char data[1]; /* start of key data */ -} KEY_SLOT; - -typedef union key_type { - char kd[256]; - struct key_slot ks; -} KEY_TYPE; - -/* file rename table entry declarations */ -typedef struct ren_entry { - CHAR_P Ren_db_name; - CHAR_P File_name; - FILE_NO file_no; -} REN_ENTRY; - -#define bytecpy(s1, s2, n) memcpy((char *)(s1), (char *)(s2), (unsigned)(n)) -#define bytecmp(s1, s2, n) memcmp((char *)(s1), (char *)(s2), (unsigned)(n)) -#define byteset(s, c, n) memset((char *)(s), (char)(c), (unsigned)(n)) - -typedef struct MESSAGE_S { -#ifdef GENERAL - INT mtype; - char mtext[1]; -#else /* GENERAL */ - LONG mtype; - int pid; - char mtext[1]; -#endif /* GENERAL */ -} MESSAGE; - -#ifdef COMMA /* COMMA */ -#define DB_ID , dbn -#define NO_DB_ID , -1 -#else /* COMMA */ -#define DB_ID dbn -#define NO_DB_ID -1 -#define COMMA -#endif /* COMMA */ - -#define TASK_ID /**/ - -#define LOCK_SET(a) /**/ - -#define TDTL_PARAM - -#define DB_ENTER(TDTL_PARAM) if ( startup(TDTL_PARAM) != S_OKAY ) { return( db_status ); } else - -#define RETURN(x) return( x ) -#define ALLOC(l, b, v) d_alloc(b) -#define CALLOC(l, i, s, v) d_calloc(i, s) -#define MEM_LOCK(cp) d_memlock((CHAR_P *)(cp)) -#define MEM_UNLOCK(cp) d_memunlock((CHAR_P *)(cp)) -#define FREE(cp) d_free((CHAR_P *)(cp)) - -/* Lock sets are defined in dblfcns.c */ -#define LOCK_NONE -1 -#define LOCK_ALL 0 -#define LOCK_IO 1 -#define LOCK_NOIO 2 -#define RECORD_IO 3 -#define RECORD_NOIO 4 -#define SET_IO 5 -#define SET_NOIO 6 - -#ifdef GENERAL -#define TIMEOUT_DEF 20 -#else -#define TIMEOUT_DEF 10 -#endif - -#include -#include -#include "trxlog.h" -#include "dblock.h" -#include "ll.h" -#include "dbxtrn.h" - -typedef struct LOOKUP_ENTRY_S { - FILE_NO file; /* file table entry number (0..size_ft-1) */ - F_ADDR pageno; /* database page number */ - short pg_slot; /* page table slot pointing to this entry */ -} LOOKUP_ENTRY; - -/* virtual page table entry */ -typedef struct page_entry { - BOOLEAN recently_used; /* LRU flag */ - BOOLEAN modified; /* TRUE if page has been modified */ - INT holdcnt; /* "hold-in-cache" counter */ - short lu_slot; /* lookup table slot pointing to this entry */ - CHAR_P Buff; /* page buffer pointer */ -} PAGE_ENTRY; -#define buff Buff.ptr - -#include -#include -#include -#include -#include "proto.h" - -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dbtype.h */ diff --git a/cde/lib/DtSearch/raima/dbxtrn.h b/cde/lib/DtSearch/raima/dbxtrn.h deleted file mode 100644 index 8ab04110..00000000 --- a/cde/lib/DtSearch/raima/dbxtrn.h +++ /dev/null @@ -1,208 +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: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 157 - * - */ -/*---------------------------------------------------------------------------- - dbxtrn.h: db_VISTA external data header file - - (This file is included by dbtype.h) - - (C) Copyright 1984 by Raima Corporation. -----------------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 423 22-Sep-88 RSC Cleanup file to compile under Lattice - 368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h - 439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main - 440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM - 532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB - 05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking - -*/ - -/* Database Dictionary Tables */ -extern INT largest_page; - -extern INT old_size_ft; -extern INT old_size_fd; -extern INT old_size_st; -extern INT old_size_mt; -extern INT old_size_srt; -extern INT old_size_kt; -extern INT old_size_rt; -extern INT old_no_of_dbs; - -extern char *crloc; /* location in page buffer of current record */ - -typedef struct TASK_S { - /* The following global variables came from dblfcns.c */ - int Dbopen; /* dbopen = 0 */ - char Dbuserid[FILENMLEN]; /* dbuserid = "" */ - char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */ - char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */ - const char *Trans_id; /* trans_id = NULL */ - char Dblog[FILENMLEN]; /* dblog = "" */ - /* The following global variables came from dio.c */ - BOOLEAN Cache_ovfl; /* cache_ovfl = FALSE */ - PGZERO_P Pgzero; /* database file page 0 array */ - /* The following global variables came from keyfcns.c */ - int No_of_keys; /* no_of_keys = 0 */ - KEY_INFO_P Key_info; /* key_info = NULL */ - KEY_TYPE Key_type; - /* The following global variables came from netwdos.c */ - int Net_status; - LONG Last_mtype; - /* The following global variables came from options.c */ - int Dboptions; /* ifdef NO_TRANS: dboptions = - DCHAINUSE | TRLOGGING - else: dboptions = DCHAINUSE */ - /* The following global variables came from ovfcns.c */ - long Ov_initaddr; /* ov_initaddr = 0L */ - long Ov_rootaddr; /* ov_rootaddr = 0L */ - long Ov_nextaddr; /* ov_nextaddr = 0L */ - RI_ENTRY_P Root_ix; - /* The following global variables came from renfiles.c */ - llist Ren_list; /* Ren_list = LLIST_INIT() */ - /* The following global variables came from inittab.h */ - INT Page_size; - int Curr_db; - DB_ENTRY *Curr_db_table; - DB_ADDR Curr_rec; /* current record address */ - DB_ADDR_P Curr_own; /* current set owners array */ - DB_ADDR_P Curr_mem; /* current set members array */ - FILE_NO Ov_file; - BOOLEAN Setdb_on; - INT No_of_dbs; - RN_ENTRY_P Rn_table; - RN_ENTRY *Curr_rn_table; - DB_ENTRY_P Db_table; - FILE_ENTRY_P File_table; - INT Size_ft; - RECORD_ENTRY_P Record_table; - INT Size_rt; - SET_ENTRY_P Set_table; - INT Size_st; - MEMBER_ENTRY_P Member_table; - INT Size_mt; - SORT_ENTRY_P Sort_table; - INT Size_srt; - FIELD_ENTRY_P Field_table; - INT Size_fd; - KEY_ENTRY_P Key_table; - INT Size_kt; - int Lock_lvl; -#define LOCK_STACK_SIZE 10 - int Lock_stack[LOCK_STACK_SIZE]; - CNTRY_TBL_P country_tbl; - int ctbl_activ; - char ctbpath[FILENMLEN]; - llist Sk_list; -} TASK; - -/* Dynamically allocated global variables */ -#define app_locks db_global.App_locks.ptr -#define excl_locks db_global.Excl_locks.ptr -#define kept_locks db_global.Kept_locks.ptr -#define rec_locks db_global.Rec_locks.ptr -#define set_locks db_global.Set_locks.ptr -#define key_locks db_global.Key_locks.ptr -#define lock_pkt db_global.Lock_pkt.ptr -#define free_pkt db_global.Free_pkt.ptr -#define file_refs db_global.File_refs.ptr -#define key_info db_global.Key_info.ptr -#define curr_own db_global.Curr_own.ptr -#define curr_mem db_global.Curr_mem.ptr -#define rn_table db_global.Rn_table.ptr -#define db_table db_global.Db_table.ptr -#define file_table db_global.File_table.ptr -#define record_table db_global.Record_table.ptr -#define set_table db_global.Set_table.ptr -#define member_table db_global.Member_table.ptr -#define sort_table db_global.Sort_table.ptr -#define field_table db_global.Field_table.ptr -#define key_table db_global.Key_table.ptr -#define pgzero db_global.Pgzero.ptr -#define root_ix db_global.Root_ix.ptr -/* Used in DIO.C and OVFCNS.C */ -#define ixpg_table Ixpg_table.ptr -#define dbpgbuff Dbpgbuff.ptr -#define ix_lookup Ix_lookup.ptr - -/* Non-dynamically allocated global variables */ -#define lock_tries db_global.Lock_tries -#define dbwait_time db_global.Dbwait_time -#define db_timeout db_global.Db_timeout -#define dbopen db_global.Dbopen -#define db_lockmgr db_global.Db_lockmgr -#define dbuserid db_global.Dbuserid -#define dbdpath db_global.Dbdpath -#define dbfpath db_global.Dbfpath -#define trans_id db_global.Trans_id -#define dblog db_global.Dblog -#define keyl_cnt db_global.Keyl_cnt -#define lp_size db_global.Lp_size -#define fp_size db_global.Fp_size -#define session_active db_global.Session_active -#define cache_ovfl db_global.Cache_ovfl -#define no_of_keys db_global.No_of_keys -#define key_type db_global.Key_type -#define net_status db_global.Net_status -#define last_mtype db_global.Last_mtype -#define dboptions db_global.Dboptions -#define ov_initaddr db_global.Ov_initaddr -#define ov_rootaddr db_global.Ov_rootaddr -#define ov_nextaddr db_global.Ov_nextaddr -#define page_size db_global.Page_size -#define curr_db db_global.Curr_db -#define curr_db_table db_global.Curr_db_table -#define curr_rec db_global.Curr_rec -#define ov_file db_global.Ov_file -#define setdb_on db_global.Setdb_on -#define no_of_dbs db_global.No_of_dbs -#define curr_rn_table db_global.Curr_rn_table -#define size_ft db_global.Size_ft -#define size_rt db_global.Size_rt -#define size_st db_global.Size_st -#define size_mt db_global.Size_mt -#define size_srt db_global.Size_srt -#define size_fd db_global.Size_fd -#define size_kt db_global.Size_kt -#define lock_lvl db_global.Lock_lvl -#define lock_stack db_global.Lock_stack -#define ren_list db_global.Ren_list -#define sk_list db_global.Sk_list - -extern TASK db_global; -extern int db_glob_init; - -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */ diff --git a/cde/lib/DtSearch/raima/dtcover.h b/cde/lib/DtSearch/raima/dtcover.h deleted file mode 100644 index f28a25a3..00000000 --- a/cde/lib/DtSearch/raima/dtcover.h +++ /dev/null @@ -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: dtcover.h /main/2 1996/05/09 04:05:27 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 157 - * - */ -/*---------------------------------------------------------------------------- - dtcover.h: converts d_* calls to dt_* for MULTI_TASKing - - (C) Copyright 1988 by Raima Corporation. -----------------------------------------------------------------------------*/ -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP -*/ - - -#define d_close dt_close -#define d_cmstat dt_cmstat -#define d_cmtype dt_cmtype -#define d_connect dt_connect -#define d_cotype dt_cotype -#define d_crget dt_crget -#define d_crread dt_crread -#define d_crset dt_crset -#define d_crtype dt_crtype -#define d_crwrite dt_crwrite -#define d_csmget dt_csmget -#define d_csmread dt_csmread -#define d_csmset dt_csmset -#define d_csmwrite dt_csmwrite -#define d_csoget dt_csoget -#define d_csoread dt_csoread -#define d_csoset dt_csoset -#define d_csowrite dt_csowrite -#define d_ctbpath dt_ctbpath -#define d_dbdpath dt_dbdpath -#define d_dbfpath dt_dbfpath -#define d_dblog dt_dblog -#define d_dbtaf dt_dbtaf -#define d_dbuserid dt_dbuserid -#define d_delete dt_delete -#define d_disdel dt_disdel -#define d_recnext dt_recnext -#define d_recprev dt_recprev -#define d_destroy dt_destroy -#define d_discon dt_discon -#define d_fillnew dt_fillnew -#define d_findco dt_findco -#define d_findfm dt_findfm -#define d_findlm dt_findlm -#define d_findnm dt_findnm -#define d_findpm dt_findpm -#define d_freeall dt_freeall -#define d_initialize dt_initialize -#define d_initfile dt_initfile -#define d_ismember dt_ismember -#define d_isowner dt_isowner -#define d_keydel dt_keydel -#define d_keyexist dt_keyexist -#define d_keyfind dt_keyfind -#define d_keyfree dt_keyfree -#define d_keyfrst dt_keyfrst -#define d_keylast dt_keylast -#define d_keylock dt_keylock -#define d_keylstat dt_keylstat -#define d_keynext dt_keynext -#define d_keyprev dt_keyprev -#define d_keyread dt_keyread -#define d_keystore dt_keystore -#define d_lock dt_lock -#define d_makenew dt_makenew -#define d_mapchar dt_mapchar -#define d_members dt_members -#define d_off_opt dt_off_opt -#define d_on_opt dt_on_opt -#define d_open dt_open -#define d_rdcurr dt_rdcurr -#define d_rerdcurr dt_rerdcurr -#define d_recfree dt_recfree -#define d_recfrst dt_recfrst -#define d_reclast dt_reclast -#define d_reclock dt_reclock -#define d_reclstat dt_reclstat -#define d_recover dt_recover -#define d_recread dt_recread -#define d_recset dt_recset -#define d_recwrite dt_recwrite -#define d_renfile dt_renfile -#define d_retries dt_retries -#define d_rlbclr dt_rlbclr -#define d_rlbset dt_rlbset -#define d_rlbtst dt_rlbtst -#define d_set_dberr dt_set_dberr -#define d_setdb dt_setdb -#define d_setfree dt_setfree -#define d_setkey dt_setkey -#define d_setlock dt_setlock -#define d_setlstat dt_setlstat -#define d_setmm dt_setmm -#define d_setmo dt_setmo -#define d_setmr dt_setmr -#define d_setom dt_setom -#define d_setoo dt_setoo -#define d_setor dt_setor -#define d_setrm dt_setrm -#define d_setro dt_setro -#define d_timeout dt_timeout -#define d_trabort dt_trabort -#define d_trbegin dt_trbegin -#define d_trend dt_trend -#define d_wrcurr dt_wrcurr -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dtcover.h */ diff --git a/cde/lib/DtSearch/raima/inittab.h b/cde/lib/DtSearch/raima/inittab.h deleted file mode 100644 index f1aa1eb1..00000000 --- a/cde/lib/DtSearch/raima/inittab.h +++ /dev/null @@ -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 - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: sizeof - * - * ORIGINS: 27,157 - * - * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 - * All Rights Reserved - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -/*---------------------------------------------------------------------------- - $XConsortium: inittab.h /main/5 1996/11/25 18:48:42 drk $ - inittab.h: db_VISTA header file containing: - - - Compatible dictionary file versions - - This file is intended to be included in inittab.c only. There are - multiple versions of inittab.c which share this header. - - (An #include "vista.h" must precede this include) - - (C) Copyright 1987 by Raima Corporation. -----------------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 101 21-Jun-88 RSC Added decl for rn_type and rn_dba for ONE_DB - 08-Aug-88 RTK Moved rn_dba and rn_type to vista.h - needed in rec*.c - 18-Aug-88 RSC Moved rn_type/dba to separate table, add curr_rn_table.. - - $Log$ - * Revision 1.2 1995/10/13 18:36:46 miker - * Changed compat_dbd[] from hardcoded str to dbd_VERSION. - * (dbd_VERSION in vista.h changed bcs expanded max file name length.) - * -*/ - - -int db_status = 0; - -/* database dictionary tables */ -INT largest_page = 0; - -char *crloc = NULL; - -INT old_size_ft = 0; -INT old_size_fd = 0; -INT old_size_st = 0; -INT old_size_mt = 0; -INT old_size_srt = 0; -INT old_size_kt = 0; -INT old_size_rt = 0; -INT old_no_of_dbs = 0; - -/* Compatible dictionary versions */ -char *compat_dbd[] = { - dbd_VERSION -}; -int size_compat = sizeof(compat_dbd)/sizeof(*compat_dbd); -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin inittab.h */ diff --git a/cde/lib/DtSearch/raima/ll.h b/cde/lib/DtSearch/raima/ll.h deleted file mode 100644 index 49e71c41..00000000 --- a/cde/lib/DtSearch/raima/ll.h +++ /dev/null @@ -1,66 +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: ll.h /main/2 1996/05/09 04:11:29 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: LLIST_INIT - * LL_ELEM_INIT - * ll_access - * ll_append - * ll_deaccess - * ll_first - * ll_free - * ll_next - * ll_prepend - * - * ORIGINS: 157 - * - */ -/* The functions in this file are defined in alloc.c */ - -typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P; - -typedef struct ll_elem { - LL_P next; - CHAR_P data; -} ll_elem; - -#define LL_ELEM_INIT() { POINTER_INIT(), POINTER_INIT() } - -typedef struct { - LL_P head; - LL_P tail; - LL_P *curr; -} llist; - -#define LLIST_INIT() { POINTER_INIT(), POINTER_INIT(), NULL } - -BOOLEAN ll_access(P1(llist *)); -int ll_append(P1(llist *) Pi(CHAR_P *)); -#define ll_deaccess(ll) /**/ -CHAR_P *ll_first(P1(llist *)); -void ll_free(P1(llist *)); -CHAR_P *ll_next(P1(llist *)); -int ll_prepend(P1(llist *) Pi(CHAR_P *)); -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */ diff --git a/cde/lib/DtSearch/raima/ncb.h b/cde/lib/DtSearch/raima/ncb.h deleted file mode 100644 index e985ae82..00000000 --- a/cde/lib/DtSearch/raima/ncb.h +++ /dev/null @@ -1,125 +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: ncb.h /main/2 1996/05/09 04:12:28 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: none - * - * ORIGINS: 157 - * - */ -#define NETNAME_LEN 16 -#ifndef NULL -#define NULL (char *)0 -#endif - -#define NETBIOS_INT 0x5c - -#define ADDNAME 0x30 -#define DELNAME 0x31 -#define RESET 0x32 -#define STATUS 0x33 -#define SESSTAT 0x34 -#define CALL 0x10 -#define LISTEN 0x11 -#define HANGUP 0x12 -#define SEND 0x14 -#define RECEIVE 0x15 -#define ADDNAIT 0xB0 -#define DELNAIT 0xB1 -#define CALNAIT 0x90 -#define LISNAIT 0x91 -#define HANNAIT 0x92 -#define SENNAIT 0x94 -#define RECNAIT 0x95 -#define ARENAIT 0x96 -#define ANY 0xFF -#define PENDING 0xFFFF -#define NCBSIZE 64 - -#ifdef TURBO -#ifdef __SMALL__ -#define SMALL_DATA -#endif -#ifdef __MEDIUM__ -#define SMALL_DATA -#endif -#endif - -#ifdef MSC -#ifdef M_I86SM -#define SMALL_DATA -#endif -#ifdef M_I86MM -#define SMALL_DATA -#endif -#endif - -#ifdef LAT -#ifdef SPTR -#define SMALL_DATA -#endif -#endif - -/***** NCB Commands parameter block *****/ -typedef struct { - char command; /* NETBIOS Command */ - char retcode; /* Return value (some enumerated below) */ - char lsn; /* Local session number */ - char num; /* Name number */ - char *buffer_off; /* Message buffer offset */ -#ifdef SMALL_DATA - int buffer_seg; /* Message buffer segment */ -#endif - int length; /* Length of message buffer */ - char callname[NETNAME_LEN]; /* Name of user being called */ - char name[NETNAME_LEN]; /* My name */ - char rto; /* Receive timeout (500ms units) */ - char sto; /* Send timeout (500ms units) */ - char *post_off; /* Post function offset */ -#ifdef SMALL_DATA - int post_seg; /* Post function segment */ -#endif - char lana_num; /* Local area network adapter number (use 0) */ - char cmd_cplt; /* Command complete return value, used when posting */ - char reserve[14]; /* reserved for Net BIOS */ -} NCB; - -typedef struct { - char rep_sess; - char name_sess; - char gram; - char rcvany; - struct { - char lsn; - char state_sess; - char loc_name[16]; - char rem_name[16]; - char rcvs; - char sends; - } s[32]; -} SESSION; - -#define NCB_H -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ncb.h */ diff --git a/cde/lib/DtSearch/raima/proto.h b/cde/lib/DtSearch/raima/proto.h deleted file mode 100644 index 1148aaae..00000000 --- a/cde/lib/DtSearch/raima/proto.h +++ /dev/null @@ -1,281 +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: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: ADDRcmp - * ALLOC_TABLE - * INTcmp - * Pi - * alloc_table - * check_dba - * close - * con_dbd - * con_dbf - * dbn_check - * dio_close - * dio_clrfile - * dio_findpg - * dio_get - * dio_open - * dio_out - * dio_pzalloc - * dio_pzdel - * dio_pzgetts - * dio_pznext - * dio_pzread - * dio_pzsetts - * dio_read - * dio_release - * dio_rrlb - * dio_setdef - * dio_touch - * dio_write - * dio_wrlb - * exit - * fldcmp - * free - * get_element - * getenv - * initdbt - * key_bldcom - * key_boundary - * key_cmpcpy - * key_delete - * key_init - * key_insert - * key_locpos - * key_reset - * key_scan - * locking - * lseek - * memcmp - * memcpy - * memset - * nfld_check - * nrec_check - * nset_check - * null_dba - * nw_addnm - * nw_call - * nw_cleanup - * nw_delnm - * nw_hangup - * nw_rcvmsg - * nw_reset - * nw_send - * o_fileinit - * o_pages - * o_pzwrite - * o_search - * o_write - * open_b - * r_chkfld - * r_clropt - * r_delrec - * r_gfld - * r_gmem - * r_gset - * r_pfld - * r_pmem - * r_pset - * r_setopt - * r_smem - * r_tstopt - * read - * startup - * strcat - * strchr - * strcmp - * strcpy - * strlen - * strncmp - * strncpy - * strrchr - * taf_add - * taf_del - * task_switch - * taskinit - * time - * unlink - * write - * - * ORIGINS: 157 - * - */ -/*---------------------------------------------------------------------------- - proto.h: db_VISTA function declaration header file - - (This file must be included after dbtype.h) - - (C) Copyright 1988 by Raima Corporation. -----------------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 03-AUG-88 RTK Added internal MULTI_TASKing function prototypes - 310 10-Aug-88 RSC Cleanup of function prototypes - -*/ - -/* From dberr.c: */ -void dbautorec(void); - -/* From dblfcns.c: */ -int taskinit(TASK *); -int initdbt(const char *); -int alloc_table(CHAR_P *, unsigned, unsigned); -#define ALLOC_TABLE(t, n, o, v) alloc_table((CHAR_P *)(t), n, o) -void termfree(void); - -/* From dio.c: */ -int dio_open(FILE_NO); -int dio_close(FILE_NO); -int dio_init(void); -void dio_free(void); -int dio_clrfile(FILE_NO); -int dio_clear(void); -int dio_flush(void); -void dio_setdef(FILE_NO); -int dio_get(F_ADDR, char **, int); -int dio_touch(F_ADDR); -int dio_read(DB_ADDR, char **, int); -int dio_write(DB_ADDR, const char *, int); -int dio_release(DB_ADDR); -int dio_rrlb(DB_ADDR, INT *); -int dio_wrlb(DB_ADDR, INT); -int dio_findpg(FILE_NO, F_ADDR, PAGE_ENTRY *, PAGE_ENTRY **, LOOKUP_ENTRY **); -int dio_out(PAGE_ENTRY *, LOOKUP_ENTRY *); -int dio_pzread(FILE_NO); -int dio_pzalloc(FILE_NO, F_ADDR *); -int dio_pzdel(FILE_NO, F_ADDR); -F_ADDR dio_pznext(FILE_NO); -void dio_pzclr(void); - -/* From initenv.c: */ -int initenv(void); - -/* From inittab.c: */ -int inittab(void); - -/* From keyfcns.c: */ -int key_open(void); -void key_close(void); -int key_init(int); -int key_reset(FILE_NO); -int key_locpos(const char *, DB_ADDR *); -int key_scan(int, DB_ADDR *); -int key_boundary(int, DB_ADDR *); -int key_insert(int, const char *, DB_ADDR); -int key_delete(int, const char *, DB_ADDR); -/* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm - of key_bldcom as const (see keyfcns.c) */ -int key_bldcom(int, char *, char *, int); -/* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare - the second argument to key_cmpcpy with a const attribute. Hence we - were not able to define the 2nd argument of key_bldcom as const. */ -void key_cmpcpy(char *, char *, INT); - -/* From libfcns.c: */ -int dbn_check(int); -int nset_check(int, int *, SET_ENTRY **); -int nfld_check(long, int *, int *, RECORD_ENTRY **, FIELD_ENTRY **); -int nrec_check(int, int *, RECORD_ENTRY **); -int fldcmp(FIELD_ENTRY *, const char *, const char *); -int INTcmp(const char *, const char *); -int ADDRcmp(const DB_ADDR *, const DB_ADDR *); -int null_dba(const char *); -int check_dba(DB_ADDR); - -/* From makenew.c: */ -int sk_free(void); - -/* From netwdos.c: */ -int netbios_chk(void); -int nw_reset(int, int); -int nw_addnm(char *, int *); -int nw_cleanup(char *); -int nw_sestat(void); -int nw_delnm(char *); -int nw_call(char *, char *, int *); -int nw_hangup(int); -int nw_send(int, MESSAGE *, int); -int nw_rcvmsg(int, MESSAGE *, int, int *); - -/* From opens.c: */ -int open_b(const char *, int); - -/* From ovfcns.c: */ -int o_setup(void); -int o_init(void); -int o_fileinit(FILE_NO); -int o_search(FILE_NO, F_ADDR, F_ADDR *); -int o_write(PAGE_ENTRY *, LOOKUP_ENTRY *); -int o_pzwrite(FILE_NO); -int o_flush(void); -int o_update(void); -long o_pages(FILE_NO); -void o_free(void); - -/* From recfcns.c: */ -int r_chkfld(INT, FIELD_ENTRY *, char *, const char *); -int r_delrec(INT, DB_ADDR); -int r_gfld(FIELD_ENTRY *, char *, char *); -int r_gmem(int, char *, char *); -int r_gset(int, char *, char *); -int r_pfld(INT, FIELD_ENTRY *, char *, const char *, DB_ADDR *); -int r_pmem(int, char *, char *); -int r_pset(int, char *, char *); -int r_smem(DB_ADDR *, INT); -int r_setopt(FIELD_ENTRY *, char *); -int r_clropt(FIELD_ENTRY *, char *); -int r_tstopt(FIELD_ENTRY *, char *); - -/* From pathfcns.c */ -int con_dbd(char *, char *, char *); -int con_dbf(char *, char *, char *, char *); -char * get_element(char *, int); - -/* From renfile.c: */ -int renfiles(void); - -/* From startup.c: */ -int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di); - -/* From taffcns.c: */ -int taf_open(void); -int taf_close(void); -int taf_access(void); -int taf_release(void); -int taf_add(const char *); -int taf_del(const char *); - -/* From mapchar.c */ -int ctb_init(void); -int ctbl_alloc(void); -void ctbl_free(void); - -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */ diff --git a/cde/lib/DtSearch/raima/task.h b/cde/lib/DtSearch/raima/task.h deleted file mode 100644 index 1567fb9a..00000000 --- a/cde/lib/DtSearch/raima/task.h +++ /dev/null @@ -1,479 +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: task.h /main/2 1996/05/09 04:20:28 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: Pi - * d_close - * d_cmstat - * d_cmtype - * d_connect - * d_costat - * d_cotype - * d_crget - * d_crread - * d_crset - * d_crstat - * d_crtype - * d_crwrite - * d_csmget - * d_csmread - * d_csmset - * d_csmwrite - * d_csoget - * d_csoread - * d_csoset - * d_csowrite - * d_csstat - * d_ctscm - * d_ctsco - * d_ctscr - * d_dbdpath - * d_dbfpath - * d_dblog - * d_dbuserid - * d_delete - * d_destroy - * d_discon - * d_disdel - * d_fillnew - * d_findco - * d_findfm - * d_findlm - * d_findnm - * d_findpm - * d_freeall - * d_gtscm - * d_gtsco - * d_gtscr - * d_gtscs - * d_initfile - * d_initialize - * d_ismember - * d_isowner - * d_keydel - * d_keyexist - * d_keyfind - * d_keyfree - * d_keyfrst - * d_keylast - * d_keylock - * d_keylstat - * d_keynext - * d_keyprev - * d_keyread - * d_keystore - * d_lock - * d_makenew - * d_members - * d_off_opt - * d_on_opt - * d_open - * d_rdcurr - * d_recfree - * d_recfrst - * d_reclast - * d_reclock - * d_reclstat - * d_recnext - * d_recover - * d_recprev - * d_recread - * d_recset - * d_recstat - * d_recwrite - * d_renfile - * d_rerdcurr - * d_retries - * d_rlbclr - * d_rlbset - * d_rlbtst - * d_set_dberr - * d_setdb - * d_setfree - * d_setkey - * d_setlock - * d_setlstat - * d_setmm - * d_setmo - * d_setmr - * d_setom - * d_setoo - * d_setor - * d_setrm - * d_setro - * d_stscm - * d_stsco - * d_stscr - * d_stscs - * d_timeout - * d_trabort - * d_trbegin - * d_trend - * d_utscm - * d_utsco - * d_utscr - * d_utscs - * d_wrcurr - * dt_closetask - * dt_cmstat - * dt_cmtype - * dt_connect - * dt_costat - * dt_cotype - * dt_crget - * dt_crread - * dt_crset - * dt_crtype - * dt_crwrite - * dt_csmget - * dt_csmread - * dt_csmset - * dt_csmwrite - * dt_csoget - * dt_csoread - * dt_csoset - * dt_csowrite - * dt_csstat - * dt_ctbpath - * dt_ctscm - * dt_ctsco - * dt_ctscr - * dt_dbdpath - * dt_dbfpath - * dt_dblog - * dt_dbuserid - * dt_destroy - * dt_discon - * dt_fillnew - * dt_findco - * dt_findfm - * dt_findlm - * dt_findnm - * dt_findpm - * dt_gtscm - * dt_gtsco - * dt_gtscr - * dt_gtscs - * dt_initfile - * dt_ismember - * dt_isowner - * dt_keydel - * dt_keyexist - * dt_keyfind - * dt_keyfree - * dt_keyfrst - * dt_keylast - * dt_keylock - * dt_keylstat - * dt_keynext - * dt_keyprev - * dt_keyread - * dt_keystore - * dt_lock - * dt_makenew - * dt_mapchar - * dt_members - * dt_off_opt - * dt_on_opt - * dt_open - * dt_opentask - * dt_rdcurr - * dt_recfree - * dt_recfrst - * dt_reclast - * dt_reclock - * dt_reclstat - * dt_recover - * dt_recread - * dt_recset - * dt_recstat - * dt_recwrite - * dt_renfile - * dt_rerdcurr - * dt_retries - * dt_set_dberr - * dt_setdb - * dt_setfree - * dt_setkey - * dt_setlock - * dt_setlstat - * dt_setmm - * dt_setmo - * dt_setmr - * dt_setom - * dt_setoo - * dt_setor - * dt_setrm - * dt_setro - * dt_stscm - * dt_stsco - * dt_stscr - * dt_stscs - * dt_timeout - * dt_trbegin - * dt_utscm - * dt_utsco - * dt_utscr - * dt_utscs - * dt_wrcurr - * - * ORIGINS: 157 - * - */ -/*---------------------------------------------------------------------------- - task.h: db_VISTA task cover function declaration header file - - (C) Copyright 1988 by Raima Corporation. -----------------------------------------------------------------------------*/ -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP -*/ - - -int EXTERNAL_FIXED dt_opentask(P1(DB_TASK *)); -int EXTERNAL_FIXED dt_closetask(P1(DB_TASK)); - -int EXTERNAL_FIXED dt_close(TASK_D1); /* dblfcns.c */ -int EXTERNAL_DBN dt_cmstat(P1(int) TASK_Di DBN_Dn); /* cmstat.c */ -int EXTERNAL_DBN dt_cmtype(P1(int) Pi(int *) TASK_Di DBN_Dn); - /* cmtype.c */ -int EXTERNAL_DBN dt_connect(P1(int) TASK_Di DBN_Dn); /* connect.c */ -int EXTERNAL_DBN dt_cotype(P1(int) Pi(int *) TASK_Di DBN_Dn); - /* cotype.c */ -int EXTERNAL_DBN dt_crget(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crget.c */ -int EXTERNAL_DBN dt_crread(P1(long) Pi(char *) TASK_Di DBN_Dn); - /* crread.c */ -int EXTERNAL_DBN dt_crset(P1(DB_ADDR *) TASK_Di DBN_Dn); /* crset.c */ -int EXTERNAL_DBN dt_crtype(P1(int *) TASK_Di DBN_Dn); /* crtype.c */ -int EXTERNAL_DBN dt_crwrite(P1(long) Pi(char *) TASK_Di DBN_Dn); - /* crwrite.c */ -int EXTERNAL_DBN dt_csmget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); - /* csmget.c */ -int EXTERNAL_DBN dt_csmread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); - /* csmread.c */ -int EXTERNAL_DBN dt_csmset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); - /* csmset.c */ -int EXTERNAL_DBN dt_csmwrite(P1(int) Pi(long) Pi(const char *) TASK_Di - DBN_Dn); /* csmwrite.c */ -int EXTERNAL_DBN dt_csoget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); - /* csoget.c */ -int EXTERNAL_DBN dt_csoread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); - /* csoread.c */ -int EXTERNAL_DBN dt_csoset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); - /* csoset.c */ -int EXTERNAL_DBN dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di - DBN_Dn); /* csowrite.c */ -int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di); /* pathfcns.c */ -int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di ); /* dbdpath.c */ -int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di ); /* dbfpath.c */ -int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di ); /* dblog.c */ -int EXTERNAL_FIXED dt_dbuserid(P1(const char *) TASK_Di ); /* dbuserid.c */ -int EXTERNAL_DBN dt_delete(TASK_D1 DBN_Dn); /* delete.c */ -int EXTERNAL_DBN dt_disdel(TASK_D1 DBN_Dn); /* disdel.c */ -int EXTERNAL_DBN dt_recnext(TASK_D1 DBN_Dn); /* recnext.c */ -int EXTERNAL_DBN dt_recprev(TASK_D1 DBN_Dn); /* recprev.c */ -int EXTERNAL_FIXED dt_destroy(P1(const char *) TASK_Di ); /* destroy.c */ -int EXTERNAL_DBN dt_discon(P1(int) TASK_Di DBN_Dn); /* discon.c */ -int EXTERNAL_DBN dt_fillnew(P1(int) Pi(const char *) TASK_Di DBN_Dn); - /* fillnew.c */ -int EXTERNAL_DBN dt_findco(P1(int) TASK_Di DBN_Dn); /* findco.c */ -int EXTERNAL_DBN dt_findfm(P1(int) TASK_Di DBN_Dn); /* findfm.c */ -int EXTERNAL_DBN dt_findlm(P1(int) TASK_Di DBN_Dn); /* findlm.c */ -int EXTERNAL_DBN dt_findnm(P1(int) TASK_Di DBN_Dn); /* findnm.c */ -int EXTERNAL_DBN dt_findpm(P1(int) TASK_Di DBN_Dn); /* findpm.c */ -int EXTERNAL_FIXED dt_freeall(TASK_D1); /* dblfcns.c */ -int EXTERNAL_DBN dt_initialize(TASK_D1 DBN_Dn); /* initial.c */ -int EXTERNAL_DBN dt_initfile(P1(FILE_NO) TASK_Di DBN_Dn); /* initial.c */ -int EXTERNAL_DBN dt_ismember(P1(int) TASK_Di DBN_Dn); /* ismember.c */ -int EXTERNAL_DBN dt_isowner(P1(int) TASK_Di DBN_Dn); /* isowner.c */ -int EXTERNAL_DBN dt_keydel(P1(long) TASK_Di DBN_Dn); /* keydel.c */ -int EXTERNAL_DBN dt_keyexist(P1(long) TASK_Di DBN_Dn); /* keyexist.c */ -int EXTERNAL_DBN dt_keyfind(P1(long) Pi(const char *) TASK_Di DBN_Dn); - /* keyfind.c */ -int EXTERNAL_DBN dt_keyfree(P1(long) TASK_Di DBN_Dn); /* dblfcns.c */ -int EXTERNAL_DBN dt_keyfrst(P1(long) TASK_Di DBN_Dn); /* keyfrst.c */ -int EXTERNAL_DBN dt_keylast(P1(long) TASK_Di DBN_Dn); /* keylast.c */ -int EXTERNAL_DBN dt_keylock(P1(long) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_keylstat(P1(long) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_keynext(P1(long) TASK_Di DBN_Dn); /* keynext.c */ -int EXTERNAL_DBN dt_keyprev(P1(long) TASK_Di DBN_Dn); /* keyprev.c */ -int EXTERNAL_FIXED dt_keyread(P1(char *) TASK_Di ); /* keyfcns.c */ -int EXTERNAL_DBN dt_keystore(P1(long) TASK_Di DBN_Dn); /* keystore.c */ -int EXTERNAL_DBN dt_lock(P1(int) Pi(LOCK_REQUEST *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_makenew(P1(int) TASK_Di DBN_Dn); /* makenew.c */ -int EXTERNAL_FIXED dt_mapchar(P1(unsigned char) Pi(unsigned char) - Pi(const char *) Pi(unsigned char) TASK_Di); - /* mapchar.c */ -int EXTERNAL_DBN dt_members(P1(int) Pi(LONG *) TASK_Di DBN_Dn); - /* members.c */ -int EXTERNAL_FIXED dt_off_opt(P1(int) TASK_Di ); /* options.c */ -int EXTERNAL_FIXED dt_on_opt(P1(int) TASK_Di ); /* options.c */ -int EXTERNAL_FIXED dt_open(P1(const char *) Pi(const char *) TASK_Di); - /* dblfcns.c */ -int EXTERNAL_FIXED dt_rdcurr(P1(DB_ADDR **) Pi(int *) TASK_Di); - /* rwcurr.c */ -int EXTERNAL_FIXED dt_rerdcurr(P1(DB_ADDR **) TASK_Di); /* rwcurr.c */ -int EXTERNAL_FIXED dt_wrcurr(P1(DB_ADDR *) TASK_Di); /* rwcurr.c */ -int EXTERNAL_DBN dt_recfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */ -int EXTERNAL_DBN dt_recfrst(P1(int) TASK_Di DBN_Dn); /* recfrst.c */ -int EXTERNAL_DBN dt_reclast(P1(int) TASK_Di DBN_Dn); /* reclast.c */ -int EXTERNAL_DBN dt_reclock(P1(int) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_reclstat(P1(int) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_FIXED dt_recover(P1(const char *) TASK_Di ); /* recover.c */ -int EXTERNAL_DBN dt_recread(P1(char *) TASK_Di DBN_Dn); /* recread.c */ -int EXTERNAL_DBN dt_recset(P1(int) TASK_Di DBN_Dn); /* recset.c */ -int EXTERNAL_DBN dt_recwrite(P1(const char *) TASK_Di DBN_Dn); - /* recwrite.c */ -int EXTERNAL_FIXED dt_renfile(P1(const char *) Pi(FILE_NO) - Pi(const char *) TASK_Di); /* renfile.c */ -int EXTERNAL_FIXED dt_retries(P1(int) TASK_Di ); /* dblfcns.c */ -int EXTERNAL_FIXED dt_rlbclr(TASK_D1); /* dblfcns.c */ -int EXTERNAL_FIXED dt_rlbset(TASK_D1); /* dblfcns.c */ -int EXTERNAL_FIXED dt_rlbtst(TASK_D1); /* dblfcns.c */ -int EXTERNAL_FIXED dt_set_dberr(P1(FARPROC) TASK_Di); /* dberr.c */ -int EXTERNAL_FIXED dt_setdb(P1(int) TASK_Di); /* setdb.c */ -int EXTERNAL_DBN dt_setfree(P1(int) TASK_Di DBN_Dn); /* dblfcns.c */ -int EXTERNAL_DBN dt_setkey(P1(long) Pi(const char *) TASK_Di DBN_Dn); - /* makenew.c */ -int EXTERNAL_DBN dt_setlock(P1(int) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_setlstat(P1(int) Pi(char *) TASK_Di DBN_Dn); - /* dblfcns.c */ -int EXTERNAL_DBN dt_setmm(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmm.c */ -int EXTERNAL_DBN dt_setmo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setmo.c */ -int EXTERNAL_DBN dt_setmr(P1(int) TASK_Di DBN_Dn); /* setmr.c */ -int EXTERNAL_DBN dt_setom(P1(int) Pi(int) TASK_Di DBN_Dn); /* setom.c */ -int EXTERNAL_DBN dt_setoo(P1(int) Pi(int) TASK_Di DBN_Dn); /* setoo.c */ -int EXTERNAL_DBN dt_setor(P1(int) TASK_Di DBN_Dn); /* setor.c */ -int EXTERNAL_DBN dt_setrm(P1(int) TASK_Di DBN_Dn); /* setrm.c */ -int EXTERNAL_DBN dt_setro(P1(int) TASK_Di DBN_Dn); /* setro.c */ -int EXTERNAL_FIXED dt_timeout(P1(int) TASK_Di ); /* dblfcns.c */ -int EXTERNAL_FIXED dt_trabort(TASK_D1); /* dblfcns.c */ -int EXTERNAL_FIXED dt_trbegin(P1(const char *) TASK_Di); /* dblfcns.c */ -int EXTERNAL_FIXED dt_trend(TASK_D1); /* dblfcns.c */ - -#ifndef NO_DT_COVER - -#define d_close() dt_close(CURRTASK_ONLY) -#define d_dbdpath(a) dt_dbdpath(a CURRTASK_PARM) -#define d_dbfpath(a) dt_dbfpath(a CURRTASK_PARM) -#define d_dblog(a) dt_dblog(a CURRTASK_PARM) -#define d_dbuserid(a) dt_dbuserid(a CURRTASK_PARM) -#define d_destroy(a) dt_destroy(a CURRTASK_PARM) -#define d_freeall() dt_freeall(CURRTASK_ONLY) -#define d_off_opt(a) dt_off_opt(a CURRTASK_PARM) -#define d_on_opt(a) dt_on_opt(a CURRTASK_PARM) -#define d_open(a, b) dt_open(a, b CURRTASK_PARM) -#define d_rdcurr(a, b) dt_rdcurr(a, b CURRTASK_PARM) -#define d_rerdcurr(a, b) dt_rerdcurr(a, b CURRTASK_PARM) -#define d_recover(a) dt_recover(a CURRTASK_PARM) -#define d_renfile(a, b, c) dt_renfile(a, b, c CURRTASK_PARM) -#define d_retries(a) dt_retries(a CURRTASK_PARM) -#define d_set_dberr(a, b) dt_set_dberr(a, b, CURRTASK_PARM) -#define d_setdb(a) dt_setdb(a CURRTASK_PARM) -#define d_timeout(a) dt_timeout(a CURRTASK_PARM) -#define d_trabort() dt_trabort(CURRTASK_ONLY) -#define d_trbegin(a) dt_trbegin(a CURRTASK_PARM) -#define d_trend() dt_trend(CURRTASK_ONLY) -#define d_wrcurr(a) dt_wrcurr(a CURRTASK_PARM) - -#define d_cmstat(a , dbn) dt_cmstat(a CURRTASK_PARM , dbn) -#define d_cmtype(a, b , dbn) dt_cmtype(a, b CURRTASK_PARM , dbn) -#define d_connect(a , dbn) dt_connect(a CURRTASK_PARM , dbn) -#define d_cotype(a, b , dbn) dt_cotype(a, b CURRTASK_PARM , dbn) -#define d_crget(a , dbn) dt_crget(a CURRTASK_PARM , dbn) -#define d_crread(a, b , dbn) dt_crread(a, b CURRTASK_PARM , dbn) -#define d_crset(a , dbn) dt_crset(a CURRTASK_PARM , dbn) -#define d_crtype(a , dbn) dt_crtype(a CURRTASK_PARM , dbn) -#define d_crwrite(a, b , dbn) dt_crwrite(a, b CURRTASK_PARM , dbn) -#define d_csmget(a, b , dbn) dt_csmget(a, b CURRTASK_PARM , dbn) -#define d_csmread(a, b, c , dbn) dt_csmread(a, b, c CURRTASK_PARM , dbn) -#define d_csmset(a, b , dbn) dt_csmset(a, b CURRTASK_PARM , dbn) -#define d_csmwrite(a, b, c , dbn) dt_csmwrite(a, b, c CURRTASK_PARM , dbn) -#define d_csoget(a, b , dbn) dt_csoget(a, b CURRTASK_PARM , dbn) -#define d_csoread(a, b, c , dbn) dt_csoread(a, b, c CURRTASK_PARM , dbn) -#define d_csoset(a, b , dbn) dt_csoset(a, b CURRTASK_PARM , dbn) -#define d_csowrite(a, b, c , dbn) dt_csowrite(a, b, c CURRTASK_PARM , dbn) -#define d_delete(, dbn) dt_delete(CURRTASK_ONLY , dbn) -#define d_disdel(, dbn) dt_disdel(CURRTASK_ONLY , dbn) -#define d_recnext(, dbn) dt_recnext(CURRTASK_ONLY , dbn) -#define d_recprev(, dbn) dt_recprev(CURRTASK_ONLY , dbn) -#define d_discon(a , dbn) dt_discon(a CURRTASK_PARM , dbn) -#define d_fillnew(a, b , dbn) dt_fillnew(a, b CURRTASK_PARM , dbn) -#define d_findco(a , dbn) dt_findco(a CURRTASK_PARM , dbn) -#define d_findfm(a , dbn) dt_findfm(a CURRTASK_PARM , dbn) -#define d_findlm(a , dbn) dt_findlm(a CURRTASK_PARM , dbn) -#define d_findnm(a , dbn) dt_findnm(a CURRTASK_PARM , dbn) -#define d_findpm(a , dbn) dt_findpm(a CURRTASK_PARM , dbn) -#define d_initialize(, dbn) dt_initialize(CURRTASK_ONLY , dbn) -#define d_initfile(a , dbn) dt_initfile(a CURRTASK_PARM , dbn) -#define d_ismember(a , dbn) dt_ismember(a CURRTASK_PARM , dbn) -#define d_isowner(a , dbn) dt_isowner(a CURRTASK_PARM , dbn) -#define d_keydel(a , dbn) dt_keydel(a CURRTASK_PARM , dbn) -#define d_keyexist(a , dbn) dt_keyexist(a CURRTASK_PARM , dbn) -#define d_keyfind(a, b , dbn) dt_keyfind(a, b CURRTASK_PARM , dbn) -#define d_keyfree(a , dbn) dt_keyfree(a CURRTASK_PARM , dbn) -#define d_keyfrst(a , dbn) dt_keyfrst(a CURRTASK_PARM , dbn) -#define d_keylast(a , dbn) dt_keylast(a CURRTASK_PARM , dbn) -#define d_keylock(a, b , dbn) dt_keylock(a, b CURRTASK_PARM , dbn) -#define d_keylstat(a, b , dbn) dt_keylstat(a, b CURRTASK_PARM , dbn) -#define d_keynext(a , dbn) dt_keynext(a CURRTASK_PARM , dbn) -#define d_keyprev(a , dbn) dt_keyprev(a CURRTASK_PARM , dbn) -#define d_keyread(a , dbn) dt_keyread(a CURRTASK_PARM) -#define d_keystore(a , dbn) dt_keystore(a CURRTASK_PARM , dbn) -#define d_lock(a, b , dbn) dt_lock(a, b CURRTASK_PARM , dbn) -#define d_makenew(a , dbn) dt_makenew(a CURRTASK_PARM , dbn) -#define d_members(a, b , dbn) dt_members(a, b CURRTASK_PARM , dbn) -#define d_recfree(a , dbn) dt_recfree(a CURRTASK_PARM , dbn) -#define d_recfrst(a , dbn) dt_recfrst(a CURRTASK_PARM , dbn) -#define d_reclast(a , dbn) dt_reclast(a CURRTASK_PARM , dbn) -#define d_reclock(a, b , dbn) dt_reclock(a, b CURRTASK_PARM , dbn) -#define d_reclstat(a, b , dbn) dt_reclstat(a, b CURRTASK_PARM , dbn) -#define d_recread(a , dbn) dt_recread(a CURRTASK_PARM , dbn) -#define d_recset(a , dbn) dt_recset(a CURRTASK_PARM , dbn) -#define d_recwrite(a , dbn) dt_recwrite(a CURRTASK_PARM , dbn) -#define d_setfree(a , dbn) dt_setfree(a CURRTASK_PARM , dbn) -#define d_setkey(a, b , dbn) dt_setkey(a, b CURRTASK_PARM , dbn) -#define d_setlock(a, b , dbn) dt_setlock(a, b CURRTASK_PARM , dbn) -#define d_setlstat(a, b , dbn) dt_setlstat(a, b CURRTASK_PARM , dbn) -#define d_setmm(a, b , dbn) dt_setmm(a, b CURRTASK_PARM , dbn) -#define d_setmo(a, b , dbn) dt_setmo(a, b CURRTASK_PARM , dbn) -#define d_setmr(a , dbn) dt_setmr(a CURRTASK_PARM , dbn) -#define d_setom(a, b , dbn) dt_setom(a, b CURRTASK_PARM , dbn) -#define d_setoo(a, b , dbn) dt_setoo(a, b CURRTASK_PARM , dbn) -#define d_setor(a , dbn) dt_setor(a CURRTASK_PARM , dbn) -#define d_setrm(a , dbn) dt_setrm(a CURRTASK_PARM , dbn) -#define d_setro(a , dbn) dt_setro(a CURRTASK_PARM , dbn) - -#endif /* NO_DT_COVER */ -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC task.h */ diff --git a/cde/lib/DtSearch/raima/trxlog.h b/cde/lib/DtSearch/raima/trxlog.h deleted file mode 100644 index bdc8ce1b..00000000 --- a/cde/lib/DtSearch/raima/trxlog.h +++ /dev/null @@ -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 - */ -/* $XConsortium: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: BITMAP_SIZE - * BM_BASE - * IX_BASE - * IX_SIZE - * PZ_BASE - * - * ORIGINS: 157 - * - */ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis -*/ - - -/* trxlog.h - header file to define structures, constants, etc. for the - memory cache overflow and transaction log file control -========================================================================== -*/ -/* - The following constants control the functioning of the cache overflow - and transaction logging processes - - BUI The number of bits in an unsigned int - IX_PAGESIZE The size (in bytes) of an index page - IX_EPP The number of entries that will fit on an index page - BITMAP_SIZE The size of the index bitmap (in unsigned int units) - IX_SIZE The number of index pages needed to control the db pages - OADDR_OF_IXP Calculates the overflow file address of an index page # - -========================================================================== -*/ -/* (BITS(unsigned int)) */ -#define BUI (8*sizeof(unsigned int)) - - -/* -========================================================================== -*/ - -/* page zero table entry */ -#define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG)) -typedef struct PGZERO_S { - F_ADDR pz_dchain; /* delete chain pointer */ - F_ADDR pz_next; /* next available record number */ - ULONG pz_timestamp; /* file's timestamp value */ - BOOLEAN pz_modified; /* TRUE if page zero has been modified */ -} PGZERO; - -/* binary search lookup table entry */ - - -/* Maximum number of transactions which can commit a time */ -#define TAFLIMIT 1 - -#define TRXLOG_H -/* End - trxlog.h */ -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */ diff --git a/cde/lib/DtSearch/raima/vista.h b/cde/lib/DtSearch/raima/vista.h deleted file mode 100644 index a0ace537..00000000 --- a/cde/lib/DtSearch/raima/vista.h +++ /dev/null @@ -1,342 +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 - */ -/* - * COMPONENT_NAME: austext - * - * FUNCTIONS: P1 - * POINTER_ASSIGN - * POINTER_INIT - * Pi - * Piv - * Pv - * int - * - * ORIGINS: 27,157 - * - * (C) COPYRIGHT International Business Machines Corp. 1995, 1996 - * All Rights Reserved - * US Government Users Restricted Rights - Use, duplication or - * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. - */ -/*---------------------------------------------------------------------- - $TOG: vista.h /main/7 1998/04/03 17:10:52 mgreess $ - vista.h: db_VISTA standard header file - - This file should be included in all programs which use db_VISTA. It - contains database status/error code definitions and standard type - definitions. - - This file should only include user-oriented constructs. - - (C) Copyright 1984, 1985, 1986, 1987 by Raima Corp. - -----------------------------------------------------------------------*/ - -/* ********************** EDIT HISTORY ******************************* - - SCR DATE INI DESCRIPTION ------ --------- --- ----------------------------------------------------- - 03-AUG-88 RTK Multi-tasking support - see "#ifdef MULTI_TASK" - 08-AUG-88 RTK Declared globals rn_dba, rn_type, and ft_offset to - support recfrst, recnext, etc in ONE_DB mode. - 16-Sep-88 RSC Fixed DBN_Dx to use variable # of arg macros. - 28-Sep-88 WLW Corrected the db_VERSION to 3.10 from 3.01. - 11-Oct-88 RSC Fixed DBN_Dx to use variable # of arg macros (again) - 11-Oct-88 RSC Fixed ONE_DB to compile correctly - 17-Oct-88 RSC Replaced MSC with ANSI, moved compiler check to dbtype - 439 17-Nov-88 RSC Placed some multi-tasking stuff within MULTI_TASK - 441 06-Dec-88 RSC Modifications to make gen lockmgr work with 3.10 - 26-Jan-89 RSC Add defn for UINT (for lockmgr) - 420 13-Feb-89 WLW Removed unused prototypes of {Make,Free}ProcInstance - * - * $Log$ - * Revision 1.2 1995/10/17 18:33:01 miker - * Added global db_oflag, changed values of db_VERSION and dbd_VERSION: - * - Allow access to read-only databases. - * - Expand maximum file names from 48 to 240 chars (DtSrFILENMLEN). - * - Disable transaction processing (NO_TRANS) to obviate need - * for vista.taf and vista.log files. - * - Disregard all environment variables. - * - Replace default dberr.c with one that doesn't read stdin. - * - Rename library from libvista to prevent confusion with old code. - * - Prefix all vista utility names with "dt...", also to deconfuse. - * - */ -#if defined(__linux__) -# define __SVR4_I386_ABI_L1__ -#endif -#include /* pickup WORD_BIT, LONG_BIT */ -#if defined(__linux__) || defined(CSRG_BASED) || defined(sun) -# undef __SVR4_I386_ABI_L1__ -# ifndef WORD_BIT -# define WORD_BIT 32 -# endif -# ifndef LONG_BIT -# define LONG_BIT 32 -# endif -#endif - -#define db_VERSION "3.dt" /* was "3.10" */ -#define dbd_VERSION "V3.dt\032" /* was "V3.00\032" */ - -/* -------------------status codes-------------------- */ -/* user errors */ -#define S_DBOPEN -1 /* database not opened */ -#define S_INVSET -2 /* invalid set */ -#define S_INVREC -3 /* invalid record */ -#define S_INVDB -4 /* invalid database */ -#define S_INVFLD -5 /* invalid field name */ -#define S_INVADDR -6 /* invalid db_address */ -#define S_NOCR -7 /* no current record */ -#define S_NOCO -8 /* set has no current owner */ -#define S_NOCM -9 /* set has no current member */ -#define S_KEYREQD -10 /* key value required */ -#define S_BADTYPE -11 /* invalid lock type */ -#define S_HASMEM -12 /* record is owner of non-empty set(s) */ -#define S_ISMEM -13 /* record is member of set(s) */ -#define S_ISOWNED -14 /* member already owned */ -#define S_ISCOMKEY -15 /* field is a compound key */ -#define S_NOTCON -16 /* record not connected to set */ -#define S_NOTKEY -17 /* field is not a valid key */ -#define S_INVOWN -18 /* record not legal owner of set */ -#define S_INVMEM -19 /* record not legal member of set */ -#define S_SETPAGES -20 /* error in d_setpages (database open or bad param) */ -#define S_INCOMPAT -21 /* incompatible dictionary file */ -#define S_DELSYS -22 /* illegal attempt to delete system record */ -#define S_NOTFREE -23 /* attempt to locked previously locked rec or set */ -#define S_NOTLOCKED -24 /* attempt to access unlocked record or set */ -#define S_TRANSID -25 /* transaction id not be supplied */ -#define S_TRACTIVE -26 /* transaction already active */ -#define S_TRNOTACT -27 /* transaction not currently active */ -#define S_TRLOCKS -28 /* transaction cannot begin due to locked files */ -#define S_TRFREE -29 /* attempt to free a lock inside a transaction */ -#define S_TRCHANGES -30 /* too many pages changed within transaction */ -#define S_NOTRANS -31 /* attempted update outside of transaction */ -#define S_EXCLUSIVE -32 /* functions requires exclusive db access */ -#define S_STATIC -33 /* Attempted to write lock a static file */ -#define S_USERID -34 /* No user id exists */ -#define S_NAMELEN -35 /* database file/path name too long */ -#define S_RENAME -36 /* invalid file number was passed to d_renfile */ -#define S_NOTOPTKEY -37 /* field is not an optional key */ -#define S_BADFIELD -38 /* field not defined in current record type */ -#define S_COMKEY -39 /* record/field has/in a compound key */ -#define S_INVNUM -40 /* invalid record or set number */ -#define S_TIMESTAMP -41 /* record or set not timestamped */ -#define S_BADUSERID -42 /* invalid user id - not alphanumeric */ -#define S_NONETBIOS -43 /* NetBIOS is not installed on machine */ -#define S_BADBDPATH -44 /* bad # of elements in DBDPATH */ -#define S_BADBFPATH -45 /* bad # of elements in DBFPATH */ -#define S_NOTYPE -46 /* No current record type */ -#define S_INVSORT -47 /* Invalid country table sort string */ -#define S_DBCLOSE -48 /* database not closed */ - -/* system errors */ -#define S_NOSPACE -900 /* no more space on file */ -#define S_SYSERR -901 /* system error */ -#define S_FAULT -902 /* page fault -- changed during usage */ -#define S_NOWORK -903 /* no working file set in dio */ -#define S_NOMEMORY -904 /* unable to allocate sufficient memory */ -#define S_NOFILE -905 /* unable to locate a file */ -#define S_DBLACCESS -906 /* unable to access db lock file */ -#define S_DBLERR -907 /* db lock file open/access error */ -#define S_BADLOCKS -908 /* inconsistent database locks */ -#define S_RECLIMIT -909 /* file record limit reached */ -#define S_KEYERR -910 /* key file inconsistency detected */ -#define S_USERLIMIT -911 /* Max concurrent user limit reached */ -#define S_FSEEK -912 /* Bad seek on database file */ -#define S_INVFILE -913 /* Invalid file specified */ -#define S_BADREAD -914 /* Bad read on database/overflow file */ -#define S_NETSYNC -915 /* Network synchronization error */ -#define S_DEBUG -916 /* Debugging check interrupt */ -#define S_NETERR -917 /* Network communications error */ -#define S_RECOVERY -918 /* Auto-recovery is in process */ -#define S_BADWRITE -919 /* Bad write on database/overflow file */ -#define S_NOLOCKMGR -920 /* Unable to open lockmgr session */ -#define S_DUPUSERID -921 /* DBUSERID is already used by another user */ -#define S_LMBUSY -922 /* The lock manager is busy */ - -/* function statuses */ -#define S_OKAY 0 /* normal return, okay */ -#define S_EOS 1 /* end of set */ -#define S_NOTFOUND 2 /* record not found */ -#define S_DUPLICATE 3 /* duplicate key */ -#define S_KEYSEQ 4 /* field type used out of sequence in d_keynext */ -#define S_UNAVAIL 5 /* database file currently unavailable */ -#define S_DELETED 6 /* record/set deleted since last accessed */ -#define S_UPDATED 7 /* record/set updated since last accessed */ -#define S_LOCKED 8 /* current record's lock bit is set */ -#define S_UNLOCKED 9 /* current record's lock bit is clear */ - -/* In order to share databases among heterogenous machines, - * certain integer types must be defined that are invariably - * 2 and 4 bytes on all architectures. - * Note WORD_BIT == 32 does not guarantee short == 16. - */ - -#ifdef LONG -#undef LONG -#endif - -#if (WORD_BIT == 16) - typedef int INT; - typedef unsigned int UINT; -#elif (WORD_BIT == 32) - typedef short INT; - typedef unsigned short UINT; -#else -#error Unable to typedef INT and UINT -#endif - -#if (LONG_BIT == 32) - typedef long LONG; - typedef unsigned long ULONG; -#elif (WORD_BIT == 32) - typedef int LONG; - typedef unsigned int ULONG; -#else -#error Unable to typedef LONG and ULONG -#endif - -typedef LONG BOOLEAN; - -#define MAXRECORDS 16777215 -#define NULL_DBA 0 - -/* db_VISTA database address */ -#define DB_ADDR LONG - -/* db_VISTA file number */ -#define FILE_NO INT - -/* file address: page or record number */ -#define F_ADDR LONG - -/* record number indicator */ -#define RECMARK 10000 -/* field number indicator = rec * FLDMARK + fld_in_rec */ -#define FLDMARK 1000 -/* set number indicator - must be greater than RECMARK */ -#define SETMARK 20000 - -/* runtime option flags */ -#define DCHAINUSE 0x01 -#define TRLOGGING 0x02 -#define ARCLOGGING 0x04 -#define IGNORECASE 0x08 - -/* grouped lock request packet */ -extern int db_status; - -/* Mike Russell's custom open() flag. Default is O_RDWR. - * Change to O_RDONLY prior to d_open() if not updating - * the databases, if their permissions do not allow - * writing, if they're on cd-roms, etc. - * Not used internally for open functions that are known - * to require write permissions (eg initializations), - * or known to be read-only. - */ -extern int db_oflag; - -#ifndef GENERAL /* GENERAL lockmgr */ -#ifdef MSC /* MSC */ -#ifndef NO_EXT_KEYWORDS /* NO_EXT_KEYWORDS */ -#ifndef PASCAL /* PASCAL */ -#define PASCAL pascal -#endif /* PASCAL */ -#ifndef CDECL /* CDECL */ -#define CDECL cdecl -#endif /* CDECL */ -#endif /* NO_EXT_KEYWORDS */ -#endif /* MSC */ -#endif /* GENERAL lockmgr */ - -#ifndef PASCAL -#define PASCAL /**/ -#endif - -#ifndef CDECL -#define CDECL /**/ -#endif - -#define EXTERNAL_FIXED PASCAL -#define EXTERNAL_VARIABLE CDECL -#define INTERNAL_FIXED PASCAL -#define INTERNAL_VARIABLE CDECL - -typedef int (PASCAL *FARPROC)(); -typedef char *HANDLE; - -#define LOCK_DESC /**/ -#define POINTER_INIT() { NULL } -#define POINTER_ASSIGN(a) { a } - -typedef struct {char *ptr; LOCK_DESC} CHAR_P; -typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P; - - -/* Allow for function prototyping */ -#ifdef LINT_ARGS -#define P0 void /* parameterless function */ -#define P1(t) t /* first (or only) parameter in function */ -#define Pi(t) ,t /* subsequent (2,3,...) parameter in function */ -#ifdef ANSI -#define Piv(t) ,... /* begining of variable number of parameters */ -#define Pv(t) /**/ /* function has 0 or more parameters */ -#else -#define Piv(t) , /* [XENIX] begining of variable number of parameters */ -#define Pv(t) , /* [XENIX] function has 0 or more parameters */ -#endif -#else -#define P0 /**/ -#define P1(t) /**/ -#define Pi(t) /**/ -#define Piv(t) /**/ -#define Pv(t) /**/ -#endif - - - -#define DBN_D1 Pv(int) -#define DBN_FIX_D1 P1(int) -#define DBN_Dn Piv(int) - -#define TASK_DBN_D1 DBN_D1 -#define TASK_D1 P0 -#define TASK_Di /**/ -#define TASK_PTR_D1 P0 -#define TASK_PTR_Di /**/ -#define CURRTASK_PARM /**/ -#define CURRTASK_ONLY /**/ - -#define LOCK_D1 /**/ -#define LOCK_Di /**/ - -typedef struct { - int item; /* record or set number */ - char type; /* lock type: 'r', 'w', 'x', 'k' */ -} LOCK_REQUEST; - - -#include "dproto.h" - -/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC vista.h */ diff --git a/cde/lib/DtSvc/DtUtil1/Action.h b/cde/lib/DtSvc/DtUtil1/Action.h deleted file mode 100644 index 63550e50..00000000 --- a/cde/lib/DtSvc/DtUtil1/Action.h +++ /dev/null @@ -1,139 +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: Action.h /main/4 1998/05/06 15:55:18 rafi $ */ -/* - * (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_Action_h -#define _Dt_Action_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Argument types - */ - -#define DtACTION_FILE 1 /* file argument */ -#define DtACTION_BUFFER 2 /* buffer argument */ -#define DtACTION_STRING 3 /* string argument */ -#define DtACTION_NULLARG 4 /* untyped return-only argument */ - -typedef struct { - void *bp; /* location of buffer */ - int size; /* size of buffer in bytes */ - char *type; /* (opt.) type of buffer */ - char *name; /* (opt.) name of buffer object */ - Boolean writable; /* allow changes to buffer object? */ -} DtActionBuffer; - -typedef struct { - char *name; -} DtActionFile; - -typedef struct { - /* - * Structure containing argument information - */ - int argClass; /* see argument types */ - union { - DtActionFile file; - DtActionBuffer buffer; - } u; -} DtActionArg; - -/* - * DtActionStatus codes - */ -typedef enum { - DtACTION_OK, /* If not any of the below */ - DtACTION_INVALID_ID, /* ID is not valid */ - DtACTION_INVOKED, /* the action invocation step is done */ - DtACTION_STATUS_UPDATE, /* status update */ - DtACTION_DONE, /* normal action termination code */ - DtACTION_FAILED, /* error running action */ - DtACTION_CANCELED /* normal action termination by cancel*/ -} DtActionStatus; - -typedef void (*DtDbReloadCallbackProc)( - XtPointer clientData); - -/* - * DtActionInvocationID is the fundamental user-space handle to invoked - * actions. - */ -typedef unsigned long DtActionInvocationID; - -typedef void (*DtActionCallbackProc) ( - DtActionInvocationID id, - XtPointer client_data, - DtActionArg *actionArgPtr, - int actionArgCount, - DtActionStatus status); - -/* - * Functions - */ - -extern Boolean DtActionExists( - char *actionName); - -extern char * DtActionLabel( - char *actionName); - -extern char * DtActionDescription( - char *actionName); - -extern void DtDbReloadNotify ( - DtDbReloadCallbackProc proc, - XtPointer clientData); - -extern void DtDbLoad(void); - -extern DtActionInvocationID DtActionInvoke ( - Widget w, - char *action, - DtActionArg *args, - int argCount, - char *termOpts, - char *execHost, - char *contextDir, - int useIndicator, - DtActionCallbackProc statusUpdateCb, - XtPointer client_data); - -extern char * DtActionIcon( - char *actionName); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Action_h */ diff --git a/cde/lib/DtSvc/DtUtil1/ActionDb.h b/cde/lib/DtSvc/DtUtil1/ActionDb.h deleted file mode 100644 index 397cb185..00000000 --- a/cde/lib/DtSvc/DtUtil1/ActionDb.h +++ /dev/null @@ -1,241 +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: ActionDb.h - * RCS: $XConsortium: ActionDb.h /main/3 1995/10/26 14:58:38 rswiston $ - * Description: Internal header file for the action database functions. - * Language: C - * Package: N/A - * Status: Experimental (Do Not Distribute) - * - * - ** (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_ActionDb_h -#define _Dt_ActionDb_h - - -/* - * The following constants are used by the database parsing code to - * identify the field names for an action definition. - * - * Recognized Field names for any action definition. - */ -#define _DtACTION_NAME "ACTION" -#define _DtACTION_TYPE "TYPE" -#define _DtACTION_LABEL "LABEL" -#define _DtACTION_ARG_CLASS "ARG_CLASS" -#define _DtACTION_ARG_MODE "ARG_MODE" -#define _DtACTION_ARG_TYPE "ARG_TYPE" -#define _DtACTION_ARG_COUNT "ARG_COUNT" -#define _DtACTION_DESCRIPTION "DESCRIPTION" -#define _DtACTION_ICON "ICON" -#define _DtACTION_INSTANCE_ICON "INSTANCE_ICON" - -/* - * Miscellaneous syntax strings - */ -#define _DtACT_ANY "*" -#define _DtACT_LIST_SEPARATOR_CHAR ',' -#define _DtACT_GT_CHAR '>' -#define _DtACT_LT_CHAR '<' - - -/* - * Valid values for ACTION_TYPE - */ -#define _DtACTION_MAP "MAP" -#define _DtACTION_COMMAND "COMMAND" -#define _DtACTION_TT_MSG "TT_MSG" - -#ifdef _DT_ALLOW_DT_MSGS - -#define _DtACTION_DT_REQUEST "DT_REQUEST" -#define _DtACTION_DT_NOTIFY "DT_NOTIFY" -#endif /* _DT_ALLOW_DT_MSGS */ - -/* - * Field names for "MAP" type actions - */ - -#define _DtACTION_MAP_ACTION "MAP_ACTION" - -/* - * Field names for the "COMMAND" type actions. - */ -#define _DtACTION_EXEC_STRING "EXEC_STRING" -#define _DtACTION_EXEC_HOST "EXEC_HOST" -#define _DtACTION_CWD "CWD" -#define _DtACTION_WINDOW_TYPE "WINDOW_TYPE" -#define _DtACTION_TERM_OPTS "TERM_OPTS" - -/* - * Field names for "TT_MSG" type actions - */ -#define _DtACTION_TT_CLASS "TT_CLASS" -#define _DtACTION_TT_SCOPE "TT_SCOPE" -#define _DtACTION_TT_OPERATION "TT_OPERATION" -#define _DtACTION_TT_FILE "TT_FILE" -/* definitions to decifer TT_ARGn_* fields */ -#define _DtACTION_TTN_ARG "TT_ARG" -#define _DtACTION_TTN_MODE "_MODE" -#define _DtACTION_TTN_VTYPE "_VTYPE" -#define _DtACTION_TTN_REP_TYPE "_REP_TYPE" -#define _DtACTION_TTN_VALUE "_VALUE" - - -#ifdef _DT_ALLOW_DT_MSGS -/* - * Field names for "DT_REQUEST" type actions - */ -#define _DtACTION_DT_REQUEST_NAME "DT_REQUEST_NAME" -#define _DtACTION_DT_SVC "DT_SVC" - -/* - * Field names for "DT_NOTIFY" type actions - */ -#define _DtACTION_DT_NOTIFY_NAME "DT_NOTIFY_NAME" -#define _DtACTION_DT_NGROUP "DT_NGROUP" - -/* - * Field names for DT ARGn (either request or notify) - */ -#define _DtACTION_DTN_ARG "DT_ARG" -#define _DtACTION_DTN_VALUE "_VALUE" - -#endif /* _DT_ALLOW_DT_MSGS */ - -/* - * Valid Field value strings - * for Command Actions Window Types - */ -#define _DtACTION_TERMINAL "TERMINAL" -#define _DtACTION_PERM_TERMINAL "PERM_TERMINAL" -#define _DtACTION_NO_STDIO "NO_STDIO" - -/* - * Valid Field values for ARG_CLASS records. - */ -#define _DtACTION_BUFFER "BUFFER" -#define _DtACTION_FILE "FILE" -#define _DtACTION_STRING "STRING" - -/* - * Valid Field values for ARG_MODE - */ - -#define _DtACT_ARG_MODE_WRITE "w" -#define _DtACT_ARG_MODE_NOWRITE "!w" -#define _DtACT_ARG_MODE_ANY _DtACT_ANY - - -/* - * Valid Field values for TT_CLASS records. - */ -#define _DtACTION_TT_NOTICE "TT_NOTICE" -#define _DtACTION_TT_REQUEST "TT_REQUEST" - -/* - * Valid Field values for TT_SCOPE records. - */ -#define _DtACTION_TT_SESSION "TT_SESSION" -#define _DtACTION_TT_BOTH "TT_BOTH" -#define _DtACTION_TT_FILE_IN_SESSION "TT_FILE_IN_SESSION" -/* --- same as TT_MSG's TT_FILE field name -------- - #define _DtACTION_TT_FILE "TT_FILE" - */ - -/* - * Valid Field values for TT_ARGn_MODE - */ -#define _DtACTION_TT_MODE_IN "TT_IN" -#define _DtACTION_TT_MODE_OUT "TT_OUT" -#define _DtACTION_TT_MODE_INOUT "TT_INOUT" - -/* - * Valid Field values for TT_ARGn_REP_TYPE - */ -#define _DtACTION_TT_RTYP_UND "TT_REP_UNDEFINED" -#define _DtACTION_TT_RTYP_INT "TT_REP_INTEGER" -#define _DtACTION_TT_RTYP_BUF "TT_REP_BUFFER" -#define _DtACTION_TT_RTYP_STR "TT_REP_STRING" - -/* - * Action Keywords -- - * these keywords appear in the action database files - * in the form: %% - * where the optional qualifier in enclosed in: () - * and the optional prompt string is enclosed in: "" - */ -#define _DtACT_DATABASEHOST_STR "DatabaseHost" -#define _DtACT_DISPLAYHOST_STR "DisplayHost" -#define _DtACT_LOCALHOST_STR "LocalHost" -#define _DtACT_SESSIONHOST_STR "SessionHost" -#define _DtACT_ARGS_STR "Args" -#define _DtACT_ARG_UNDER_STR "Arg_" - -#define _DtACT_STRING_QUALIFIER "(String)" -#define _DtACT_FILE_QUALIFIER "(File)" - - - -/* - * Default action field value definitions (these should be strings) - * for recognized fields. - */ -#define _DtACT_LBL_DFLT NULL -#define _DtACT_TYPE_DFLT _DtACTION_COMMAND -#define _DtACT_ARG_CLASS_DFLT _DtACT_ANY -#define _DtACT_ARG_MODE_DFLT _DtACT_ANY -#define _DtACT_ARG_TYPE_DFLT _DtACT_ANY -#define _DtACT_ARG_CNT_DFLT _DtACT_ANY -#define _DtACT_DESC_DFLT NULL -#define _DtACT_ICON_DFLT NULL -#define _DtACT_MAP_ACT_DFLT NULL -#define _DtACT_EXEC_STRG_DFLT NULL -#define _DtACT_EXEC_HOST_DFLT \ - "%" _DtACT_DATABASEHOST_STR "%,%" _DtACT_LOCALHOST_STR "%" -#define _DtACT_CWD_DFLT NULL -#define _DtACT_WIN_TYPE_DFLT _DtACTION_PERM_TERMINAL -#define _DtACT_TERM_OPTS_DFLT NULL -#define _DtACT_TT_CLASS_DFLT NULL -#define _DtACT_TT_SCOPE_DFLT NULL -#define _DtACT_TT_OP_DFLT NULL -#define _DtACT_TT_FILE_DFLT NULL - -#ifdef _DT_ALLOW_DT_MSGS -#define _DtACT_DT_REQ_DFLT NULL -#define _DtACT_DT_SVC_DFLT NULL -#define _DtACT_DT_NTFY_DFLT NULL -#define _DtACT_DT_NGRP_DFLT NULL -#endif /* _DT_ALLOW_DT_MSGS */ - - - -#endif /* _Dt_ActionDb_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/ActionDbP.h b/cde/lib/DtSvc/DtUtil1/ActionDbP.h deleted file mode 100644 index 5c24e00c..00000000 --- a/cde/lib/DtSvc/DtUtil1/ActionDbP.h +++ /dev/null @@ -1,143 +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: ActionDbP.h - * RCS: $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $ - * Description: Private header file for the action database functions. - * Language: C - * Package: N/A - * - * - ** (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_ActionDbP_h -#define _Dt_ActionDbP_h - -#include
-#include
- -#define _DtMAX_NUM_FIELDS 30 -#define _ActDb_MAX_NUM_FIELDS _DtMAX_NUM_FIELDS - - -/* - * Bitmask field definitions for the action converter bit mask. - * These are NOT the bits for the mask in struct ACTION. - */ - -#define _ActDb_LABEL_SET (1<<0) -#define _ActDb_TYPE_SET (1<<1) -#define _ActDb_ARG_CLASS_SET (1<<2) -#define _ActDb_ARG_TYPE_SET (1<<3) -#define _ActDb_ARG_COUNT_SET (1<<4) -#define _ActDb_ARG_MODE_SET (1<<5) -#define _ActDb_DESCRIPTION_SET (1<<6) -#define _ActDb_ICON_SET (1<<7) - -#define _ActDb_MAP_ACTION_SET (1<<10) - -#define _ActDb_EXEC_STRING_SET (1<<12) -#define _ActDb_EXEC_HOST_SET (1<<13) -#define _ActDb_CWD_SET (1<<14) -#define _ActDb_WINDOW_TYPE_SET (1<<15) -#define _ActDb_TERM_OPTS_SET (1<<16) - -#define _ActDb_TT_CLASS_SET (1<<18) -#define _ActDb_TT_SCOPE_SET (1<<19) -#define _ActDb_TT_OPERATION_SET (1<<20) -#define _ActDb_TT_FILE_SET (1<<21) -#define _ActDb_TT_ARGN_MODE_SET (1<<22) -#define _ActDb_TT_ARGN_VTYP_SET (1<<23) -#define _ActDb_TT_ARGN_RTYP_SET (1<<24) -#define _ActDb_TT_ARGN_VAL_SET (1<<25) - -#ifdef _DT_ALLOW_DT_MSGS -#define _ActDb_DT_REQ_NAME_SET (1<<26) -#define _ActDb_DT_SVC_SET (1<<27) - -#define _ActDb_DT_NTFY_NAME_SET (1<<28) -#define _ActDb_DT_NGROUP_SET (1<<29) -#define _ActDb_DT_ARGN_VAL_SET (1<<30) -/* no mask for ARGn strings */ - - -#define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET \ - | _ActDb_DT_SVC_SET ) -#define _ActDb_DT_NOTIFY_BITS ( _ActDb_DT_NTFY_NAME_SET \ - | _ActDb_DT_NGROUP_SET ) -#endif /* _DT_ALLOW_DT_MSGS */ -#define _ActDb_TT_BITS ( _ActDb_TT_CLASS_SET \ - | _ActDb_TT_SCOPE_SET \ - | _ActDb_TT_OPERATION_SET \ - | _ActDb_TT_ARGN_MODE_SET \ - | _ActDb_TT_ARGN_VTYP_SET \ - | _ActDb_TT_ARGN_RTYP_SET \ - | _ActDb_TT_ARGN_VAL_SET \ - | _ActDb_TT_FILE_SET ) -#define _ActDb_CMD_BITS ( _ActDb_EXEC_STRING_SET \ - | _ActDb_CWD_SET \ - | _ActDb_WINDOW_TYPE_SET \ - | _ActDb_TERM_OPTS_SET ) -#define _ActDb_MAP_BITS ( _ActDb_MAP_ACTION_SET ) - -#define _ActDb_TT_ARGN_BITS ( _ActDb_TT_ARGN_MODE_SET \ - | _ActDb_TT_ARGN_VTYP_SET \ - | _ActDb_TT_ARGN_RTYP_SET \ - | _ActDb_TT_ARGN_VAL_SET ) - -#ifdef _DT_ALLOW_DT_MSGS -#define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS \ - | _ActDb_DT_ARGN_VAL_SET ) -#else -#define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS ) -#endif /* _DT_ALLOW_DT_MSGS */ - - -/****************************************************************************** - * - * Private (but external) entry points for internal use by Action Database - * Library code only. - * - *****************************************************************************/ - -# ifdef __cplusplus -extern "C" { -# endif - - -extern Boolean _DtActionConverter( DtDtsDbField *fields, - DtDbPathId pathId, - char *hostPrefix, - Boolean rejectionStatus); - - -# ifdef __cplusplus -} -# endif -#endif /* _Dt_ActionDbP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/ActionFind.h b/cde/lib/DtSvc/DtUtil1/ActionFind.h deleted file mode 100644 index 66edf99d..00000000 --- a/cde/lib/DtSvc/DtUtil1/ActionFind.h +++ /dev/null @@ -1,67 +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: ActionFind.h /main/4 1995/10/26 14:59:41 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: ActionFind.h - ** - ** Project: DT - ** - ** Description: Public include file for the ActionFind functions. - ** - ** (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_ActionFind_h -#define _Dt_ActionFind_h - -#include -#include - -#include
-#include
-#include
- - -# ifdef __cplusplus -extern "C" { -# endif - -extern void _DtSortActionDb(void); -extern ActionPtr -_DtActionFindDBEntry( ActionRequest *reqp, - DtShmBoson actQuark ); - -# ifdef __cplusplus -} -# endif - - -#endif /* _Dt_ActionFind_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ - diff --git a/cde/lib/DtSvc/DtUtil1/ActionP.h b/cde/lib/DtSvc/DtUtil1/ActionP.h deleted file mode 100644 index 5a5777cf..00000000 --- a/cde/lib/DtSvc/DtUtil1/ActionP.h +++ /dev/null @@ -1,849 +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: ActionP.h /main/3 1995/10/26 14:59:56 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: ActionP.h - ** - ** Project: DT - ** - ** Description: Private include file for the Action Library. - ** - ** - ** (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 _ActionP_h -#define _ActionP_h - -#include
-#include
-#include
-#include
-#include -#include
-/* - * Environment Variable Names - */ -#define ENV_SESSION_SVR "SESSION_SVR" -/* - * Define maximum static buffer size for action code. - */ -#define _DtAct_MAX_BUF_SIZE 1024 - -/* - * Data-type field which contains the template for producing filenames - * of a given type. - */ -#define _DtActNAME_TEMPLATE "NAME_TEMPLATE" -#define _DtActIS_EXECUTABLE "IS_EXECUTABLE" - -/****************************************************************************** - * - * MASK LAYOUT: - * - * The same layout is used for all the masks (defined herein);, independent of - * the data structure in which they are defined. That is, all bit fields for - * all masks are non-overlapping. In general, the mask in any given structure - * should ONLY contain information in the field appropriate for that structure. - * - * The action bit mask is broken into the following fields - * - * -------------------------------------------------------------------------- - * |act'n |arg |arg |arg | win |args| request | object |treat| not | - * |type |class|count|typ | type | | status | status | as | | - * |bits |bits |bits |bit | bits |used| bits | bits |file |used | - * -------------------------------------------------------------------------- - * 0 - 4,5 - 8,9 - 12, 13 ,14 - 17,18-19,20 ------- 22,23 ---- 28, 29 ,30-31 - * | | | | | | - * |<-- action mask -->| |<- request->|<- obj. ->|< - >| - * mask data | - * mask msgCcomp. - * mask - ******************************************************************************/ - -/* - * generic bit manipulation macros - */ -#define SET_ANY_BITS(mask,bits) ( mask |= (bits) ) -#define RESET_ANY_BITS(mask,bits) ( mask &= ~(bits) ) -#define TST_ANY_BITS(mask,bits) ( mask & (bits) ) - -/* - * Action type bits - */ -#define _DtAct_CMD_BIT (1<<0) -#define _DtAct_MAP_BIT (1<<1) -#define _DtAct_TT_MSG_BIT (1<<2) - -#ifdef _DT_ALLOW_DT_MSGS -#define _DtAct_DT_REQ_MSG_BIT (1<<3) -#define _DtAct_DT_NTFY_MSG_BIT (1<<4) -#endif /* _DT_ALLOW_DT_MSGS */ - -/* - * Action structure mask bits - */ -#define _DtAct_ARG_CLASS_FILE_BIT (1<<5) -#define _DtAct_ARG_CLASS_STRING_BIT (1<<6) -#define _DtAct_ARG_CLASS_BUFFER_BIT (1<<7) -#define _DtAct_ARG_CLASS_WILD_BIT (1<<8) - -#define _DtAct_ARG_COUNT_LT_BIT (1<<9) -#define _DtAct_ARG_COUNT_GT_BIT (1<<10) -#define _DtAct_ARG_COUNT_EQ_BIT (1<<11) -#define _DtAct_ARG_COUNT_WILD_BIT (1<<12) - -#define _DtAct_ARG_TYPE_WILD_BIT (1<<13) - -#define _DtAct_NO_STDIO_BIT (1<<14) -#define _DtAct_TERMINAL_BIT (1<<15) -#define _DtAct_PERM_TERM_BIT (1<<16) - -/* - * Defines which reflect the actual number - * of %ARGn% instances found in the action definition - * NOTE: Is this JUST in the EXEC_STRING? or the total number of %ARGn%'s - * referenced in all parssed definitions? - * - */ -#define _DtAct_SINGLE_ARG_BIT (1<<18) -#define _DtAct_MULTI_ARG_BIT (1<<19) - - -#ifdef _DT_ALLOW_DT_MSGS -#define _DtAct_ACTION_TYPE_BITS ( _DtAct_CMD_BIT \ - | _DtAct_MAP_BIT \ - | _DtAct_DT_NTFY_MSG_BIT \ - | _DtAct_DT_REQ_MSG_BIT \ - | _DtAct_TT_MSG_BIT ) -#else -#define _DtAct_ACTION_TYPE_BITS ( _DtAct_CMD_BIT \ - | _DtAct_MAP_BIT \ - | _DtAct_TT_MSG_BIT ) -#endif /* _DT_ALLOW_DT_MSGS */ -#define _DtAct_ARG_CLASS_BITS ( _DtAct_ARG_CLASS_FILE_BIT \ - | _DtAct_ARG_CLASS_STRING_BIT\ - | _DtAct_ARG_CLASS_BUFFER_BIT \ - | _DtAct_ARG_CLASS_WILD_BIT ) -#define _DtAct_ARG_TYPE_BITS ( _DtAct_ARG_TYPE_WILD_BIT ) -#define _DtAct_ARG_COUNT_BITS ( _DtAct_ARG_COUNT_LT_BIT \ - | _DtAct_ARG_COUNT_GT_BIT \ - | _DtAct_ARG_COUNT_EQ_BIT \ - | _DtAct_ARG_COUNT_WILD_BIT ) -#define _DtAct_WINTYPE_BITS ( _DtAct_NO_STDIO_BIT \ - | _DtAct_TERMINAL_BIT \ - | _DtAct_PERM_TERM_BIT ) -#define _DtAct_ARGS_USED_BITS ( _DtAct_SINGLE_ARG \ - | _DtAct_MULTI_ARG ) - -#define _DtAct_ACTION_BITS ( _DtAct_ACTION_TYPE_BITS \ - | _DtAct_ARG_CLASS_BITS \ - | _DtAct_ARG_TYPE_BITS \ - | _DtAct_ARG_COUNT_BITS \ - | _DtAct_WINTYPE_BITS \ - | _DtAct_ARGS_USED_BITS ) - -#define IS_CMD(mask) ( mask & _DtAct_CMD_BIT ) -#define IS_MAP(mask) ( mask & _DtAct_MAP_BIT ) -#define IS_TT_MSG(mask) ( mask & _DtAct_TT_MSG_BIT ) - -#ifdef _DT_ALLOW_DT_MSGS -#define IS_DT_REQ_MSG(mask) ( mask & _DtAct_DT_REQ_MSG_BIT ) -#define IS_DT_NOTIFY_MSG(mask) ( mask & _DtAct_DT_NTFY_MSG_BIT ) -#endif /* _DT_ALLOW_DT_MSGS */ - -#define SET_CMD_ACTION(mask) ( mask |= _DtAct_CMD_BIT ) -#define SET_MAP_ACTION(mask) ( mask |= _DtAct_MAP_BIT ) -#define SET_TT_MSG(mask) ( mask |= _DtAct_TT_MSG_BIT ) -#ifdef _DT_ALLOW_DT_MSGS -#define SET_DT_REQUEST_MSG(mask) ( mask |= _DtAct_DT_REQ_MSG_BIT) -#define SET_DT_NOTIFY_MSG(mask) ( mask |= _DtAct_DT_NTFY_MSG_BIT) -#endif /* _DT_ALLOW_DT_MSGS */ - -#define RESET_CMD_ACTION(mask) ( mask &= ~(_DtAct_CMD_BIT)) -#define RESET_MAP_ACTION(mask) ( mask &= ~(_DtAct_MAP_BIT)) -#define RESET_TT_MSG(mask) ( mask &= ~(_DtAct_TT_MSG_BIT)) -#ifdef _DT_ALLOW_DT_MSGS -#define RESET_DT_REQ_MSG(mask) ( mask &= ~(_DtAct_DT_REQ_MSG_BIT)) -#define RESET_DT_NOTIFY_MSG(mask) ( mask &= ~(_DtAct_DT_NTFY_MSG_BIT)) -#endif /* _DT_ALLOW_DT_MSGS */ - -#define IS_NO_STDIO(mask) ( mask & _DtAct_NO_STDIO_BIT ) -#define IS_TERMINAL(mask) ( mask & _DtAct_TERMINAL_BIT ) -#define IS_PERM_TERM(mask) ( mask & _DtAct_PERM_TERM_BIT) - -#define SET_NO_STDIO(mask) ( mask |= _DtAct_NO_STDIO_BIT ) -#define SET_TERMINAL(mask) ( mask |= _DtAct_TERMINAL_BIT ) -#define SET_PERM_TERM(mask) ( mask |= _DtAct_PERM_TERM_BIT ) - -#define RESET_NO_STDIO(mask) ( mask &= ~(_DtAct_NO_STDIO_BIT )) -#define RESET_TERMINAL(mask) ( mask &= ~(_DtAct_TERMINAL_BIT )) -#define RESET_PERM_TERM(mask) ( mask &= ~(_DtAct_PERM_TERM_BIT )) - -#define IS_ARG_CLASS_FILE(mask) ( mask & _DtAct_ARG_CLASS_FILE_BIT ) -#define IS_ARG_CLASS_STRING(mask) ( mask & _DtAct_ARG_CLASS_STRING_BIT ) -#define IS_ARG_CLASS_BUFFER(mask) ( mask & _DtAct_ARG_CLASS_BUFFER_BIT ) -#define IS_ARG_CLASS_WILD(mask) ( mask & _DtAct_ARG_CLASS_WILD_BIT ) - -#define SET_ARG_CLASS_FILE(mask) ( mask |= _DtAct_ARG_CLASS_FILE_BIT ) -#define SET_ARG_CLASS_STRING(mask) ( mask |= _DtAct_ARG_CLASS_STRING_BIT) -#define SET_ARG_CLASS_BUFFER(mask) ( mask |= _DtAct_ARG_CLASS_BUFFER_BIT) -#define SET_ARG_CLASS_WILD(mask) ( mask |= _DtAct_ARG_CLASS_WILD_BIT ) - -#define RESET_ARG_CLASS_FILE(mask) (mask &= ~(_DtAct_ARG_CLASS_FILE_BIT)) -#define RESET_ARG_CLASS_STRING(mask) (mask &= ~(_DtAct_ARG_CLASS_STRING_BIT)) -#define RESET_ARG_CLASS_BUFFER(mask) (mask &= ~(_DtAct_ARG_CLASS_BUFFER_BIT)) -#define RESET_ARG_CLASS_WILD(mask) (mask &= ~(_DtAct_ARG_CLASS_WILD_BIT)) - - -#define IS_ARG_TYPE_WILD(mask) ( mask & _DtAct_ARG_TYPE_WILD_BIT ) - -#define SET_ARG_TYPE_WILD(mask) ( mask |= _DtAct_ARG_TYPE_WILD_BIT ) - -#define RESET_ARG_TYPE_WILD(mask) ( mask &= ~(_DtAct_ARG_TYPE_WILD_BIT)) - -#define IS_ARG_COUNT_GT(mask) ( mask & _DtAct_ARG_COUNT_GT_BIT ) -#define IS_ARG_COUNT_LT(mask) ( mask & _DtAct_ARG_COUNT_LT_BIT ) -#define IS_ARG_COUNT_EQ(mask) ( mask & _DtAct_ARG_COUNT_EQ_BIT ) -#define IS_ARG_COUNT_WILD(mask) ( mask & _DtAct_ARG_COUNT_WILD_BIT ) - -#define SET_ARG_COUNT_GT(mask) ( mask |= _DtAct_ARG_COUNT_GT_BIT ) -#define SET_ARG_COUNT_LT(mask) ( mask |= _DtAct_ARG_COUNT_LT_BIT ) -#define SET_ARG_COUNT_EQ(mask) ( mask |= _DtAct_ARG_COUNT_EQ_BIT ) -#define SET_ARG_COUNT_WILD(mask) ( mask |= _DtAct_ARG_COUNT_WILD_BIT ) - -#define RESET_ARG_COUNT_GT(mask) ( mask &= ~(_DtAct_ARG_COUNT_GT_BIT )) -#define RESET_ARG_COUNT_LT(mask) ( mask &= ~(_DtAct_ARG_COUNT_LT_BIT )) -#define RESET_ARG_COUNT_EQ(mask) ( mask &= ~(_DtAct_ARG_COUNT_EQ_BIT )) -#define RESET_ARG_COUNT_WILD(mask) ( mask &= ~(_DtAct_ARG_COUNT_WILD_BIT )) - -/* - * Use of the logical "NOT" operator(!) instead of the bitwise negation - * operator(~) is intentional in IS_ARG_NONE_FOUND. - */ -#define IS_ARG_NONE_FOUND(mask) !( mask & ( _DtAct_SINGLE_ARG_BIT \ - | _DtAct_MULTI_ARG_BIT )) -#define IS_ARG_SINGLE_ARG(mask) ( mask & _DtAct_SINGLE_ARG_BIT ) -#define IS_ARG_MULTI_ARG(mask) ( mask & _DtAct_MULTI_ARG_BIT ) - -#define SET_ARG_NONE_FOUND(mask) ( mask &= ~( _DtAct_SINGLE_ARG_BIT \ - | _DtAct_MULTI_ARG_BIT )) -#define SET_ARG_SINGLE_ARG(mask) ((mask |= _DtAct_SINGLE_ARG_BIT), \ - ( mask &= ~(_DtAct_MULTI_ARG_BIT))) -#define SET_ARG_MULTI_ARG(mask) ((mask |= _DtAct_MULTI_ARG_BIT), \ - ( mask &= ~(_DtAct_SINGLE_ARG_BIT))) - -#define RESET_ARG_SINGLE_ARG(mask) ( mask &= ~(_DtAct_SINGLE_ARG_BIT)) -#define RESET_ARG_MULTI_ARG(mask) ( mask &= ~(_DtAct_MULTI_ARG_BIT)) - -/* - * ActionRequest structure mask bits - */ - -#define _DtAct_REPROCESSING_BIT (1<<20) -#define _DtAct_TOO_MANY_MAPS_BIT (1<<21) -#define _DtAct_CLONED_REQUEST_BIT (1<<22) - -#define _DtAct_ACTION_REQUEST_BITS ( _DtAct_REPROCESSING_BIT \ - | _DtAct_TOO_MANY_MAPS_BIT \ - | _DtAct_CLONED_REQUEST_BIT ) - -#define IS_REPROCESSING(mask) ( mask & _DtAct_REPROCESSING_BIT ) -#define IS_TOO_MANY_MAPS(mask) ( mask & _DtAct_TOO_MANY_MAPS_BIT ) -#define IS_CLONED_REQUEST(mask) ( mask & _DtAct_CLONED_REQUEST_BIT ) - -#define SET_REPROCESSING(mask) ( mask |= _DtAct_REPROCESSING_BIT ) -#define SET_TOO_MANY_MAPS(mask) ( mask |= _DtAct_TOO_MANY_MAPS_BIT ) -#define SET_CLONED_REQUEST(mask) ( mask |= _DtAct_CLONED_REQUEST_BIT ) - -#define RESET_REPROCESSING(mask) ( mask &= ~(_DtAct_REPROCESSING_BIT)) -#define RESET_TOO_MANY_MAPS(mask) ( mask &= ~(_DtAct_TOO_MANY_MAPS_BIT)) -#define RESET_CLONED_REQUEST(mask) ( mask &= ~(_DtAct_CLONED_REQUEST_BIT)) - - -/* - * ObjectData structure mask bits - * - */ - -#define _DtAct_WRITE_OBJ_BIT (1<<23) -#define _DtAct_FILE_OBJ_BIT (1<<24) -#define _DtAct_BUFFER_OBJ_BIT (1<<25) -#define _DtAct_STRING_OBJ_BIT (1<<26) -#define _DtAct_DIR_OBJ_BIT (1<<27) -#define _DtAct_UNKNOWN_IF_DIR_BIT (1<<28) - -#define _DtAct_OBJ_DATA_BITS ( _DtAct_WRITE_OBJ_BIT \ - | _DtAct_FILE_OBJ_BIT \ - | _DtAct_DIR_OBJ_BIT \ - | _DtAct_BUFFER_OBJ_BIT \ - | _DtAct_STRING_OBJ_BIT \ - | _DtAct_UNKNOWN_IF_DIR_BIT ) - -#define IS_WRITE_OBJ(mask) ( mask & _DtAct_WRITE_OBJ_BIT ) -#define IS_FILE_OBJ(mask) ( mask & _DtAct_FILE_OBJ_BIT ) -#define IS_BUFFER_OBJ(mask) ( mask & _DtAct_BUFFER_OBJ_BIT ) -#define IS_STRING_OBJ(mask) ( mask & _DtAct_STRING_OBJ_BIT ) -#define IS_UNKNOWN_IF_DIR(mask) ( mask & _DtAct_UNKNOWN_IF_DIR_BIT ) -#define IS_DIR_OBJ(mask) ( mask & \ - ( _DtAct_UNKNOWN_IF_DIR_BIT \ - | _DtAct_DIR_OBJ_BIT ) \ - == _DtAct_DIR_OBJ_BIT) - -#define SET_WRITE_OBJ(mask) ( mask |= _DtAct_WRITE_OBJ_BIT ) -#define SET_FILE_OBJ(mask) ( mask |= _DtAct_FILE_OBJ_BIT ) -#define SET_BUFFER_OBJ(mask) ( mask |= _DtAct_BUFFER_OBJ_BIT ) -#define SET_STRING_OBJ(mask) ( mask |= _DtAct_STRING_OBJ_BIT ) -#define SET_DIR_OBJ(mask) ( mask |= _DtAct_DIR_OBJ_BIT ) -#define SET_UNKNOWN_IF_DIR(mask) ( mask |= _DtAct_UNKNOWN_IF_DIR_BIT) - -#define RESET_WRITE_OBJ(mask) ( mask &= ~(_DtAct_WRITE_OBJ_BIT)) -#define RESET_FILE_OBJ(mask) ( mask &= ~(_DtAct_FILE_OBJ_BIT)) -#define RESET_BUFFER_OBJ(mask) ( mask &= ~(_DtAct_BUFFER_OBJ_BIT)) -#define RESET_STRING_OBJ(mask) ( mask &= ~(_DtAct_STRING_OBJ_BIT)) -#define RESET_DIR_OBJ(mask) ( mask &= ~(_DtAct_DIR_OBJ_BIT)) -#define RESET_UNKNOWN_IF_DIR(mask) ( mask &= ~(_DtAct_UNKNOWN_IF_DIR_BIT)) - - -/* - * MsgComponent structure mask bits (shared with Object Data?) - */ - -#define _DtAct_TREAT_AS_FILE_BIT (1<<29) - -#define _DtAct_MSG_COMP_BITS ( _DtAct_TREAT_AS_FILE_BIT ) - -#define IS_TREAT_AS_FILE(mask) ( mask & _DtAct_TREAT_AS_FILE_BIT ) -#define SET_TREAT_AS_FILE(mask) ( mask |= _DtAct_TREAT_AS_FILE_BIT) -#define RESET_TREAT_AS_FILE(mask) ( mask &= ~(_DtAct_TREAT_AS_FILE_BIT)) - - -/* Keyword defines */ - -#define NO_KEYWORD -1 -#define LOCAL_HOST 0 -#define DATA_HOST 1 -#define DATABASE_HOST 2 -#define ARG 3 -#define DISPLAY_HOST 4 -#define LABEL 5 -#define SESSION_HOST 6 - -/* Special argNum values */ - -#define NO_ARG -1 -#define ALL_ARGS 0 - -/* - * ToolTalk base representation type ( tt_argn_rep_type ) values - */ -#define DtACT_TT_REP_UNDEFINED 0 -#define DtACT_TT_REP_INT 1 -#define DtACT_TT_REP_BUFFER 2 -#define DtACT_TT_REP_STRING 3 - -/* - * Resource name and class for the EXEC-HOST resource. - */ -#define DtEXEC_HOSTS_NAME "executionHosts" -#define DtEXEC_HOSTS_CLASS "ExecutionHosts" -#define DtEXEC_HOSTS_DEFAULT _DtACT_EXEC_HOST_DFLT - -/* Flags to force special processing of filenames */ -#define _DTAct_TT_VTYPE 1 << 0 -#define _DTAct_TT_ARG 1 << 1 - -/* Structure used to hold the components of a message */ - -typedef struct { - char *precedingText; - char *prompt; - int keyword; - int argNum; - unsigned long mask; /* replaces isFile, isBuffer, isString boolean */ -} MsgComponent; - - -typedef struct { - MsgComponent *parsedMessage; - int numMsgParts; - char *compiledMessage; - int msgLen; -} parsedMsg; - -/****************************************************************************** - * - * Structs used during the invocation of an action. Once DtActionInvoke() - * exits, these structs are generally freed. - * - *****************************************************************************/ -typedef struct { - /*int winMask; ---> moved into the action mask*/ - parsedMsg execString; - parsedMsg termOpts; - char *contextDir; - char *contextHost; - parsedMsg execHosts; - char **execHostArray; - int execHostCount; -} cmdAttr; - -typedef struct { - DtShmBoson map_action; -} mapAttr; - -typedef struct { - int tt_class; - int tt_scope; - parsedMsg tt_op; - parsedMsg tt_file; /* must be a single file name */ - int *tt_argn_mode; - int mode_count; - parsedMsg *tt_argn_vtype; - int vtype_count; - parsedMsg *tt_argn_value; - int value_count; - int *tt_argn_rep_type; /* INT, STRING, BUFFER or UNDEFINED */ - int rep_type_count; -} tt_msgAttr; - -#ifdef _DT_ALLOW_DT_MSGS -typedef struct { - parsedMsg service; /* ICCCM service name */ - parsedMsg request; /* request name string */ - parsedMsg *argn_value; - int value_count; - -} dt_reqAttr; - -typedef struct { - parsedMsg ngroup; /* ICCCM notification group */ - parsedMsg notify; /* notification to be sent */ - parsedMsg *argn_value; - int value_count; -} dt_notifyAttr; -#endif /* _DT_ALLOW_DT_MSGS */ - - -typedef struct { - DtShmBoson action; /* Might just use a char * here? */ - DtDbPathId file_name_id; /* id of file wherein the action is defined */ - char *label; /* localizable action label string */ - char *description; - DtShmBoson *arg_types; - int type_count; - int arg_count; /* Number of arguments accepted by the action */ - unsigned long mask; /* action mask -- class/type/arg info */ - union { /* attributes for the different action kinds */ - cmdAttr cmd; - mapAttr map; - tt_msgAttr tt_msg; -#ifdef _DT_ALLOW_DT_MSGS - dt_reqAttr dt_req; - dt_notifyAttr dt_notify; -#endif /* _DT_ALLOW_DT_MSGS */ - } u; -} Action, *ActionPtr; /* new action structure and pointer */ - - -/* Structure used to hold each of the object components */ - -typedef struct { - char * origFilename; - char * baseFilename; - char * origHostname; - int hostIndex; - int dirIndex; - void * bp; /* pointer to original buffer -- tmp files only */ - int sizebp; /* size of original buf -- for tmp files only */ -} fileAttr; - -typedef struct { - char * string; -} stringAttr; - -typedef struct { - int size; - void *bp; -} bufferAttr; - - -typedef struct { - DtShmBoson type; - unsigned long mask; - union { - fileAttr file; - stringAttr string; - bufferAttr buffer; - } u; -} ObjectData; - - -/* - * Structure attached to the button callbacks in the - * dialog used to collect missing parameters. - * - */ - -typedef struct { - char *actionName; - int objOffset; - int objsUsed; - int numObjects; - ObjectData *objects; - int numPromptInputs; - char **promptInputs; - int numHostNames; - char **hostNames; - int numDirNames; - char **dirNames; - char *termOpts; - char *cwdHost; - char *cwdDir; - ActionPtr clonedAction; - unsigned long mask; - char *badHostList; - char *currentHost; - int hostIndex; - char *execHost; - DtActionInvocationID invocId; - unsigned long childId; -} ActionRequest; - -/****************************************************************************** - * - * Structs used to maintain information on invoked actions until they - * exit. A few select elements of the ActionRequest and Action structs - * will be copied into these strcuts. - * - *****************************************************************************/ - -/****************************************************************************** - ****************************************************************************** - ** - ** Major data-structure diagram for the DtAction invocation layer: - ** - ** _DtActInvRec <=== _DtActInvRecArray[ actInvRecArraySize ] - ** ------------------ - ** | info per | - ** | DtActionInvoke | - ** |----------------| - ** | numChildren | - ** |----------------| - ** | childRecs[] | ===> _DtActChildRec - ** ------------------ ------------------ - ** | info per | - ** | child request | - ** |----------------| - ** | *request | ===> ActionRequest - ** ------------------ ------------------ - ** | info on users | - ** | action request | - ** |----------------| - ** Action <=== | *clonedAction | - ** ------------------ ------------------ - ** |info on matching| - ** | actionDB entry | - ** |----------------| - ** | cmd/map/tt/dt | - ** | attributes of | - ** | resulting msg | - ** ------------------ - ** - ** "ActionRequest" and "Action" were present in VUE 3.0, and have a - ** scratch-pad like function within DtActionInvoke() to get actions - ** started. They are not good long-term retainers of information. - ** Action and ActionRequest are in fact freed when DtActionInvoke() - ** exits. - ** - ** "_DtActInvRec" and "_DtActChildRec" have been introduced to retain - ** information for the entire life of the actions. Some of the - ** information from ActionRequest and Action will be copied (mirrored) - ** up to these structures. - ** - ****************************************************************************** - *****************************************************************************/ - -/****************************************************************************** - * - * Child Status Macro Definitions -- These values are used in - * the status word of the _DtActChildRec child record. - * - * ****** IMPORTANT NOTE *** IMPORTANT NOTE *** IMPORTANT NOTE ****** - * - * The _DtActCHILD_ macros are also used in cde1/dtexec/Main.c - * in the _DtActDtexecDone(Request) message, so in effect they - * are also protocol constants that should *never* be changed. - * If changed, libDtSvc and dtexec may mis-communicate status. - * - *****************************************************************************/ - -#define _DtActCHILD_UNKNOWN (1<<0) /* 1 - child status unknown */ -#define _DtActCHILD_PENDING_START (1<<1) /* 2 - child start pending */ -#define _DtActCHILD_ALIVE_UNKNOWN (1<<2) /* 4 - child alive but unknown*/ -#define _DtActCHILD_ALIVE (1<<3) /* 8 - child alive and well */ -#define _DtActCHILD_DONE (1<<4) /* 16 - child done */ -#define _DtActCHILD_FAILED (1<<5) /* 32 - child failed */ -#define _DtActCHILD_CANCELED (1<<6) /* 64 - child canceled */ - -#define _DtActCHILD_DONE_BITS ( (_DtActCHILD_DONE) | \ - (_DtActCHILD_FAILED) | \ - (_DtActCHILD_CANCELED) ) - -/*** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE ***/ - - -#define ARE_CHILDREN_DONE(mask) ( (mask) & _DtActCHILD_DONE_BITS ) - -#define IS_CHILD_UNKNOWN(mask) ( (mask) == _DtActCHILD_UNKNOWN ) -#define IS_CHILD_PENDING_START(mask) ( (mask) & _DtActCHILD_PENDING_START ) -#define IS_CHILD_DONE(mask) ( (mask) & _DtActCHILD_DONE) -#define IS_CHILD_FAILED(mask) ( (mask) & _DtActCHILD_FAILED) -#define IS_CHILD_CANCELED(mask) ( (mask) & _DtActCHILD_CANCELED) -#define IS_CHILD_ALIVE(mask) ( (mask) & _DtActCHILD_ALIVE) -#define IS_CHILD_ALIVE_UNKOWN(mask) ( (mask) & _DtActCHILD_ALIVE_UNKNOWN) - - -/****************************************************************************** - * - * Information per child of DtActionInvoke() - * - *****************************************************************************/ - -/* - * Structure useed to map returnable arguments to the child argument list. - */ - -typedef struct { - int argN; /* Nth returned value (0 based for tooltalk) */ - int argIdx; /* Nth child argument */ -} _DtActArgMap; - -typedef struct { - unsigned long childId; /* serial # with DtActInvId */ - unsigned long childState; /* child state */ - - /* - * Information cloned from "ActionRequest *req" - */ - int numObjects; /* number of child args */ - _DtActArgMap *argMap; /* map of returnable args to chd args */ - - /* - * Information cloned from "ActionPtr clonedAction" - */ - unsigned long mask; /* action type - IS_xxx() */ - - /* a list of tmp file names 5/11/94 --tomg */ - - union { - struct { /* COMMAND elements */ - char *TTProcId; /* TT procID handle to child */ - Tt_message reqMessage; /* Initiator TT Request */ - Tt_pattern magic_cookie; /* dtexec to libDtSvc cookie */ - } cmd; - struct { /* TT_MSG elements */ - char *TTProcId; /* TT procID handle to child */ - Tt_message reqMessage; /* Initiator TT Request */ - int isTtMedia; /* handled by ttmedia_load ? */ - Tttk_op TtMediaOp; /* if ttmedia_load, the op */ - Tt_pattern *subConPats; /* for subcontract_manage */ - } tt; - } u; - -} _DtActChildRecT; - - -/****************************************************************************** - * - * Invocation Status Macro Definitions -- These values are used in - * the state word of the _DtActInvRec invocation record. - * - *****************************************************************************/ - -#define _DtActINV_UNKNOWN 0 /* unknown invocation status */ -#define _DtActINV_ERROR (1<<0) /* invocation error detected */ -#define _DtActINV_CANCEL (1<<1) /* trying to cancel invocation*/ -#define _DtActINV_PENDING (1<<2) /* invocation pending */ -#define _DtActINV_WORKING (1<<3) /* invocation in process */ -#define _DtActINV_DONE (1<<4) /* invocation step done */ -#define _DtActINV_COMPLETE (1<<5) /* invocation steps all done */ -#define _DtActINV_CB_CALLED (1<<6) /* invocation callback called */ -#define _DtActINV_ID_RETURNED (1<<7) /* invocation id has returned */ -#define _DtActINV_CMD_QUEUED (1<<8) /* command has been queued */ -#define _DtActINV_INDICATOR_ON (1<<9) /* busy indicator active bit */ - -#define SET_INV_UNKNOWN(mask) (mask = 0) - -#define SET_INV_ERROR(mask) (mask |= _DtActINV_ERROR) -#define SET_INV_CANCEL(mask) (mask |= _DtActINV_CANCEL) -#define SET_INV_PENDING(mask) (mask |= _DtActINV_PENDING) -#define SET_INV_WORKING(mask) (mask |= _DtActINV_WORKING) -#define SET_INV_DONE(mask) (mask |= _DtActINV_DONE) -#define SET_INV_COMPLETE(mask) (mask |= _DtActINV_COMPLETE) -#define SET_INV_CB_CALLED(mask) (mask |= _DtActINV_CB_CALLED) -#define SET_INV_ID_RETURNED(mask) (mask |= _DtActINV_ID_RETURNED) -#define SET_INV_CMD_QUEUED(mask) (mask |= _DtActINV_CMD_QUEUED) -#define SET_INV_INDICATOR_ON(mask) (mask |= _DtActINV_INDICATOR_ON) - -#define RESET_INV_ERROR(mask) (mask &= ~(_DtActINV_ERROR)) -#define RESET_INV_CANCEL(mask) (mask &= ~(_DtActINV_CANCEL)) -#define RESET_INV_PENDING(mask) (mask &= ~(_DtActINV_PENDING)) -#define RESET_INV_WORKING(mask) (mask &= ~(_DtActINV_WORKING)) -#define RESET_INV_COMPLETE(mask) (mask &= ~(_DtActINV_COMPLETE)) -#define RESET_INV_DONE(mask) (mask &= ~(_DtActINV_DONE)) -#define RESET_INV_CB_CALLED(mask) (mask &= ~(_DtActINV_CB_CALLED)) -#define RESET_INV_ID_RETURNED(mask) (mask &= ~(_DtActINV_ID_RETURNED)) -#define RESET_INV_CMD_QUEUED(mask) (mask &= ~(_DtActINV_CMD_QUEUED)) -#define RESET_INV_INDICATOR_ON(mask) (mask &= ~(_DtActINV_INDICATOR_ON)) - -#define IS_INV_FINISHED(mask) ( !((mask) & _DtActINV_CMD_QUEUED) \ - && ((mask) & (_DtActINV_COMPLETE \ - | _DtActINV_CANCEL)) ) -#define IS_INV_UNKNOWN(mask) ( (mask) == _DtActINV_UNKNOWN ) - -#define IS_INV_ERROR(mask) ((mask) & _DtActINV_ERROR ) -#define IS_INV_CANCEL(mask) ((mask) & _DtActINV_CANCEL ) -#define IS_INV_PENDING(mask) ((mask) & _DtActINV_PENDING ) -#define IS_INV_WORKING(mask) ((mask) & _DtActINV_WORKING ) -#define IS_INV_DONE(mask) ((mask) & _DtActINV_DONE ) -#define IS_INV_COMPLETE(mask) ((mask) & _DtActINV_COMPLETE ) -#define IS_INV_CB_CALLED(mask) ((mask) & _DtActINV_CB_CALLED ) -#define IS_INV_ID_RETURNED(mask) ((mask) & _DtActINV_ID_RETURNED ) -#define IS_INV_CMD_QUEUED(mask) ((mask) & _DtActINV_CMD_QUEUED ) -#define IS_INV_INDICATOR_ON(mask) ((mask) & _DtActINV_INDICATOR_ON ) - -#define CALL_INV_CB(mask) ((IS_INV_FINISHED(mask)) && \ - (IS_INV_ID_RETURNED(mask)) && \ - !(IS_INV_CB_CALLED(mask))) - -/****************************************************************************** - * - * Information per DtActionInvoke() - * - * Note: For TT_MSG(NOTICE)'s during CDE 1.0, this struct will disappear - * immediately after the NOTICEs are sent. - * - *****************************************************************************/ - - -typedef struct { - unsigned long mask; /* encodes object class and writable flag */ - int size; /* original size (buffers only) */ - char *type; /* original type (buffers only) */ - char *name; /* encodes (tmp) file name associated with the - object (if any) */ -} _DtActArgInfo; - -typedef struct { - DtActionStatus userStatus; - DtActionArg *newArgp; - int newArgc; -} _DtActUpdateCache; - -typedef struct _DtActInvRec { - unsigned long state; /* invocation state */ - DtActionInvocationID id; /* identifying invocation ID */ - Widget w; /* users widget id */ - DtActionCallbackProc cb; /* users callback */ - XtPointer client_data; /* users client data for cb */ - _DtActArgInfo *info; /* template w/ .argClass info */ - int ac; /* original # of arguments */ - int numChildren; /* number of childRec's. */ - _DtActChildRecT **childRec; /* array of child Rec's */ - int cachedUploadCnt;/* cached callback updates */ - _DtActUpdateCache *cachedUploads; /* data for */ -} _DtActInvRecT; - - -/****************************************************************************** - * - * Structs for dialogs/prompts - * - *****************************************************************************/ - -/* Structure used to hold a prompt string destined for a dialog */ - -typedef struct { - int argIndex; - char *prompt; -} PromptEntry; - - -/* Structure used to contain prompt dialog information */ - -typedef struct { - int argIndex; - Widget promptWidget; -} DialogPromptEntry; - -typedef struct { - ActionRequest * request; - Widget topLevel; - Widget associatedWidget; - int numPrompts; - DialogPromptEntry * prompts; -} PromptDialog; - - -/* Structure used to contain abort/continue dialog information */ - -typedef struct { - ActionRequest * request; - Widget topLevel; - Widget associatedWidget; - int numPrompts; - PromptEntry * prompts; -} ContinueDialog; - - -/* Structure passed to request passed/failed callbacks */ - -typedef struct { - Widget associatedWidget; - char *actionLabel; - int offset; - ActionPtr actionPtr; /* Ptr to the action that - was invoked. */ - ActionRequest *requestPtr; - DtActionInvocationID actInvId; /* A standard invocation id */ - unsigned long childId; /* An id to further identify - children of actInvId */ -} CallbackData; - -/****************************************************************************** - * - * Private External Function Declarations -- not for public consumption - * - ******************************************************************************/ - -extern void _DtFreeActionStruct( ActionPtr action) ; - -#endif /* _ActionP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/ActionUtilP.h b/cde/lib/DtSvc/DtUtil1/ActionUtilP.h deleted file mode 100644 index 742e39b6..00000000 --- a/cde/lib/DtSvc/DtUtil1/ActionUtilP.h +++ /dev/null @@ -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 - */ -/* $XConsortium: ActionUtilP.h /main/3 1995/10/26 15:01:19 rswiston $ */ -/************************************<+>************************************* - **************************************************************************** - ** - ** File: ActionUtilP.h - ** - ** Project: DT - ** - ** Description: Private include file for the Action Library Utilities. - ** - ** - ** (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 _ActionUtilP_h -#define _ActionUtilP_h - -#include /* for Display struct definition */ -#include "ActionP.h" - - -/***************************************************************************** - * - * Macro to protect against sending a NULL pointer to certain - * library functions (i.e. sprintf, strlen, ...) with on some - * systems choke on a NULL pointer. - * - ****************************************************************************/ -#define _DtActNULL_GUARD(s) ((s) ? (s) : "") - -/****************************************************************************** - External Utility Function Declarations - - These functions are for internal use and are not part of the - public Action API. Each of the following functions returns a - newly allocated version of the desired string. It is up to the - caller to free the strings obtained. -******************************************************************************/ - -extern char *_DtBasename(const char *s); -extern char *_DtDirname(const char *s); -extern char *_DtPathname(const char *s); -extern char *_DtHostString(const char *s); -extern char *_DtGetSessionHostName( void ); -extern char *_DtGetDisplayHostName( Display *d); -extern char *_DtGetLocalHostName( void ); -extern char *_DtGetExecHostsDefault (void); -extern char *_DtGetActionIconDefault (void); -extern char *_DtGetDtTmpDir(void); -extern char *_DtActGenerateTmpFile(char *dir, - char *format, - mode_t mode, - int *fd ); -extern int _DtIsSameHost( const char *host1, const char *host2 ); -extern void _DtRemoveTrailingBlanksInPlace(char **s); -extern int _DtExecuteAccess(const char *path); - -extern DtActionInvocationID _DtActAllocID(); -extern _DtActInvRecT *_DtActAllocInvRec(); -extern _DtActChildRecT *_DtActAllocChildRec( _DtActInvRecT *recp ); -extern int _DtActDeleteInvRec( DtActionInvocationID id); -extern _DtActInvRecT *_DtActFindInvRec( DtActionInvocationID id); -extern _DtActChildRecT *_DtActFindChildRec( - DtActionInvocationID id, - unsigned long childId); -extern unsigned long _DtActEvalChildren(DtActionInvocationID id); -extern void _DtActExecutionLeafNodeCleanup( - DtActionInvocationID id, - DtActionArg *newArgp, - int newArgc, - int respectQuitBlock); -extern DtActionArg *_DtActMallocEmptyArgArray(int ac); -extern void _DtActFreeArgArray( DtActionArg *argp, int ac ); -extern void *_DtActReadTmpFileToBuffer ( - char *fname, - int *sizep); -extern int _DtActGetCmdReturnArgs ( - DtActionInvocationID invId, - _DtActChildRecT *childp, - DtActionArg **aargv ); - -/******************************************************************************/ - - -#endif /* _ActionUtilP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ - - diff --git a/cde/lib/DtSvc/DtUtil1/CmdInv.h b/cde/lib/DtSvc/DtUtil1/CmdInv.h deleted file mode 100644 index 2d845946..00000000 --- a/cde/lib/DtSvc/DtUtil1/CmdInv.h +++ /dev/null @@ -1,199 +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: CmdInv.h /main/6 1996/01/23 10:41:03 barstow $ */ -/*************************************************************************** -* -* File: CmdInv.h -* Description: Public header for the command invocation system. -* Language: C -* -** (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 _CmdInv_h -#define _CmdInv_h - -#include -#include
-#include
- -/****************************************************************************** - * - * DtCmdInvExecuteProc - This type is is used to define the parameters - * needed in the callback functions for success and failure notification - * of a Command Invoker execution call. - * - *****************************************************************************/ - -typedef void (*DtCmdInvExecuteProc) ( - char *message, /* NULL if the request is successful. - * Otherwise an error message. */ - void *client_data -); - -/****************************************************************************** - * - * Function: void _DtInitializeCommandInvoker ( - * Display *display, - * char *toolClass, - * char *applicationClass, - * DtSvcReceiveProc reloadDBHandler, - * XtAppContext appContext) - * - * Parameters: - * - * display - The X server display connection. - * - * toolClass - The BMS tool class of the client. - * - * applicationClass - The application class of the client (see - * XtInitialize). This is needed to add the - * Command Invoker's resources to the client's - * resources. - * - * reloadDBHandler - Function to be called if a RELOAD-TYPES-DB - * request is made. If the client does not read - * DT action and/or filetype databases, NULL must - * be used. - * - * appContext - The client's application context. Must be NULL - * if the client does not use an application - * context. - * - * Purpose: - * - * This function allows a client to internalize the functionality - * of the DT "Command Invoker". By using this library and the - * Action Library, requests for the Command Invoker will be done - * internally instead of sending a request to a separate Command - * Invoker process. - * - * For local execution, the "fork" and "execvp" system calls are - * used. For remote execution, the "SPCD" is used. - * - *****************************************************************************/ - -extern void -_DtInitializeCommandInvoker( - Display *display, - char *toolClass, - char *applicationClass, - DtSvcReceiveProc reloadDBHandler, - XtAppContext appContext); - -/****************************************************************************** - * - * Function: void _DtCommandInvokerExecute ( - * char *request_name, - * char *context_host, - * char *context_dir, - * char *context_file, - * char *exec_parameters, - * char *exec_host, - * char *exec_string, - * DtCmdInvExecProc success_proc, - * void *success_data, - * DtCmdInvExecProc failure_proc, - * void *failure_data) - * - * Parameters: - * - * request_name - The request name (defined in "CommandM.h"). - * - * context_host - Name of the host where request is executed from. If - * NULL, the "exec_host" parameter is used. Note: this - * should not be confused with execution host, described - * below. - * - * context_dir - Directory where the request should be executed. If - * NULL, the HOME directory is used. - * - * context_file - Not currently used by the Command Invoker. - * - * exec_parameters - Command Invoker execution parameters. See External - * Specification for more information. - * If set to NULL, "-" is used. - * - * exec_host - Name of the host where the request is executed. - * - * exec_string - The command line to execute. - * - * success_proc - The function to be invoked if the request is - * successfully executed. - * - * success_data - Client data for successful execution. - * - * failure_proc - The function to be invoked if an attempt to exeucte - * the request fails. - * - * failure_data - Client data for unsuccessful execution. - * - * Purpose: - * - * This function allows a client to use the DT "Command Invoker" - * Library for its' process execution. This function is intended - * for processes which do not use the Action Library. - * - * For local execution, the "fork" and "execvp" system calls are - * used. For remote execution, the "SPCD" is used. - * - * Notes: - * - * This function must be preceded by a call to - * "_DtInitializeCommandInvoker". - * - *****************************************************************************/ - -extern void -_DtCommandInvokerExecute( - char *request_name, - char *context_host, - char *context_dir, - char *context_file, - char *exec_parameters, - char *exec_host, - char *exec_string, - DtCmdInvExecuteProc success_proc, - void *success_data, - DtCmdInvExecuteProc failure_proc, - void *failure_data); - -extern SPC_Channel_Ptr _DtSPCOpen( char *hostname, - int iomode, - char *errorMessage); /* MODIFIED */ - -extern int _DtSPCSpawn( - char *path, - char *context, - char **args, - char **env, - SPC_Channel_Ptr chan, - char *execHost, - char *contextHost, - char *contextDir, - char *errorMessage); /* MODIFIED */ - -#endif /* _CmdInv_h */ diff --git a/cde/lib/DtSvc/DtUtil1/CmdInvP.h b/cde/lib/DtSvc/DtUtil1/CmdInvP.h deleted file mode 100644 index 951d1390..00000000 --- a/cde/lib/DtSvc/DtUtil1/CmdInvP.h +++ /dev/null @@ -1,206 +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: CmdInvP.h /main/5 1998/07/30 12:10:30 mgreess $ */ -/*************************************************************************** -* -* File: CmdInvP.h -* Description: Command execution system private externs and includes -* Language: C -* -** (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 _CmdInvP_h -#define _CmdInvP_h - -#include -#include -#include -#include -#include /* MAXPATHNAMELEN */ - -#include - -#include
-#include
-#include
-#include -#include -#include
-#include
-#include
-#include
- -#ifndef CDE_INSTALLATION_TOP -#define CDE_INSTALLATION_TOP "/opt/dt" -#endif - -/* - * Resource names and classes for the Command Invoker. - */ -#define DtLOCAL_TERMINAL_NAME "localTerminal" -#define DtLOCAL_TERMINAL_CLASS "LocalTerminal" - -#define DtREMOTE_TERMINALS_NAME "remoteTerminals" -#define DtREMOTE_TERMINALS_CLASS "RemoteTerminals" - -#define DtWAIT_TIME_NAME "waitTime" -#define DtWAIT_TIME_CLASS "WaitTime" - -#define DtDTEXEC_PATH_NAME "dtexecPath" -#define DtDTEXEC_PATH_CLASS "DtexecPath" - -#define DtEXECUTION_HOST_LOGGING_NAME "executionHostLogging" -#define DtEXECUTION_HOST_LOGGING_CLASS "ExecutionHostLogging" - - -/* - * Structure for saving the "state" of a remote request that is - * queued while waiting for a remote subprocess to terminate. - */ -typedef struct _Cmd_RequestQueue { - SPC_Channel_Ptr channel; - char *context; - char *exec_host; - char *exec_string; - char **argv; - int winType; - unsigned long request_num; - DtSvcMsgContext replyContext; - DtCmdInvExecuteProc success_proc; - void *success_data; - DtCmdInvExecuteProc failure_proc; - void *failure_data; - struct _Cmd_RequestQueue *next; -} Cmd_RequestQueue; - -/* - * Command invocation resources. - */ -typedef struct { - char *localTerminal; - char **remoteHosts; - char **remoteTerminals; - int waitTime; - char *dtexecPath; - Boolean executionHostLogging; -} Cmd_Resources; - -/* - * Command invocation global variables. - */ -typedef struct { - Boolean terminal_ok; - Boolean subprocess_ok; - XtAppContext app_context; - char **path_list; - char *error_directory_name_map; - char *error_subprocess; - char *error_terminal; -} Cmd_Globals; - -/* - * Defaults for the Resources. - */ -#define DtWAIT_TIME_DEFAULT 3 /* In seconds. */ -#define DtTERMINAL_DEFAULT "dtterm" - -#define DtCMD_INV_SUB_PROCESS CDE_INSTALLATION_TOP "/bin/dtexec" - -/* - * Temporary buffer size. - */ -#define MAX_BUF_SIZE 1024 - -/* - * Window types: - */ -#define NO_STDIO 0 -#define TERMINAL 1 -#define PERM_TERMINAL 2 - -/* - * Command execution return status: - */ -#define _CMD_EXECUTE_SUCCESS 1 -#define _CMD_EXECUTE_FAILURE 2 -#define _CMD_EXECUTE_QUEUED 3 -#define _CMD_EXECUTE_FATAL 4 - -/* - * External declarations for the global Command Invoker variables. - */ -extern Cmd_Resources cmd_Resources; -extern Cmd_Globals cmd_Globals; - -/* - ******* Public Function Declarations for CmdSpc.c ******* - */ - -extern SbInputId _DtCmdSPCAddInputHandler ( - int fd, - SbInputCallbackProc proc, - void *data); -extern SbInputId _DtCmdSPCAddExceptionHandler ( - int fd, - SbInputCallbackProc proc, - void *data); -extern void _DtCmdLogErrorMessage( - char *message) ; - - -/* - ******* Public Function Declarations for CmdProcess.c ******* - */ - -extern void _DtCmdCreateTerminalCommand( - char **theCommand, - int windowType, - char *execString, - char *execParms, - char *execHost, - char *procId, - char *tmpFiles) ; -extern Boolean _DtCmdCheckForExecutable( - char *fileName) ; -extern Boolean _DtCmdValidDir( - char *clientHost, - char *contextDir, - char *contextHost) ; -extern void _DtCmdGetResources( - Display *display); - - - -/* - ******* Public Function Declarations for CmdUtilityP.c ******* - */ - -extern void _DtCmdBuildPathList( void ) ; - -/******** End Public Function Declarations ********/ - -#endif /* _CmdInvP_h */ diff --git a/cde/lib/DtSvc/DtUtil1/DbReader.h b/cde/lib/DtSvc/DtUtil1/DbReader.h deleted file mode 100644 index 12df7fa6..00000000 --- a/cde/lib/DtSvc/DtUtil1/DbReader.h +++ /dev/null @@ -1,188 +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: DbReader.h $XConsortium: DbReader.h /main/4 1995/10/26 15:03:35 rswiston $ - * - * Description: Public include file for the database reader. - * - * (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company - * - * (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_DbReader_h -#define _Dt_DbReader_h - -#include -#include -#include
- -#define DTRECORDIDENTIFIER NULL -#define DTUNLIMITEDFIELDS 0 - -/* one set of attribute/pair */ -typedef struct -{ - XrmQuark fieldName; - char *fieldValue; -} DtDtsDbField; - -/* - * Opaque identifier used for identifying a database file name. The opaque - * identifier can be converted to an ascii string, using the function - * _DtDbPathIdToString(). - */ -#define DtDbPathId long - -/* - * All record converters should expect to be called with the parameters - * indicated below: - * - * fields: This is an array of keyword/value pair strings, each - * representing one field value for this database record. NOTE: - * the keywords have not been validated; this is the - * responsibility of the converter, and is usually accomplished - * by calling _DtValidateFieldNames(). The array is NULL - * terminated, with the last entry having both the 'fieldName' - * and 'fieldValue' pointers set to NULL. The first entry always - * represents the record identifier, with the 'fieldName' set - * to the record type string, and the 'fieldValue' set to any - * remaining data specified on the record identifier line. - * - * pathId: Is an opaque identifier, which can be used to retrieve the name - * of the database file from which this record was obtained. By - * calling _DtDbPathIdToString(), the database file, in - * "host:/path" format, can be obtained. - * - * hostPrefix: If the database file was loaded from a machine other than the - * local machine, then this string indicates the host prefix, in - * "/nfs/" format. If the host was the local host, then - * this value is set to NULL. - * - * rejectionStatus: This flag indicates whether any of the earlier record - * converters had rejected this entry. Certain classes - * of converters may choose to ignore entries if they - * had already been rejected. - * - * It is the responsibility of the converter to perform any necessary - * verification of the passed in set of keywords; the function - * _DtValidateFieldNames() is provided as a convenience function for performing - * this type of validation. Typically, the converter will write an error to - * the user's errorlog file, if an invalid record is encountered. - * - * It is also the responsibility of the converter to allocate any memory needed - * to store the new record. The strings contained within the 'fields' array - * will all be freed when the converter returns to _DtDbRead(), so the - * converter should make copies of any information it wishes to use in the - * future. The converter is also responsible for adding the new record to - * whatever storage array it is using to save record information. - * - * If the converter decides to reject the record, then it should return a - * 'True' value. If the record was acceptable, then 'False' should be - * returned. - */ -typedef Boolean (*DtDbConverter) (DtDtsDbField * fields, - DtDbPathId pathId, - char * hostPrefix, - Boolean rejectionStatus); - -/* - * This structure defines each record type which should be loaded by - * _DtDbRead(). Since _DtDbRead() is capable of loading multiple record types - * (i.e ACTION, DATA_CRITERIA, etc) in a single pass, the invoking function will - * pass in an array of these structures, for which each element will define a - * record type which should be loaded. Each record definition requires the - * following information: - * - * recordKeyword: This is the keyword which uniquely identifies the record - * which matches this definition. Examples are "ACTION" and - * "DATA_CRITERIA". - * - * maxFields: Indicates the maximum number of fields which is expected - * by this record type; typically, this corresponds to the - * number of distinct field keywords supported by this type - * of record. This feature is used to prevent runaway database - * records from getting out of hand; a runaway database record - * typically occurs when the user forgets to include line - * continuation characters, and a long 'description' field - * is entered. If this parameter is set to - * DTUNLIMITEDFIELDS, then the check for runaway records - * will be disabled for records of this type. - * - * converters: This is a NULL-terminated array of function pointers, - * corresponding to the set of record converters which will - * be called, whenever a record of this type is encountered. - * The converters are called in order, and all converters will - * be called, even if an earlier one rejects the record. The - * last entry in the array must be set to NULL. - */ -typedef struct { - char * recordKeyword; - int maxFields; - DtDbConverter * converters; -} DtDbRecordDesc; - - -/* - * _DtDbRead() is the function which causes the specified set of directories to - * be searched for files ending with the specified suffix. Although not - * required, the set of directories to search is typically obtained by calling - * _DtGetDatabaseDirPaths(). This function supports the loading of multiple - * field types, all in a single pass of the database files. This function does - * not attempt to manage the memory used to store the information extracted from - * the database files; it is the responsibility of the function calling this - * procedure to initialize any storage, and it is the responsibility of the - * record converters to allocate any memory needed to store and record, along - * with adding the record to the appropriate storage array. - * - * dirs: The set of directories to be searched for database files. - * - * suffix: The file suffix (i.e. ".vf") used to qualify which files within - * the database directories should be loaded. - * - * recordDescriptions: An array, where each entry describes a database record - * which should be loaded during this pass of _DtDbRead(). - * See the definition for this structure, for more details. - * - * int numRecordDescriptions: The number of entries in the above array. - */ -extern void _DtDbRead (DtDirPaths * dirs, - char * suffix, - DtDbRecordDesc * recordDescriptions, - int numRecordDescriptions); - - -/* - * _DtDbPathIdToString() is used to map a filename identifier, represented - * by an opaque DtDbPathId value, into its corresponding ascii string - * representation. The returned string is owned by the calling application, - * which should free it up when no longer needed. - */ -extern char * _DtDbPathIdToString ( DtDbPathId pathId ); - -#endif /* _Dt_DbReader_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/DbUtil.h b/cde/lib/DtSvc/DtUtil1/DbUtil.h deleted file mode 100644 index 8f6cb9f5..00000000 --- a/cde/lib/DtSvc/DtUtil1/DbUtil.h +++ /dev/null @@ -1,103 +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: DbUtil.h $XConsortium: DbUtil.h /main/4 1995/10/26 15:04:04 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_DbUtil_h -#define _Dt_DbUtil_h - -#include /* Boolean */ - -/* - * This structure is used by many of the database functions. It is used to - * specify a collection of filenames or directory names. Each file/directory - * name is returned in two forms: - * - * dirs[n] The fully host-qualified pathname for the file or directory, - * in "host:/path" format. - * - * paths[n] The internal format of the file or directory anme, which - * can be passed to any of the standard tools which expect a - * valid filename; i.e. /nfs/host/path. - * - * Both of the arrays are NULL-terminated. - */ -typedef struct { - char ** dirs; - char ** paths; -} DtDirPaths; - - - -/***************************************************************************** - * - * - * - ****************************************************************************/ -extern DtDirPaths * _DtFindMatchingFiles( DtDirPaths * dirs, - char * suffix, - Boolean sortFiles ); - -/***************************************************************************** - * - * _DtGetDatabaseDirPaths() returns a NULL-terminated array of directories, - * which are to be searched for database files. The paths are obtained by - * querying the DTDATABASESEARCHPATH environment variable, which specifies - * a set of comma separated pathnames, int "host:/path" format. The - * return structure should be freed up, when no longer needed, by invoking - * _DtFreeDatabaseDirPaths(). - * - * The returned directory names are represented in two formats: - * - * 1) Fully host qualified; i.e. "host:/path" - * 2) Internal format; i.e. "/nfs/host/path" - * - ****************************************************************************/ -extern DtDirPaths * _DtGetDatabaseDirPaths( void ); - -/***************************************************************************** - * - * _DtFreeDatabaseDirPaths() is used to free the memory occupied by the - * passed-in instance of the DtDirPaths structure. Typically, this - * information was originally obtained by a call to DtGetDatabasePaths() - * or _DtFindMatchingFiles(). - * - * Parameters: - * - * dirs The structure which is to be freed up. - * - ****************************************************************************/ -extern void _DtFreeDatabaseDirPaths( DtDirPaths * dirs ); - -#endif /* _Dt_DbUtil_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/Dnd.h b/cde/lib/DtSvc/DtUtil1/Dnd.h deleted file mode 100644 index 866557f3..00000000 --- a/cde/lib/DtSvc/DtUtil1/Dnd.h +++ /dev/null @@ -1,210 +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: Dnd.h /main/3 1995/10/26 15:04:35 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. - */ - -#ifndef _Dt_Dnd_h -#define _Dt_Dnd_h - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Dnd Callback Reasons */ - -enum { - DtCR_DND_CONVERT_DATA, - DtCR_DND_CONVERT_DELETE, - DtCR_DND_DRAG_FINISH, - DtCR_DND_TRANSFER_DATA, - DtCR_DND_DROP_ANIMATE, - DtCR_DND_ROOT_TRANSFER -}; -#define DtCR_DND_TRANSFER DtCR_DND_TRANSFER_DATA - -/* - * Dnd Drag Start Resources - * dropOnRootCallback is private and should not be used - */ - -#define DtNdropOnRootCallback "dropOnRootCallback" -#define DtCDropOnRootCallback "DropOnRootCallback" -#define DtNsourceIcon "sourceIcon" -#define DtCSourceIcon "SourceIcon" -#define DtNbufferIsText "bufferIsText" -#define DtCBufferIsText "BufferIsText" - -/* - *Dnd Drop Register Resources - */ - -#define DtNdropAnimateCallback "dropAnimateCallback" -#define DtCDropAnimateCallback "DropAnimateCallback" -#define DtNpreserveRegistration "preserveRegistration" -#define DtCPreserveRegistration "PreserveRegistration" -#define DtNregisterChildren "registerChildren" -#define DtCRegisterChildren "RegisterChildren" -#define DtNtextIsBuffer "textIsBuffer" -#define DtCTextIsBuffer "TextIsBuffer" - -/* - * Types - */ - -typedef enum { - DtDND_SUCCESS, - DtDND_FAILURE -} DtDndStatus; - -typedef unsigned long DtDndProtocol; - -enum { - DtDND_NOOP_TRANSFER = 0L, - DtDND_TEXT_TRANSFER = (1L << 0), - DtDND_FILENAME_TRANSFER = (1L << 1), - DtDND_BUFFER_TRANSFER = (1L << 2) -}; - -typedef struct _DtDndBuffer { - void * bp; - int size; - String name; -} DtDndBuffer; - -typedef struct _DtDndContext { - DtDndProtocol protocol; - Cardinal numItems; - union { - XmString * strings; - String * files; - DtDndBuffer * buffers; - } data; -} DtDndContext; - - -/* - * Dnd Callback Structures - */ - -typedef struct _DtDndConvertCallbackStruct { - int reason; - XEvent * event; - DtDndContext * dragData; - DtDndStatus status; -} DtDndConvertCallbackStruct, *DtDndConvertCallback; - -typedef struct _DtDndDragFinishCallbackStruct { - int reason; - XEvent * event; - DtDndContext * dragData; - Widget sourceIcon; -} DtDndDragFinishCallbackStruct, *DtDndDragFinishCallback; - -typedef struct _DtDndTransferCallbackStruct { - int reason; - XEvent * event; - Position x, y; - unsigned char operation; - DtDndContext * dropData; - Widget dragContext; - Boolean completeMove; - DtDndStatus status; -} DtDndTransferCallbackStruct, *DtDndTransferCallback; - -typedef DtDndTransferCallbackStruct DtDndDropCallbackStruct, *DtDndDropCallback; - -typedef struct _DtDndDropAnimateCallbackStruct { - int reason; - XEvent * event; - Position x, y; - unsigned char operation; - DtDndContext * dropData; -} DtDndDropAnimateCallbackStruct, *DtDndDropAnimateCallback; - - -/* - * Functions - */ - -extern Widget DtDndCreateSourceIcon( - Widget widget, - Pixmap source, - Pixmap mask); - -extern Widget DtDndDragStart( - Widget dragInitiator, - XEvent* event, - DtDndProtocol protocol, - Cardinal numItems, - unsigned char operations, - XtCallbackList convertCallback, - XtCallbackList dragFinishCallback, - ArgList argList, - Cardinal argCount); - -extern Widget DtDndVaDragStart( - Widget dragInitiator, - XEvent* event, - DtDndProtocol protocol, - Cardinal numItems, - unsigned char operations, - XtCallbackList convertCallback, - XtCallbackList dragFinishCallback, - ...); - -extern void DtDndDropRegister( - Widget dropSite, - DtDndProtocol protocols, - unsigned char operations, - XtCallbackList transferCallback, - ArgList argList, - Cardinal argCount); - -extern void DtDndVaDropRegister( - Widget dropSite, - DtDndProtocol protocols, - unsigned char operations, - XtCallbackList transferCallback, - ...); - -extern void DtDndDropUnregister( - Widget widget); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Dnd_h */ diff --git a/cde/lib/DtSvc/DtUtil1/DndIconI.h b/cde/lib/DtSvc/DtUtil1/DndIconI.h deleted file mode 100644 index 383918d2..00000000 --- a/cde/lib/DtSvc/DtUtil1/DndIconI.h +++ /dev/null @@ -1,423 +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: DndIconI.h /main/3 1995/10/26 15:05:58 rswiston $ */ -/********************************************************************* - * - * File: DndIconI.h - * - * Description: Private include file containing DND drag icons bitmaps - * - ********************************************************************* - * - *+SNOTICE - * - * 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 documment and all copies - * and derivative works thereof must be returned or destroyed at - * Sun's request. - * - * Copyright 1993 Sun Microsystems, Inc. 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. - * - *+ENOTICE - */ - -#ifndef _Dt_DndIconI_h -#define _Dt_DndIconI_h - -#ifdef __cplusplus -extern "C" { -#endif - - -/*------------------------------------------------------------------- - * Motif Defaults - *-------------------------------------------------------------------*/ - -#define motif_x_hot 1 -#define motif_y_hot 1 - -#define motif_x_offset_state -8 -#define motif_y_offset_state -2 - -#define motif_x_offset_delta 0 -#define motif_y_offset_delta 0 - -/*------------------------------------------------------------------- - * Text Drags: Cursors - *-------------------------------------------------------------------*/ - -#define text_x_hot 1 -#define text_y_hot 1 - -#define text_x_offset_state 1 -#define text_y_offset_state 1 - -#define text_x_offset_delta 7 -#define text_y_offset_delta 3 - -/* - * Text: State Valid - */ - -#define text_valid_width 16 -#define text_valid_height 16 - -static unsigned char text_valid_bits[] = { -#ifdef OLDTEXTVALID - 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00, - 0x7e, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#else - 0x00, 0x00, 0xfe, 0x01, 0xfe, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00, - 0x0e, 0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#endif - -static unsigned char text_valid_m_bits[] = { -#ifdef OLDTEXTVALID - 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00, - 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#else - 0xff, 0x07, 0xff, 0x03, 0xff, 0x01, 0xff, 0x00, 0x7f, 0x00, 0x3f, 0x00, - 0x1f, 0x00, 0x0f, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#endif - -/* - * Text: State Invalid - */ - -#define text_invalid_width 16 -#define text_invalid_height 16 - -static unsigned char text_invalid_bits[] = { - 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, - 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, - 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char text_invalid_m_bits[] = { - 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, - 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, - 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; - -/* - * Text: None - */ - -#define text_none_width 16 -#define text_none_height 16 - -static unsigned char text_none_bits[] = { - 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, - 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, - 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char text_none_m_bits[] = { - 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, - 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, - 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; - -/*------------------------------------------------------------------- - * Text Drags: Operation Cursors - *-------------------------------------------------------------------*/ - -/* Use Data Operation Cursors */ - -/* - * Text: Operation Move - */ - -/* - * Text: Operation Copy - */ - -/* - * Text: Operation Link - */ - -/*------------------------------------------------------------------- - * Text Drags: Source Cursor - *-------------------------------------------------------------------*/ - -#define text_source_width 32 -#define text_source_height 32 - -static unsigned char text_source_bits[] = { -#ifdef OLDTEXTSOURCE - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xd8, 0xdb, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbe, 0x7f, 0x1f, - 0x00, 0x00, 0x00, 0x00, 0xb8, 0xf6, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00, - 0xe8, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xbb, 0xff, 0x06, - 0x00, 0x00, 0x00, 0x00, 0xd8, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00, - 0x78, 0xd7, 0xb4, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xad, 0xd5, 0x0f, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#else - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xc0, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x7f, 0x1f, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xbb, 0xff, 0x06, - 0x00, 0x00, 0x00, 0x00, 0xf0, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00, - 0x78, 0x77, 0xb7, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbd, 0xdd, 0x0f, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#endif - -static unsigned char text_source_m_bits[] = { -#ifdef OLDTEXTSOURCE - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#else - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x3f, - 0x00, 0xf0, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f, - 0x00, 0xfe, 0xff, 0x3f, 0x00, 0xff, 0xff, 0x3f, 0x80, 0xff, 0xff, 0x3f, - 0xc0, 0xff, 0xff, 0x3f, 0xe0, 0xff, 0xff, 0x3f, 0xf0, 0xff, 0xff, 0x3f, - 0xf8, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, - 0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; -#endif - -/*------------------------------------------------------------------- - * Data Drags: Cursors - *------------------------------------------------------------------*/ - -#define data_x_hot 3 -#define data_y_hot 3 - -#define data_x_offset_state 11 -#define data_y_offset_state 11 - -#define data_x_offset_delta 7 -#define data_y_offset_delta 7 - -/* - * Data: State Valid - */ - -#define data_valid_width 16 -#define data_valid_height 16 - -static unsigned char data_valid_bits[] = { - 0x00, 0x00, 0x06, 0x00, 0x1e, 0x00, 0x7c, 0x00, 0xfc, 0x01, 0xf8, 0x07, - 0xf8, 0x07, 0xf0, 0x01, 0xf0, 0x03, 0x60, 0x07, 0x60, 0x0e, 0x00, 0x1c, - 0x00, 0x38, 0x00, 0x70, 0x00, 0x60, 0x00, 0x00}; - -static unsigned char data_valid_m_bits[] = { - 0x07, 0x00, 0x1f, 0x00, 0x7f, 0x00, 0xfe, 0x01, 0xfe, 0x07, 0xfc, 0x0f, - 0xfc, 0x0f, 0xf8, 0x07, 0xf8, 0x07, 0xf0, 0x0f, 0xf0, 0x1f, 0x60, 0x3e, - 0x00, 0x7c, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x60}; - -/* - * Data: State Invalid - */ - -#define data_invalid_width 16 -#define data_invalid_height 16 - -static unsigned char data_invalid_bits[] = { - 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, - 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, - 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char data_invalid_m_bits[] = { - 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, - 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, - 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; - -/* - * Data: State None - */ - -#define data_none_width 16 -#define data_none_height 16 - -static unsigned char data_none_bits[] = { - 0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37, - 0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c, - 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char data_none_m_bits[] = { - 0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f, - 0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f, - 0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00}; - -/*------------------------------------------------------------------- - * Data Drags: Operation Cursors - *-------------------------------------------------------------------*/ - -/* - * Data: Operation Move - */ - -#define data_move_width 16 -#define data_move_height 16 - -static unsigned char data_move_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char data_move_m_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - -/* - * Data: Operation Copy - */ - -#define data_copy_width 16 -#define data_copy_height 16 - -static unsigned char data_copy_bits[] = { - 0x00, 0x00, 0xfe, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x1f, 0x02, 0x11, - 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0xfe, 0x11, 0x20, 0x10, - 0x20, 0x10, 0xe0, 0x1f, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char data_copy_m_bits[] = { - 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, - 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, - 0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x3f, 0x00, 0x00}; - -/* - * Data: Operation Link - */ - -#define data_link_width 16 -#define data_link_height 16 - -static unsigned char data_link_bits[] = { - 0x00, 0x00, 0xfe, 0x03, 0x02, 0x02, 0x02, 0x02, 0x32, 0x02, 0x32, 0x3e, - 0x42, 0x20, 0x82, 0x20, 0x02, 0x21, 0x3e, 0x26, 0x20, 0x26, 0x20, 0x20, - 0x20, 0x20, 0xe0, 0x3f, 0x00, 0x00, 0x00, 0x00}; - -static unsigned char data_link_m_bits[] = { - 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x7f, 0xff, 0x7f, - 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xf0, 0x7f, - 0xf0, 0x7f, 0xf0, 0x7f, 0xf0, 0x7f, 0x00, 0x00}; - -/*------------------------------------------------------------------- - * Data Drags: Source Icons - *-------------------------------------------------------------------*/ - -/* - * Data Source: Single - */ - -#define data_single_width 32 -#define data_single_height 32 - -static unsigned char data_single_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00, - 0x10, 0x00, 0x40, 0x01, 0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04, - 0x10, 0x00, 0xc0, 0x0f, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, - 0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f}; - -static unsigned char data_single_m_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0x00, - 0xf0, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0x07, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, - 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f}; - -/* - * Data Source: Multiple - */ - -#define data_multiple_width 32 -#define data_multiple_height 32 - -static unsigned char data_multiple_bits[] = { - 0xfc, 0xff, 0x0f, 0x00, 0x04, 0x00, 0x30, 0x00, 0x04, 0x00, 0xd0, 0x1f, - 0x04, 0x00, 0x90, 0x10, 0x04, 0x00, 0x10, 0xf1, 0x04, 0x00, 0xf0, 0x93, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, - 0xfc, 0xff, 0xff, 0x93, 0x20, 0x00, 0x00, 0x90, 0xe0, 0xff, 0xff, 0x9f, - 0x00, 0x01, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff}; - -static unsigned char data_multiple_m_bits[] = { - 0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0x1f, - 0xfc, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, - 0xfc, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, - 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff}; - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_DndIconI_h */ diff --git a/cde/lib/DtSvc/DtUtil1/DndP.h b/cde/lib/DtSvc/DtUtil1/DndP.h deleted file mode 100644 index 63447b0d..00000000 --- a/cde/lib/DtSvc/DtUtil1/DndP.h +++ /dev/null @@ -1,332 +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: DndP.h /main/4 1996/06/21 17:28:31 ageorge $ */ -/********************************************************************* - * - * File: DndP.h - * - * Description: Private include file for DND Convenience API. - * - ********************************************************************* - * - *+SNOTICE - * - * RESTRICTED CONFIDENTIAL INFORMATION: - * - * The information in this document is subject to special - * restrictions in a confidential disclosure agreement bertween - * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this - * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout - * Sun's specific written approval. This documment and all copies - * and derivative works thereof must be returned or destroyed at - * Sun's request. - * - * Copyright 1993 Sun Microsystems, Inc. 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. - * - *+ENOTICE - */ - -#ifndef _Dt_DndP_h -#define _Dt_DndP_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Drag and Drop selection targets - */ - -extern Atom XA_TARGETS; -extern Atom XA_TIMESTAMP; -extern Atom XA_MULTIPLE; -extern Atom XA_DELETE; -extern Atom XA_NULL; -extern Atom XA_TEXT; -extern Atom XA_HOST_NAME; -extern Atom XA_SUN_FILE_HOST_NAME; -extern Atom XA_SUN_ENUM_COUNT; -extern Atom XA_SUN_DATA_LABEL; -extern Atom XA_SUN_SELN_READONLY; -extern Atom XA_SUN_ATM_FILE_NAME; -extern Atom XA_SUN_ATM_METHODS; - -#define DtGetAtom(display, atomname) \ - XmInternAtom((display),(atomname),False) - - -/* - * Drag Icon Styles - */ -typedef enum { - DtDND_DRAG_SOURCE_DEFAULT, - DtDND_DRAG_SOURCE_TEXT, - DtDND_DRAG_SOURCE_DATA, - DtDND_DRAG_SOURCE_MULTIPLE -} DtDndDragSource; - -/* - * Drag-n-Drop Data Transfer Protocol - */ -typedef struct _DtDndTransfer { - Atom * targets; - Cardinal numTargets; - struct _DtDndMethods * methods; -} DtDndTransfer; - -/* - * Drag Initiator Structure - */ - -typedef struct _DtDragInfo { - Widget dragInitiator; - Widget dragContext; - DtDndProtocol protocol; - Cardinal numItems; - unsigned char operations; - XtCallbackList dragConvertCallback; - XtCallbackList dragFinishCallback; - XtCallbackList dropOnRootCallback; - XtCallbackList dragDropFinishCallback; - XtCallbackList dropFinishCallback; - XtCallbackList topLevelEnterCallback; - XtCallbackList topLevelLeaveCallback; - XtCallbackList dropStartCallback; - Widget sourceIcon; - Boolean bufferIsText; - DtDndTransfer * transfer; - DtDndContext * dragData; - Boolean inRoot; - Window backdropWindow; - DtDndStatus status; - XtPointer clientData; -} DtDragInfo; - -/* - * Drop Receiver Existing Registration Structure - */ - -typedef struct _DtDropSiteInfo { - XtCallbackProc dropProc; - unsigned char operations; - Atom * importTargets; - int numImportTargets; -} DtDropSiteInfo; - -/* - * Drop Receiver Data Transfer Structure - */ - -typedef struct _DtTransferInfo { - Widget dragContext; - DtDndProtocol protocol; - unsigned char operation; - struct _DtDndMethods * methods; - Atom * transferTargets; - Cardinal numTransferTargets; - Cardinal currentTransfer; - Boolean appTransferCalled; - XEvent * event; - Position x, y; - XtPointer clientData; - XtCallbackList dropAnimateCallback; -} DtTransferInfo; - -/* - * Drop Receiver Registration Structure - */ - -typedef struct _DtDropInfo { - Widget dropReceiver; - DtDndProtocol protocols; - unsigned char operations; - XtCallbackList dropTransferCallback; - XtCallbackList dropAnimateCallback; - Boolean textIsBuffer; - DtDropSiteInfo * dropSiteInfo; - DtDndTransfer * transfers; - Cardinal numTransfers; - DtTransferInfo * transferInfo; - DtDndContext * dropData; - DtDndStatus status; -} DtDropInfo; - -/* - * Drag-n-Drop Data Transfer Protocol Function Prototypes - */ - -typedef void -(*DtDndGetAvailTargetsProc)( - DtDragInfo * dtDragInfo, - Atom ** returnAvailTargetsList, - Cardinal * returnNumAvailTargets); - -typedef void -(*DtDndGetExportTargetsProc)( - DtDragInfo * dtDragInfo, - Atom ** returnExportTargetsList, - Cardinal * returnNumExportTargets); - -typedef void -(*DtDndGetImportTargetsProc)( - DtDropInfo * dtDropInfo, - Atom ** returnImportTargetsList, - Cardinal * returnNumImportTargets); - -typedef void -(*DtDndConvertInitProc)( - DtDragInfo * dtDragInfo); - -typedef Boolean -(*DtDndConvertProc)( - Widget dragContext, - DtDragInfo * dtDragInfo, - Atom * selection, - Atom * target, - Atom * returnType, - XtPointer * returnValue, - unsigned long * returnLength, - int * returnFormat, - XSelectionRequestEvent *selectionRequestEvent); - -typedef void -(*DtDndConvertFinishProc)( - DtDragInfo * dtDragInfo); - -typedef void -(*DtDndTransferTargetsProc)( - DtDropInfo * dtDropInfo, - Atom * exportTargets, - Cardinal numExportTargets, - Atom ** returnTransferTargetsList, - Cardinal * returnNumTransferTargets); - -typedef void -(*DtDndTransferProc)( - Widget dropTransfer, - DtDropInfo * dtDropInfo, - Atom * selection, - Atom * target, - Atom * type, - XtPointer value, - unsigned long * length, - int * format); - -typedef void -(*DtDndTransferFinishProc)( - DtDropInfo * dtDropInfo); - -/* - * Drag-n-Drop Data Transfer Methods - */ - -typedef struct _DtDndMethods { - String name; - DtDndProtocol protocol; - DtDndDragSource sourceType; - DtDndGetAvailTargetsProc getAvailTargets; - DtDndGetExportTargetsProc getExportTargets; - DtDndGetImportTargetsProc getImportTargets; - DtDndConvertInitProc convertInit; - DtDndConvertProc convert; - DtDndConvertFinishProc convertFinish; - DtDndTransferTargetsProc transferTargets; - DtDndTransferProc transfer; - DtDndTransferFinishProc transferFinish; -} DtDndMethods; - -/* - * Drag-n-Drop Private Utility Functions - */ - -extern DtDndTransfer * -_DtDndCreateExportTransfer( - DtDragInfo * dtDragInfo); - -extern DtDndTransfer * -_DtDndCreateImportTransfers( - DtDropInfo * dtDropInfo, - Cardinal * numTransfers); - -extern void -_DtDndDestroyTransfers( - DtDndTransfer * transfers, - Cardinal numTransfers); - -extern DtDndTransfer * -_DtDndTransferFromTargets( - DtDndTransfer * transfers, - Cardinal numTransfers, - Atom * targets, - Cardinal numTargets); - -extern void -_DtDndTransferAdd( - Widget dropTransfer, - DtDropInfo * dtDropInfo, - Atom * transferTargets, - Cardinal numTransferTargets); - -extern XtCallbackList -_DtDndCopyCallbackList( - XtCallbackList callbacks); - -extern void -_DtDndCallCallbackList( - Widget widget, - XtCallbackList callbacks, - XtPointer calldata); - -extern void -_DtDndSelectDragSource( - Widget anyWidget, - DtDndDragSource sourceType, - Widget sourceIcon); - -extern void -_DtDndGetIconOffset( - Widget dragContext, - DtDndDragSource sourceType, - int * offsetXReturn, - int * offsetYReturn); - -extern String -_DtDndGetHostName(void); - -#ifdef DEBUG -extern void _DtDndPrintTargets(Display*,Atom*,Cardinal); -extern void _DtDndPrintTransfers(Display*,DtDndTransfer*,Cardinal); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_DndP_h */ diff --git a/cde/lib/DtSvc/DtUtil1/Dt.h b/cde/lib/DtSvc/DtUtil1/Dt.h deleted file mode 100644 index 3122efa7..00000000 --- a/cde/lib/DtSvc/DtUtil1/Dt.h +++ /dev/null @@ -1,93 +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: Dt.h /main/12 1999/10/18 14:49:57 samborn $ */ -/* - * (c) Copyright 1997, The Open Group - */ -/* - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. - * (c) Copyright 1993,1994,1996 International Business Machines Corp. - * (c) Copyright 1993-1996 Sun Microsystems, Inc. - * (c) Copyright 1993,1994,1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef _Dt_Dt_h -#define _Dt_Dt_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* CDE Version information */ - -#define DtVERSION 2 -#define DtREVISION 3 -#define DtUPDATE_LEVEL 0 - -#define DtVERSION_NUMBER (DtVERSION * 10000 + \ - DtREVISION * 100 + \ - DtUPDATE_LEVEL) - -#define DtVERSION_STRING "CDE Version 2.3.0a" - - -/* - * CDE Version information - */ - -externalref const int DtVersion; -externalref const char *DtVersionString; - - -/* - * Functions - */ - -extern Boolean DtInitialize( - Display *display, - Widget widget, - char *name, - char *tool_class); - -extern Boolean DtAppInitialize( - XtAppContext app_context, - Display *display, - Widget widget, - char *name, - char *tool_class); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Dt_h */ diff --git a/cde/lib/DtSvc/DtUtil1/DtHash.h b/cde/lib/DtSvc/DtUtil1/DtHash.h deleted file mode 100644 index b3740310..00000000 --- a/cde/lib/DtSvc/DtUtil1/DtHash.h +++ /dev/null @@ -1,49 +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: DtHash.h /main/5 1996/08/29 15:42:13 cde-dec $ */ -#ifndef _DtHash_h -#define _DtHash_h - -typedef void * DtHashTbl; - -DtHashTbl _DtUtilMakeHash(int size); -DtHashTbl _DtUtilMakeIHash(int size); -void ** _DtUtilGetHash(DtHashTbl tbl, const unsigned char * key); -void ** _DtUtilFindHash(DtHashTbl tbl,const unsigned char * key); -void * _DtUtilDelHash(DtHashTbl tbl, const unsigned char * key); -int _DtUtilOperateHash(DtHashTbl tbl, void (*op_func)(), void * usr_arg); -void _DtUtilDestroyHash(DtHashTbl tbl, int (*des_func)(), void * usr_arg); - -typedef void (*DtHashOperateFunc)(); -typedef int (*DtHashDestroyFunc)(); - -#endif /* _DtHash_h */ - - - - - - - - - diff --git a/cde/lib/DtSvc/DtUtil1/DtShmDb.h b/cde/lib/DtSvc/DtUtil1/DtShmDb.h deleted file mode 100644 index ff2709d3..00000000 --- a/cde/lib/DtSvc/DtUtil1/DtShmDb.h +++ /dev/null @@ -1,76 +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: DtShmDb.h /main/4 1996/05/09 04:22:30 drk $ */ -#ifndef DtShmDb_h -#define DtShmDb_h - -/* - this include file provides prototypes for the various - shared memory database routines - */ - -typedef void * DtShmProtoStrtab; -typedef void * DtShmProtoInttab; -typedef void * DtShmProtoIntList; - -typedef const void * DtShmStrtab; -typedef const void * DtShmInttab; -typedef const int * DtShmIntList; -typedef int DtShmBoson; - -/* - routines used while building shared memory databases - */ - -DtShmProtoStrtab _DtShmProtoInitStrtab (int estimated_entries); -DtShmBoson _DtShmProtoAddStrtab (DtShmProtoStrtab prototab, const char * string, int * isnew); -const char * _DtShmProtoLookUpStrtab (DtShmProtoStrtab prototab, DtShmBoson boson); -int _DtShmProtoSizeStrtab (DtShmProtoStrtab prototab); -DtShmStrtab _DtShmProtoCopyStrtab (DtShmProtoStrtab prototab, void * dataspace); -int _DtShmProtoDestroyStrtab (DtShmProtoStrtab prototab); - -DtShmProtoInttab _DtShmProtoInitInttab (int estimated_entries); -int _DtShmProtoAddInttab (DtShmProtoInttab prototab, unsigned int keyin, int datain); -int * _DtShmProtoLookUpInttab (DtShmProtoInttab prototab, unsigned int keyin); -int _DtShmProtoSizeInttab (DtShmProtoInttab prototab); -DtShmInttab _DtShmProtoCopyInttab (DtShmProtoInttab prototab, void * dataspace); -int _DtShmProtoDestroyInttab (DtShmProtoInttab prototab); - - -DtShmProtoIntList _DtShmProtoInitIntLst (int estimated_entries); -int * _DtShmProtoAddIntLst (DtShmProtoIntList protolist, int size, int * index_value); -int _DtShmProtoSizeIntLst (DtShmProtoIntList protolist); -DtShmIntList _DtShmProtoCopyIntLst (DtShmProtoIntList protolist, void * dataspace); -int _DtShmProtoDestroyIntLst (DtShmProtoIntList protolist); - - -/* - run-time routines once shared memory area is built - */ - -DtShmBoson _DtShmStringToBoson (DtShmStrtab tab, const char * string); -const char * _DtShmBosonToString (DtShmStrtab tab, DtShmBoson boson); -const int * _DtShmFindIntTabEntry (DtShmInttab tab, unsigned int key); - -#endif /* DtShmDb_h */ - diff --git a/cde/lib/DtSvc/DtUtil1/Dts.h b/cde/lib/DtSvc/DtUtil1/Dts.h deleted file mode 100644 index 273dc321..00000000 --- a/cde/lib/DtSvc/DtUtil1/Dts.h +++ /dev/null @@ -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: Dts.h /main/5 1996/03/05 13:30:59 drk $ */ -/* - * (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_Dts_h -#define _Dt_Dts_h - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Constants - */ - -#define DtDTS_DC_NAME "DATA_CRITERIA" -#define DtDTS_NAME_PATTERN "NAME_PATTERN" -#define DtDTS_PATH_PATTERN "PATH_PATTERN" -#define DtDTS_CONTENT "CONTENT" -#define DtDTS_MODE "MODE" -#define DtDTS_LINK_PATH "LINK_PATH" -#define DtDTS_LINK_NAME "LINK_NAME" -#define DtDTS_DATA_ATTRIBUTES_NAME "DATA_ATTRIBUTES_NAME" - -#define DtDTS_DT_RECURSIVE_LINK "RECURSIVE_LINK" -#define DtDTS_DT_BROKEN_LINK "BROKEN_LINK" -#define DtDTS_DT_UNKNOWN "UNKNOWN" - -#define DtDTS_DA_IS_SYNTHETIC "IS_SYNTHETIC" -#define DtDTS_DA_LABEL "LABEL" -#define DtDTS_DA_NAME "DATA_ATTRIBUTES" -#define DtDTS_DA_DESCRIPTION "DESCRIPTION" -#define DtDTS_DA_DATA_HOST "DATA_HOST" -#define DtDTS_DA_ICON "ICON" -#define DtDTS_DA_INSTANCE_ICON "INSTANCE_ICON" -#define DtDTS_DA_PROPERTIES "PROPERTIES" -#define DtDTS_DA_ACTION_LIST "ACTIONS" -#define DtDTS_DA_NAME_TEMPLATE "NAME_TEMPLATE" -#define DtDTS_DA_MODE_TEMPLATE "MODE_TEMPLATE" -#define DtDTS_DA_MOVE_TO_ACTION "MOVE_TO_ACTION" -#define DtDTS_DA_COPY_TO_ACTION "COPY_TO_ACTION" -#define DtDTS_DA_LINK_TO_ACTION "LINK_TO_ACTION" -#define DtDTS_DA_IS_TEXT "IS_TEXT" -#define DtDTS_DA_MEDIA "MEDIA" -#define DtDTS_DA_MIME_TYPE "MIME_TYPE" -#define DtDTS_DA_MIME_TO_MEDIA_FILTER "MIME_TO_MEDIA_FILTER" -#define DtDTS_DA_MEDIA_TO_MIME_FILTER "MEDIA_TO_MIME_FILTER" -#define DtDTS_DA_X400_TYPE "X400_TYPE" -#define DtDTS_DA_X400_TO_MEDIA_FILTER "X400_TO_MEDIA_FILTER" -#define DtDTS_DA_MEDIA_TO_X400_FILTER "MEDIA_TO_X400_FILTER" -#define DtDTS_DA_IS_ACTION "IS_ACTION" -#define DtDTS_DA_IS_EXECUTABLE "IS_EXECUTABLE" - -#define DtDTS_DT_DIR ".DtDirDataType" - - -/* - * Types - */ - -typedef struct _DtDtsAttribute -{ - char *name; - char *value; -} DtDtsAttribute; - - -/* - * Functions - */ - -extern void DtDtsLoadDataTypes(void); -extern void DtDtsRelease(void); - -extern char *DtDtsDataToDataType( - const char *filepath, - const void *buffer, - const int size, - const struct stat *stat_buff, - const char *link_name, - const struct stat *link_stat_buff, - const char *opt_name); - -extern char *DtDtsFileToDataType( - const char *filepath); - -extern char *DtDtsFileToAttributeValue( - const char *filepath, - const char *attr); - -extern DtDtsAttribute **DtDtsFileToAttributeList( - const char *filepath); - -extern char *DtDtsBufferToDataType( - const void *buffer, - const int size, - const char *opt_name); - -extern char *DtDtsBufferToAttributeValue( - const void *buffer, - const int size, - const char *attr, - const char *opt_name); - -extern DtDtsAttribute **DtDtsBufferToAttributeList( - const void *buffer, - const int size, - const char *opt_name); - -extern char *DtDtsDataTypeToAttributeValue( - const char *datatype, - const char *attr, - const char *opt_name); - -extern DtDtsAttribute **DtDtsDataTypeToAttributeList( - const char *datatype, - const char *opt_name); - -extern void DtDtsFreeDataTypeNames( - char **namelist); - -extern void DtDtsFreeAttributeList( - DtDtsAttribute **attr_list); - -extern void DtDtsFreeAttributeValue( - char *attr_value); - -extern void DtDtsFreeDataType( - char *datatype); - -extern char **DtDtsDataTypeNames(void); - -extern char **DtDtsFindAttribute( - const char *name, - const char *value); - -extern char *DtDtsSetDataType( - const char *filepath, - const char *datatype, - const int override); - -extern int DtDtsDataTypeIsAction( - const char *datatype); - -extern Boolean DtDtsIsTrue( - const char *str); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Dts_h */ diff --git a/cde/lib/DtSvc/DtUtil1/DtsDb.h b/cde/lib/DtSvc/DtUtil1/DtsDb.h deleted file mode 100644 index 03fb5b2e..00000000 --- a/cde/lib/DtSvc/DtUtil1/DtsDb.h +++ /dev/null @@ -1,154 +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. * - */ -/* - *+SNOTICE - * - * $XConsortium: DtsDb.h /main/5 1996/08/28 14:32:17 rswiston $ - * - * RESTRICTED CONFIDENTIAL INFORMATION: - * - * The information in this document is subject to special - * restrictions in a confidential disclosure agreement bertween - * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this - * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout - * Sun's specific written approval. This documment and all copies - * and derivative works thereof must be returned or destroyed at - * Sun's request. - * - * Copyright 1993 Sun Microsystems, Inc. All rights reserved. - * - *+ENOTICE - */ -#ifndef DT_DTS_DB_H -#define DT_DTS_DB_H - -#include -#include
- -typedef int OtBoolean; - -/* typedefs for casting comparison functions if needed */ -typedef int (*_DtDtsDbFieldCompare)(DtDtsDbField **fld1, DtDtsDbField **fld2); - -/* entry of a list of attribute/pairs */ -typedef struct -{ - XrmQuark recordName; - _DtDtsDbFieldCompare compare; - long pathId; - int seq; - int fieldCount; - DtDtsDbField **fieldList; -} DtDtsDbRecord; - -/* typedefs for casting record comparison functions if needed */ -typedef int (*_DtDtsDbRecordCompare)(DtDtsDbRecord **rec1, DtDtsDbRecord **rec2); - -/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE - This is a private Structure to the DtDtsDb component. -*/ -typedef struct -{ - char *databaseName; - _DtDtsDbRecordCompare compare; - int recordCount; - DtDtsDbRecord **recordList; - unsigned long ActionSequenceNumber; -} DtDtsDbDatabase; - -/* for the mmaped database this the use_in_memory_db variable is used - to call the old API while the database is being built and is set to - false when the mmaped versions are being accessed. -*/ - -extern int use_in_memory_db; - -/* - * adds a new database to the list of databases -- returns a pointer to the - * new database. If a database of the given name already exists it returns - * a pointer to that database. - */ -extern DtDtsDbDatabase *_DtDtsDbAddDatabase( char *dbname ); - -/* returns the handle for the database where name is the Database name */ -extern DtDtsDbDatabase *_DtDtsDbGet(char *name); -extern char **_DtDtsDbListDb(void); - -/* Record Sort function: - * sorts the specified database, usually obtained from _DtDtsDbGet(), in the - * order specified by the comparison function. If (*compare) == 0 then - * _DtDtsDbCompareRecordNames() is used as the (*compare) function. - */ -extern void _DtDtsDbRecordSort(DtDtsDbDatabase *database, - _DtDtsDbRecordCompare compare); -/* Field Sort function: - * sorts the specified Record in the order specified by the comparison function - * If (*compare) == 0 then _DtDtsDbCompareFieldNames() is used as the - * (*compare) function. - */ -extern void _DtDtsDbFieldSort(DtDtsDbRecord *record, - _DtDtsDbFieldCompare compare); - -/* Name Comparison functions: - * These routines can be passed in to the corresponding sort function to - * sort by name. - * - */ -extern int _DtDtsDbCompareRecordNames(DtDtsDbRecord **entry1, DtDtsDbRecord **entry2); -extern int _DtDtsDbCompareFieldNames(DtDtsDbField **entry1, DtDtsDbField **entry2); - -/* retrieves the Record that matches the specified entry from the record */ -extern DtDtsDbField *_DtDtsDbGetField(DtDtsDbRecord *record, - char *value); - -/* retrieves the entry of the specified entry from the specified database */ -extern DtDtsDbRecord *_DtDtsDbGetRecord(DtDtsDbDatabase *database, - DtDtsDbRecord *value); - -/* Get By Name functions: - * retrieves the entry of the specified name from the specified database - * ** IF ** the _DtDtsDb*Sort routine has been called with the corresponding - * _DtDtsDbCompare*Name comparison function. Otherwise use the standard - * _DtDtsDbGet* functions. -*/ -extern char *_DtDtsDbGetFieldByName(DtDtsDbRecord *record, char *name); -extern DtDtsDbRecord *_DtDtsDbGetRecordByName(DtDtsDbDatabase *database, char *name); - -extern DtDtsDbRecord *_DtDtsDbAddRecord(DtDtsDbDatabase *db); - -extern DtDtsDbField *_DtDtsDbAddField(DtDtsDbRecord *rec); - -extern int _DtDtsDbDeleteDb(DtDtsDbDatabase *db); -extern int _DtDtsDbDeleteRecord(DtDtsDbRecord *rec, DtDtsDbDatabase *db); -extern int _DtDtsDbDeleteRecords(DtDtsDbDatabase *db); -extern int _DtDtsDbDeleteField(DtDtsDbField *fld, DtDtsDbRecord *rec); -extern int _DtDtsDbDeleteFields(DtDtsDbRecord *rec); - -#endif - diff --git a/cde/lib/DtSvc/DtUtil1/DtsMM.h b/cde/lib/DtSvc/DtUtil1/DtsMM.h deleted file mode 100644 index 48ad0cf5..00000000 --- a/cde/lib/DtSvc/DtUtil1/DtsMM.h +++ /dev/null @@ -1,174 +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: DtsMM.h /main/8 1996/08/28 14:27:26 rswiston $ */ -/* - * - * RESTRICTED CONFIDENTIAL INFORMATION: - * - * - * Copyright 1993 Sun Microsystems, Inc. All rights reserved. - * - *+ENOTICE - */ -#ifndef DT_DTS_MM_H -#define DT_DTS_MM_H - -#include -#include
-#include -#include "Dt/DbReader.h" - -#define DTDTSDB_TMPDATABASENAME "%s/.dt/.tmp_dt_db_cache.%s\0" -#define DTDTSDB_DATABASENAME "%s/.dt/.dt_db_cache.%s\0" -#define _DTDTSMMTEMPFILE "dtdbcache_" - -/* - * NOTE: _DTDTSMMTEMPDIR affects the location of the dtdbcache - * file, and therefore affects the Xsession.src, Xreset.src, and - * Xstartup.src scripts in dtlogin/config. - */ -#define _DTDTSMMTEMPDIR "/tmp" - -typedef int DtDtsMMSeqNo; /* the order it occures in db */ -typedef int DtDtsMMFieldCount; /* number of fields in record */ -typedef int DtDtsMMRecordCount; /* number of records in field */ -typedef int DtDtsMMDataBaseCount; /* how many databases */ -typedef int DtDtsMMFieldStart; /* index in table where field list starts */ -typedef int DtDtsMMRecordStart; /* index in table where record list starts */ -typedef int DtDtsMMDataBaseStart; /* index in table where database list starts */ -typedef int DtDtsMMIndexOffset; -typedef int DtDtsMMNameIndex; -typedef int DtDtsMMPathHash; - -typedef struct -{ - DtDtsMMPathHash pathhash; /* hash of dir. we visit */ - DtDtsMMDataBaseCount num_db; /* number of databases */ - DtDtsMMDataBaseStart db_offset; /* index to databases */ - DtDtsMMNameIndex name_list_offset; /* index to name list */ - DtDtsMMNameIndex no_name_offset; /* index to nonunique names */ - DtDtsMMNameIndex buffer_start_index; /* index to list of buffers */ - DtDtsMMIndexOffset str_tbl_offset; /* index to table of strings */ - DtDtsMMIndexOffset files_count; /* number of loaded files */ - DtDtsMMIndexOffset files_offset; /* index to list of loaded files */ - DtDtsMMIndexOffset mtimes_offset; /* index to modified times of files */ -} DtDtsMMHeader; - -/* one set of attribute/pair */ -typedef struct -{ - DtShmBoson fieldName; /* name of attribute */ - DtShmBoson fieldValue; /* value of attribute */ -} DtDtsMMField; - -/* typedefs for casting comparison functions if needed */ -typedef int (*_DtDtsMMFieldCompare)(DtDtsMMField *fld1, DtDtsMMField *fld2); - -/* entry of a list of attribute/pairs */ -typedef struct -{ - DtShmBoson recordName; /* name of this entry */ - DtShmBoson pathId; /* file entry is located in */ - DtDtsMMSeqNo seq; /* sequence this got loaded */ - DtDtsMMFieldCount fieldCount; /* number of fields in record */ - DtDtsMMFieldStart fieldList; /* index to field table */ -} DtDtsMMRecord; - -/* typedefs for casting record comparison functions if needed */ -typedef int (*_DtDtsMMRecordCompare)(DtDtsMMRecord *rec1, DtDtsMMRecord *rec2); - -/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE - This is a private Structure to the DtDtsMM component. -*/ -typedef struct -{ - DtShmBoson databaseName; /* name of database */ - DtDtsMMIndexOffset nameIndex; /* index for DataCriteria quick find */ - DtDtsMMRecordCount recordCount; /* number of records */ - DtDtsMMRecordStart recordList; /* index to records table */ -} DtDtsMMDatabase; - - -/* Db Internal pointers */ -int * _DtDtsMMGetDCNameIndex(int *size); -int * _DtDtsMMGetBufferIndex(int *size); -int * _DtDtsMMGetNoNameIndex(int *size); -void * _DtDtsMMGetPtr(int index); -DtShmInttab _DtDtsMMGetFileList(void); -int _DtDtsMMGetPtrSize(int index); -int _DtDtsMMInit(int); -void _DtDtsMMPrint(FILE *org_fd); -int _DtDtsMMCreateDb(DtDirPaths *dirs, const char *CacheFile, int override); -int _DtDtsMMCreateFile(DtDirPaths *dirs, const char *CacheFile); -char * _DtDtsMMCacheName(int); -int _DtDtsMMapDB(const char *CacheFile); - -const char * _DtDtsMMBosonToString(DtShmBoson boson); -DtShmBoson _DtDtsMMStringToBoson(const char *string); - -extern int use_in_memory_db; - - -/* returns the handle for the database where name is the Database name */ -extern DtDtsMMDatabase *_DtDtsMMGet(const char *name); -extern char **_DtDtsMMListDb(void); - -/* FIXME: document */ -extern int *_DtDtsMMGetDbName(DtDtsMMDatabase *db, DtShmBoson boson); - - -/* Name Comparison functions: - * These routines can be passed in to the corresponding sort function to - * sort by name. - * - */ -extern int _DtDtsMMCompareRecordNames(DtDtsMMRecord *entry1, DtDtsMMRecord *entry2); -extern int _DtDtsMMCompareFieldNames(DtDtsMMField *entry1, DtDtsMMField *entry2); - -/* retrieves the Record that matches the specified entry from the record */ -extern DtDtsMMField *_DtDtsMMGetField(DtDtsMMRecord *record, - const char *value); -extern const char *_DtDtsMMGetFieldByName(DtDtsMMRecord *rec, const char *name); - -/* retrieves the entry of the specified entry from the specified database */ -extern DtDtsMMRecord *_DtDtsMMGetRecord(DtDtsMMDatabase *database, - DtDtsMMRecord *value); -extern DtDtsMMRecord *_DtDtsMMGetRecordByName(DtDtsMMDatabase *database, - const char *value); - -/* Get By Name functions: - * retrieves the entry of the specified name from the specified database - * ** IF ** the _DtDtsMM*Sort routine has been called with the corresponding - * _DtDtsMMCompare*Name comparison function. Otherwise use the standard - * _DtDtsMMGet* functions. -*/ - - -char * _DtDtsMMExpandValue(const char *value); -void _DtDtsMMSafeFree(char *value); -int _DtDtsMMIsMemory(const char *value); - -extern DtShmBoson _DtDtsMMNameStringToBoson(const char *string); - - -#endif /* DT_DTS_MM_H */ diff --git a/cde/lib/DtSvc/DtUtil1/Qualify.h b/cde/lib/DtSvc/DtUtil1/Qualify.h deleted file mode 100644 index c500a7f3..00000000 --- a/cde/lib/DtSvc/DtUtil1/Qualify.h +++ /dev/null @@ -1,78 +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: Qualify.h - * RCS: $XConsortium: Qualify.h /main/3 1995/10/26 15:10:03 rswiston $ - * Description: Public header file for the Qualify routine - * Project: DT Runtime Library - * Language: C - * Package: N/A - * - * (c) Copyright 1993 by Hewlett-Packard Company - * - *****************************************************************************/ - -/********************************************************************* - * _DtQualifyWithFirst - * - * takes: an unqualified filename like foo.txt, and - * a colon-separated list of pathnames, such as - * /etc/dt:/usr/dt/config - * - * returns: a fully qualified filename. Space for the filename - * has been allocated off the heap using malloc. It is - * the responsibility of the calling function to dispose - * of the space using free. - * - * example: ... - * char * filename; - * ... - * filename = _DtQualifyWithFirst("configFile", - * "/foo/first/location:/foo/second/choice"); - * < use filename > - * free(filename); - * - **********************************************************************/ - -#ifndef _Dt_Qualify_h -#define _Dt_Qualify_h - - -# ifdef __cplusplus -extern "C" { -# endif - -extern char * _DtQualifyWithFirst - ( - char *, /* file to locate */ - char * /* list of colon-separated paths in which to look */ - ); - -# ifdef __cplusplus -} -# endif - -#endif /* _Dt_Qualify_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/Saver.h b/cde/lib/DtSvc/DtUtil1/Saver.h deleted file mode 100644 index d37d7e14..00000000 --- a/cde/lib/DtSvc/DtUtil1/Saver.h +++ /dev/null @@ -1,52 +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: Saver.h /main/3 1995/10/26 15:10:29 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. - */ - -#ifndef _dtsaver_h -#define _dtsaver_h - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Functions - */ - -extern Boolean DtSaverGetWindows( - Display *display, - Window **window, - int *count); - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /*_dtsaver_h*/ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/SaverP.h b/cde/lib/DtSvc/DtUtil1/SaverP.h deleted file mode 100644 index bb645d5e..00000000 --- a/cde/lib/DtSvc/DtUtil1/SaverP.h +++ /dev/null @@ -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: SaverP.h /main/4 1995/10/26 15:10:42 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: Saver.h - ** - ** Description - ** ----------- - ** Variables and declarations needed for - ** managing external screen savers - ** - **************************************************************************** - ************************************<+>*************************************/ -#ifndef _dtsaverp_h -#define _dtsaverp_h - -/*************************************<->************************************* - * - * _DtSaverStart() - * - * - * Description: - * ----------- - * Store provided array of windows on root window property - * _DT_SAVER_WINDOWS and launch specified screen saver. Screen savers - * will attempt to use these windows as drawables. - * - * Inputs: - * ------ - * display - display structure - * drawArea - array of widgets to be drawn upon by screen saver - * count - number of elements in drawArea array - * saverAction - screen saver action to invoke - * wAction - action UI widget - * - * Outputs: - * ------- - * - * Return: - * ------- - * state - pointer to opaque state structure - * - * Comments: - * -------- - * This function uses _DtActionInvoke() to launch an action. As a result, - * the caller is responsible for loading and maintaining the action database - * using the DtDbLoad() function and procedures. The caller - * must call _DtSaverStop() to terminate screen saver - * - *************************************<->***********************************/ - -extern void * _DtSaverStart(Display *, Widget *, int, char *, Widget); - -/*************************************<->************************************* - * - * _DtSaverStop() - * - * - * Description: - * ----------- - * Stop an external screen saver started with DtStartSaver(). Deletes - * _DT_SAVER_WINDOWS property from root window. - * - * Inputs: - * ------ - * display - display structure - * state - state returned from _DtSaverStart() - * - * Outputs: - * ------- - * - * Return: - * ------- - * - * Comments: - * -------- - * - *************************************<->***********************************/ - -extern void _DtSaverStop(Display *, void *); - - -#endif /*_dtsaverp_h*/ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/DtUtil1/Session.h b/cde/lib/DtSvc/DtUtil1/Session.h deleted file mode 100644 index 7256140d..00000000 --- a/cde/lib/DtSvc/DtUtil1/Session.h +++ /dev/null @@ -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: Session.h /main/3 1995/10/26 15:10:56 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. - */ - -#ifndef _Dt_Session_h -#define _Dt_Session_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Functions - */ - -extern Boolean DtSessionSavePath( - Widget widget, - char **save_path, - char **save_file); - -extern Boolean DtSessionRestorePath( - Widget widget, - char **restore_path, - char *restore_file); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Session_h */ diff --git a/cde/lib/DtSvc/DtUtil1/SessionM.h b/cde/lib/DtSvc/DtUtil1/SessionM.h deleted file mode 100644 index 934a93de..00000000 --- a/cde/lib/DtSvc/DtUtil1/SessionM.h +++ /dev/null @@ -1,250 +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: SessionM.h /main/8 1998/07/30 12:10:49 mgreess $ */ -/* - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company - * (c) Copyright 1993, 1994, 1996 International Business Machines Corp. - * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc. - * (c) Copyright 1993, 1994, 1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: SessionM.h - ** - ** Description: - ** ----------- - ** Contains all variables needed for SM messaging. All messages serviced, - ** and the tool class name for the session manager - ** - ** - ** - ******************************************************************* - ** (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 _SessionM_h -#define _SessionM_h - -/* - * Include files - */ -/* If is included along with this file, - MUST be included first due to "typedef Boolean ..." problems. The following - conditional #define is also part of the solution to this problem. */ -#include -#include - -/* - * Tool class for the session manager - */ -#define DtSM_TOOL_CLASS "SESSIONMGR" - -/* - * SM_STARTUP_CHANGE an SM_STATE parameters - */ -#define DtSM_VERBOSE_MODE 1 -#define DtSM_QUIET_MODE 2 -#define DtSM_ASK_STATE 0 -#define DtSM_HOME_STATE 3 -#define DtSM_CURRENT_STATE 4 - - -/* - * Atoms for session manager/style manager communication - */ -#define _XA_DT_SM_STM_PROTOCOL "_DT_SM_STM_PROTOCOL" -#define _XA_DT_SM_SAVE_TO_HOME "_DT_SM_SAVE_TO_HOME" -#define _XA_DT_SM_STATE_CHANGE "_DT_SM_STATE_CHANGE" -#define _XA_DT_SM_RESTORE_DEFAULT "_DT_SM_RESTORE_DEFAULT" -#define _XA_DT_SM_PREFERENCES "_DT_SM_PREFERENCES" - -/* - * Atoms for lock changes - */ -#define _XA_DT_SM_LOCK_CHANGE "_DT_SM_LOCK_CHANGE" -#define CoverScreenMask (1L<<0) -#define LockOnTimeoutMask (1L<<1) - -/* - * Parameters to be sent into session manager - */ - -/* - * Atoms for communicating configuration changes and state - */ -/* - * Defines needed for getting/setting the sm window property on the root - */ -#define PROP_DT_SM_WINDOW_INFO_ELEMENTS 2 -#define _XA_DT_SM_WINDOW_INFO "_DT_SM_WINDOW_INFO" - -/* - * Defines needed for getting the session manager state off it's window - */ -#define PROP_DT_SM_STATE_INFO_ELEMENTS 13 -#define _XA_DT_SM_STATE_INFO "_DT_SM_STATE_INFO" - -/* - * Defines needed for the screen saver list property. - */ -#define _XA_DT_SM_SAVER_INFO "_DT_SM_SAVER_INFO" - -/* - * Defines needed for the screen saver property - */ -#define PROP_DT_SM_SCREEN_INFO_ELEMENTS 5 -#define _XA_DT_SM_SCREEN_INFO "_DT_SM_SCREEN_INFO" - -/* - * Defines needed for the audio property - */ -#define PROP_DT_SM_AUDIO_INFO_ELEMENTS 4 -#define _XA_DT_SM_AUDIO_INFO "_DT_SM_AUDIO_INFO" - -/* - * Defines needed for the keyboard property - */ -#define PROP_DT_SM_KEYBOARD_INFO_ELEMENTS 3 -#define _XA_DT_SM_KEYBOARD_INFO "_DT_SM_KEYBOARD_INFO" - -/* - * Define needed for the font info property - */ -#define _XA_DT_SM_FONT_INFO "_DT_SM_FONT_INFO" - -/* - * Define needed for the font info property - */ -#define _XA_DT_SM_POINTER_INFO "_DT_SM_POINTER_INFO" - -/* - * Define needed for the preeditType info property - */ -#define _XA_DT_SM_PREEDIT_INFO "_DT_SM_PREEDIT_INFO" - -/* bit definitions for SmStateInfo.flags */ -#define SM_STATE_NONE 0 -#define SM_STATE_START (1L << 0) -#define SM_STATE_CONFIRM (1L << 1) -#define SM_STATE_COMPAT (1L << 2) -#define SM_STATE_SEND (1L << 3) -#define SM_STATE_COVER (1L << 4) /* Obsolete */ -#define SM_STATE_LOTOUT (1L << 5) /* Obsolete */ -#define SM_STATE_LOTOUTSTAT (1L << 6) - -#define SM_STATE_CYCLETIMEOUT (1L << 7) -#define SM_STATE_LOCKTIMEOUT (1L << 8) -#define SM_STATE_SAVERTIMEOUT (1L << 9) -#define SM_STATE_RANDOM (1L << 10) -#define SM_STATE_DISP_SESSION (1L << 11) - - -#define SM_STATE_ALL (SM_STATE_START | SM_STATE_CONFIRM |\ - SM_STATE_COMPAT | SM_STATE_SEND |\ - SM_STATE_COVER | SM_STATE_LOTOUT |\ - SM_STATE_LOTOUTSTAT | SM_STATE_CYCLETIMEOUT |\ - SM_STATE_LOCKTIMEOUT | SM_STATE_SAVERTIMEOUT |\ - SM_STATE_RANDOM | SM_STATE_DISP_SESSION) - - -/* - * typedef statements for structures to be returned - */ -typedef struct -{ - int flags; - int smStartState; - int smConfirmMode; - Boolean smCompatMode; - Boolean smSendSettings; - Boolean smCoverScreen; /* Obsolete */ - Boolean smLockOnTimeout; /* Obsolete */ - Boolean smLockOnTimeoutStatus; - int smCycleTimeout; - int smLockTimeout; - int smSaverTimeout; - Boolean smRandom; - Boolean smDisplaySpecific; /* If True, the currently running - session is for a specific display */ - -} SmStateInfo; - -typedef struct -{ - char *saverList; -} SmSaverInfo; - -typedef struct -{ - int flags; - int smTimeout; - int smInterval; - int smPreferBlank; - int smAllowExp; -} SmScreenInfo; - -typedef struct -{ - int flags; - int smBellPercent; - unsigned int smBellPitch; - unsigned int smBellDuration; -} SmAudioInfo; - - -typedef struct -{ - int flags; - int smKeyClickPercent; - int smGlobalAutoRepeat; -} SmKeyboardInfo; - -/* - * Function definitions - */ -extern Status _DtGetSmWindow(Display *, Window, Window *) ; -extern Status _DtGetSmState(Display *, Window, SmStateInfo *); -extern Status _DtSetSmState(Display *, Window, SmStateInfo *); -extern Status _DtGetSmSaver(Display *, Window, SmSaverInfo *); -extern void _DtSetSmSaver(Display *, Window, SmSaverInfo *); -extern Status _DtGetSmScreen(Display *, Window, Atom, SmScreenInfo *); -extern Status _DtGetSmAudio(Display *, Window, Atom, SmAudioInfo *); -extern Status _DtGetSmKeyboard(Display *, Window, Atom, SmKeyboardInfo *); -extern Status _DtGetSmFont(Display *, Window, Atom, char **); -extern Status _DtGetSmPointer(Display *, Window, Atom, char **); -extern Status _DtGetSmPreedit(Display *, Window, Atom, char **); - -#endif /* _SessionM_h */ - - - diff --git a/cde/lib/DtSvc/DtUtil1/SessionP.h b/cde/lib/DtSvc/DtUtil1/SessionP.h deleted file mode 100644 index e685dc57..00000000 --- a/cde/lib/DtSvc/DtUtil1/SessionP.h +++ /dev/null @@ -1,130 +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: SessionP.h /main/5 1998/07/30 12:11:06 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. * - */ -/*************************************<+>************************************* - ***************************************************************************** - ** - ** File: SessionP.h - ** - ** Description: Private header for Session Management routines - ** ----------- - ** - ******************************************************************* - ** (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 _SessionP_h -#define _SessionP_h - -/* - * include statements - */ - -/* - * define statements - */ - -/* - * typedef statements - */ - -/* - * Definition for the _DT_SM_WINDOW_INFO property. - */ -typedef struct -{ - unsigned long flags; - unsigned long smWindow; -} PropDtSmWindowInfo; - -/* - * Definition for the _DT_SM_STATE_INFO property - */ -typedef struct -{ - unsigned long flags; - unsigned long smStartState; - unsigned long smConfirmMode; - unsigned long smCompatMode; - unsigned long smSendSettings; - unsigned long smCoverScreen; - unsigned long smLockOnTimeout; - unsigned long smLockOnTimeoutStatus; - unsigned long smCycleTimeout; - unsigned long smLockTimeout; - unsigned long smSaverTimeout; - unsigned long smRandom; - unsigned long smDisplaySpecific; -} PropDtSmStateInfo; - -/* - * Definition for the _DT_SM_SCREEN_INFO property - */ -typedef struct -{ - unsigned long flags; - unsigned long smTimeout; - unsigned long smInterval; - unsigned long smPreferBlank; - unsigned long smAllowExp; -} PropDtSmScreenInfo; - -/* - * Definition for the _DT_SM_AUDIO_INFO property - */ -typedef struct -{ - unsigned long flags; - unsigned long smBellPercent; - unsigned long smBellPitch; - unsigned long smBellDuration; -} PropDtSmAudioInfo; - - -/* - * Definition for the _DT_SM_KEYBOARD_INFO property - */ -typedef struct -{ - unsigned long flags; - unsigned long smKeyClickPercent; - unsigned long smGlobalAutoRepeat; -} PropDtSmKeyboardInfo; - - -#endif /* _SessionP_h */ -/* Do not add anything after this endif. */ diff --git a/cde/lib/DtSvc/DtUtil1/Wsm.h b/cde/lib/DtSvc/DtUtil1/Wsm.h deleted file mode 100644 index 7e37b3a8..00000000 --- a/cde/lib/DtSvc/DtUtil1/Wsm.h +++ /dev/null @@ -1,189 +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: Wsm.h /main/5 1996/05/20 16:08:50 drk $ - * - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. - * (c) Copyright 1993,1994,1996 International Business Machines Corp. - * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. - * (c) Copyright 1993,1994,1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef _Dt_Wsm_h -#define _Dt_Wsm_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -#define DtWSM_REASON_ADD 0 -#define DtWSM_REASON_DELETE 1 -#define DtWSM_REASON_BACKDROP 2 -#define DtWSM_REASON_TITLE 3 -#define DtWSM_REASON_CURRENT 4 - - -/* - * Types - */ - -/* Workspace property information */ - -typedef struct _DtWsmWorkspaceInfo { - Atom workspace; - unsigned long bg; - unsigned long fg; - Atom backdropName; - int colorSetId; - char *pchTitle; - Window *backdropWindows; - int numBackdropWindows; -} DtWsmWorkspaceInfo; - - -/* Workspace modified callback reasons */ - -typedef int DtWsmWsReason; - -/* Workspace callback context (opaque) */ - -typedef struct _DtWsmCBContext * DtWsmCBContext; - -/* Workspace callback prototype */ - -typedef void (*DtWsmWsChangeProc)( - Widget widget, - Atom aWs, - XtPointer client_data); - -/* Workspace modified callback prototype */ - -typedef void (*DtWsmWsModifiedProc)( - Widget widget, - Atom aWs, - DtWsmWsReason reason, - XtPointer client_data); - - -/* - * Functions - */ - -extern void DtWsmAddWorkspaceFunctions( - Display *display, - Window client); - -extern void DtWsmRemoveWorkspaceFunctions( - Display *display, - Window client); - -extern int DtWsmGetWorkspaceInfo( - Display *display, - Window root, - Atom aWS, - DtWsmWorkspaceInfo **ppWsInfo); - -extern void DtWsmFreeWorkspaceInfo( - DtWsmWorkspaceInfo *pWsInfo); - -extern int DtWsmGetWorkspaceList( - Display *display, - Window root, - Atom **ppWorkspaceList, - int *pNumWorkspaces); - -extern int DtWsmGetCurrentWorkspace( - Display *display, - Window root, - Atom *paWorkspace); - -extern DtWsmCBContext DtWsmAddCurrentWorkspaceCallback( - Widget widget, - DtWsmWsChangeProc ws_change, - XtPointer client_data); - -extern void DtWsmRemoveWorkspaceCallback( - DtWsmCBContext pCbCtx); - -extern int DtWsmSetCurrentWorkspace( - Widget widget, - Atom aWs); - -extern int DtWsmGetWorkspacesOccupied( - Display *display, - Window window, - Atom **ppaWs, - unsigned long *pNumWs); - -extern void DtWsmSetWorkspacesOccupied( - Display *display, - Window window, - Atom *pWsHints, - unsigned long numHints); - -extern void DtWsmOccupyAllWorkspaces( - Display *display, - Window window); - -extern DtWsmCBContext DtWsmAddWorkspaceModifiedCallback( - Widget widget, - DtWsmWsModifiedProc ws_modified, - XtPointer client_data); - -extern Window DtWsmGetCurrentBackdropWindow( - Display *display, - Window root); - -extern int DtWsmSetWorkspaceTitle( - Widget widget, - Atom aWs, - char *title); - -extern int DtWsmChangeBackdrop( - Display *display, - Window root, - char *path, - Pixmap pixmap); - -extern int DtWsmAddWorkspace( - Widget widget, - char *title); - -extern int DtWsmDeleteWorkspace( - Widget widget, - Atom aWs); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Wsm_h */ diff --git a/cde/lib/DtSvc/DtUtil1/WsmM.h b/cde/lib/DtSvc/DtUtil1/WsmM.h deleted file mode 100644 index a9bd9ee0..00000000 --- a/cde/lib/DtSvc/DtUtil1/WsmM.h +++ /dev/null @@ -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 - */ -/*****************************<+>************************************* - ********************************************************************* - ** - ** File: WsmM.h - ** - ** RCS: $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $ - ** Project: DT Workspace Manager - ** - ** Description: Defines parameters necessary for messaging with - ** the workspace 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 _Dt_WsmM_h -#define _Dt_WsmM_h - -/* - * Messaging definitions - */ - -/* Workspace manager tool class (for old messages) */ -#define DtWM_TOOL_CLASS "WORKSPACEMGR" - -/* Workspace manager tool class (for new messages) */ -#define DtWSM_TOOL_CLASS "WORKSPACE_MANAGER" - -/* Workspace manager tool class (for front panel messages) */ -#define DtFP_TOOL_CLASS "FRONTPANEL" - -/* Request from dtstyle to change backdrop */ -#define DtWM_BACKDROP_CHANGE "BACKDROP_CHANGE" - -/* Request from session manager to unlock the display (depress button) */ -#define DtWM_UNLOCK_DISPLAY "UNLOCK_DISPLAY" - -/* Request from session manager to cancel an exit (depress button) */ -#define DtWM_CANCEL_EXIT "CANCEL_EXIT" - -/* Request from session manager to retore the front panel to default state */ -#define DtWM_RESTORE_PANEL "RESTORE_PANEL" - -/* Notification from Workspace manager of a new workspace */ -#define DtWSM_NEW_WORKSPACE "ACTIVE_WORKSPACE" - -#define DtWSM_NEW_WORKSPACE_ARG_NAME 0 -#define DtWSM_NEW_WORKSPACE_ARG_ATOM 1 - -/* Request to set the current workspace */ -#define DtWSM_SET_WORKSPACE "SET_WORKSPACE" - -#define DtWSM_SET_WORKSPACE_ARG_ATOM 0 - -/* Request to change the title of a workspace */ -#define DtWSM_SET_WORKSPACE_TITLE "SET_WORKSPACE_TITLE" - -#define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM 0 -#define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE 1 - -/* Request to add a workspace */ -#define DtWSM_ADD_WORKSPACE "ADD_WORKSPACE" - -#define DtWSM_ADD_WORKSPACE_ARG_TITLE 0 - -/* Request to delete a workspace */ -#define DtWSM_DELETE_WORKSPACE "DELETE_WORKSPACE" - -#define DtWSM_DELETE_WORKSPACE_ARG_ATOM 0 - -/* Notification from Workspace manager of a modified workspace */ -#define DtWSM_MODIFY_WORKSPACE "MODIFY_WORKSPACE" - -#define DtWSM_MODIFY_WORKSPACE_ARG_ATOM 0 -#define DtWSM_MODIFY_WORKSPACE_ARG_TYPE 1 - -#define DtWSM_MODIFY_WORKSPACE_TYPE_ADD 0 -#define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE 1 -#define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP 2 -#define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE 3 -#define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE 4 - -/* Notification from Workspace manager of a modified workspace */ -#define DtWSM_MARQUEE_SELECTION "MARQUEE_SELECTION" - -#define DtWSM_MARQUEE_SELECTION_ARG_TYPE 0 -#define DtWSM_MARQUEE_SELECTION_ARG_X 1 -#define DtWSM_MARQUEE_SELECTION_ARG_Y 2 -#define DtWSM_MARQUEE_SELECTION_ARG_WIDTH 3 -#define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT 4 - -#define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN 1 -#define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE 2 -#define DtWSM_MARQUEE_SELECTION_TYPE_END 3 -#define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL 4 - -/* - * Macros to set and fetch argument fields into a message - * - * (NOTE: Since sending the request breaks out the zero'th - * field, there is a difference of one in these two macros.) - */ -#define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value)) -#define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)]) - - -#endif /* _Dt_WsmM_h */ -/* Do not add anything after this endif. */ diff --git a/cde/lib/DtSvc/DtUtil1/WsmP.h b/cde/lib/DtSvc/DtUtil1/WsmP.h deleted file mode 100644 index 9d32e116..00000000 --- a/cde/lib/DtSvc/DtUtil1/WsmP.h +++ /dev/null @@ -1,848 +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: WsmP.h /main/8 1996/05/20 16:08:59 drk $ */ - -/************************************<+>************************************* - **************************************************************************** - ** - ** File: WsmP.h - ** - ** Project: DT Workspace Manager - ** - ** Description: Defines PRIVATE properties, structures, and - ** parameters used for communication with the - ** workspace manager. - ** - ** (c) Copyright 1996 Digital Equipment Corporation. - ** (c) Copyright 1993,1994,1996 Hewlett-Packard Company. - ** (c) Copyright 1993,1994,1996 International Business Machines Corp. - ** (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. - ** (c) Copyright 1993,1994,1996 Novell, Inc. - ** (c) Copyright 1996 FUJITSU LIMITED. - ** (c) Copyright 1996 Hitachi. - ** - **************************************************************************** - ************************************<+>*************************************/ -#ifndef _Dt_WsmP_h -#define _Dt_WsmP_h -#include
-#include -#include
-#include - -/********************************************************************** - * Workspace atom names - **********************************************************************/ -#define _XA_DT_MARQUEE_SELECTION "_DT_MARQUEE_SELECTION" -#define _XA_DT_WORKSPACE_EMBEDDED_CLIENTS \ - "_DT_WORKSPACE_EMBEDDED_CLIENTS" -#define _XA_DT_WM_REQUEST "_DT_WM_REQUEST" -#define _XA_DT_WORKSPACE_HINTS "_DT_WORKSPACE_HINTS" -#define _XA_DT_WORKSPACE_PRESENCE "_DT_WORKSPACE_PRESENCE" -#define _XA_DT_WORKSPACE_INFO "_DT_WORKSPACE_INFO" -#define _XA_DT_WM_HINTS "_DT_WM_HINTS" -#define _XA_DT_WORKSPACE_LIST "_DT_WORKSPACE_LIST" -#define _XA_DT_WORKSPACE_CURRENT "_DT_WORKSPACE_CURRENT" - - -/********************************************************************** - * Name to request ``all'' workspaces (for a persistent window) - **********************************************************************/ - -#define _XA_DT_WORKSPACE_ALL "all" - - -/********************************************************************** - * Workspace function definitions - **********************************************************************/ -#define DtWM_FUNC_OCCUPY_WS DtWM_FUNCTION_OCCUPY_WS -#define DtWM_FUNC_ALL DtWM_FUNC_OCCUPY_WS - -/********************************************************************** - * Workspace property information - **********************************************************************/ - -/* - * - * NOTE: The "(client -> dtwm)" indication calls out the direction - * of information flow. In this case, the client writes the - * property and dtwm reads the property. - * - * - * _DT_WORKSPACE_HINTS (client -> dtwm) - * - * This property is a list of atoms placed by a client on its - * top level window(s). Each atom is an "interned" string name - * for a workspace. The workspace manager looks at this property - * when it manages the window (e.g. when the window is mapped) - * and will place the window in the workspaces listed. - * - * _DT_WORKSPACE_PRESENCE (dtwm -> client) - * - * This property is a list of atoms placed on a client by dtwm. - * Each atom is an "interned" string name for a workspace. This - * property lists the workspaces that this client lives in. - * - * _DT_WORKSPACE_LIST (dtwm -> clients) - * - * This property is a list of atoms. Each atom represents a - * name of a workspace. The list is in "order" such that - * the first element is for the first workspace and so on. - * This proeprty is placed on the mwm ("wmWindow") window. - * - * _DT_WORKSPACE_CURRENT (dtwm -> clients) - * - * This property is a single atom, representing the current - * workspace. It is updated each time the workspace changes. - * This proeprty is placed on the mwm window. - * - * _DT_WORKSPACE_INFO_ (dtwm -> clients) - * - * There is one property of this form for each workspace in - * _DT_WORKSPACE_LIST. This property is a sequence of ISO-LATIN1 - * NULL-terminated strings representing the elements in a - * structure. This information was formerly in _DT_WORKSPACE_INFO - * but was broken out to allow for extensibility. - * This proeprty is placed on the mwm window. - * - * _DT_WM_HINTS (client -> dtwm) - * - * This property requests specific window/workspace management behavior. - * The functions member of the property allows a client to enable or - * disable workspace management functions. The behavior member is - * used to indicate front panels and slide-ups. - * - */ - - -/********************************************************************** - * Property structures - **********************************************************************/ - -typedef struct _DtWmHints -{ - long flags; /* marks valid fields */ - long functions; /* special dtwm functions */ - long behaviors; /* special dtwm behaviors */ - Window attachWindow; /* (reserved) */ -} DtWmHints; - -/* DtWmHints "flags" definitions */ -#define DtWM_HINTS_FUNCTIONS (1L << 0) -#define DtWM_HINTS_BEHAVIORS (1L << 1) -#define DtWM_HINTS_ATTACH_WINDOW (1L << 2) /* (reserved) */ - -/* DtWmHints "functions" definitions */ -#define DtWM_FUNCTION_ALL (1L << 0) -#define DtWM_FUNCTION_OCCUPY_WS (1L << 16) - -/* DtWmHints "behaviors" definitions */ -#define DtWM_BEHAVIOR_PANEL (1L << 1) -#define DtWM_BEHAVIOR_SUBPANEL (1L << 2) -#define DtWM_BEHAVIOR_SUB_RESTORED (1L << 3) - -/********************************************************************** - * Session atom names - **********************************************************************/ -#define _XA_DT_SESSION_HINTS "_DT_SESSION_HINTS" -#define _XA_DT_SAVE_MODE "_DT_SAVE_MODE" -#define _XA_DT_RESTORE_MODE "_DT_RESTORE_MODE" -#define _XA_DT_RESTORE_DIR "_DT_RESTORE_DIR" -#define _XA_DT_SM_WM_PROTOCOL "_DT_SM_WM_PROTOCOL" -#define _XA_DT_SM_START_ACK_WINDOWS "_DT_SM_START_ACK_WINDOWS" -#define _XA_DT_SM_STOP_ACK_WINDOWS "_DT_SM_STOP_ACK_WINDOWS" -#define _XA_DT_WM_WINDOW_ACK "_DT_WM_WINDOW_ACK" -#define _XA_DT_WM_EXIT_SESSION "_DT_WM_EXIT_SESSION" -#define _XA_DT_WM_LOCK_DISPLAY "_DT_WM_LOCK_DISPLAY" -#define _XA_DT_WM_READY "_DT_WM_READY" - -/********************************************************************** - * Workspace special character definitions - **********************************************************************/ -#define DTWM_CH_ESC_NEXT "\\" - -/********************************************************************** - * Marquee selection callback prototype - **********************************************************************/ -typedef void (*DtWsmMarqueeSelectionProc) (); -/* - Widget widget; - int type; - Position x, y; - Dimension width, height; - XtPointer client_data; -*/ - -/********************************************************************** - * Marquee Select - **********************************************************************/ - -#define DT_WSM_MARQUEE_SELECTION_TYPE_BEGIN 1 -#define DT_WSM_MARQUEE_SELECTION_TYPE_CONTINUE 2 -#define DT_WSM_MARQUEE_SELECTION_TYPE_END 3 -#define DT_WSM_MARQUEE_SELECTION_TYPE_CANCEL 4 - -/********************************************************************** - * Workspace request definitions - * - * NOTE: These functions do not necessarily match the other - * window manager f.* functions! - **********************************************************************/ -#define DTWM_REQ_CHANGE_BACKDROP "f.change_backdrop" -#define DTWM_REQ_RESTART "f.restart" - -/********************************************************************** - * Workspace request parameter definitions - **********************************************************************/ -#define DTWM_REQP_BACKDROP_NONE "NoBackdrop" -#define DTWM_REQP_NO_CONFIRM "-noconfirm" - -/********************************************************************** - * Resource converter definitions - * - * NOTE: This has been lifted from mwm. - * Please keep syncronized with the current version of mwm/dtwm. - * (See WmGlobal.h) - **********************************************************************/ - -/* icon placement values (iconPlacement, ...): */ -#define ICON_PLACE_LEFT_PRIMARY (1L << 0) -#define ICON_PLACE_RIGHT_PRIMARY (1L << 1) -#define ICON_PLACE_TOP_PRIMARY (1L << 2) -#define ICON_PLACE_BOTTOM_PRIMARY (1L << 3) -#define ICON_PLACE_LEFT_SECONDARY (1L << 4) -#define ICON_PLACE_RIGHT_SECONDARY (1L << 5) -#define ICON_PLACE_TOP_SECONDARY (1L << 6) -#define ICON_PLACE_BOTTOM_SECONDARY (1L << 7) -#define ICON_PLACE_EDGE (1L << 8) -#define ICON_PLACE_TIGHT (1L << 9) -#define ICON_PLACE_RESERVE (1L << 10) - -/********************************************************************** - * Workspace property information - **********************************************************************/ - -/* - * - * NOTE: The "(client -> dtwm)" indication calls out the direction - * of information flow. In this case, the client writes the - * property and dtwm reads the property. - * - * _DT_WM_REQUEST (client -> dtwm) - * - * This property of type string that is used to communication - * function requests to dtwm. This property is placed on the mwm - * window. Dtwm listens for changes to this property and dequeues - * requests off the top of the list. Requests are NULL-terminated - * strings in the format: - * - * - * - * Each request ends with a literal '\0' character to insure - * separation from the next request. - * - * Clients must always add requests to the end of the property - * (mode=PropModeAppend). Use of convenience routines is - * recommended since they take care of proper formatting of the - * requests. - * - */ - - -/********************************************************************** - * Property structures - **********************************************************************/ - -/* Internal form of this property */ -typedef struct _DtWorkspaceHints -{ - long version; /* indicates structure changes */ - long flags; /* marks valid fields */ - long wsflags; /* special workspace information */ - long numWorkspaces; /* number of workspaces */ - Atom * pWorkspaces; /* list of atoms for workspaces */ -} DtWorkspaceHints; - -/* DtWorkspaceHints "flags" definitions */ -#define DT_WORKSPACE_HINTS_WSFLAGS (1L << 0) - /* The following definitions enables both the numWorkspaces - and pWorkspaces fields */ -#define DT_WORKSPACE_HINTS_WORKSPACES (1L << 1) - -/* DtWorkspaceHints "wsflags" definitions */ -#define DT_WORKSPACE_FLAGS_OCCUPY_ALL (1L << 0) - -/********************************************************************** - * Marquee Selection Structures - **********************************************************************/ -typedef struct _DtMarqueeSelectData -{ - long state; /* current property state */ - Position x; /* NW corner of select area */ - Position y; /* NW corner of select area */ - Dimension width; /* size of select area */ - Dimension height; /* size of select area */ -} DtMarqueeSelectData; - -typedef struct _DtMarqueeSelectProp -{ - long state; /* current property state */ - long x; /* NW corner of select area */ - long y; /* NW corner of select area */ - long width; /* size of select area */ - long height; /* size of select area */ -} DtMarqueeSelectProperty; - -/********************************************************************** - * Marquee Selection Definitions - **********************************************************************/ -#define DT_MARQUEE_SELECT_BEGIN 1 -#define DT_MARQUEE_SELECT_CONTINUE 2 -#define DT_MARQUEE_SELECT_END 3 -#define DT_MARQUEE_SELECT_CANCEL 4 - -/********************************************************************** - * Workspace change callback context (opaque) - **********************************************************************/ -typedef void (*DtWsmCBProc) (); -struct _DtWsmCBContext -{ - Tt_pattern pattern; - Widget widget; - DtWsmCBProc ws_cb; - XtPointer client_data; - XtPointer nested_context; -}; - -/********************************************************************** - * Convenience Routines - **********************************************************************/ - -/*************************************<->************************************* - * - * int _DtGetMwmWindow (display, root, pMwmWindow) - * - * - * Description: - * ----------- - * Get the Motif Window manager window - * - * - * Inputs: - * ------ - * display - display - * root - root window of screen - * pMwmWindow - pointer to a window (to be returned) - * - * Outputs: - * -------- - * *pMwmWindow - mwm window id, if successful - * Return - status from XGetWindowProperty - * - * Comments: - * -------- - * This can fail if mwm is not managing the screen for the root window - * passed in. - * - *************************************<->***********************************/ -extern int -_DtGetMwmWindow( - Display *display, - Window root, - Window *pMwmWindow) ; - - -/*************************************<->************************************* - * - * int _DtGetEmbeddedClients (display, root, ppEmbeddedClients, - * pNumEmbeddedClients) - * - * - * Description: - * ----------- - * Get the contents of the _DT_WORKSPACE_EMBEDDED_CLIENTS property - * from a root window. This is a list (array) of top-level windows that - * are embedded in the front panel of the window manager. They would - * not be picked up ordinarily by a session manager in a normal - * search for top-level windows because they are reparented to - * the front panel which itself is a top-level window. - * - * - * Inputs: - * ------ - * display - display - * root - root window to get info from - * ppEmbeddedClients - pointer to a pointer (to be returned) - * pNumEmbeddedClients - pointer to a number (to be returned) - * - * Outputs: - * ------- - * *ppEmbeddedClients - pointer to a array of window IDs (top-level - * windows for embedded clients) - * (NOTE: This should be freed using XFree) - * *pNumEmbeddedClients- number of window IDs in array - * Return - Success if property fetched ok. - * Failure returns are from XGetWindowProperty - * - * Comments: - * -------- - * Use XFree to free the returned data. - * - *************************************<->***********************************/ -extern int -_DtGetEmbeddedClients( - Display *display, - Window root, - Atom **ppEmbeddedClients, - unsigned long *pNumEmbeddedClients ); - - -/*************************************<->************************************* - * - * int _DtWmRestart (display, root) - * - * - * Description: - * ----------- - * Requests the window manager to restart itself - * - * - * Inputs: - * ------ - * display - display - * root - root window for screen - * - * Returns: - * -------- - * Success if request was sent - * - * Comments: - * --------- - * - *************************************<->***********************************/ -extern int -_DtWmRestart( - Display *display, - Window root) ; - -/*************************************<->************************************* - * - * int _DtWsmChangeBackdrop (display, root, path, pixmap) - * - * - * Description: - * ----------- - * Request the HP DT workspace manager to change the backdrop - * - * - * Inputs: - * ------ - * display - display - * root - root window of screen - * path - file path to bitmap file - * pixmap - pixmap id of backdrop pixmap - * - * Returns: - * -------- - * Success if request sent - * - *************************************<->***********************************/ -extern int -_DtWsmChangeBackdrop ( - Display *display, - Window root, - char *path, - Pixmap pixmap); - -/*************************************<->************************************* - * - * _DtWmCvtStringToIPlace (args, numArgs, fromVal, toVal) - * - * - * Description: - * ----------- - * This function converts a string to an icon placement scheme description. - * - * - * Inputs: - * ------ - * args = NULL (don't care) - * - * numArgs = 0 (don't care) - * - * fromVal = resource value to convert - * - * - * Outputs: - * ------- - * toVal = descriptor to use to return converted value - * - *************************************<->***********************************/ - -extern void -_DtWmCvtStringToIPlace ( - XrmValue *args, - Cardinal numArgs, - XrmValue *fromVal, - XrmValue *toVal); - - -/*************************************<->************************************* - * - * Boolean _DtWsmIsBackdropWindow (display, screen_num, window) - * - * - * Description: - * ----------- - * Returns true if the window passed in is a backdrop window. - * - * - * Inputs: - * ------ - * display - display - * screen_num - number of screen we're interested in - * window - window we want to test - * - * Outputs: - * ------- - * Return - True if window is a backdrop window - * False otherwise. - * - * Comments: - * -------- - * - *************************************<->***********************************/ -Boolean -_DtWsmIsBackdropWindow( - Display *display, - int screen_num, - Window window ); - -/*************************************<->************************************* - * - * int DtWsmSetWorkspaceTitle (widget, aWs, pchNewName) - * - * - * Description: - * ----------- - * Rename a workspace - * - * - * Inputs: - * ------ - * widget - a widget - * aWs - atom of workspace - * pchNewName - new name for the workspace - * - * Outputs: - * -------- - * Return - 1 (*not* Success) if communication to workspace manager - * was successful. - * - * Comments: - * --------- - * The odd-ball successful return value is a CDE 1.0 bug being - * preserved for backward compatibility. - * - *************************************<->***********************************/ -int -_DtWsmSetWorkspaceTitle ( - Widget widget, - Atom aWs, - char * pchNewName); - -/*************************************<->************************************* - * - * int _DtWsmDeleteWorkspace (widget, aWs) - * - * - * Description: - * ----------- - * Delete a workspace - * - * - * Inputs: - * ------ - * widget - a widget (with a window!) - * aWs - atom of workspace to delete - * - * Outputs: - * -------- - * Return - 1 (*not* Success) if communication to workspace manager - * was successful. - * - * Comments: - * --------- - * The odd-ball successful return value is a CDE 1.0 bug being - * preserved for backward compatibility. - * - *************************************<->***********************************/ -int -_DtWsmDeleteWorkspace ( - Widget widget, - Atom aWs); - - -/*************************************<->************************************* - * - * int _DtWsmCreateWorkspace (widget, pchTitle) - * - * - * Description: - * ----------- - * Add a workspace - * - * - * Inputs: - * ------ - * widget - a widget (with a window!) - * pchTitle - user-visible title of the workspace - * - * Outputs: - * -------- - * Return - 1 (*not* Success) if communication to workspace manager - * was successful. - * - * Comments: - * --------- - * The odd-ball successful return value is a CDE 1.0 bug being - * preserved for backward compatibility. - * - *************************************<->***********************************/ -int -_DtWsmCreateWorkspace (Widget widget, char * pchTitle); - -/*************************************<->************************************* - * - * _DtWsmSetWorkspaceHints (display, window, pWsHints) - * - * - * Description: - * ----------- - * Set the contents of the _DT_WORKSPACE_HINTS property on a window - * - * - * Inputs: - * ------ - * display - display - * window - window to get hints from - * pWsHints - pointer to workspace hints - * - * Comments: - * --------- - * The internal form of the property is a structure. The structure - * must be unwound and turned into a simple array of "long"s before - * being written out. - * - * This function currently only deals with version 1 of the property - * structure. The passed in pWsHints->version is ignored. - * - *************************************<->***********************************/ -extern void -_DtWsmSetWorkspaceHints( - Display *display, - Window window, - DtWorkspaceHints *pWsHints); - - -/*************************************<->************************************* - * - * int _DtWsmGetWorkspaceHints (display, window, ppWsHints) - * - * - * Description: - * ----------- - * Get the contents of the _DT_WORKSPACE_HINTS property from a window - * - * - * Inputs: - * ------ - * display - display - * window - window to get hints from - * ppWsHints - pointer to pointer to workspace hints - * - * Outputs: - * *ppWsHints - allocated workspace hints data. - * - * Comments: - * --------- - * The internal form of the property is a structure. The property - * is read in and packed into data allocated for the structure. - * Free the workspace hints by calling _DtWsmFreeWorkspaceHints. - * - * This function currently only deals with version 1 of the property - * structure. - * - *************************************<->***********************************/ -extern int -_DtWsmGetWorkspaceHints( - Display *display, - Window window, - DtWorkspaceHints **ppWsHints); - -/*************************************<->************************************* - * - * _DtWsmFreeWorkspaceHints (pWsHints) - * - * - * Description: - * ----------- - * Free a workspace hints structure returned from _DtWsmGetWorkspaceHints - * - * Inputs: - * ------ - * pWsHints - pointer to workspace hints - * - * Outputs: - * - * Comments: - * --------- - *************************************<->***********************************/ -extern void -_DtWsmFreeWorkspaceHints( - DtWorkspaceHints *pWsHints); - -/*************************************<->************************************* - * - * DtWsmCBContext * _DtWsmAddMarqueeSelectionCallback (widget, - * marquee_select, - * client_data) - * - * - * Description: - * ----------- - * Register a function to be called when a marquee selection is made - * - * - * Inputs: - * ------ - * widget - widget for this client - * marquee_select - function to call for marquee select - * client_data - additional data to pass back to client when called. - * - * Outputs: - * -------- - * Return - ptr to callback context data (opaque) - * - * Comments: - * --------- - * The callback context data ptr should be saved if you intend to - * removed this callback at some point in the future. - * - *************************************<->***********************************/ -DtWsmCBContext -_DtWsmAddMarqueeSelectionCallback ( - Widget widget, - DtWsmMarqueeSelectionProc marquee_select, - XtPointer client_data); - -/*************************************<->************************************* - * - * _DtWsmSetDtWmHints (display, window, pHints) - * - * - * Description: - * ----------- - * Set the contents of the _DT_WM_HINTS property on a window - * - * - * Inputs: - * ------ - * display - display - * window - window to set hints on - * pHints - pointer the hints to set - * - * Comments: - * --------- - * No error checking - * - *************************************<->***********************************/ -extern void -_DtWsmSetDtWmHints( Display *display, - Window window, - DtWmHints *pHints); - -/*************************************<->************************************* - * - * int _DtWsmGetDtWmHints (display, window, ppDtWmHints) - * - * - * Description: - * ----------- - * Get the contents of the _DT_WM_HINTS property on a window - * - * - * Inputs: - * ------ - * display - display - * window - window to get hints from - * ppDtWmHints - pointer to a pointer to return - * - * Outputs: - * -------- - * *ppDtWmHints-points to the DtWmHints structure retrieved from - * the window (NOTE: This should be freed using XFree) - * - * Comments: - * --------- - * - *************************************<->***********************************/ -extern int -_DtWsmGetDtWmHints( - Display *display, - Window window, - DtWmHints **ppDtWmHints); - -/*************************************<->************************************* - * - * _DtWsmSelectionNameForScreen (scr) - * - * Description: - * ----------- - * Returns a string containing the selection name used for - * communication with the workspace manager on this screen - * - * - * Inputs: - * ------ - * scr - number of screen - * - * Outputs: - * -------- - * Return - ptr to string with selection name (free with XtFree) - * - * Comments: - * --------- - * Assumes the screen number is < 1000. - * - *************************************<->***********************************/ -extern String -_DtWsmSelectionNameForScreen (int scr); - -extern Tt_callback_action -_DtWsmConsumeReply ( - Tt_message msg, - Tt_pattern pat ); - -#endif /* _Dt_WsmP_h */ -/* Do not add anything after this endif. */ diff --git a/cde/lib/DtSvc/DtUtil2/ChkpntP.h b/cde/lib/DtSvc/DtUtil2/ChkpntP.h deleted file mode 100644 index 5430a4d6..00000000 --- a/cde/lib/DtSvc/DtUtil2/ChkpntP.h +++ /dev/null @@ -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 -#include -#include - -/*************************************************************************/ -/************* 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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Collate.h b/cde/lib/DtSvc/DtUtil2/Collate.h deleted file mode 100644 index 4a9cc379..00000000 --- a/cde/lib/DtSvc/DtUtil2/Collate.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/CommandM.h b/cde/lib/DtSvc/DtUtil2/CommandM.h deleted file mode 100644 index e79879a6..00000000 --- a/cde/lib/DtSvc/DtUtil2/CommandM.h +++ /dev/null @@ -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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Connect.h b/cde/lib/DtSvc/DtUtil2/Connect.h deleted file mode 100644 index 2266c63d..00000000 --- a/cde/lib/DtSvc/DtUtil2/Connect.h +++ /dev/null @@ -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
-#include -#include - -#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. */ diff --git a/cde/lib/DtSvc/DtUtil2/DataTypes.h b/cde/lib/DtSvc/DtUtil2/DataTypes.h deleted file mode 100644 index 8d4694bb..00000000 --- a/cde/lib/DtSvc/DtUtil2/DataTypes.h +++ /dev/null @@ -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 - -typedef XtPointer Pointer; - -#endif /* _Dt_DataTypes_h */ -/* Do not add anything after this endif. */ diff --git a/cde/lib/DtSvc/DtUtil2/DtGetMessageP.h b/cde/lib/DtSvc/DtUtil2/DtGetMessageP.h deleted file mode 100644 index ebbae220..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtGetMessageP.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/DtNlUtils.h b/cde/lib/DtSvc/DtUtil2/DtNlUtils.h deleted file mode 100644 index 6a20789c..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtNlUtils.h +++ /dev/null @@ -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 -#include -#include -#include -#include -#include -#endif - -#include - - -#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); - diff --git a/cde/lib/DtSvc/DtUtil2/DtP.h b/cde/lib/DtSvc/DtUtil2/DtP.h deleted file mode 100644 index 0964aaee..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtP.h +++ /dev/null @@ -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 /* for protocol typedefs */ -#include - -#include
-#include
- -#include -#include - -#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 */ diff --git a/cde/lib/DtSvc/DtUtil2/DtPStrings.h b/cde/lib/DtSvc/DtUtil2/DtPStrings.h deleted file mode 100644 index d2058d4c..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtPStrings.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/DtosP.h b/cde/lib/DtSvc/DtUtil2/DtosP.h deleted file mode 100644 index 866da797..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtosP.h +++ /dev/null @@ -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 /* 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 -#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 */ - - - - diff --git a/cde/lib/DtSvc/DtUtil2/DtpadM.h b/cde/lib/DtSvc/DtUtil2/DtpadM.h deleted file mode 100644 index 2ffd8c64..00000000 --- a/cde/lib/DtSvc/DtUtil2/DtpadM.h +++ /dev/null @@ -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*/ diff --git a/cde/lib/DtSvc/DtUtil2/EnvControlI.h b/cde/lib/DtSvc/DtUtil2/EnvControlI.h deleted file mode 100644 index 34fca5e4..00000000 --- a/cde/lib/DtSvc/DtUtil2/EnvControlI.h +++ /dev/null @@ -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- 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 **********************/ diff --git a/cde/lib/DtSvc/DtUtil2/EnvControlP.h b/cde/lib/DtSvc/DtUtil2/EnvControlP.h deleted file mode 100644 index 3b1f372f..00000000 --- a/cde/lib/DtSvc/DtUtil2/EnvControlP.h +++ /dev/null @@ -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 **********************/ diff --git a/cde/lib/DtSvc/DtUtil2/FileM.h b/cde/lib/DtSvc/DtUtil2/FileM.h deleted file mode 100644 index aed4a603..00000000 --- a/cde/lib/DtSvc/DtUtil2/FileM.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/FileUtil.h b/cde/lib/DtSvc/DtUtil2/FileUtil.h deleted file mode 100644 index 5e0bb6a7..00000000 --- a/cde/lib/DtSvc/DtUtil2/FileUtil.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/GetDispRes.h b/cde/lib/DtSvc/DtUtil2/GetDispRes.h deleted file mode 100644 index aab8b4e4..00000000 --- a/cde/lib/DtSvc/DtUtil2/GetDispRes.h +++ /dev/null @@ -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 **********************/ diff --git a/cde/lib/DtSvc/DtUtil2/HashP.h b/cde/lib/DtSvc/DtUtil2/HashP.h deleted file mode 100644 index 0c4b6068..00000000 --- a/cde/lib/DtSvc/DtUtil2/HashP.h +++ /dev/null @@ -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 - -#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 */ - - - diff --git a/cde/lib/DtSvc/DtUtil2/HourGlass.h b/cde/lib/DtSvc/DtUtil2/HourGlass.h deleted file mode 100644 index f6ad47ef..00000000 --- a/cde/lib/DtSvc/DtUtil2/HourGlass.h +++ /dev/null @@ -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 */ - - - diff --git a/cde/lib/DtSvc/DtUtil2/IconFile.h b/cde/lib/DtSvc/DtUtil2/IconFile.h deleted file mode 100644 index 3afae96a..00000000 --- a/cde/lib/DtSvc/DtUtil2/IconFile.h +++ /dev/null @@ -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 -#include -#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 */ - - - diff --git a/cde/lib/DtSvc/DtUtil2/Indicator.h b/cde/lib/DtSvc/DtUtil2/Indicator.h deleted file mode 100644 index 9b3c3a7c..00000000 --- a/cde/lib/DtSvc/DtUtil2/Indicator.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/IndicatorM.h b/cde/lib/DtSvc/DtUtil2/IndicatorM.h deleted file mode 100644 index e4e1d594..00000000 --- a/cde/lib/DtSvc/DtUtil2/IndicatorM.h +++ /dev/null @@ -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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Info.h b/cde/lib/DtSvc/DtUtil2/Info.h deleted file mode 100644 index d3e65b7f..00000000 --- a/cde/lib/DtSvc/DtUtil2/Info.h +++ /dev/null @@ -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_ */ diff --git a/cde/lib/DtSvc/DtUtil2/LocaleXlate.h b/cde/lib/DtSvc/DtUtil2/LocaleXlate.h deleted file mode 100644 index 974282b6..00000000 --- a/cde/lib/DtSvc/DtUtil2/LocaleXlate.h +++ /dev/null @@ -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 ********/ diff --git a/cde/lib/DtSvc/DtUtil2/Lock.h b/cde/lib/DtSvc/DtUtil2/Lock.h deleted file mode 100644 index d2da1948..00000000 --- a/cde/lib/DtSvc/DtUtil2/Lock.h +++ /dev/null @@ -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)) { - - _DtReleaseLock (display, MY_LOCK); - } - else { - - } -*/ - -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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Message.h b/cde/lib/DtSvc/DtUtil2/Message.h deleted file mode 100644 index 6d6e74e9..00000000 --- a/cde/lib/DtSvc/DtUtil2/Message.h +++ /dev/null @@ -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
-#include
- -#include
- -/* This header file is a modifed version of that - * provides compatibility between the BMS messaging and the new - * ICCCM messaging used in DT. - * - * The following symbols that were defined in 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: [args ...] - * Reply message: [args ...] - * Notify message: [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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Msg.h b/cde/lib/DtSvc/DtUtil2/Msg.h deleted file mode 100644 index 3c8fe922..00000000 --- a/cde/lib/DtSvc/DtUtil2/Msg.h +++ /dev/null @@ -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 -#include
- -/* - * _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 ****/ diff --git a/cde/lib/DtSvc/DtUtil2/MsgCatP.h b/cde/lib/DtSvc/DtUtil2/MsgCatP.h deleted file mode 100644 index bfbb9e60..00000000 --- a/cde/lib/DtSvc/DtUtil2/MsgCatP.h +++ /dev/null @@ -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 - -#ifdef __cplusplus -extern "C" { -#endif - -extern char *_DtCatgetsCached(nl_catd catd, int set, int num, char *dflt); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_MsgCat_h */ diff --git a/cde/lib/DtSvc/DtUtil2/MsgLog.h b/cde/lib/DtSvc/DtUtil2/MsgLog.h deleted file mode 100644 index 615edda0..00000000 --- a/cde/lib/DtSvc/DtUtil2/MsgLog.h +++ /dev/null @@ -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 /* needed for FILE */ - -#ifdef __cplusplus -extern "C" { -#endif - -# include - -/* - * 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 */ diff --git a/cde/lib/DtSvc/DtUtil2/MsgLogI.h b/cde/lib/DtSvc/DtUtil2/MsgLogI.h deleted file mode 100644 index bb261c79..00000000 --- a/cde/lib/DtSvc/DtUtil2/MsgLogI.h +++ /dev/null @@ -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 -# 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 */ diff --git a/cde/lib/DtSvc/DtUtil2/MsgP.h b/cde/lib/DtSvc/DtUtil2/MsgP.h deleted file mode 100644 index f25db8a6..00000000 --- a/cde/lib/DtSvc/DtUtil2/MsgP.h +++ /dev/null @@ -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
- - -/* - * 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 ****/ diff --git a/cde/lib/DtSvc/DtUtil2/Service.h b/cde/lib/DtSvc/DtUtil2/Service.h deleted file mode 100644 index 4d6b8dec..00000000 --- a/cde/lib/DtSvc/DtUtil2/Service.h +++ /dev/null @@ -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
- -/* Built on ICCC-based messaging library */ -#include
- -/* 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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Setlocale.h b/cde/lib/DtSvc/DtUtil2/Setlocale.h deleted file mode 100644 index fd935888..00000000 --- a/cde/lib/DtSvc/DtUtil2/Setlocale.h +++ /dev/null @@ -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 -#include -#include -#include -#include
- -#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 */ diff --git a/cde/lib/DtSvc/DtUtil2/SharedProcs.h b/cde/lib/DtSvc/DtUtil2/SharedProcs.h deleted file mode 100644 index 0e9e520e..00000000 --- a/cde/lib/DtSvc/DtUtil2/SharedProcs.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/SmCreateDirs.h b/cde/lib/DtSvc/DtUtil2/SmCreateDirs.h deleted file mode 100644 index f637c1fb..00000000 --- a/cde/lib/DtSvc/DtUtil2/SmCreateDirs.h +++ /dev/null @@ -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. */ diff --git a/cde/lib/DtSvc/DtUtil2/Spc.h b/cde/lib/DtSvc/DtUtil2/Spc.h deleted file mode 100644 index 770ef4e3..00000000 --- a/cde/lib/DtSvc/DtUtil2/Spc.h +++ /dev/null @@ -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 - -/* - * For definitions of any of the following, look in . - */ - -#define DtSPCOpen XeSPCOpen -#define DtSPCClose XeSPCClose -#define DtSPCSpawn XeSPCSpawn -#define DtSPCAddInput XeSPCAddInput -#define DtSPCRegisterTerminator XeSPCRegisterTerminator -#define DtSPCErrorNumber XeSPCErrorNumber - -#endif /* #ifdef _Dt_SPC_h */ diff --git a/cde/lib/DtSvc/DtUtil2/SvcTT.h b/cde/lib/DtSvc/DtUtil2/SvcTT.h deleted file mode 100644 index d4d3b1a4..00000000 --- a/cde/lib/DtSvc/DtUtil2/SvcTT.h +++ /dev/null @@ -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 - -extern Tt_status _DtSvcInitToolTalk( - Widget widget - ); - -#endif diff --git a/cde/lib/DtSvc/DtUtil2/Unistd.h b/cde/lib/DtSvc/DtUtil2/Unistd.h deleted file mode 100644 index 941f8f5d..00000000 --- a/cde/lib/DtSvc/DtUtil2/Unistd.h +++ /dev/null @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil2/UserMsg.h b/cde/lib/DtSvc/DtUtil2/UserMsg.h deleted file mode 100644 index 619e53b4..00000000 --- a/cde/lib/DtSvc/DtUtil2/UserMsg.h +++ /dev/null @@ -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 - -#ifndef __STDC__ -# ifndef const -# define const -# endif -#endif - -#include - -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, ">************************************* - **************************************************************************** - ** - ** 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 /* for UTSLEN, SYS_NMLN */ - -#ifdef __cplusplus -extern "C" { -#endif - -/*================================================================= -$SHAREDBEG$: This header appears in all appropriate DtXlate topics -$INCLUDE$ -#include -=$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 ********/ diff --git a/cde/lib/DtSvc/DtXpm/xpm.h b/cde/lib/DtSvc/DtXpm/xpm.h deleted file mode 100644 index 33bacf01..00000000 --- a/cde/lib/DtSvc/DtXpm/xpm.h +++ /dev/null @@ -1,90 +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: xpm.h /main/4 1996/02/19 16:42:00 lehors $ */ -/* - * (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. - */ - -/*****************************************************************************\ -* * -* This is only a wrapper around the Xpm functions which now come as part of * -* Motif. This is provided for backward compatibility only and therefore only * -* supports symbols declared as private in the elist and none of the internal * -* ones. * -* * -\*****************************************************************************/ - -#ifndef xpm_h -#define xpm_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int _DtXpmCreatePixmapFromData(Display *display, - Drawable d, - char **data, - Pixmap *pixmap_return, - Pixmap *shapemask_return, - XpmAttributes *attributes); - -extern int _DtXpmReadFileToPixmap(Display *display, - Drawable d, - char *filename, - Pixmap *pixmap_return, - Pixmap *shapemask_return, - XpmAttributes *attributes); - -extern int _DtXpmWriteFileFromPixmap(Display *display, - char *filename, - Pixmap pixmap, - Pixmap shapemask, - XpmAttributes *attributes); - -extern int _DtXpmReadFileToImage(Display *display, - char *filename, - XImage **image_return, - XImage **shapeimage_return, - XpmAttributes *attributes); - -extern int _DtXpmWriteFileFromImage(Display *display, - char *filename, - XImage *image, - XImage *shapeimage, - XpmAttributes *attributes); - -extern void _DtXpmFreeAttributes(XpmAttributes *attributes); - -#ifdef __cplusplus -} /* for C++ V2.0 */ -#endif - -#endif diff --git a/cde/lib/DtSvc/include/Imakefile b/cde/lib/DtSvc/include/Imakefile index 033a42a2..414b9662 100644 --- a/cde/lib/DtSvc/include/Imakefile +++ b/cde/lib/DtSvc/include/Imakefile @@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/3 1998/08/10 18:02:40 mgreess $ #define IHaveSubdirs #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)' -SUBDIRS = bms codelibs SPC +SUBDIRS = codelibs MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) diff --git a/cde/lib/DtSvc/include/SPC/Imakefile b/cde/lib/DtSvc/include/SPC/Imakefile deleted file mode 100644 index d335abab..00000000 --- a/cde/lib/DtSvc/include/SPC/Imakefile +++ /dev/null @@ -1,12 +0,0 @@ -XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:09:55 drk $ - -HEADERS = chars.h spc-obj.h spc-proto.h spcE.h spcP.h - -all:: - -BuildIncludes($(HEADERS),SPC,..) -InstallMultipleFlags($(HEADERS),$(INCDIR)/SPC,$(INSTINCFLAGS)) - -depend:: - -clean:: diff --git a/cde/lib/DtSvc/include/SPC/chars.h b/cde/lib/DtSvc/include/SPC/chars.h deleted file mode 100644 index f1c4673c..00000000 --- a/cde/lib/DtSvc/include/SPC/chars.h +++ /dev/null @@ -1,48 +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: char.h $XConsortium: chars.h /main/3 1995/10/26 15:43:03 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 _chars_h -#define _chars_h - -#define Space (XeChar) ' ' -#define Newline (XeChar) '\n' -#define Tab (XeChar) '\t' -#define Pound (XeChar) '#' -#define Pad (XeChar) '\0' -#define Colon (XeChar) ':' -#define Equal (XeChar) '=' - -#define Nil_String (XeString) "" - -#endif /* _chars_h */ diff --git a/cde/lib/DtSvc/include/SPC/spc-obj.h b/cde/lib/DtSvc/include/SPC/spc-obj.h deleted file mode 100644 index e694de75..00000000 --- a/cde/lib/DtSvc/include/SPC/spc-obj.h +++ /dev/null @@ -1,118 +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-obj.h $XConsortium: spc-obj.h /main/3 1995/10/26 15:43:20 rswiston $ - * Language: C - * - * (c) Copyright 1989, 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 _spc_obj_h -#define _spc_obj_h - -typedef SPC_Channel_Ptr (*SPC_F_open)(SPC_Channel_Ptr, int, XeString); -typedef int (*SPC_F_close)(SPC_Channel_Ptr); -typedef int (*SPC_F_read)(SPC_Channel_Ptr, int, XeString, int); -typedef int (*SPC_F_write)(SPC_Channel_Ptr, XeString, int); -typedef int (*SPC_F_reset)(SPC_Channel_Ptr); -typedef int (*SPC_F_exec_proc)(SPC_Channel_Ptr); -typedef int (*SPC_F_signal)(SPC_Channel_Ptr, int); -typedef int (*SPC_F_attach)(SPC_Channel_Ptr, int); -typedef int (*SPC_F_add_input)(SPC_Channel_Ptr, SbInputHandlerProc, void *); -typedef int (*SPC_F_wait_for_termination)(SPC_Channel_Ptr); -typedef int (*SPC_F_pre_fork)(SPC_Channel_Ptr); -typedef int (*SPC_F_post_fork)(SPC_Channel_Ptr, int); -typedef int (*SPC_F_remove_logfile)(SPC_Channel_Ptr); - -/* - ** - ** New methods for B.00 - ** -*/ - -typedef int (*SPC_F_send_eof)(SPC_Channel_Ptr); -typedef int (*SPC_F_set_termio)(SPC_Channel_Ptr, int, int, struct termios *); - -#define channel_class_part \ - root_class_part \ - SPC_F_open open; /* opening a channel */ \ - SPC_F_close close; /* close a channel */ \ - SPC_F_read read; /* read from a channel */ \ - SPC_F_write write; /* write to a channel */ \ - SPC_F_reset reset; /* reset io to channel */ \ - SPC_F_exec_proc exec_proc; /* execute a subprocess over a channel */ \ - SPC_F_signal signal; /* signal a subprocess over a channel */ \ - SPC_F_attach attach; /* attach a subprocess to this channel */ \ - SPC_F_add_input add_input; /* how to add input callbacks to channel */ \ - SbInputCallbackProc input; \ - SPC_F_wait_for_termination wait_for_termination; /* wait for subprocess to exit */ \ - SPC_F_pre_fork pre_fork; /* setup before a fork */ \ - SPC_F_post_fork post_fork; /* setup after a fork */ \ - SPC_F_remove_logfile remove_logfile; /* remove log file associated with channel */ \ - SPC_F_send_eof send_eof; /* close stdin of subprocess */ \ - SPC_F_set_termio set_termio; /* set termio struct for PTY channels */ - -typedef struct channel_class { - root_clasp base; - channel_class_part - } *channel_clasp; - -typedef struct pty_channel_class { - channel_clasp base; - channel_class_part - } *pty_channel_clasp; - -typedef struct pipe_channel_class { - channel_clasp base; - channel_class_part - } *pipe_channel_clasp; - -typedef struct noio_channel_class { - channel_clasp base; - channel_class_part - } *noio_channel_clasp; - -typedef struct remote_channel_class { - channel_clasp base; - channel_class_part - } *remote_channel_clasp; - -#define call_parent_method(channel, func, args, result) { \ - pipe_channel_clasp parent_class=(pipe_channel_clasp) (channel)->class_ptr; \ - result=base_memf(parent_class, func, args); } - -/* class definitions */ - -extern channel_clasp channel_class; -extern pty_channel_clasp pty_channel_class; -extern pipe_channel_clasp pipe_channel_class; -extern noio_channel_clasp noio_channel_class; -extern remote_channel_clasp remote_channel_class; - -#endif /* _spc_obj_h */ - diff --git a/cde/lib/DtSvc/include/SPC/spc-proto.h b/cde/lib/DtSvc/include/SPC/spc-proto.h deleted file mode 100644 index c22b8a82..00000000 --- a/cde/lib/DtSvc/include/SPC/spc-proto.h +++ /dev/null @@ -1,297 +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-proto.h $XConsortium: spc-proto.h /main/3 1995/10/26 15:43:39 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 _spc_proto_h -#define _spc_proto_h - -/* - * Commands which are known to spcd and clients - */ - -/* The internet service */ - -#define SPC_SERVICE (XeString)"dtspc" /* The name of the registered service */ -#define SPC_PROTOCOL (XeString)"tcp" /* The name of the registered protocol */ - - /* MUST be a DECIMAL number as "%d" */ -#define SPC_PROTOCOL_VERSION_CDE_BASE 1000 -#define SPC_PROTOCOL_VERSION SPC_PROTOCOL_VERSION_CDE_BASE - /* is used to read the string version */ -#define SPC_PROTOCOL_VERSION_CDE_BASE_STR "1000" -#define SPC_PROTOCOL_VERSION_STR SPC_PROTOCOL_VERSION_CDE_BASE_STR - - /* We could make this user config for old domain systems? */ -#define SPC_UNKNOWN_HOSTINFO_STR "HP-UX:7.0:*" -/* - ** - ** Pseudo-filenames used for validating user - ** -*/ - -#define PASSED_FILE_NAME (XeString)"!" -#define FAILED_FILE_NAME (XeString)"!" - -/* - *** Protocol command numbers. These MUST remain in the same order - *** to work with previous version of the spcd - */ - -/* Connections to the server */ - -#define APPLICATION_DATA 0 /* send data to subprocess */ -#define APPLICATION_STDOUT 1 /* data from subprocess */ -#define APPLICATION_STDERR 2 /* error messages from subprocess */ - -#define ABORT 3 /* Client aborted */ -#define REGISTER 4 /* Register client */ -#define UNREGISTER 5 /* Unregister client */ - -/* Channel requests */ - -#define CHANNEL_OPEN 6 /* enable this channel for read/write */ -#define CHANNEL_CLOSE 7 /* no more i/o to this channel (send EOF) */ -#define CHANNEL_RESET 8 /* reset this channel */ -#define CHANNEL_ATTACH 9 /* attach PTY device to this channel */ - -/* Application messages, client -> server */ - -#define APPLICATION_SPAWN 10 /* start up subprocess */ -#define APPLICATION_SIGNAL 11 /* send signal to subprocess */ - -/* application messages, server -> client */ - -#define APPLICATION_DIED 12 /* sent when subprocess dies */ - -#define SERVER_ERROR 13 /* server has detected an error */ -#define REPLY 14 -#define SERVER_DEBUG 15 -#define ENVIRON_RESET 16 - -/* Query / reply protocols, client -> server -> client */ - -#define QUERY_DEVICES 17 -#define DEVICE_REPLY 18 - -#define QUERY_LOGFILE 19 -#define LOGFILE_REPLY 20 - -/* Application messages, client -> server */ - -#define DELETE_LOGFILE 21 - -#define RESET_TERMIO 22 /* This is obsolete, (hpux binary version) */ -#define RESET_TERMIOS 23 - -/* New B.00 protocol requests */ - -#define CHANNEL_SEND_EOF 24 /* Send EOF to standard input of sub process */ -#define CHANNEL_TERMIOS 25 /* Send termios info for a particular pty */ -#define APP_B00_SPAWN 26 /* Enhanced spawn */ - -#define NREQS 27 /* total number of requests. If - any are added, this should constant - should reflect the new total */ - -#define PROT_TO_CONNECTOR(a) a -#define CONNECTOR_TO_PROT(a) a - -#define PDRP(_pdata) _pdata->data+REQUEST_HEADER_LENGTH - -#define WRITE_INT(pdata, val)\ - sprintf_len(PDRP(pdata), (XeString)"%x", val) -#define READ_INT(pdata, val) sscanf(PDRP(pdata), (XeString)"%x", &val) - -#define WRITE_STRING(pdata, name)\ - sprintf_len(PDRP(pdata), (XeString)"%s", name) -#define READ_STRING(pdata, name) sscanf(PDRP(pdata), (XeString)"%s", name) -#define READ_STRING_NO_COPY(pdata, name) (name = PDRP(pdata)) - -#define WRITE_ABORT WRITE_INT -#define READ_ABORT READ_INT - -#define WRITE_OPEN WRITE_INT -#define READ_OPEN READ_INT - -#define WRITE_ATTACH WRITE_INT -#define READ_ATTACH READ_INT - -#define WRITE_APPLICATION_DIED WRITE_INT -#define READ_APPLICATION_DIED READ_INT - -#define WRITE_DEBUG WRITE_STRING -#define READ_DEBUG READ_STRING - -#define WRITE_ERROR WRITE_INT -#define READ_ERROR READ_INT - -#define WRITE_REGISTER(pdata, name, passwd, proto_ver, hostinfo)\ - sprint_register_data(PDRP(pdata), name, passwd, proto_ver, hostinfo) - -#define READ_REGISTER(pdata, name, passwd, proto_rev, hostinfo)\ - sscan_register_data(PDRP(pdata), &name, &passwd, &proto_rev, &hostinfo) - -#define WRITE_REPLY(pdata, val, err)\ - sprintf_len(PDRP(pdata), (XeString)"%x %x", val, err) -#define READ_REPLY(pdata, val, err)\ - sscanf(PDRP(pdata), (XeString)"%x %x", &val, &err) - -#define WRITE_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \ - sprint_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2) -#define READ_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \ - sscan_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2) - -#define WRITE_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \ - sprint_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo) -#define READ_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \ - sscan_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo) - -#define WRITE_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \ - sprint_application_data(PDRP(pdata), (XeString)"%s %d %d ", \ - path, dir, argv, envp, REQUEST_HEADER_LENGTH) -#define READ_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \ - sscan_application_data(PDRP(pdata), (XeString)"%s %d %d ", \ - &path, &dir, &argv, &envp, REQUEST_HEADER_LENGTH) - -#define WRITE_ENVIRON_RESET(pdata, numenv) \ - sprintf_len(PDRP(pdata), (XeString)"%d ", numenv) -#define READ_ENVIRON_RESET(pdata, numenv) \ - sscanf(PDRP(pdata), (XeString)"%d ", &numenv) - -#define WRITE_APP_DATA(pdata, buffer, len) \ - (memcpy(PDRP(pdata), buffer, len), len) - -/* New B.00 protocol requests */ -#define WRITE_TERMIOS(pdata, connector, side, buffer) \ - sprintf_len(PDRP(pdata), (XeString)"%d %d %s", connector, side, buffer) -#define READ_TERMIOS(pdata, connector, side, buffer) \ - sscanf(PDRP(pdata), (XeString)"%d %d %s", &connector, &side, buffer) - -/* Writing a header is special, as we don't want to be offset by - REQUEST_HEADER_LENGTH */ - -#define WRITE_HEADER(pdata, cid, type, len, seq) \ - sprintf_len(pdata->data, (XeString)"%08x%02x%04x%04x", cid, type, len, seq) -#define READ_HEADER(pdata, cid, type, len, seq) \ - sscanf(pdata->data, (XeString)"%8x%2x%4x%4x", cid, type, len, seq) - -#define min(a, b) (((a) < (b)) ? (a) : (b)) - -/* - ** - ** The test here is reversed, that is, we check only for those - ** requests where there is no reply expected, and assume the other - ** ones do expect replies. - ** -*/ - -#define NO_REPLY_VAL (-1) - -#define REPLY_EXPECTED(a, retval) \ - (((a==REPLY) || \ - (a==APPLICATION_DATA) || \ - (a==APPLICATION_STDOUT) || \ - (a==APPLICATION_STDERR) || \ - (a==REGISTER) || \ - (a==QUERY_LOGFILE) || \ - (a==QUERY_DEVICES) || \ - (a==ABORT) || \ - (a==SERVER_ERROR) \ - ) ? NO_REPLY_VAL : retval) - -typedef struct _prot_request { - buffered_data_ptr dataptr; - int seqno; - int request_type; - SPC_Channel_Ptr channel; - struct _prot_request *next; - } protocol_request, *protocol_request_ptr; - -typedef int (*protocol_request_handler)(protocol_request_ptr); - -/* spc-proto.c */ -buffered_data_ptr SPC_New_Buffered_Data_Ptr (void); -void SPC_Reset_Protocol_Ptr (protocol_request_ptr prot, SPC_Channel_Ptr channel, XeChar req, int len); -protocol_request_ptr SPC_New_Protocol_Ptr (SPC_Channel_Ptr channel, XeChar req, int len); -void SPC_Free_Protocol_Ptr (protocol_request_ptr prot); -SPC_Channel_Ptr SPC_Lookup_Channel (int cid, SPC_Connection_Ptr connection); -SPC_Connection_Ptr SPC_Alloc_Connection (void); -SPC_Connection_Ptr SPC_Lookup_Connection (XeString hostname); -SPC_Connection_Ptr SPC_Lookup_Connection_Fd (int fd); -SPC_Connection_Ptr SPC_Make_Connection (XeString hostname); -void SPC_Add_Connection (SPC_Connection_Ptr connection); -void SPC_Close_Connection (SPC_Connection_Ptr connection); -int SPC_Read_Chars (SPC_Connection_Ptr connection, int request_len, XeString charptr); -int SPC_Write_Chars (int fd, XeString charptr, int request_len); -protocol_request_ptr SPC_Read_Protocol (SPC_Connection_Ptr connection); -protocol_request_ptr SPC_Filter_Connection (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int reqtype, int deletep); -void SPC_Flush_Queued_Data (SPC_Channel_Ptr channel); -int SPC_Read_Remote_Data (SPC_Channel_Ptr channel, int connector, XeString client_buffer, int nbytes); -int print_protocol_request (XeString name, protocol_request_ptr proto); -int SPC_Write_Protocol_Request (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int request, ...); -int SPC_Write_Single_Prot_Request (SPC_Connection_Ptr connection, XeString name, protocol_request_ptr prot); -int SPC_Waitfor_Reply (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int seqno); -int SPC_Dispatch_Protocol (protocol_request_ptr proto, protocol_request_handler *); -int SPC_Write_Reply (SPC_Connection_Ptr conn, protocol_request_ptr proto, int retval, int errval); -int SPC_Send_Environ (SPC_Connection_Ptr connection, protocol_request_ptr prot); -int sprint_counted_string (XeString buf, int count, XeString *vect, int limit); -XeString *sscan_counted_string (XeString buf, XeString *newbuf); -int sprint_application_data (XeString buf, XeString fmt, XeString path, XeString dir, XeString *argv, XeString *envp, int chars_used); -int sscan_application_data (XeString buf, XeString fmt, XeString *path, XeString *dir, XeString **argv, XeString **envp, int offset); -int sprint_device_data (XeString buf, XeString m0, XeString s0, XeString m1, XeString s1, XeString m2, XeString s2); -int sscan_device_data (XeString buf, XeString *m0, XeString *s0, XeString *m1, XeString *s1, XeString *m2, XeString *s2); -int sprint_logfile_data (XeString buf, XeString logfile, XeString proto_ver, XeString hostinfo); -int sscan_logfile_data (XeString buf, XeString *logfile, XeString *proto_ver, XeString *hostinfo); -int sprint_register_data (XeString buf, XeString username, XeString passwd, XeString proto_ver, XeString hostinfo); -int sscan_register_data (XeString buf, XeString *username, XeString *passwd, XeString *proto_ver, XeString *hostinfo); -int SPC_Query_Devices (SPC_Channel_Ptr channel); -int SPC_Query_Logfile (SPC_Channel_Ptr channel); -int SPC_Validate_User (XeString hostname, SPC_Connection_Ptr connection); -int SPC_Get_Termio (protocol_request_ptr prot_request); -int SPC_Get_Termios (protocol_request_ptr prot_request); -XeString SPC_LocalHostinfo(void); -int SPC_Send_Multi_Packet(SPC_Connection_Ptr connection, - protocol_request_ptr prot, - char **str_vect, - int num_str, - int req, - XeString name, - int errid); -char **SPC_Get_Multi_Packet(SPC_Connection_Ptr connection, - protocol_request_ptr prot, - char **out, - int *outlen, - int request, - XeString name); - -#endif /* _spc_proto_h */ diff --git a/cde/lib/DtSvc/include/SPC/spcE.h b/cde/lib/DtSvc/include/SPC/spcE.h deleted file mode 100644 index a19c47e7..00000000 --- a/cde/lib/DtSvc/include/SPC/spcE.h +++ /dev/null @@ -1,126 +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: spcE.h $XConsortium: spcE.h /main/3 1995/10/26 15:43: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 _spcE_h -#define _spcE_h - -/* Keep this up to date with the first error number declared below */ -#define SPC_First_Error_Number 100 -#define SPC_Min_Error SPC_First_Error_Number - -#define SPC_Out_Of_Memory 100 -#define SPC_Bad_Argument 101 -#define SPC_Active_Channel 102 -#define SPC_Inactive_Channel 103 -#define SPC_Internal_Error 104 -#define SPC_Cannot_Fork 105 -#define SPC_Cannot_Exec 106 -#define SPC_Cannot_Execute 107 -#define SPC_No_Pipe 108 -#define SPC_No_Pty 109 -#define SPC_Bad_Connector 110 -#define SPC_Reading 111 -#define SPC_Writing 112 -#define SPC_Bad_Service 113 -#define SPC_Bad_Port 114 -#define SPC_Unknown_Host 115 -#define SPC_Bad_Socket 116 -#define SPC_Bad_Connect 117 -#define SPC_Bad_Bind 118 -#define SPC_Bad_Listen 119 -#define SPC_Bad_Accept 120 -#define SPC_Bad_Linger 121 -#define SPC_Bad_Reuse 122 -#define SPC_Bad_Sockname 123 -#define SPC_Bad_Open 124 -#define SPC_Connection_EOF 125 -#define SPC_Timeout 126 -#define SPC_Protocol 127 -#define SPC_Unexpected_Reply 128 -#define SPC_No_Channel 129 -#define SPC_Illegal_Iomode 130 -#define SPC_No_Signal_Handler 131 -#define SPC_Bad_Operation 132 -#define SPC_Bad_Fd 133 -#define SPC_Bad_Ioctl 134 -#define SPC_Bad_Select 135 -#define SPC_Bind_Timeout 136 -#define SPC_Arg_Too_Long 137 -#define SPC_Write_Prot 138 -#define SPC_Bad_Username 139 -#define SPC_Bad_Password 140 -#define SPC_Client_Not_Valid 141 -#define SPC_Cannot_Open_Slave 142 -/* #define SPC_Register_Error 143 */ /* This has been obsoleted by the - expanded register errors below */ -#define SPC_Protocol_Abort 144 -#define SPC_Env_Too_Big 145 -#define SPC_Unlink_Logfile 146 -#define SPC_Closed_Channel 147 -#define SPC_Bad_Authentication 148 -#define SPC_Cannot_Open_Log 149 -#define SPC_Connection_Reset 150 -#define SPC_Register_Username 151 -#define SPC_Register_Netrc 152 -#define SPC_Register_Open 153 -#define SPC_Register_Handshake 154 - -#define SPC_Bad_Termios_Mode 155 -#define SPC_Bad_Termios_Speed 156 -#define SPC_Bad_Termios_CC 157 -#define SPC_Bad_Termios_Proto 158 - -#define SPC_Bad_Signal_Name 159 -#define SPC_Bad_Signal_Value 160 -#define SPC_Bad_Signal_Format 161 - -#define SPC_Bad_tc_Call 162 - -#define SPC_cannot_Chdir 163 - -#define SPC_Bad_Permission 164 -#define SPC_Cannot_Create_Netfilename 165 -#define SPC_Protocol_Version_Error 166 - -/* JET - a special error code for goobers trying to overflow our buffers. */ -/* VU#172583 */ -#define SPC_Buffer_Overflow 167 - -/* Keep this up to date with the last error number declared above */ -#define SPC_Max_Error 168 - -/* The definition of the SPC Error structure has been moved to spc.h - (to make it public) */ - -#endif /* _spcE_h */ diff --git a/cde/lib/DtSvc/include/SPC/spcP.h b/cde/lib/DtSvc/include/SPC/spcP.h deleted file mode 100644 index 603817ba..00000000 --- a/cde/lib/DtSvc/include/SPC/spcP.h +++ /dev/null @@ -1,564 +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: spcP.h /main/4 1996/05/15 12:01:55 drk $ - * Language: C - * - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1988,1993,1994,1996 Hewlett-Packard Company. - * (c) Copyright 1993,1994,1996 International Business Machines Corp. - * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. - * (c) Copyright 1993,1994,1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef _spcP_h -#define _spcP_h - -#include /* hostent */ -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "chars.h" -#include "spcE.h" -#include "spc-obj.h" - -/* ---------------------------------------------------------------------- */ - -#ifndef CDE_CONFIGURATION_TOP -#define CDE_CONFIGURATION_TOP "/etc/opt/dt" -#endif -#ifndef CDE_INSTALLATION_TOP -#define CDE_INSTALLATION_TOP "/usr/dt" -#endif - -#define Stdin(chn) chn->file_descs[STDIN] -#define Stdout(chn) chn->file_descs[STDOUT] -#define Stderr(chn) chn->file_descs[STDERR] - -/* Some necessary identifiers */ -#define OK 0 -#define ERROR -1 -#define Undefined -1 - -/* Some character constants */ - -#define Channel_ByteID (XeChar)'\077' - -/* And finally, the common channel identifier */ -#ifndef BITSPERBYTE -#define BITSPERBYTE 8 -#endif -#define CID_High_Bits (Channel_ByteID << (BITSPERBYTE * (sizeof(int) - 1))) -#define CID_Middle_Bits (0x1010 << BITSPERBYTE) -#define CID_Low_Bits (Channel_ByteID & 0xff) - -#define Channel_Identifier (CID_High_Bits | CID_Middle_Bits | CID_Low_Bits) - -/*** Note: If device names ever increase from: /dev/ptym/ptyp0, look here ***/ -#define PTY_NAMLEN 20 -#define EXCEPT_FLAG -1 /* Used for TIOC handling in PTY's */ - -/* Define lengths of buffers for protocol requests and other sizes of things */ - -#define REQUEST_HEADER_LENGTH 20 -#define MAXREQLEN (SPC_BUFSIZ+REQUEST_HEADER_LENGTH) -#define DEFAULT_ENVP_SIZE 50 - -/* - ** - ** Definitions for select. - ** -*/ - -extern int max_fds; - -/* - * Macros to access SPC_IOMode bit fields - */ - -/* These are derived from above spc bit specifications */ -#define IS_SPCIO_STDIN(a) (a & SPCIO_WRITEONLY) -#define IS_SPCIO_STDOUT(a) (a & SPCIO_READONLY) -#define IS_SPCIO_STDERR(a) (a & SPCIO_ERRORONLY) -#define IS_SPCIO_SEPARATE(a) (a & SPCIO_SEPARATEREADERROR) - -#define IS_SPCIO_NOIO(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_NOIO) -#define IS_SPCIO_WRITEONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEONLY) -#define IS_SPCIO_READONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READONLY) -#define IS_SPCIO_READWRITE(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READWRITE) -#define IS_SPCIO_ERRORONLY(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_ERRORONLY) -#define IS_SPCIO_WRITEERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEERROR) -#define IS_SPCIO_READERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_READERROR) -#define IS_SPCIO_READWRITEERROR(a)((a&SPCIO_SOURCE_MASK) == SPCIO_READWRITEERROR) - -/* Style flags (mutually exclusive) */ -#define IS_SPCIO_PIPE(a) ((a & SPCIO_STYLE_MASK) == SPCIO_PIPE) -#define IS_SPCIO_PTY(a) ((a & SPCIO_STYLE_MASK) == SPCIO_PTY) -#define IS_SPCIO_NOIOMODE(a) ((a & SPCIO_STYLE_MASK) == SPCIO_NOIOMODE) - -#define IS_SPCIO_LINEEDIT(a) (a & SPCIO_LINEEDIT) - -/* Other non-mutually exclusive flags */ -#define IS_SPCIO_SYSTEM(a) (a & SPCIO_SYSTEM) -#define IS_SPCIO_LINEORIENTED(a)(a & SPCIO_LINEORIENTED) -#define IS_SPCIO_WAIT(a) (a & SPCIO_WAIT) -#define IS_SPCIO_TOOLKIT(a) (a & SPCIO_USE_XTOOLKIT) -#define IS_SPCIO_SYNC_TERM(a) (a & SPCIO_SYNC_TERMINATOR) -#define IS_SPCIO_USE_LOGFILE(a) (a & SPCIO_USE_LOGFILE) - -#define IS_SPCIO_SIGNAL_PGRP(a) (a & SPCIO_SIGNAL_PGRP) -#define IS_SPCIO_FORCE_CONTEXT(a) (a & SPCIO_FORCE_CONTEXT) - -#define SPCIO_HAS_DATA 0x2000 /* Used for line-oriented IO */ -#define HAS_DATA(chn) (((chn->IOMode) & SPCIO_HAS_DATA) == SPCIO_HAS_DATA) - -#define SPCIO_UNUSED3 0x80000 - -/* Flags for internal use only */ - -#define SPCIO_DEALLOC_ARGV 0x4000 -#define IS_SPCIO_DEALLOC_ARGV(a) (a & SPCIO_DEALLOC_ARGV) - -#define SPCIO_DELAY_CLOSE 0x8000 -#define IS_SPCIO_DELAY_CLOSE(a) (a & SPCIO_DELAY_CLOSE) - -#define SPCIO_DO_CLOSE 0x10000 -#define IS_SPCIO_DO_CLOSE(a) (a & SPCIO_DO_CLOSE) - -/* Make sure that STATE_OFFSET is always such that you will clear the - IOMode flags */ - -#define STATE_OFFSET 24 -#define SPCIO_ACTIVE (1<IOMode)) -#define IS_DATA(chn) (IS_SPCIO_DATA(chn->IOMode)) - -#define IS_REMOTE(chn) (chn->connection) - -/* SPC state machine */ - -#define CHANNEL_STATE(io_mode) ((io_mode)>>STATE_OFFSET & 0x3) -#define MAKE_CHANNEL_STATE(io_mode, _state) \ - (((_state)<> 1) -#define PROC_LINE(_state) ((_state) & 1) - -/* Defaults */ - -#define DEFAULT_CHANNEL_CLASS pty_channel_class -#define IS_SPCIO_DEFAULT(a) !((a) & SPCIO_STYLE_MASK) -#define SPCIO_DEFAULT SPCIO_PTY - -/* - * Type definitions for SPC file descriptors - */ - -/* Definitions for wires */ - -#define READ_SIDE 0 -#define WRITE_SIDE 1 - -/* - * Constants and external declarations for managing the SPC daemon's - * logfile list, exit timer and process id list. - */ -#define SPCD_DEFAULT_TIMEOUT 10 -#define SPCD_DEAD_PROCESS -1 -#define SPCD_NO_TIMER -1 -#define SPCD_REQUEST_PENDING 1 -#define SPCD_NO_REQUEST_PENDING 0 - -/* - * Constants for the 'SPC_who_am_i' variable. - */ -#define SPC_I_AM_A_CLIENT 1 -#define SPC_I_AM_A_DAEMON 2 - -/* - * External variables defined in noio.c - */ -extern char **SPC_logfile_list; - -/* - * External variables defined in spc-exec.c - */ -extern pid_t *SPC_pid_list; -extern char *SPC_mount_point_env_var; - -/* - * External variables defined in spc-obj.c - */ -extern int SPC_who_am_i; - -/* - * The client version number. - */ -extern int SPC_client_version_number; - -/* - * The name of the directory used for authentication and - * for temporary logfiles. - */ -extern XeString SPCD_Authentication_Dir; - -/* - * Definitions for file locations - */ -#define SPCD_ENV_INSTALL_DIRECTORY CDE_INSTALLATION_TOP "/config" -#define SPCD_ENV_CONFIG_DIRECTORY CDE_CONFIGURATION_TOP "/config" -#define SPCD_ENV_HOME_DIRECTORY ".dt" -#define SPCD_ENV_FILE "dtspcdenv" -#define SPCD_PROG_NAME "dtspcd" - -/* - * The name of the remove environment 'keyword'. - */ -#define SPC_REMOVE_VAR "unset" - -/* - *** - *** Start typedefs - *** -*/ - -typedef int Files[3]; /* Standard set of file descriptors */ -typedef int SPC_IOMode; /* Sub-Process Control IO Mode Bits */ - -/* This is a "wire", a data structure used in creating communication paths - to / from a subprocess. It encapsulates all the information needed by - all types of paths */ - -typedef struct _wire { - SPC_IOMode flags; /* Basically, acts like an IOMode, but - we are only interested in its data bits */ - int fd[2]; - XeString master_name, slave_name; - int read_toolkit_id, except_toolkit_id; - struct termios master_termio, slave_termio; - struct _wire *next; -} Wire; - -typedef struct _buffered_data { - XeChar data[MAXREQLEN]; - int len, offset; -} buffered_data, *buffered_data_ptr; - -typedef enum { - SPC_Input, - SPC_Exception, - SPC_Terminator, - SPC_Client - } SPC_Callback_Condition; - -/* - * Type definition for an SPC Connection (a socket to SPCD server) - */ - -typedef struct _SPC_Connection { - /* The host on which other end resides */ - XeChar hostname[MAXHOSTNAMELEN]; - int sid; /* The Socket ID */ - XeChar connected; /* Whether server connection is made */ - struct hostent *local; /* socket address information for */ - struct hostent *remote; /* ... local, remote machine */ - int termination_id; - struct _SPC_Connection - *next; /* The next server in the list */ - XeQueue queued_remote_data; /* queue for remote data */ - int protocol_version; /* Version of protocol of remote */ - XeString hostinfo; /* Info about remote, (type, os, etc) */ - -} SPC_Connection, *SPC_Connection_Ptr; - -/* - * This next macro returns a newly allocated string. - * The caller should free it. - */ - -#define CONNECTION_HOSTNAME(conn) \ - ((conn->remote) ? XeFindShortHost((conn)->remote->h_name) : \ - Xestrdup(XeString_Empty)) - -/* - * Type definition for an SPC Channel - */ - -typedef int (*SPC_F_read_filter)(SPC_Channel_Ptr, int, XeString, int); - -typedef struct _SPC_Channel { /* Sub-Process Control Channel */ - - /* stuff for SCOOP */ - channel_clasp class_ptr; - root_object_part - - /* First, we place a channel identifier, so we can check cid (see below) */ - int identifier; /* The common identifier for every channel */ - - /* The setup request information */ - SPC_Connection *connection; /* The connection structure (Local = NULL) */ - - XeString context_dir; /* Directory to "cd" to during spawn */ - XeString path; /* The command path pointer */ - XeString *argv; /* The command argument list pointers */ - XeString *envp; /* The command environment list pointers */ - - SPC_IOMode IOMode; /* The IO Control Mode settings */ - - /* User defined data handling procedures */ - SbInputHandlerProc Input_Handler; - /* The user input handler routine */ - void * client_data; /* The user associated input handler data */ - /* Useful (ie.) as input Widget */ - SPC_TerminateHandlerType Terminate_Handler; /* The SIGCLD user handler routine */ - void * Terminate_Data; /* The client_data for user handler routine */ - - /* Now the recorded information */ - - int pid; /* The child Process IDentification number */ - /* Also the RPID for a Remote channel */ - int cid; /* The remote Channel IDentification number */ - int status; /* The Process status */ - Wire *wires[3]; /* The read side/write side file descriptors */ - Files file_descs; /* Which file descriptors to use */ - Wire *wire_list; /* Pointer to list of wires we have - (used for reset & pre_fork processing) */ - buffered_data_ptr linebufs[3]; /* Buffers for lined oriented IO */ - SPC_F_read_filter read_filter; - /* Function to use to read. It may - be the actual read method, or it - may be a filter for newlines - (which would eventually call the read - method) */ - XeQueue queued_remote_data; /* queue for remote data */ - XeString logfile; /* logfile name for SPCIO_USE_LOGFILE */ - int close_timeout; /* Amount of time to wait for a pty close */ - struct _SPC_Channel *next; /* The next active channel */ - - int sync_pipe[2]; /* Only used in pty.c for __hpux_pty */ - -} SPC_Channel; - -/* The default shell when none can be derived */ -#ifdef hpV4 -#define DEFAULT_SHELL (XeString ) "/usr/bin/sh" -#else -#define DEFAULT_SHELL (XeString ) "/bin/sh" -#endif /* hpV4 */ - -/* Some macros which define the bit field portions of a wait() status */ -/* NOTE: These should be independent of integer word size */ -#define WAIT_STATUS_MASK 0xff -#define IS_WAIT_STATUS_STOPPED 0177 -#define IS_WAIT_STATUS_EXITED 0000 -#define IS_WAIT_STATUS_DUMPED 0200 - -typedef unsigned long SPCInputId; - -/* SPC/local.c */ -int close_local_channel_object (SPC_Channel_Ptr channel); -int write_local_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); -int signal_local_channel_object (SPC_Channel_Ptr channel, int sig); -int local_channel_object_wait_for_termination (SPC_Channel_Ptr channel); -int remove_logfile_local_channel_object (SPC_Channel_Ptr channel); -void local_channel_object_input_handler (void * client_data, int *source, SPCInputId *id); -int local_channel_object_send_eof(SPC_Channel_Ptr channel); - -/* noio.c */ -void noio_channel_class_init (object_clasp c); -SPC_Channel_Ptr open_noio_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); -int read_noio_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); -int write_noio_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); -int pre_fork_noio_channel_object (SPC_Channel_Ptr channel); -int post_fork_noio_channel_object (SPC_Channel_Ptr channel, int parentp); -int reset_noio_channel_object (SPC_Channel_Ptr channel); -int attach_noio_channel_object (SPC_Channel_Ptr channel, int); -void noio_channel_object_input_handler (void * client_data, int *source, SPCInputId *id); -int send_eof_noio_channel_object(SPC_Channel_Ptr channel); -int set_termio_noio_channel_object(SPC_Channel_Ptr, int, int, struct termios *); - -/* pipe.c */ -void pipe_channel_class_init (object_clasp c); -Wire *getpipe (Wire *prevwire); -SPC_Channel_Ptr open_pipe_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); -int read_pipe_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); -int pre_fork_pipe_channel_object (SPC_Channel_Ptr channel); -int post_fork_pipe_channel_object (SPC_Channel_Ptr channel, int parentp); -int reset_pipe_channel_object (SPC_Channel_Ptr channel); -int attach_pipe_channel_object (SPC_Channel_Ptr channel, int); -int add_input_pipe_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); - - -/* pty.c */ -void pty_channel_class_init (object_clasp c); -SPC_Channel_Ptr open_pty_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); -int read_pty_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); -int pre_fork_pty_channel_object (SPC_Channel_Ptr channel); -int post_fork_pty_channel_object (SPC_Channel_Ptr channel, int parentp); -int reset_pty_channel_object (SPC_Channel_Ptr channel); -int attach_pty_channel_object (SPC_Channel_Ptr channel, int pid); -int add_input_pty_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); -int set_termio_pty_channel_object(SPC_Channel_Ptr channel, int, int, - struct termios *); -struct termios *SPC_Get_Current_Termio(void); -int SPC_Setpgrp(int); - -/* remote.c */ -void remote_channel_class_init (object_clasp c); -Wire *get_new_remote_wire (Wire *prevwire); -SPC_Channel_Ptr open_remote_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); -int close_remote_channel_object (SPC_Channel_Ptr channel); -int reset_remote_channel_object (SPC_Channel_Ptr channel); -int exec_proc_remote_channel_object (SPC_Channel_Ptr channel); -int write_remote_channel_object (SPC_Channel_Ptr channel, XeString buffer, int len); -int read_remote_channel_object (SPC_Channel_Ptr channel, int connection, XeString buffer, int len); -int signal_remote_channel_object (SPC_Channel_Ptr channel, int sig); -int attach_remote_channel_object (SPC_Channel_Ptr channel, int pid); -int remove_logfile_remote_channel_object (SPC_Channel_Ptr channel); -int add_input_remote_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); -int SPC_Debug_Mode (SPC_Channel_Ptr channel, XeString file); -int send_eof_remote_channel_object(SPC_Channel_Ptr channel); -int set_termio_remote_channel_object(SPC_Channel_Ptr channel, - int, int, struct termios *); - - -/* spc-env.c */ -XeString SPC_Getenv (XeString var, XeString *envp); -XeString *SPC_Putenv (XeString val, XeString *envp); -XeString *SPC_Add_Env_File (XeString filename, XeString *envp); -XeString *SPC_Create_Default_Envp (XeString *old_envp); -XeString *SPC_Fixup_Environment (XeString *envp, SPC_Channel_Ptr channel); -XeString *SPC_Merge_Envp (XeString *dest_envp, XeString *source_envp); -void SPC_Free_Envp (XeString *envp); - - -/* spc-exec.c */ -int SPC_Setup_Synchronous_Terminator (void); -SPC_Connection_Ptr SPC_Channel_Terminator_Connection (SPC_Channel_Ptr channel); -void SPC_Close_Unused (void); -int SPC_MakeSystemCommand (SPC_Channel_Ptr channel); -void SPC_Child_Terminated(int); -int exec_proc_local_channel_object (SPC_Channel_Ptr channel); - - -/* spc-net.c */ -Boolean SPC_Init_Local_Host_Info (void); -int SPC_Local_Hostname (XeString hostname); -SPC_Connection_Ptr SPC_Open_Connection (XeString hostname); -int SPC_Open_Socket (SPC_Connection_Ptr conn, int type); -int SPC_Contact_Server (SPC_Connection_Ptr connection); -SPC_Connection_Ptr SPC_Init_Child (SPC_Connection_Ptr conn, int from); -SPC_Connection_Ptr SPC_Standalone_Daemon (SPC_Connection_Ptr conn); -int SPC_Inetd_Daemon (SPC_Connection_Ptr conn); -SPC_Connection_Ptr SPC_Start_Daemon (int standalone); - - -/* spc-obj.c */ -void spc_init_fds(void); -object *alloc_channel_object (object_clasp c); -void channel_class_init (object_clasp c); -int SPC_ResetTerminator(void); -int SPC_Initialize (void); -SPC_Channel_Ptr SPC_Initialize_Channel (XeString hostname, int iomode); -void SPC_Channel_Terminated (SPC_Channel_Ptr channel); -int SPC_Check_Style (int iomode); -int SPC_Transform_Iomode (int iomode); -int SPC_Newline_Filter (SPC_Channel_Ptr channel, int connector, XeString buffer, int ntoread); -int SPC_Input_Handler (SPC_Channel_Ptr channel, int connector); -SPC_Channel_Ptr open_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname); -int close_channel_object (SPC_Channel_Ptr channel); -int read_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes); -int write_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes); -int reset_channel_object (SPC_Channel_Ptr channel); -int pre_fork_channel_object (SPC_Channel_Ptr channel); -int post_fork_channel_object (SPC_Channel_Ptr channel, int parentp); -int exec_proc_channel_object (SPC_Channel_Ptr channel); -int signal_channel_object (SPC_Channel_Ptr channel, int sig); -int channel_object_wait_for_termination (SPC_Channel_Ptr channel); -int attach_channel_object (SPC_Channel_Ptr channel, int pid); -int add_input_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data); -int remove_logfile_channel_object (SPC_Channel_Ptr channel); - -/* spc-sm.c */ -int SPC_Change_State (SPC_Channel_Ptr channel, int connector, int data_line, int process_line); -int error_fun (SPC_Channel_Ptr channel, int connector); -int connector_eof (SPC_Channel_Ptr channel, int connector); -int connector_eof_with_reset (SPC_Channel_Ptr channel, int connector); -int sigcld_with_reset (SPC_Channel_Ptr channel, int connector); - -/* spc-xt.c */ - -typedef void (*spc_handler_func_type) (void *, int *, SPCInputId *); -int SPC_Wait_For_Termination (SPC_Channel_Ptr channel); -void SPC_XtBreak (void); -void SPC_XtAddInput (SPC_Channel_Ptr channel, int *id_addr, int fd, spc_handler_func_type handler, SPC_Callback_Condition condition); -void SPC_XtRemoveInput (int *id_addr, SPC_Callback_Condition condition); - - -/* spc-util.c */ -Wire *get_new_wire (void); -void free_wire (Wire *wire); -SPC_Channel_Ptr SPC_Find_PID (int pid); -int spc_close (int fd); -int spc_dup2 (int from, int to); -int SPC_fd_to_connector (SPC_Channel_Ptr channel, int fd); -XeString *Alloc_Argv (int n); -void SPC_Conditional_Packet_Handler (void * client_data, int *source, SPCInputId *id); -int sprintf_len (XeString s, XeString format, ...); -typedef Boolean (path_search_predicate)(XeString, XeString, XeString); -Boolean path_search (XeString path, XeString filename, path_search_predicate p); - - -/* spc-error.c */ -XeString SPC_copy_string (XeString str); -void SPC_Error (int error, ...); -int SPC_Make_Log_Filename (XeString name, int unique); -int SPC_Open_Log (XeString filename, int unique); -int SPC_Close_Log (void); -int SPC_Write_Log (XeString str); -int SPC_Format_Log (XeString format, ...); -SPCError *SPC_Lookup_Error (int errornum); -SPCError *SPC_Lookup_Error (int errornum); - - -/* spc-termio.c */ -XeString SPC_Decode_Termios( struct termios * ); -void SPC_Encode_Termios(XeString buff, struct termios *tio); - -#endif /* _spcP_h */ diff --git a/cde/lib/DtSvc/include/bms/Imakefile b/cde/lib/DtSvc/include/bms/Imakefile deleted file mode 100644 index 078d6d22..00000000 --- a/cde/lib/DtSvc/include/bms/Imakefile +++ /dev/null @@ -1,17 +0,0 @@ -XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:09:58 drk $ - -HEADERS = \ - MemoryMgr.h SbEvent.h Symbolic.h \ - XeUserMsg.h bms.h connect.h \ - pathwexp.h sbport.h sbstdinc.h \ - scoop.h spc.h stringbuf.h \ - usersig.h - -all:: - -BuildIncludes($(HEADERS),bms,..) -InstallMultipleFlags($(HEADERS),$(INCDIR)/bms,$(INSTINCFLAGS)) - -depend:: - -clean:: diff --git a/cde/lib/DtSvc/include/bms/MemoryMgr.h b/cde/lib/DtSvc/include/bms/MemoryMgr.h deleted file mode 100644 index 551c94aa..00000000 --- a/cde/lib/DtSvc/include/bms/MemoryMgr.h +++ /dev/null @@ -1,71 +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: MemoryMgr.h $XConsortium: MemoryMgr.h /main/3 1995/10/26 15:45: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. * - */ - -/* Allocation routines */ - -#ifndef _MemoryMgr_h -#define _MemoryMgr_h - -void *XeMalloc -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (size_t size); -#else - (); -#endif - -void XeFree -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void * ptr); -#else - (); -#endif - -#define Xe_make_struct(type) ((struct type *)XeMalloc(sizeof(struct type))) -#define Xe_make_ntype(n, type) ((type *) XeMalloc((n)*sizeof(type))) -#define Xe_make_buffer(size) ((XeString) XeMalloc(size)) -#define Xe_make_str(size) ((XeString) XeMalloc((size)+1)) - -#define XeCopyStringM(string_xxx) (string_xxx \ - ? (XeString) strcpy(Xe_make_str(strlen(string_xxx)), string_xxx) \ - : (XeString) NULL) - - -/* Dellocation */ - -#define Xe_release_ntype(ptr, n, type) XeFree(ptr) -#define Xe_release_str(ptr) XeFree(ptr) - -#endif /* _MemoryMgr_h */ -/* PLACE NOTHING AFTER THIS endif */ - diff --git a/cde/lib/DtSvc/include/bms/SbEvent.h b/cde/lib/DtSvc/include/bms/SbEvent.h deleted file mode 100644 index cc4a29bc..00000000 --- a/cde/lib/DtSvc/include/bms/SbEvent.h +++ /dev/null @@ -1,97 +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: SbEvent.h $XConsortium: SbEvent.h /main/3 1995/10/26 15:45:29 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 _SbEvent_h -#define _SbEvent_h - -typedef unsigned long SbInputId; - -typedef void (*SbInputCallbackProc) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void* data, int *fd, SbInputId *id); -#else - (); -#endif - -extern SbInputId (*SbAddInput_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (int fd, SbInputCallbackProc proc, void* data); -#else - (); -#endif - -extern SbInputId (*SbAddException_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (int fd, SbInputCallbackProc proc, void* data); -#else - (); -#endif - -extern void (*SbRemoveInput_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (SbInputId id); -#else - (); -#endif - -extern void (*SbRemoveException_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (SbInputId id); -#else - (); -#endif - -extern void (*SbMainLoopUntil_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (Boolean *flag); -#else - (); -#endif - -extern void XeCall_SbMainLoopUntil -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (Boolean *flag); -#else - (); -#endif - -extern void (*SbBreakMainLoop_hookfn) -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void); -#else - (); -#endif - - -#endif /* _SbEvent_h */ diff --git a/cde/lib/DtSvc/include/bms/Symbolic.h b/cde/lib/DtSvc/include/bms/Symbolic.h deleted file mode 100644 index 14eac3ab..00000000 --- a/cde/lib/DtSvc/include/bms/Symbolic.h +++ /dev/null @@ -1,372 +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: Symbolic.h $XConsortium: Symbolic.h /main/3 1995/10/26 15:45: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. * - */ - -/* SYMBOLS */ - -#ifndef _Symbolic_h_ -#define _Symbolic_h_ - -/* -------------------------------------------- */ -/* Requires: */ -#ifdef __recursive_includes -#include -#endif -/* -------------------------------------------- */ - -/****************************************************************************/ -/* Symbol (hash) Tables */ - -/* - -There are two types of symbol (hash) tables. The common case is where the -key (index) is ascii string. The Xe_intern() and XeRegisterSymbol() -routines assume this type of table. In these cases an "XeSymbol" entry is -created in the symbol table (see type below). After it is created a COPY of -the string is made and stored in the "name" field. The "value" field is -free for the user to fill in on his own. - -*/ - -typedef struct _XeSymbol { - XeString name; - void *value; -} *XeSymbol; - -/* -This type is used for the XeRegisterFunction() routine. -*/ - -typedef void (*XeAnyFunction) (); - - -/* -The second type of table is where the user defines his own type of -data, hash functions, compare functions, etc. -*/ - -/* The following types for the the user configurable functions that */ -/* are set with the Xe_set_syms_fns() routine. */ -/* ---------------------------------------------------------------- */ - - -/* CMP_FN: */ -/* */ -/* Any user defined function should return "0" for a "match" */ -/* */ -/* Used for Xe_intern() and XeRegisterSymbol() */ -/* */ -/* If NO "cmp_fn", strcmp("next_table_entry"->name, "name") */ -/* If "cmp_fn", cmp_fn("next_table_entry"->name, "name") */ -/* */ -/* Used for Xe_intern_anysym() */ -/* */ -/* If NO "cmp_fn", strcmp("next_table_entry"->name, "data"->name) */ -/* If "cmp_fn", cmp_fn("next_table_entry", "data") */ -/* -------------------------------------------------------------------- */ - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - typedef int (*XeSymFn_cmp) (void *, void *); /* 0 mean match */ -#else - typedef int (*XeSymFn_cmp) (); -#endif - - -/* HASH_FN: */ -/* */ -/* Note, the internal hash function in not user accesable. */ -/* */ -/* Used for Xe_intern() and XeRegisterSymbol() */ -/* */ -/* If NO "hash_fn", internal_hash("next_table_entry"->name, "name") */ -/* If "hash_fn", hash_fn("next_table_entry"->name, "name") */ -/* */ -/* Used for Xe_intern_anysym() */ -/* */ -/* If NO "hash_fn", internal_hash("next_table_entry"->name, "data"->name)*/ -/* If "hash_fn", hash_fn("next_table_entry" , "data") */ -/* ----------------------------------------------------------------------- */ - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - typedef unsigned int (*XeSymFn_hash) (void *, unsigned int); -#else - typedef unsigned int (*XeSymFn_hash) (); -#endif - -/* INIT_FN: */ -/* */ -/* Used for Xe_intern() and XeRegisterSymbol() */ -/* */ -/* 1) A XeSymbol entry is created, */ -/* - XeSymbol->name = strdup("name"), */ -/* - XeSymbol->value = NULL */ -/* 2) If a "init_fn" is configured, */ -/* - XeSymbol->value = init_fn( XeSymbol, 0 ) */ -/* */ -/* Used for Xe_intern_anysym() */ -/* */ -/* 1) If "size" != 0, */ -/* - malloc "size" bytes, */ -/* - copy "size" bytes from "data" into malloced space, */ -/* - Save pointer to malloc space as user's data pointer */ -/* Else */ -/* - Save "data" as pointer to user's data */ -/* 3) If a "init_fn" is configured, */ -/* - call init_fn( user's data pointer, "size" ) */ -/* - set user's data pointer to return value of init_fn */ -/* ONLY if "size" was zero. */ -/* */ -/* If size is non zero AND there is a user's malloc function, */ -/* beware that the return value from the malloc function is not */ -/* save anywhere by these routines. If size was zero, the */ -/* return value of the user's function is kept. */ -/* */ -/* -------------------------------------------------------------------- */ - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - typedef void * (*XeSymFn_init)(void *, unsigned int); -#else - typedef void * (*XeSymFn_init)(); -#endif - -/* CLEAN_FN: */ -/* */ -/* If created by Xe_intern() or XeRegisterSymbol() */ -/* */ -/* 1) free(XeSymbol->name) */ -/* 2) If a "clean_fn" is configured, */ -/* - clean_fn(XeSymbol->value), */ -/* - the XeSymbol entry is deleted. */ -/* */ -/* If created by Xe_intern_anysym() */ -/* */ -/* 1) If a "clean_fn" is configured, */ -/* - init_fn( user's data pointer, "size" ) */ -/* 2) If "size" != 0 during at creation time, */ -/* - free( user's data pointer ) */ -/* */ -/* Take note of the what happens during creation with "size" is */ -/* non-zero and there is a user's malloc function. The result of */ -/* the user's malloc function will be passed to this clean function */ -/* only if "size" was zero at creation time. Otherwise, the memory */ -/* malloc'ed by this routine due to the non-zero size parameter is */ -/* what is passed to the user's clean function. */ -/* -------------------------------------------------------------------- */ - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - typedef void (*XeSymFn_clean) (void *); -#else - typedef void (*XeSymFn_clean) (); -#endif - -/* This is what an internal symbol table entry looks like: */ -/* ------------------------------------------------------- */ -typedef struct _XeSymtabList { - struct _XeSymtabList *rest; - void *data; - Boolean data_is_XeSymbol; - Boolean data_is_malloc_mem; -} *XeSymtabList; - - -/* This is the master record for a symbol table */ -/* -------------------------------------------- */ - -typedef struct _XeSymTable -{ - unsigned int hashsize; /* # of hash buckets. */ - XeSymtabList *list; /* Hash buckets. */ - - XeSymtabList curr_list; /* Used to dump/traver the table. */ - unsigned int curr_hash; - - XeSymFn_cmp cmp_fn; /* Read above description with each */ - XeSymFn_hash hash_fn; /* function typedef for more info. */ - XeSymFn_init init_fn; - XeSymFn_clean clean_fn; -} *XeSymTable; - - -/* Create a new hashtable. "hashsize must be power of 2 if using default */ -/* hash function (no checking is done to ensure this). */ -/* --------------------------------------------------------------------- */ -XeSymTable Xe_new_symtab -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (unsigned int hashsize); -#else - (); -#endif - - -/* Create the default symbol table. If already created, just */ -/* return the symtable pointer. */ -/* ---------------------------------------------------------- */ -XeSymTable Xe_default_symtab -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void); -#else - (); -#endif - - -/* Configure user defined function for use with symtab routines. */ -/* NOTE: Be sure you understand the interaction of these functions */ -/* Read the decriptions with each of the typdef's above. A */ -/* null function pointer will overwrite any previously */ -/* installed value. */ -/* --------------------------------------------------------------- */ -XeSymTable Xe_set_sym_fns -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeSymTable t, - XeSymFn_cmp cmp_fn, - XeSymFn_init init_fn, - XeSymFn_clean clean_fn, - XeSymFn_hash hash_fn); -#else - (); -#endif - - -/* Find or create a symbol for "name". Its "value" is set to NULL. */ -/* None of the user defined init/cmp, etc functions are honored by */ -/* this routine */ -/* WARNING: Read the notes for the function typedef's above. */ -/* ----------------------------------------------------------------- */ -XeSymbol Xe_intern -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeSymTable t, ConstXeString const name); -#else - (); -#endif - - -/* Find the symbol for "name". NULL is returned if not found. */ -/* None of the user defined init/cmp, etc functions are honored by */ -/* this routine */ -/* WARNING: Read the notes for the function typedef's above. */ -/* ----------------------------------------------------------------- */ -XeSymbol Xe_lookup -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeSymTable t, ConstXeString const name); -#else - (); -#endif - - -/****************************************************************************/ -/* LISTS */ - -typedef struct _XeList { - struct _XeList *rest; - void *data; -} *XeList; - -/* make a list from data and rest */ -/* ------------------------------ */ -XeList Xe_make_list -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void *data, XeList rest); -#else - (); -#endif - - -/****************************************************************************/ -/* QUEUES */ - -typedef struct _XeQueue { - XeList head; - XeList tail; - void * null; -} *XeQueue; - -/* for static or auto struct queues */ -/* -------------------------------- */ -XeQueue Xe_init_queue -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeQueue q, void * nullval); -#else - (); -#endif - -XeQueue Xe_make_queue -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (void * nullval); -#else - (); -#endif - -void Xe_release_queue -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeQueue q); -#else - (); -#endif - -/* nullval returned if queue empty */ -/* ------------------------------- */ -void * Xe_pop_queue -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeQueue q); -#else - (); -#endif - -/* nullval returned if not found */ -/* ------------------------------- */ -void * Xe_delete_queue_element -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeQueue q, void * val); -#else - (); -#endif - -void Xe_push_queue -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeQueue q, void * val); -#else - (); -#endif - -/* user declares his own "type var" */ -/* -------------------------------- */ -#define Xe_for_queue(type,var,q) \ - XeList q_next, q_list; \ - for(q_list = q->head; \ - q_list && (var = (type) q_list->data, q_next = q_list->rest , 1);\ - q_list = q_next) - - -/* PUT NOTHING AFTER THIS endif */ -#endif /* _Symbolic_h_ */ - diff --git a/cde/lib/DtSvc/include/bms/XeUserMsg.h b/cde/lib/DtSvc/include/bms/XeUserMsg.h deleted file mode 100644 index 6d2925d7..00000000 --- a/cde/lib/DtSvc/include/bms/XeUserMsg.h +++ /dev/null @@ -1,67 +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: XeUserMsg.h $XConsortium: XeUserMsg.h /main/3 1995/10/26 15:46:16 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 _XeUserMsg_h -#define _XeUserMsg_h - -#include - -/* Global Variables */ -/* ---------------- */ - -extern XeString XeProgName; /* saves value of arg[0] */ - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) -typedef enum { - XeIgnore, - XeInformation, - XeWarning, - XeError, - XeFatalError, - XeInternalError -} XeSeverity; -#else -# define XeIgnore 0 -# define XeInformation 1 -# define XeWarning 2 -# define XeError 3 -# define XeFatalError 4 -# define XeInternalError 5 - typedef int XeSeverity; -#endif - -#define export /* Use this noop to mark non-static procedures. */ - -#endif /* _XeUserMsg_h */ -/* DON'T ADD STUFF AFTER THIS #endif */ diff --git a/cde/lib/DtSvc/include/bms/bms.h b/cde/lib/DtSvc/include/bms/bms.h deleted file mode 100644 index 15e03b75..00000000 --- a/cde/lib/DtSvc/include/bms/bms.h +++ /dev/null @@ -1,76 +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: bms.h $XConsortium: bms.h /main/4 1996/06/21 17:20:07 ageorge $ - * 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 _bms_h -#define _bms_h - -#ifdef SVR4 -#include /* MAXHOSTNAMELEN */ -#else -#include /* MAXHOSTNAMELEN */ -#endif - -/* WARNINGS: */ -/* */ -/* 1) MUST included before this file. */ -/* 2) Any includes MUST come before this file. */ -/* ---------------------------------------------------------- */ - -#ifndef _XtIntrinsic_h /* Define "Boolean" if not already */ - typedef char Boolean; /* defined from */ -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - -#ifndef FALSE -#define FALSE 0 -#endif - -extern char *XeToolClass; - -extern XeString XeProgName; /* From noXinit.c */ - -extern XeString /* Returns Malloc'ed memory */ -XeSBTempPath -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString); -#else - (); -#endif - -/* DON'T ADD STUFF AFTER THIS #endif */ -#endif /* _bms_h */ - diff --git a/cde/lib/DtSvc/include/bms/connect.h b/cde/lib/DtSvc/include/bms/connect.h deleted file mode 100644 index af209a65..00000000 --- a/cde/lib/DtSvc/include/bms/connect.h +++ /dev/null @@ -1,223 +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:47:00 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 _connect_h -#define _connect_h - -#if defined(__cplusplus) && defined(__c_callable) -extern "C" { -#endif - -int XeParseFileString -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString line, XeString *host_addr, XeString *path_addr); -#else - (); -#endif -#if defined(__cplusplus) && defined(__c_callable) -} -#endif - -/* - Take the filespec as a line and return a path the host and path - components as separate fields (finds the ':' and replaces it with - NULL). THIS FUNCTION MUNGES THE ORIGINAL LINE. -*/ - -extern XeString XeFindHost -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString host_spec); -#else - (); -#endif - -extern XeString XeFindShortHost -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString host_spec); -#else - (); -#endif -/* - Returns a host name corresponding to host_spec. - - In all cases a NEW STRING, OWNED BY THE - CALLER, is returned. XeFindHost returns the full host specification - including domain if there is one. XeFindShortHost does not - include the domain. These functions can be used to convert between - domain and simple names when needed. The domain names should be - used always internally and the simple names only used for display. -*/ - -extern int Xegethostname -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString hostname, unsigned int size); -#else - (); -#endif - -#if defined(__cplusplus) && defined(__c_callable) -extern "C" { -#else -extern -#endif -int Xegetshorthostname -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString hostname, unsigned int size); -#else - (); -#endif -#if defined(__cplusplus) && defined(__c_callable) -} -#endif - -/* - Identical to the libc function gethostname, except that Xegethostname - returns a full domain qualified name and Xegetshorthostname returns - a simple name. These functions are necessary because the system - hostname may or may not contain a domain name and the internal - representation should always be canonical form (domain qualified). - Use Xegethostname except when the name is being used for display - purposes only. Storage allocation is identical to gethostname - (it copies into the caller's buffer). -*/ - -#if defined(__cplusplus) && defined(__c_callable) -extern "C" { -#else -extern -#endif -Boolean XeIsLocalHostP -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString hostname); -#else - (); -#endif -#if defined(__cplusplus) && defined(__c_callable) -} -#endif - -/* - Returns true if the hostname passed in identifies the host on which - this function is executed. This is needed in order to handle all - combinations of simple and domain-qualified names for either the - hostname passed in or the one defined on the local host. Be sure - to include Xe.h or provide a local declaration for this function - as Boolean is not the same length as int and it won't function - correctly without the declaration. -*/ -#if defined(__cplusplus) && defined(__c_callable) -extern "C" { -#else -extern -#endif -Boolean XeIsSameHostP -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString host1, XeString host2); -#else - (); -#endif -#if defined(__cplusplus) && defined(__c_callable) -} -#endif - -/* - Returns true if host1 and host2 specify the same host. This is - needed, because either or both hosts may be specified with or - without domain qualifiers, and the correct result must be - obtained. This function canonicalizes both and compares them - only in canonical form. -*/ - -extern Boolean XeIsSameHostP -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString host1, XeString host2); -#else - (); -#endif -/* - Returns true if host1 and host2 specify the same host. This is - needed, because either or both hosts may be specified with or - without domain qualifiers, and the correct result must be - obtained. This function canonicalizes both and compares them - only in canonical form. -*/ - -XeString XeCreateContextString -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString host, XeString directory, XeString file); -#else - (); -#endif -/* - XeCreateContextString changes the given context into a - label which is exactly the same as the one shown in a - fileview modeline. A NEW STRING, OWNED BY THE CALLER, - is returned. -*/ - -#define XeEliminateDots(path) (XeString)pathcollapse(path, path, FALSE) -/* - Removes /./'s and /../ 's from path. THIS ROUTINE OVERWRITES - THE path IT WAS PASSED. If there are too many ..'s in path, - NULL is returned, so you better keep a pointer to path if you hope - to reclaim it. Does not handle host:/path, shell variables or other - exotic animals. -*/ - -int Xechdir -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (const char *path); -#else - (); -#endif -/* - performs a chdir and caches the new directory in $PWD so that - Xegetcwd() can get the current directory without slow stat calls -*/ - -char *Xegetcwd -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (char *buf, - int size); -#else - (); -#endif -/* - version of getcwd() which uses cached $PWD (or $PWD from shell) - if available and calls getcwd only when PWD not set -*/ - -/* DON'T ADD STUFF AFTER THIS #endif */ -#endif /* _connect_h */ - diff --git a/cde/lib/DtSvc/include/bms/pathwexp.h b/cde/lib/DtSvc/include/bms/pathwexp.h deleted file mode 100644 index 6571cac0..00000000 --- a/cde/lib/DtSvc/include/bms/pathwexp.h +++ /dev/null @@ -1,45 +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: pathwexp.h $XConsortium: pathwexp.h /main/3 1995/10/26 15:47:18 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 _pathwexp_h -#define _pathwexp_h - -extern XeString Xe_shellexp -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString path); -#else - (); -#endif - -#endif /* _pathwexp_h */ diff --git a/cde/lib/DtSvc/include/bms/sbport.h b/cde/lib/DtSvc/include/bms/sbport.h deleted file mode 100644 index 8f26b028..00000000 --- a/cde/lib/DtSvc/include/bms/sbport.h +++ /dev/null @@ -1,294 +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: sbport.h $TOG: sbport.h /main/4 1998/03/16 14:40:52 mgreess $ - * 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 PORT_H_INCLUDED -#define PORT_H_INCLUDED - -/*--------------------------------------------------------------------------- - - The following is a list of #defines that may be tested for in the code: - ======================================================================= - - __STDC__ - Will be set for ANSI C compilers - __cplusplus - Will be set for C++ compilers - __STDCPP__ - Will be set for ANSI and C++ compilers - - __hpux - Will be set for HP-UX systems - __sun - Will be set for SUN systems - __aix - Will be set for IBM (AIX) systems - - __sysv - Set when using SYSV semantics (e.g. HP, SUN) - SYSV - Set when __sysv is set (needed for some X11 includes) - __bsd - Set when using BSD semantics - - __hp_7_0 - For running on HP-UX 7.0 - __hp_nls_16 - Set if HP's 16 bit support is to be compiled in - __hp_color_object - Set if HP's ColorObject extension is available in the Motif library - __hp9000s300 - Set for S300 (and S400?) HP-UX machines - __hp9000s800 - Set for S800 (PA-RISC) machines - - __sparc - Set for SUN sparc machines - __sun68k - Set for SUN m68k machines - - __identification_strings - Set when RCS header strings are to be in code - __recursive_includes - Set to have .h files #includes prerequisite files - __char_ptr_yytext - Set if the lex/yacc variable yytext is defined - to be of type char[]. - __unsigned_char_ptr_yytext - Set if the lex/yacc variable yytext is defined - to be of type unsigned char[]. - - KEEP_DEADWOOD - Currently set to "FALSE". If set to "TRUE", - lots of old code and semantics will be enabled. - -----------------------------------------------------------------------------*/ - - - -/* First task is to make sure all of the defines that we use in the */ -/* code are properly set up. */ -/* ---------------------------------------------------------------- */ -#if !defined(sun) -#if !defined(__STDCPP__) && (defined(__STDC__) || defined(__cplusplus)) -# define __STDCPP__ -#endif -#endif - -#if defined(sun) && !defined(__sun) -# define __sun -#endif - -#if defined(hpux) && !defined(__hpux) -# define __hpux -#endif - -#if defined(_AIX) && !defined(__aix) -# define __aix -# define OSF_MOTIF_1_1_1 -# define OSF_BUG -#endif - -#ifdef __hpux -# define __sysv -/* __hp9000s300 or __hp9000s800 is defined by HP-UX cpp */ -# if !defined (__hpux_8_0) -# define __hp_7_0 -# endif -# define __hp_nls_16 -# define __hp_color_object -# define __unsigned_char_ptr_yytext -#endif /* __hpux */ - -#ifdef __sun -# if defined(sparc) && !defined(__sparc) -# define __sparc -# else -# if defined(mc68000) || defined(__mc68000) -# define __sun68k -# endif -# endif -# define __hp_color_object /* Should only be set if linking with */ - /* HP's version of Motif (1.1 or later). */ -# define __char_ptr_yytext -# define __c_callable /* Set so VUE can link with libbms. */ -#endif - -#ifdef __aix -# define __sysv -#endif - -#if defined(__sysv) && !defined(SYSV) -# define SYSV /* Needed for X11 include files */ -#endif - -#ifndef KEEP_DEADWOOD /* Setting this to "TRUE" will cause */ -# define KEEP_DEADWOOD FALSE /* all sorts of unknown problems. */ -#endif - -#ifdef __cplusplus - -#define UNUSED_PARM(_parm) - -#else - -#define UNUSED_PARM(_parm) _parm - -#endif /* __cplusplus */ - -/* There are a few things that are not part of XPG3 that we need. */ -/* sockets are one of them. To use this stuff, we just include the */ -/* non XOPEN include files and things work. However, there are a */ -/* few XOPEN include files that have stuff to support this extra */ -/* functionality (e.g. sockets) that are #ifdef'ed for conditional */ -/* inclusion with the _XOPEN_SOURCE define. In order to pull those */ -/* extra types in, we relas the XPG3 compliance for that file. The */ -/* following are the three areas where we must do this: */ -/* */ -/* __need_timeval gets "struct timeval" */ -/* __need_fd_set gets "typedef struct fd_set {..." */ -/* __need_S_IF gets "S_IFNWK, S_IFLNK" */ -/* __need_all_signals gets all SIGxxx values */ -/* __need_all_errors gets all errno values */ -/* */ -/* We get at these declarations differently on each platform... */ -/* ----------------------------------------------------------------- */ - -#if defined(__need_timeval) /* Get "struct timeval" */ -# if defined(__sun) || defined(__aix) -# include -# endif -#endif /* __need_timeval */ - - -#if defined(__need_fd_set) /* Get "typedef struct fd_set" */ -# ifdef _AIX -# include -# endif -#endif /* __need_fd_st */ - -/* We also use the following non XPG3 types. However, they may be */ -/* defined when we relax the XPG3 compliance to get the stuff talked */ -/* about above. So, declare them only if we don't already have them */ -/* ----------------------------------------------------------------- */ - -#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__) - /* the "u_types" are defined in standard files */ -# undef _INCLUDE_BSD_SOURCE -#else - typedef unsigned int u_int; - typedef unsigned char u_char; - typedef unsigned short u_short; - typedef unsigned long u_long; -#endif - -/* Use these if you must ensure that you get a specific number of bits */ -/* -------------------------------------------------------------------- */ -typedef char int8; -typedef short int16; -typedef long int32; -typedef unsigned char u_int8; -typedef unsigned short u_int16; -typedef unsigned long u_int32; - -#define __xechar_is_signed -#undef __xechar_is_unsigned - -#ifdef __xechar_is_signed -typedef char XeChar; -#else -typedef unsigned char XeChar; -#endif - - -/* The following type is a VARIABLE pointer to a VARIABLE XeChar. */ - -typedef XeChar *XeString; - -/*********************************************************************** -* The following type is a VARIABLE pointer to a CONST XeChar. -* Thus, ConstXeString p; -* p = "abcd"; #Legal -* *p = "\0'; #Illegal -* -* This is NOT the same as (const XeString) -* which is equivilent to (XeChar * const) -* -* Thus, const XeString p; -* p = "abcd"; #Illegal -* *p = "\0'; #Legal -* -************************************************************************/ - -typedef const XeChar *ConstXeString; - -typedef unsigned short XeChar16; -typedef XeChar16 *XeString16; - -#define XeString_NULL (XeString) 0 -#define XeString_Empty (XeString) "" -#define XeChar_NULL (XeChar) 0 - -/* XtPointer was added in R4, so define it ourselves in R3 */ -#ifdef __motif10 -typedef void * XtPointer; -#endif - - -/* The X11 R4 header file "Intrinsic.h" is internally inconsistent */ -/* with respect to XtAppAddInput. The third parameter ("condition") */ -/* is defined to be of type XtPointer (void *), but the input masks */ -/* commonly used with it are scalar values. Until the problem is */ -/* corrected by M.I.T, use the following type as a cast in calls */ -/* to XtAppAddInput. When it is corrected, change this typedef */ -/* accordingly. */ -/* ---------------------------------------------------------------- */ -typedef void * XeInputMask; - -#ifdef __cplusplus -/* Define several macros to handle the C++ vs XtOffset problem. */ -/* The problem is that C++ cannot at compile time evaluate the */ -/* XtOffset macro within an initializer. XtOffset is most often */ -/* used within an XtResource array initialization list. */ -/* class_names must be a typedef, non pointer type. */ -/* ---------------------------------------------------------------- */ - -#define XtOffsetSimpleField(class_name,field) \ - ((Cardinal) &class_name::field - 1) - -#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \ - (((Cardinal) &class_name1::field1 - 1) + ((Cardinal) &class_name2::field2 - 1)) - -#else -#define XtOffsetSimpleField(class_name,field) \ - ((Cardinal) (((char *) (&(((class_name *)NULL)->field))) - ((char *) NULL))) - -#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \ - ((Cardinal) (((char *) (&(((class_name1 *)NULL)->field1))) - ((char *) NULL))) + \ - ((Cardinal) (((char *) (&(((class_name2 *)NULL)->field2))) - ((char *) NULL))) -#endif - -#ifndef __identification_strings -#define SUPPRESS_RCS_ID /*forces equivalent action for VED/EDIT shared files*/ -#endif - -#ifndef SBSTDINC_H_NO_INCLUDE -#include -#endif - -#ifdef __aix -# undef NULL -# define NULL 0 /* AIX uses NULL=(void *)0 */ -#endif - -#endif /* PORT_H_INCLUDED */ - diff --git a/cde/lib/DtSvc/include/bms/sbstdinc.h b/cde/lib/DtSvc/include/bms/sbstdinc.h deleted file mode 100644 index 17dc5209..00000000 --- a/cde/lib/DtSvc/include/bms/sbstdinc.h +++ /dev/null @@ -1,244 +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: sbstdinc.h $TOG: sbstdinc.h /main/7 1998/07/31 17:50:45 mgreess $ - * 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 _sbstdinc_h -#define _sbstdinc_h - -#include -#include - -#ifdef SVR4 -#include /* MAXHOSTNAMELEN */ -#endif /* SVR4 */ - -#ifndef howmany -#define howmany(x, y) (((x)+((y)-1))/(y)) /* From , but not an XPG3 file */ -#endif - -#include -#include -#include -#include -#include -#include -#include - -/************************************************************************/ -/* Routines not defined in include files (yet). */ -/************************************************************************/ - -/* BSD has bzero(), bcmp(), and bcopy() defined. */ -#if !defined(__bsd) && !defined(CSRG_BASED) - -#if defined(__STDC__) -#if !defined(__linux__) && !defined(_XFUNCS_H_) && !defined(sun) -extern void bcopy(char *b1, char *b2, int length); -extern int bcmp(char *b1, char *b2, int length); -extern void bzero(char *b, int length); -#endif - -extern char *mktemp(char *tmplate); -#elif ! defined(__cplusplus) -#if !defined(__linux__) && !defined(_XFUNCS_H_) -extern void bcopy(); -extern int bcmp(); -extern void bzero(); -#endif - -extern char *mktemp(); -#endif - -#endif - - -#ifndef SBSTDINC_H_NO_REDEFINE /* sbstdinc.c turns this on */ - -/************************************************************************/ -/* Routines from */ -/* --- These always get redefined so we can catch null ptr deref's */ -/************************************************************************/ - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrcat(XeString s1, ConstXeString s2); -#else -extern XeString Xestrcat(); -#endif -#ifdef strcat -# undef strcat -#endif -#define strcat Xestrcat - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrncat(XeString s1, ConstXeString s2, size_t n); -#else -extern XeString Xestrncat(); -#endif -#ifdef strncat -# undef strncat -#endif -#define strncat Xestrncat - -#if defined(__STDC__) || defined(__cplusplus) -extern int Xestrcmp(ConstXeString s1, ConstXeString s2); -#else -extern int Xestrcmp(); -#endif -#ifdef strcmp -# undef strcmp -#endif -#define strcmp Xestrcmp - -#if defined(__STDC__) || defined(__cplusplus) -extern int Xestrncmp(ConstXeString s1, ConstXeString s2, size_t n); -#else -extern int Xestrncmp(); -#endif -#ifdef strncmp -# undef strncmp -#endif -#define strncmp Xestrncmp - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrcpy(XeString s1, ConstXeString s2); -#else -extern XeString Xestrcpy(); -#endif -#ifdef strcpy -# undef strcpy -#endif -#define strcpy Xestrcpy - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrncpy(XeString s1, ConstXeString s2, size_t n); -#else -extern XeString Xestrncpy(); -#endif -#ifdef strncpy -# undef strncpy -#endif -#define strncpy Xestrncpy - -#if defined(__STDC__) || defined(__cplusplus) -extern int Xestrcoll(ConstXeString s1, ConstXeString s2); -#else -extern int Xestrcoll(); -#endif -#ifdef strcoll -# undef strcoll -#endif -#define strcoll Xestrcoll - -#if defined(__STDC__) || defined(__cplusplus) -extern size_t Xestrxfrm(XeString s1, ConstXeString s2, size_t n); -#else -extern size_t Xestrxfrm(); -#endif -#ifdef strxfrm -# undef strxfrm -#endif -#define strxfrm Xestrxfrm - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrchr(ConstXeString s, int c); -#else -extern XeString Xestrchr(); -#endif -#ifdef strchr -# undef strchr -#endif -#define strchr Xestrchr - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrpbrk(ConstXeString s1, ConstXeString s2); -#else -extern XeString Xestrpbrk(); -#endif -#ifdef strpbrk -# undef strpbrk -#endif -#define strpbrk Xestrpbrk - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrrchr(ConstXeString s, int c); -#else -extern XeString Xestrrchr(); -#endif -#ifdef strrchr -# undef strrchr -#endif -#define strrchr Xestrrchr - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrstr(ConstXeString s1, ConstXeString s2); -#else -extern XeString Xestrstr(); -#endif -#ifdef strstr -# undef strstr -#endif -#define strstr Xestrstr - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrtok(XeString s1, ConstXeString s2); -#else -extern XeString Xestrtok(); -#endif -#ifdef strtok -# undef strtok -#endif -#define strtok Xestrtok - -#if defined(__STDC__) || defined(__cplusplus) -extern size_t Xestrlen(ConstXeString s); -#else -extern size_t Xestrlen(); -#endif -#ifdef strlen -# undef strlen -#endif -#define strlen Xestrlen - -#if defined(__STDC__) || defined(__cplusplus) -extern XeString Xestrdup(ConstXeString s); -#else -extern XeString Xestrdup(); -#endif -#ifdef strdup -# undef strdup -#endif -#define strdup Xestrdup - -#endif /* ifndef SBSTDINC_H_NO_REDEFINE */ - -#endif /* _sbstdinc_h */ diff --git a/cde/lib/DtSvc/include/bms/scoop.h b/cde/lib/DtSvc/include/bms/scoop.h deleted file mode 100644 index b06772eb..00000000 --- a/cde/lib/DtSvc/include/bms/scoop.h +++ /dev/null @@ -1,162 +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: scoop.h $XConsortium: scoop.h /main/3 1995/10/26 15:48:17 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 _scoop_h -#define _scoop_h - -#ifndef NULL -#define NULL 0L -#endif - -#ifndef TRUE -#define FALSE 0 -#define TRUE 1 -#endif /* TRUE */ - -#if !defined(__sun) -# if (defined(__STDC__) || defined(__STDCPP__) || defined(__cplusplus) || defined(c_plusplus)) -# define CAT(a,b) a##b -# else -# define CAT(a,b) a/**/b -# endif -#else - /* Sun C++ compiler uses the non-ansi cpp. */ -# if defined(__cplusplus) -# define CAT(a,b) a/**/b -# else -# define CAT(a,b) a##b -# endif -#endif - - -typedef long OSizeType ; - -typedef struct root_class *root_clasp, *object_clasp ; - -typedef struct object_struct object; - -typedef void (*SC_class_init)(object_clasp); -typedef void (*SC_object_init)(object *); -typedef object * (*SC_new_obj)(object_clasp); -typedef void (*SC_free_obj)(object *); -typedef object * (*SC_clone)(object *, object *); - -#define root_class_part \ - XeString name ; /* class name */ \ - SC_class_init class_init; /* fn to init my class struct */ \ - OSizeType object_size ; /* size of object of this class */ \ - short init ; /* boolean--class initialized state */ \ - SC_object_init object_init; /* fn to init my object struct */ \ - SC_new_obj new_obj; /* fn to allocate class objects */ \ - SC_free_obj free_obj; /* fn to free class objects */ \ - SC_clone clone; /* `method' to clone an object */ \ - /* no root private parts */ - -#define root_object_part - -struct object_struct -{ root_clasp class_ptr; - root_object_part - }; - -struct root_class - { object_clasp base ; /* pointer to base class */ - root_class_part } ; - -#define memf(vref, fn, arglist) ( (vref class_ptr)->fn arglist) -#define memvf0(v,fn) memf(v., fn, (&(v))) -#define memvf1(v,fn,a1) memf(v., fn, (&(v),a1)) -#define memvf2(v,fn,a1,a2) memf(v., fn, (&(v),a1,a2)) -#define memvf3(v,fn,a1,a2,a3) memf(v., fn, (&(v),a1,a2,a3)) -#define memvf4(v,fn,a1,a2,a3,a4) memf(v., fn, (&(v),a1,a2,a3,a4)) -#define memvf5(v,fn,a1,a2,a3,a4,a5) memf(v., fn, (&(v),a1,a2,a3,a4,a5)) -#define memvf6(v,fn,a1,a2,a3,a4,a5,a6) memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6)) -#define memvf7(v,fn,a1,a2,a3,a4,a5,a6,a7) \ - memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7)) -#define memvf8(v,fn,a1,a2,a3,a4,a5,a6,a7,a8) \ - memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8)) -#define memvf9(v,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \ - memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8,a9)) -#define mempf0(p,fn) memf(p->, fn, (p)) -#define mempf1(p,fn,a1) memf(p->, fn, (p,a1)) -#define mempf2(p,fn,a1,a2) memf(p->, fn, (p,a1,a2)) -#define mempf3(p,fn,a1,a2,a3) memf(p->, fn, (p,a1,a2,a3)) -#define mempf4(p,fn,a1,a2,a3,a4) memf(p->, fn, (p,a1,a2,a3,a4)) -#define mempf5(p,fn,a1,a2,a3,a4,a5) memf(p->, fn, (p,a1,a2,a3,a4,a5)) -#define mempf6(p,fn,a1,a2,a3,a4,a5,a6) memf(p->, fn, (p,a1,a2,a3,a4,a5,a6)) -#define mempf7(p,fn,a1,a2,a3,a4,a5,a6,a7) \ - memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7)) -#define mempf8(p,fn,a1,a2,a3,a4,a5,a6,a7,a8) \ - memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8)) -#define mempf9(p,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \ - memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8,a9)) - -#define memd(vref, dm) (vref dm) -#define base_memf(my_class, fn, arglist) \ - ((*(my_class->base->fn)) arglist) - -#define memfp(vref, fn, arglist) memf (vref, CLASS.fn, arglist) -#define memdp(vref, dm) memd (vref, CLASS.dm) - -#define memvs(v, sdm) (*((v.class_ptr)->sdm)) -#define memps(p, sdm) (*((p->class_ptr)->sdm)) -#define stat_def(name, type) type *name; type CAT(name,_static) ; -#define stat_init(def_class, class_ptr, name) \ - (class_ptr->name) = &(def_class->CAT(name,_static)) - -extern object_clasp root_class ; - -extern void object_destroy -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (object *p); -#else - (); -#endif - -extern object *object_create -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (object_clasp c); -#else - (); -#endif - -extern void object_init -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (object_clasp c, object *p); -#else - (); -#endif - -#endif /* _scoop_h */ -/* PLACE NOTHING AFTER THIS endif */ diff --git a/cde/lib/DtSvc/include/bms/spc.h b/cde/lib/DtSvc/include/bms/spc.h deleted file mode 100644 index d0ce4863..00000000 --- a/cde/lib/DtSvc/include/bms/spc.h +++ /dev/null @@ -1,489 +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:48:38 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 _spc_h -#define _spc_h - -/* -------------------------------------------- */ -/* Requires: */ -#include -#include - -#include - -/* -------------------------------------------- */ - -typedef struct _SPC_Channel *SPC_Channel_Ptr; - -typedef struct _XeHostInfo { - XeString os; - XeString os_ver; - XeString hw_arch; -} *XeHostInfo; - -extern FILE *SPC_Print_Protocol; -extern FILE *spc_logF; -extern XeString spc_user_environment_file; - -/* Error returns for SPC routines */ - -#define SPC_ERROR FALSE /* Use this value for error checking */ - -/* - * These are the channel connector definitions - */ - -#define STDIN 0 -#define STDOUT 1 -#define STDERR 2 - -#define MASTER_SIDE 0 -#define SLAVE_SIDE 1 - -/* These are the sub-process notification identifiers */ - -#define SPC_PROCESS_STOPPED 1 /* Child process is in background */ -#define SPC_PROCESS_EXITED 2 /* Child process called exit(cause); */ -#define SPC_PROCESS_SIGNALLED 3 /* Child process received signal: cause */ -#define SPC_PROCESS_INTERRUPT 4 /* Child process WAIT was interrupted */ -#define SPC_PROCESS_DUMPED(a) ((a) & 0200) /* True when core dumped */ - -/* This is the maximum size of an SPC I/O Buffer */ -#define SPC_BUFSIZ 4096 - -/* - * These macros define the bit field portion of an SPC_IOMode - */ - -#define SPCIO_ALL_MASK 0xffffffff - -/* The IO Modes that define the input and output sources */ - -#define SPCIO_SOURCE_MASK 0xf -#define SPCIO_NOIO 0x0 /* The default - no input/output */ -#define SPCIO_WRITEONLY 0x1 /* Only write app stdin */ -#define SPCIO_READONLY 0x2 /* Only read app stdout */ -#define SPCIO_READWRITE 0x3 /* Read stdout, write stdin */ -#define SPCIO_ERRORONLY 0x4 /* Only read stderr */ -#define SPCIO_WRITEERROR 0x5 /* Write stdin, read stderr */ -#define SPCIO_READERROR 0x6 /* Only read stdout/stderr */ -#define SPCIO_READWRITEERROR 0x7 /* Full std (in, out, err) */ - -/* Use this bit with above IO Mode for splitting stdout and stderr data */ - -#define SPCIO_SEPARATEREADERROR 0x8 /* Separate stdout & stderr */ - -/* The IO Modes that deal with communication styles (features) */ -#define SPCIO_STYLE_MASK 0x70 -#define SPCIO_PTY 0x10 /* Use a PTY */ -#define SPCIO_PIPE 0x20 /* Use pipe() - no line editing */ -#define SPCIO_NOIOMODE 0x40 /* Use neither */ - -#define SPCIO_LINEEDIT 0x80 /* Valid only with PTY */ - -/* Other flags */ - -#define SPCIO_SYSTEM 0x100 /* Use system() - Spawns a SHELL */ -#define SPCIO_LINEORIENTED 0x200 /* Invoke callback on line bounds */ - /* It is possible to break two byte - characters. See note on XeSPCRead. */ -#define SPCIO_WAIT 0x400 /* Wait for process to finish */ -#define SPCIO_USE_XTOOLKIT 0x800 /* Use the X toolkit */ -#define SPCIO_SYNC_TERMINATOR 0x1000 /* Handle termination synchronously */ -#define SPCIO_USE_LOGFILE 0x2000 /* Use logfile for stderr -- only - valid with SPCIO_NOIO */ - -#define SPCIO_SIGNAL_PGRP 0x20000 /* Propagate signals to entire process - group. */ -#define SPCIO_FORCE_CONTEXT 0x40000 /* Error on SPC Spawn if context dir - is not present */ - -/* - * Routines - */ - - -/* spc.c */ - - -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) -# define EXTERN_DECL(type, name, arglist) type name arglist -# if defined(__cplusplus) && defined(__c_callable) -# define EXTERN_C_CALLABLE(type, name, arglist) \ - extern "C" { type name arglist ; } -# else -# define EXTERN_C_CALLABLE(type, name, arglist) \ - EXTERN_DECL(type, name, arglist) -# endif -#else -#ifdef _AIX -# define EXTERN_C_CALLABLE(type, name, arglist) \ - extern type name arglist -# define EXTERN_DECL(type, name, arglist) \ - type name arglist -#else /* _AIX */ -# define EXTERN_DECL(type, name, arglist) name arglist -# define EXTERN_C_DECL(type, name, arglist) EXTERN_DECL(type, name, arglist) - -#endif /* (_AIX) */ -#endif - -EXTERN_C_CALLABLE(SPC_Channel_Ptr, XeSPCOpen, (XeString hostname, int iomode)); - -/* - Open an SPC channel. Process will run on 'hostname' (or the local - host if value is NULL), with the specified iomode. -*/ - -EXTERN_C_CALLABLE(int, XeSPCClose, (SPC_Channel_Ptr channel)); - -/* - Close an SPC channel. Closing a channel will automatically deactivate it - (meaning that any subprocess associated with the channel is terminated). -*/ - -EXTERN_DECL(int, XeSPCReset, (SPC_Channel_Ptr channel)); - -/* - Reset an SPC channel. This will allow it to be used in a subsequent - spawn or exec call. -*/ - - -EXTERN_DECL(int, XeSPCRead, - (SPC_Channel_Ptr channel, int connector, - XeString buffer, int length)); - -/* - Read length characters from an SPC channel into some preallocated buffer. - Note that it is possible to split a two-byte character, if the first - byte if the character is read in just at buffer[length]. However, the - next read will return the second byte (just like Unix read). The - 'connector' value is either STDOUT or STDERR. -*/ - -EXTERN_DECL(int, XeSPCWrite, - (SPC_Channel_Ptr channel, XeString buffer, int length)); - -/* - Write length characters from buffer to the standard input of a - process on the other side of an SPC channel. -*/ - -EXTERN_C_CALLABLE(int, XeSPCActive, (SPC_Channel_Ptr channel)); - -/* - Returns True when channel is active, False otherwise -*/ - -EXTERN_DECL(int, XeSPCData, (SPC_Channel_Ptr channel)); - -/* - Returns True when channel be read from, False otherwise -*/ - -EXTERN_C_CALLABLE(int, XeSPCSpawn, - (XeString pathname, XeString context_dir, XeString *argv, - XeString *envp, SPC_Channel_Ptr channel)); - -/* - Spawn an application under SPC -*/ - -EXTERN_DECL(SPC_Channel_Ptr, XeSPCOpenAndSpawn, - (XeString hostname, int iomode, XeString pathname, - XeString context_dir, XeString *argv, XeString *envp)); - -/* - Combine the Open and Spawn channel operations -*/ - -EXTERN_DECL(int, XeSPCExecuteProcess, (SPC_Channel_Ptr channel)); - -/* - Restart a new subprocess on a channel -*/ - -EXTERN_C_CALLABLE(void, XeSPCKillProcesses, (int wait)); - -/* - Kill all known executing processes (useful for catching SIGTERM, etc) -*/ - -EXTERN_DECL(int, XeSPCKillProcess, (SPC_Channel_Ptr channel, int wait)); - -/* - Kill executing process on an SPC channel. 'wait' TRUE means don't - return from call until process is completely terminated (including - after user specified callbacks are called). -*/ - -EXTERN_DECL(int, XeSPCInterruptProcess, (SPC_Channel_Ptr channel)); - -/* - Interrupt executing process on an SPC channel (send SIGINT). -*/ - -EXTERN_DECL(int, XeSPCSignalProcess, (SPC_Channel_Ptr channel, int sig)); - -/* - Send an arbitrary signal to executing process on an SPC channel. -*/ - -typedef - EXTERN_DECL(void, (*SbInputHandlerProc), - (void *client_data, XeString buf, int nchars, int connector)); - -EXTERN_C_CALLABLE(int, XeSPCAddInput, - (SPC_Channel_Ptr channel, - SbInputHandlerProc handler, - void *client_data)); - -/* - Add an input channel handler -*/ - -/* - * The user input handler takes the following form: - * - * void UserInputHandler(client_data, text, size, connection) - * void * client_data; *** Useful for passing widet destination *** - * XeString text; *** The text coming from the SPC channel *** - * int size; *** The number of character in passed text *** - * int connection; *** The connection where data was received *** - * *** (STDOUT or STDERR) *** - */ - -typedef - EXTERN_DECL(void, (*SPC_TerminateHandlerType), - (SPC_Channel_Ptr chan, - int pid, - int type, - int cause, - void *Terminate_Data)); - -EXTERN_C_CALLABLE(int, XeSPCRegisterTerminator, - (SPC_Channel_Ptr channel, - SPC_TerminateHandlerType teminator, - void * client_data)); - -/* - Add a termination handler to a channel (called when sub-process dies) -*/ - -/* - * The user termination handler takes the following form: - * - * void UserTerminator(channel, pid, type, cause, client_data) - * SPC_CHannel_ptr channel; - * int pid; *** The Process ID of the terminated appl. *** - * int type; *** The type of termination (see above) *** - * int cause; *** The number associated w/termination *** - * void * client_data; *** User specified client data *** - */ - -/* - * These are the channel access routines - */ - -EXTERN_DECL(XeString, XeSPCGetDevice, - (SPC_Channel_Ptr channel, int connector, int side)); - -/* - Return the device name associated with a side of a channel device - pair. 'connector' is either STDIN, STDOUT, or STDERR, and 'side' is - either MASTER_SIDE or SLAVE_SIDE. This call is valid only in PTY - channels. -*/ - -EXTERN_DECL(int, XeSPCGetProcessStatus, - (SPC_Channel_Ptr channel, int *type, int *cause)); - -/* - Fill in the type and cause of a process termination. -*/ - -EXTERN_DECL(int, XeSPCAttach, (SPC_Channel_Ptr channel, int pid)); - -/* - Returns True if a process ID was associated with an SPC channel. -*/ - -EXTERN_DECL(int, XeSPCDetach, (SPC_Channel_Ptr channel)); - -EXTERN_DECL(int, XeSPCGetPID, (SPC_Channel_Ptr channel)); - -/* - Returns the Process ID of the channel or NULL if none -*/ - -EXTERN_DECL(int, XeSPCGetLogfile, - (SPC_Channel_Ptr channel, XeString *host, XeString *file)); - -/* - Return the logfile for the channel. If the channel was not opened - with SPCIO_USE_LOGFILE specified, it will return NULL. Also note - that it returns an XeString *, not an XeString. -*/ - -EXTERN_DECL(int, XeSPCRemoveLogfile, (SPC_Channel_Ptr channel)); - -/* - Remove the logfile associated with the channel -*/ - -/* - * - * Features currently not implemented: - * - * SPCIO_WAIT with ptys - * - * SEPARATEREADERROR with ptys - * - * Complete error checking. For example, there - * are no checks for trying to write to a channel - * opened W/O SPCIO_WRITE specified - * - */ - -EXTERN_DECL(int, XeSPCGetChannelSyncFd, (SPC_Channel_Ptr channel)); - -/* - Get the file descriptor for checking synchronous termination. This - is used for interfacing with event loops. -*/ - -EXTERN_DECL(SPC_Channel_Ptr, XeSPCHandleTerminator, (int fd)); - -/* - Handle a synchronous termination condition - - This routine is to be used with the file descriptor returned by - XeSPCGetChannelSyncFd. The idea is that one opens a channel using - SPCIO_SYNC_TERMINATOR set in the iomode, and then at some point - checks for input available on the returned file descriptor (possibly - using a select(2) system call). If there is input, it means that - some SYNC_TERMINATOR channel had a subprocess die. The program then - calls XeSPCHandleTerminator to get the termination handler invoked. - IT IS THE RESPONSIBILITY OF THE USER PROGRAM TO EVENTUALLY CALL - XeSPCHandleTerminator. IF IT DOES NOT, THE PROGRAM MAY DEADLOCK - ITSELF. -*/ - - -/* SPC Error handling */ - -typedef struct _SPCError { /* An SPC Error message */ - XeString text; /* The text */ - XeString format; /* How to format args */ - XeSeverity severity; /* How bad is it, doc? */ - char use_errno; /* Whether to use the system errno */ -} SPCError; - -/* Use this to get the current error number */ - -extern int XeSPCErrorNumber; - -EXTERN_DECL(SPCError *, XeSPCLookupError, (int errnum)); - -/* - Returns the SPCError structure associated with the passed error number or - NULL if the passed error number is not a valid SPC error. The - error structure returned will be overwritten by a subsequent - XeSPCLookupError call. -*/ - -EXTERN_DECL(void, XeSPCShutdownCallbacks, (void)); - -EXTERN_DECL(void, XeSPCRestartCallbacks, (void)); - -/* These two routines are used to temporarily suspend SPC callbacks */ - -EXTERN_DECL(int, XeSetpgrp, (int read_current_termio)); - -/* - This routine will do the following: - - 1. open /dev/tty - 2. get the termio information from the file descriptor just opened - 3. close /dev/tty - 3. allocate a master / slave pty pair, opening the master side - 4. set the termio info of the master side to be the result of step 2 - 5. setpgrp - 6. open the slave side. - - All of this has the effect of making the process which called this - routine immune to interrupts, etc., but also passing on the termio - characteristics of the original tty. - - If read_current_termio is non-zero, steps 1-3 will NOT be performed, but - instead this routine will get the information from the following termio - struct: - -*/ - -EXTERN_DECL(XeHostInfo, SPC_GetHostinfo, (SPC_Channel_Ptr channel)); - -/* - Return information about the host (os, os-ver, hw) to which "channel" - is currently connected. The return is to a static structure of static - strings. Do not modify or free and of them! -*/ - -/* - ** - ** New B.00 functions - ** -*/ - -EXTERN_C_CALLABLE(int, XeSPCSendEOF, (SPC_Channel_Ptr channel)); - -/* - Close the standard input of the process on the other side of the channel -*/ - -EXTERN_C_CALLABLE(int, XeSPCSetTermio, - (SPC_Channel_Ptr channel, - int connection, - int side, - struct termios *termio)); - -/* - Set the termio value of the PTY associated with 'connection' (STDIN, - STDOUT, or STDERR), on 'side' (MASTER_SIDE or SLAVE_SIDE) to the - value pointed to by termio. This call must be made before the - subprocess is spawned. -*/ - -#endif /* #ifdef _spc_h */ diff --git a/cde/lib/DtSvc/include/bms/stringbuf.h b/cde/lib/DtSvc/include/bms/stringbuf.h deleted file mode 100644 index 39f14f76..00000000 --- a/cde/lib/DtSvc/include/bms/stringbuf.h +++ /dev/null @@ -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 - */ -/* - * File: stringbuf.h $XConsortium: stringbuf.h /main/3 1995/10/26 15:49:00 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 _stringbuf_h -#define _stringbuf_h - -typedef struct _XeStringBuffer { - int last_char; /* index of trailing NULL */ - int size; - int increment; /* how much to expand when more space is needed */ - XeString buffer; -} *XeStringBuffer; - - -int XeAppendToStringBuffer -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeStringBuffer buffer, XeString string); -#else - (); -#endif - -XeStringBuffer XeMakeStringBuffer -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (int increment_size); -#else - (); -#endif - - /* erase the contents (but don't deallocate any space). */ -void XeClearStringBuffer -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeStringBuffer buffer); -#else - (); -#endif - -/*** add nothing after the following endif ***/ -#endif /* _stringbuf_h */ diff --git a/cde/lib/DtSvc/include/bms/usersig.h b/cde/lib/DtSvc/include/bms/usersig.h deleted file mode 100644 index 37190a96..00000000 --- a/cde/lib/DtSvc/include/bms/usersig.h +++ /dev/null @@ -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 - */ -/* - * File: usersig.h $XConsortium: usersig.h /main/3 1995/10/26 15:49:19 rswiston $ - * Language: C - * - * (c) Copyright 1989, 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 _usersig_h -#define _usersig_h - -/* -------------------------------------------- */ -/* Requires: */ -#ifdef __recursive_includes -#include -#endif -/* -------------------------------------------- */ - -#define XE_SIG_NOT_IN_TABLE -2 - -extern int XeNameToSignal -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (XeString name); -#else - (); -#endif - -extern XeString XeSignalToName -#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) - (int sig); -#else - (); -#endif - -#endif /* _usersig_h */ diff --git a/cde/lib/DtSvc/include/codelibs/boolean.h b/cde/lib/DtSvc/include/codelibs/boolean.h deleted file mode 100644 index c845dc22..00000000 --- a/cde/lib/DtSvc/include/codelibs/boolean.h +++ /dev/null @@ -1,79 +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: boolean.h $XConsortium: boolean.h /main/3 1995/10/26 16:10:48 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. - */ - -#ifndef __BOOLEAN_H_ -#define __BOOLEAN_H_ - -#if defined(__aix) -#undef NULL -#define NULL 0 -#endif - -#if defined(SVR4) -#include - -#if defined(sun) && defined(_XOPEN_SOURCE) -#ifndef B_TRUE -#define B_TRUE _B_TRUE -#endif -#ifndef B_FALSE -#define B_FALSE _B_FALSE -#endif -#endif /* sun && _XOPEN_SOURCE */ - -#ifndef boolean -typedef boolean_t boolean; -#endif - -#ifndef TRUE -#define TRUE B_TRUE -#endif - -#ifndef FALSE -#define FALSE B_FALSE -#endif -#endif /* SVR4 */ - - -#if !defined(SVR4) -#ifndef TRUE -#define TRUE 1 -#endif - -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef boolean -typedef int boolean; -#endif -#endif /* ! SVR4 */ -#endif /* __BOOLEAN_H_ */ diff --git a/cde/lib/DtSvc/include/codelibs/pathutils.h b/cde/lib/DtSvc/include/codelibs/pathutils.h deleted file mode 100644 index 16ad6c67..00000000 --- a/cde/lib/DtSvc/include/codelibs/pathutils.h +++ /dev/null @@ -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: pathutils.h /main/4 1996/05/08 11:21:09 drk $ - * - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1993,1994,1996 Hewlett-Packard Company. - * (c) Copyright 1993,1994,1996 International Business Machines Corp. - * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc. - * (c) Copyright 1993,1994,1996 Novell, Inc. - * (c) Copyright 1996 FUJITSU LIMITED. - * (c) Copyright 1996 Hitachi. - */ - -#ifndef __PATHUTILS_H_ -#define __PATHUTILS_H_ - -#include -#include - -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -extern char *pathcollapse(const char *src, - char *dst = NULL, - boolean show_dir = FALSE); -#elif defined(__STDC__) -extern char *pathcollapse(const char *src, char *dst, boolean show_dir); -#else /* old-style C */ -extern char *pathcollapse(); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* __PATHUTILS_H_ */ diff --git a/cde/lib/DtSvc/include/codelibs/shellutils.h b/cde/lib/DtSvc/include/codelibs/shellutils.h deleted file mode 100644 index df7bd062..00000000 --- a/cde/lib/DtSvc/include/codelibs/shellutils.h +++ /dev/null @@ -1,56 +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: shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 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. - */ - -#ifndef __SHELLUTILS_H_ -#define __SHELLUTILS_H_ - -#ifdef __cplusplus -extern "C" -{ - char const *const *shellscan(char const *str, int *argc = (int *)0, - unsigned opts = 0); -} -#else - extern char **shellscan(); -#endif - -#define SHX_NOGLOB 0x0001 -#define SHX_NOTILDE 0x0002 -#define SHX_NOVARS 0x0004 -#define SHX_NOQUOTES 0x0008 -#define SHX_NOSPACE 0x0010 -#define SHX_NOMETA 0x0020 -#define SHX_NOCMD 0x0040 -#define SHX_COMPLETE 0x0080 - -#define SHX_NOGRAVE 0x0040 /* Obsolete, use NOCMD */ - -#endif /* __SHELLUTILS_H_ */ diff --git a/cde/lib/DtTerm/Term/Term.h b/cde/lib/DtTerm/Term/Term.h deleted file mode 100644 index dcf0ff55..00000000 --- a/cde/lib/DtTerm/Term/Term.h +++ /dev/null @@ -1,645 +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: Term.h /main/1 1996/04/21 19:15:14 drk $ */ -/* - * (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_TermPrim_h -#define _Dt_TermPrim_h - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Resources */ - -#ifndef DtNbackgroundIsSelect -#define DtNbackgroundIsSelect "backgroundIsSelect" -#endif -#ifndef DtNblinkRate -#define DtNblinkRate "blinkRate" -#endif -#ifndef DtNcharCursorStyle -#define DtNcharCursorStyle "charCursorStyle" -#endif -#ifndef DtNconsoleMode -#define DtNconsoleMode "consoleMode" -#endif -#ifndef DtNcsWidth -#define DtNcsWidth "csWidth" -#endif -#ifndef DtNemulationId -#define DtNemulationId "emulationId" -#endif -#ifndef DtNinputVerifyCallback -#define DtNinputVerifyCallback "inputVerifyCallback" -#endif -#ifndef DtNjumpScroll -#define DtNjumpScroll "jumpScroll" -#endif -#ifndef DtNkshMode -#define DtNkshMode "kshMode" -#endif -#ifndef DtNlogFile -#define DtNlogFile "logFile" -#endif -#ifndef DtNlogInhibit -#define DtNlogInhibit "logInhibit" -#endif -#ifndef DtNlogging -#define DtNlogging "logging" -#endif -#ifndef DtNloginShell -#define DtNloginShell "loginShell" -#endif -#ifndef DtNmapOnOutput -#define DtNmapOnOutput "mapOnOutput" -#endif -#ifndef DtNmapOnOutputDelay -#define DtNmapOnOutputDelay "mapOnOutputDelay" -#endif -#ifndef DtNmarginBell -#define DtNmarginBell "marginBell" -#endif -#ifndef DtNnMarginBell -#define DtNnMarginBell "nMarginBell" -#endif -#ifndef DtNoutputLogCallback -#define DtNoutputLogCallback "outputLogCallback" -#endif -#ifndef DtNpointerBlank -#define DtNpointerBlank "pointerBlank" -#endif -#ifndef DtNpointerBlankDelay -#define DtNpointerBlankDelay "pointerBlankDelay" -#endif -#ifndef DtNpointerColor -#define DtNpointerColor "pointerColor" -#endif -#ifndef DtNpointerColorBackground -#define DtNpointerColorBackground "pointerColorBackground" -#endif -#ifndef DtNpointerShape -#define DtNpointerShape "pointerShape" -#endif -#ifndef DtNreverseVideo -#define DtNreverseVideo "reverseVideo" -#endif -#ifndef DtNsaveLines -#define DtNsaveLines "saveLines" -#endif -#ifndef DtNsizeList -#define DtNsizeList "sizeList" -#endif -#ifndef DtNstatusChangeCallback -#define DtNstatusChangeCallback "statusChangeCallback" -#endif -#ifndef DtNstickyNextCursor -#define DtNstickyNextCursor "stickyNextCursor" -#endif -#ifndef DtNstickyPrevCursor -#define DtNstickyPrevCursor "stickyPrevCursor" -#endif -#ifndef DtNsubprocessLoginShell -#define DtNsubprocessLoginShell "subprocessLoginShell" -#endif -#ifndef DtNsubprocessPid -#define DtNsubprocessPid "subprocessPid" -#endif -#ifndef DtNsubprocessExec -#define DtNsubprocessExec "subprocessExec" -#endif -#ifndef DtNsubprocessTerminationCatch -#define DtNsubprocessTerminationCatch "subprocessTerminationCatch" -#endif -#ifndef DtNsubprocessCmd -#define DtNsubprocessCmd "subprocessCmd" -#endif -#ifndef DtNsubprocessArgv -#define DtNsubprocessArgv "subprocessArgv" -#endif -#ifndef DtNsubprocessTerminationCallback -#define DtNsubprocessTerminationCallback "subprocessTerminationCallback" -#endif -#ifndef DtNtermEmulationMode -#define DtNtermEmulationMode "termEmulationMode" -#endif -#ifndef DtNtermDevice -#define DtNtermDevice "termDevice" -#endif -#ifndef DtNtermDeviceAllocate -#define DtNtermDeviceAllocate "termDeviceAllocate" -#endif -#ifndef DtNtermId -#define DtNtermId "termId" -#endif -#ifndef DtNtermName -#define DtNtermName "termName" -#endif -#ifndef DtNtermSlaveName -#define DtNtermSlaveName "termSlaveName" -#endif -#ifndef DtNttyModes -#define DtNttyModes "ttyModes" -#endif -#ifndef DtNuseFontSets -#define DtNuseFontSets "useFontSets" -#endif -#ifndef DtNuseLineDraw -#define DtNuseLineDraw "useLineDraw" -#endif -#ifndef DtNuserFont -#define DtNuserFont "userFont" -#endif -#ifndef DtNuserBoldFont -#define DtNuserBoldFont "userBoldFont" -#endif -#ifndef DtNvisualBell -#define DtNvisualBell "visualBell" -#endif -#ifndef DtNallowSendEvents -#define DtNallowSendEvents "allowSendEvents" -#endif -#ifndef DtNbaseHeight -#define DtNbaseHeight XmNbaseHeight -#endif -#ifndef DtNbaseWidth -#define DtNbaseWidth XmNbaseWidth -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNheightInc -#define DtNheightInc XmNheightInc -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -#ifndef DtNrows -#define DtNrows XmNrows -#endif -#ifndef DtNshadowType -#define DtNshadowType XmNshadowType -#endif -#ifndef DtNverticalScrollBar -#define DtNverticalScrollBar XmNverticalScrollBar -#endif -#ifndef DtNwidthInc -#define DtNwidthInc XmNwidthInc -#endif - -#ifndef DtCBackground -#define DtCBackground XmCBackground -#endif -#ifndef DtCBackgroundIsSelect -#define DtCBackgroundIsSelect "BackgroundIsSelect" -#endif -#ifndef DtCBlinkRate -#define DtCBlinkRate "BlinkRate" -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCCursor -#define DtCCursor XmCCursor -#endif -#ifndef DtCConsoleMode -#define DtCConsoleMode "ConsoleMode" -#endif -#ifndef DtCCsWidth -#define DtCCsWidth "CsWidth" -#endif -#ifndef DtCCharCursorStyle -#define DtCCharCursorStyle "CharCursorStyle" -#endif -#ifndef DtCEmulationId -#define DtCEmulationId "EmulationId" -#endif -#ifndef DtCForeground -#define DtCForeground XmCForeground -#endif -#ifndef DtCJumpScroll -#define DtCJumpScroll "JumpScroll" -#endif -#ifndef DtCKshMode -#define DtCKshMode "KshMode" -#endif -#ifndef DtCLogFile -#define DtCLogFile "LogFile" -#endif -#ifndef DtCLogInhibit -#define DtCLogInhibit "LogInhibit" -#endif -#ifndef DtCLogging -#define DtCLogging "Logging" -#endif -#ifndef DtCLoginShell -#define DtCLoginShell "LoginShell" -#endif -#ifndef DtCMapOnOutput -#define DtCMapOnOutput "MapOnOutput" -#endif -#ifndef DtCMapOnOutputDelay -#define DtCMapOnOutputDelay "MapOnOutputDelay" -#endif -#ifndef DtCMarginBell -#define DtCMarginBell "MarginBell" -#endif -#ifndef DtCNMarginBell -#define DtCNMarginBell "NMarginBell" -#endif -#ifndef DtCPointerBlank -#define DtCPointerBlank "PointerBlank" -#endif -#ifndef DtCPointerBlankDelay -#define DtCPointerBlankDelay "PointerBlankDelay" -#endif -#ifndef DtCPointerColor -#define DtCPointerColor "PointerColor" -#endif -#ifndef DtCPointerColorBackground -#define DtCPointerColorBackground "PointerColorBackground" -#endif -#ifndef DtCPointerShape -#define DtCPointerShape "PointerShape" -#endif -#ifndef DtCReverseVideo -#define DtCReverseVideo "ReverseVideo" -#endif -#ifndef DtCSaveLines -#define DtCSaveLines "SaveLines" -#endif -#ifndef DtCSizeList -#define DtCSizeList "SizeList" -#endif -#ifndef DtCStickyCursor -#define DtCStickyCursor "StickyCursor" -#endif -#ifndef DtCSubprocessLoginShell -#define DtCSubprocessLoginShell "SubprocessLoginShell" -#endif -#ifndef DtCSubprocessPid -#define DtCSubprocessPid "SubprocessPid" -#endif -#ifndef DtCSubprocessExec -#define DtCSubprocessExec "SubprocessExec" -#endif -#ifndef DtCSubprocessTerminationCatch -#define DtCSubprocessTerminationCatch "SubprocessTerminationCatch" -#endif -#ifndef DtCSubprocessCmd -#define DtCSubprocessCmd "SubprocessCmd" -#endif -#ifndef DtCSubprocessArgv -#define DtCSubprocessArgv "SubprocessArgv" -#endif -#ifndef DtCTermEmulationMode -#define DtCTermEmulationMode "TermEmulationMode" -#endif -#ifndef DtCTermDevice -#define DtCTermDevice "TermDevice" -#endif -#ifndef DtCTermDeviceAllocate -#define DtCTermDeviceAllocate "TermDeviceAllocate" -#endif -#ifndef DtCTermId -#define DtCTermId "TermId" -#endif -#ifndef DtCTermName -#define DtCTermName "TermName" -#endif -#ifndef DtCTermSlaveName -#define DtCTermSlaveName "TermSlaveName" -#endif -#ifndef DtCTtyModes -#define DtCTtyModes "TtyModes" -#endif -#ifndef DtCUseFontSets -#define DtCUseFontSets "UseFontSets" -#endif -#ifndef DtCUseLineDraw -#define DtCUseLineDraw "UseLineDraw" -#endif -#ifndef DtCUserFont -#define DtCUserFont "UserFont" -#endif -#ifndef DtCUserBoldFont -#define DtCUserBoldFont "UserBoldFont" -#endif -#ifndef DtCVisualBell -#define DtCVisualBell "VisualBell" -#endif -#ifndef DtCAllowSendEvents -#define DtCAllowSendEvents "AllowSendEvents" -#endif -#ifndef DtCBaseHeight -#define DtCBaseHeight XmCBaseHeight -#endif -#ifndef DtCBaseWidth -#define DtCBaseWidth XmCBaseWidth -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCHeightInc -#define DtCHeightInc XmCHeightInc -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCRows -#define DtCRows XmCRows -#endif -#ifndef DtCShadowType -#define DtCShadowType XmCShadowType -#endif -#ifndef DtCVerticalScrollBar -#define DtCVerticalScrollBar XmCVerticalScrollBar -#endif -#ifndef DtCWidthInc -#define DtCWidthInc XmCWidthInc -#endif - -/* Representation types */ - -#define DtRDtTermCharCursorStyle "DtTermCharCursorStyle" -#define DtRDtTermEmulationMode "DtTermEmulationMode" -#define DtRDtTermTerminalSize "DtTermTerminalSize" -#define DtRDtTermTerminalSizeList "DtTermTerminalSizeList" - -/* DtNshadowType values */ - -#ifndef DtSHADOW_IN -#define DtSHADOW_IN XmSHADOW_IN -#endif -#ifndef DtSHADOW_OUT -#define DtSHADOW_OUT XmSHADOW_OUT -#endif -#ifndef DtSHADOW_ETCHED_IN -#define DtSHADOW_ETCHED_IN XmSHADOW_ETCHED_IN -#endif -#ifndef DtSHADOW_ETCHED_OUT -#define DtSHADOW_ETCHED_OUT XmSHADOW_ETCHED_OUT -#endif - -#define DtTERM_CHAR_CURSOR_BOX 0 -#define DtTERM_CHAR_CURSOR_BAR 1 -#define DtTERM_CHAR_CURSOR_INVISIBLE 2 - -#define DtTermEMULATIONHP 0 -#define DtTermEMULATIONANSI 1 - -/* Callback reasons */ - -#define DtCR_TERM_SUBPROCESS_TERMINATION 1 -#define DtCR_TERM_STATUS_CHANGE 2 -#define DtCR_TERM_INPUT_VERIFY 7 -#define DtCR_TERM_OUTPUT_LOG 8 - - -/* - * Types - */ - -/* insert char mode */ - -typedef enum { - DtTERM_INSERT_CHAR_OFF = 0, - DtTERM_INSERT_CHAR_ON, - DtTERM_INSERT_CHAR_ON_WRAP -} DtTermInsertCharMode; - -typedef struct { - int reason; - XEvent *event; - int cursorX; - int cursorY; - Boolean capsLock; - Boolean stop; - DtTermInsertCharMode insertCharMode; - Boolean locked; -} DtTermStatusChangeCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - pid_t pid; - int status; -} DtTermSubprocessTerminationCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - Boolean doit; - unsigned char *text; - int length; -} DtTermInputVerifyCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - unsigned char *text; - int length; -} DtTermOutputLogCallbackStruct; - -typedef struct _DtTermTerminalSize { - short rows; - short columns; -} DtTermTerminalSize; - -typedef struct _DtTermTerminalSizeList { - int numSizes; - DtTermTerminalSize *sizes; -} DtTermTerminalSizeList; - -/* Widget class and instance */ - -typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass; -typedef struct _DtTermPrimitiveRec *DtTermPrimitiveWidget; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtTermPrimitiveWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateTermPrimitive( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern void DtTermInitialize(void); - -extern void DtTermDisplaySend( - Widget widget, - unsigned char *buffer, - int length); - -extern void DtTermSubprocSend( - Widget widget, - unsigned char *buffer, - int length); - -extern void DtTermSubprocReap( - pid_t pid, - int *stat_loc); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_TermPrim_h */ - - - -#ifndef _Dt_Term_h -#define _Dt_Term_h - -#include
- -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Resources */ - -#ifndef DtNfunctionKeyExecuteProc -#define DtNfunctionKeyExecuteProc "functionKeyExecuteProc" -#endif -#ifndef DtNfunctionKeyUpdateProc -#define DtNfunctionKeyUpdateProc "functionKeyUpdateProc" -#endif -#ifndef DtNautoWrap -#define DtNautoWrap "autoWrap" -#endif -#ifndef DtNreverseWrap -#define DtNreverseWrap "reverseWrap" -#endif -#ifndef DtNsunFunctionKeys -#define DtNsunFunctionKeys "sunFunctionKeys" -#endif -#ifndef DtNc132 -#define DtNc132 "c132" -#endif -#ifndef DtNappCursorDefault -#define DtNappCursorDefault "appCursorDefault" -#endif -#ifndef DtNappKeypadDefault -#define DtNappKeypadDefault "appKeypadDefault" -#endif - -#ifndef DtCFunctionKeyExecuteProc -#define DtCFunctionKeyExecuteProc "FunctionKeyExecuteProc" -#endif -#ifndef DtCFunctionKeyUpdateProc -#define DtCFunctionKeyUpdateProc "FunctionKeyUpdateProc" -#endif -#ifndef DtCFunctionKeyLast -#define DtCFunctionKeyLast "FunctionKeyLast" -#endif -#ifndef DtCAutoWrap -#define DtCAutoWrap "AutoWrap" -#endif -#ifndef DtCReverseWrap -#define DtCReverseWrap "ReverseWrap" -#endif -#ifndef DtCSunFunctionKeys -#define DtCSunFunctionKeys "SunFunctionKeys" -#endif -#ifndef DtCC132 -#define DtCC132 "C132" -#endif -#ifndef DtCAppCursorDefault -#define DtCAppCursorDefault "AppCursorDefault" -#endif -#ifndef DtCAppKeypadDefault -#define DtCAppKeypadDefault "AppKeypadDefault" -#endif - - -/* - * Types - */ - -/* Widget class and instance */ - -typedef struct _DtTermClassRec *DtTermWidgetClass; -typedef struct _DtTermRec *DtTermWidget; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtTermWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateTerm( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Term_h */ diff --git a/cde/lib/DtTerm/Term/TermP.h b/cde/lib/DtTerm/Term/TermP.h deleted file mode 100644 index b2f14e09..00000000 --- a/cde/lib/DtTerm/Term/TermP.h +++ /dev/null @@ -1,92 +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: TermP.h /main/1 1996/04/21 19:16:07 drk $"; - */ - -/* * - * (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_TermP_h -#define _Dt_TermP_h - -#include "TermPrimP.h" -#include "Term.h" -#include "TermData.h" -#include "TermFunctionKey.h" - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/* Vt class structure... */ - -typedef struct _DtTermClassPart -{ - int foo; -} DtTermClassPart; - -/* full clas record declaration for Vt class... */ -typedef struct _DtTermClassRec { - CoreClassPart core_class; - XmPrimitiveClassPart primitive_class; - DtTermPrimitiveClassPart term_primitive_class; - DtTermClassPart term_class; -} DtTermClassRec; - -externalref DtTermClassRec dtTermClassRec; - -/* vt instance record... */ -typedef struct _DtTermPart -{ - DtTermData td; /* non-widget terminal data */ - Boolean autoWrap; - Boolean reverseWrap; - Boolean sunFunctionKeys; - Boolean c132; - Boolean appKeypadMode; - Boolean appCursorMode; -} DtTermPart; - -/* full instance record declaration... */ - -typedef struct _DtTermRec { - CorePart core; - XmPrimitivePart primitive; - DtTermPrimitivePart term; - DtTermPart vt; -} DtTermRec; - -/* private function declarations... */ -/* end private function declarations... */ - -#ifdef __cplusplus -} /* close scope of 'extern "C"'... */ -#endif /* __cplusplus */ - -#endif /* _Dt_TermP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif... */ diff --git a/cde/lib/DtTerm/TermPrim/TermPrim.h b/cde/lib/DtTerm/TermPrim/TermPrim.h deleted file mode 100644 index 8fef485c..00000000 --- a/cde/lib/DtTerm/TermPrim/TermPrim.h +++ /dev/null @@ -1,538 +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: TermPrim.h /main/1 1996/04/21 19:16:41 drk $ */ -/* - * (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_TermPrim_h -#define _Dt_TermPrim_h - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Resources */ - -#ifndef DtNbackgroundIsSelect -#define DtNbackgroundIsSelect "backgroundIsSelect" -#endif -#ifndef DtNblinkRate -#define DtNblinkRate "blinkRate" -#endif -#ifndef DtNcharCursorStyle -#define DtNcharCursorStyle "charCursorStyle" -#endif -#ifndef DtNconsoleMode -#define DtNconsoleMode "consoleMode" -#endif -#ifndef DtNcsWidth -#define DtNcsWidth "csWidth" -#endif -#ifndef DtNemulationId -#define DtNemulationId "emulationId" -#endif -#ifndef DtNinputVerifyCallback -#define DtNinputVerifyCallback "inputVerifyCallback" -#endif -#ifndef DtNjumpScroll -#define DtNjumpScroll "jumpScroll" -#endif -#ifndef DtNkshMode -#define DtNkshMode "kshMode" -#endif -#ifndef DtNlogFile -#define DtNlogFile "logFile" -#endif -#ifndef DtNlogInhibit -#define DtNlogInhibit "logInhibit" -#endif -#ifndef DtNlogging -#define DtNlogging "logging" -#endif -#ifndef DtNloginShell -#define DtNloginShell "loginShell" -#endif -#ifndef DtNmapOnOutput -#define DtNmapOnOutput "mapOnOutput" -#endif -#ifndef DtNmapOnOutputDelay -#define DtNmapOnOutputDelay "mapOnOutputDelay" -#endif -#ifndef DtNmarginBell -#define DtNmarginBell "marginBell" -#endif -#ifndef DtNnMarginBell -#define DtNnMarginBell "nMarginBell" -#endif -#ifndef DtNoutputLogCallback -#define DtNoutputLogCallback "outputLogCallback" -#endif -#ifndef DtNpointerBlank -#define DtNpointerBlank "pointerBlank" -#endif -#ifndef DtNpointerBlankDelay -#define DtNpointerBlankDelay "pointerBlankDelay" -#endif -#ifndef DtNpointerColor -#define DtNpointerColor "pointerColor" -#endif -#ifndef DtNpointerColorBackground -#define DtNpointerColorBackground "pointerColorBackground" -#endif -#ifndef DtNpointerShape -#define DtNpointerShape "pointerShape" -#endif -#ifndef DtNreverseVideo -#define DtNreverseVideo "reverseVideo" -#endif -#ifndef DtNsaveLines -#define DtNsaveLines "saveLines" -#endif -#ifndef DtNsizeList -#define DtNsizeList "sizeList" -#endif -#ifndef DtNstatusChangeCallback -#define DtNstatusChangeCallback "statusChangeCallback" -#endif -#ifndef DtNstickyNextCursor -#define DtNstickyNextCursor "stickyNextCursor" -#endif -#ifndef DtNstickyPrevCursor -#define DtNstickyPrevCursor "stickyPrevCursor" -#endif -#ifndef DtNsubprocessLoginShell -#define DtNsubprocessLoginShell "subprocessLoginShell" -#endif -#ifndef DtNsubprocessPid -#define DtNsubprocessPid "subprocessPid" -#endif -#ifndef DtNsubprocessExec -#define DtNsubprocessExec "subprocessExec" -#endif -#ifndef DtNsubprocessTerminationCatch -#define DtNsubprocessTerminationCatch "subprocessTerminationCatch" -#endif -#ifndef DtNsubprocessCmd -#define DtNsubprocessCmd "subprocessCmd" -#endif -#ifndef DtNsubprocessArgv -#define DtNsubprocessArgv "subprocessArgv" -#endif -#ifndef DtNsubprocessTerminationCallback -#define DtNsubprocessTerminationCallback "subprocessTerminationCallback" -#endif -#ifndef DtNtermEmulationMode -#define DtNtermEmulationMode "termEmulationMode" -#endif -#ifndef DtNtermDevice -#define DtNtermDevice "termDevice" -#endif -#ifndef DtNtermDeviceAllocate -#define DtNtermDeviceAllocate "termDeviceAllocate" -#endif -#ifndef DtNtermId -#define DtNtermId "termId" -#endif -#ifndef DtNtermName -#define DtNtermName "termName" -#endif -#ifndef DtNtermSlaveName -#define DtNtermSlaveName "termSlaveName" -#endif -#ifndef DtNttyModes -#define DtNttyModes "ttyModes" -#endif -#ifndef DtNuseFontSets -#define DtNuseFontSets "useFontSets" -#endif -#ifndef DtNuseLineDraw -#define DtNuseLineDraw "useLineDraw" -#endif -#ifndef DtNuserFont -#define DtNuserFont "userFont" -#endif -#ifndef DtNuserBoldFont -#define DtNuserBoldFont "userBoldFont" -#endif -#ifndef DtNvisualBell -#define DtNvisualBell "visualBell" -#endif -#ifndef DtNallowSendEvents -#define DtNallowSendEvents "allowSendEvents" -#endif -#ifndef DtNbaseHeight -#define DtNbaseHeight XmNbaseHeight -#endif -#ifndef DtNbaseWidth -#define DtNbaseWidth XmNbaseWidth -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNheightInc -#define DtNheightInc XmNheightInc -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -#ifndef DtNrows -#define DtNrows XmNrows -#endif -#ifndef DtNshadowType -#define DtNshadowType XmNshadowType -#endif -#ifndef DtNverticalScrollBar -#define DtNverticalScrollBar XmNverticalScrollBar -#endif -#ifndef DtNwidthInc -#define DtNwidthInc XmNwidthInc -#endif - -#ifndef DtCBackground -#define DtCBackground XmCBackground -#endif -#ifndef DtCBackgroundIsSelect -#define DtCBackgroundIsSelect "BackgroundIsSelect" -#endif -#ifndef DtCBlinkRate -#define DtCBlinkRate "BlinkRate" -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCCursor -#define DtCCursor XmCCursor -#endif -#ifndef DtCConsoleMode -#define DtCConsoleMode "ConsoleMode" -#endif -#ifndef DtCCsWidth -#define DtCCsWidth "CsWidth" -#endif -#ifndef DtCCharCursorStyle -#define DtCCharCursorStyle "CharCursorStyle" -#endif -#ifndef DtCEmulationId -#define DtCEmulationId "EmulationId" -#endif -#ifndef DtCForeground -#define DtCForeground XmCForeground -#endif -#ifndef DtCJumpScroll -#define DtCJumpScroll "JumpScroll" -#endif -#ifndef DtCKshMode -#define DtCKshMode "KshMode" -#endif -#ifndef DtCLogFile -#define DtCLogFile "LogFile" -#endif -#ifndef DtCLogInhibit -#define DtCLogInhibit "LogInhibit" -#endif -#ifndef DtCLogging -#define DtCLogging "Logging" -#endif -#ifndef DtCLoginShell -#define DtCLoginShell "LoginShell" -#endif -#ifndef DtCMapOnOutput -#define DtCMapOnOutput "MapOnOutput" -#endif -#ifndef DtCMapOnOutputDelay -#define DtCMapOnOutputDelay "MapOnOutputDelay" -#endif -#ifndef DtCMarginBell -#define DtCMarginBell "MarginBell" -#endif -#ifndef DtCNMarginBell -#define DtCNMarginBell "NMarginBell" -#endif -#ifndef DtCPointerBlank -#define DtCPointerBlank "PointerBlank" -#endif -#ifndef DtCPointerBlankDelay -#define DtCPointerBlankDelay "PointerBlankDelay" -#endif -#ifndef DtCPointerColor -#define DtCPointerColor "PointerColor" -#endif -#ifndef DtCPointerColorBackground -#define DtCPointerColorBackground "PointerColorBackground" -#endif -#ifndef DtCPointerShape -#define DtCPointerShape "PointerShape" -#endif -#ifndef DtCReverseVideo -#define DtCReverseVideo "ReverseVideo" -#endif -#ifndef DtCSaveLines -#define DtCSaveLines "SaveLines" -#endif -#ifndef DtCSizeList -#define DtCSizeList "SizeList" -#endif -#ifndef DtCStickyCursor -#define DtCStickyCursor "StickyCursor" -#endif -#ifndef DtCSubprocessLoginShell -#define DtCSubprocessLoginShell "SubprocessLoginShell" -#endif -#ifndef DtCSubprocessPid -#define DtCSubprocessPid "SubprocessPid" -#endif -#ifndef DtCSubprocessExec -#define DtCSubprocessExec "SubprocessExec" -#endif -#ifndef DtCSubprocessTerminationCatch -#define DtCSubprocessTerminationCatch "SubprocessTerminationCatch" -#endif -#ifndef DtCSubprocessCmd -#define DtCSubprocessCmd "SubprocessCmd" -#endif -#ifndef DtCSubprocessArgv -#define DtCSubprocessArgv "SubprocessArgv" -#endif -#ifndef DtCTermEmulationMode -#define DtCTermEmulationMode "TermEmulationMode" -#endif -#ifndef DtCTermDevice -#define DtCTermDevice "TermDevice" -#endif -#ifndef DtCTermDeviceAllocate -#define DtCTermDeviceAllocate "TermDeviceAllocate" -#endif -#ifndef DtCTermId -#define DtCTermId "TermId" -#endif -#ifndef DtCTermName -#define DtCTermName "TermName" -#endif -#ifndef DtCTermSlaveName -#define DtCTermSlaveName "TermSlaveName" -#endif -#ifndef DtCTtyModes -#define DtCTtyModes "TtyModes" -#endif -#ifndef DtCUseFontSets -#define DtCUseFontSets "UseFontSets" -#endif -#ifndef DtCUseLineDraw -#define DtCUseLineDraw "UseLineDraw" -#endif -#ifndef DtCUserFont -#define DtCUserFont "UserFont" -#endif -#ifndef DtCUserBoldFont -#define DtCUserBoldFont "UserBoldFont" -#endif -#ifndef DtCVisualBell -#define DtCVisualBell "VisualBell" -#endif -#ifndef DtCAllowSendEvents -#define DtCAllowSendEvents "AllowSendEvents" -#endif -#ifndef DtCBaseHeight -#define DtCBaseHeight XmCBaseHeight -#endif -#ifndef DtCBaseWidth -#define DtCBaseWidth XmCBaseWidth -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCHeightInc -#define DtCHeightInc XmCHeightInc -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCRows -#define DtCRows XmCRows -#endif -#ifndef DtCShadowType -#define DtCShadowType XmCShadowType -#endif -#ifndef DtCVerticalScrollBar -#define DtCVerticalScrollBar XmCVerticalScrollBar -#endif -#ifndef DtCWidthInc -#define DtCWidthInc XmCWidthInc -#endif - -/* Representation types */ - -#define DtRDtTermCharCursorStyle "DtTermCharCursorStyle" -#define DtRDtTermEmulationMode "DtTermEmulationMode" -#define DtRDtTermTerminalSize "DtTermTerminalSize" -#define DtRDtTermTerminalSizeList "DtTermTerminalSizeList" - -/* DtNshadowType values */ - -#ifndef DtSHADOW_IN -#define DtSHADOW_IN XmSHADOW_IN -#endif -#ifndef DtSHADOW_OUT -#define DtSHADOW_OUT XmSHADOW_OUT -#endif -#ifndef DtSHADOW_ETCHED_IN -#define DtSHADOW_ETCHED_IN XmSHADOW_ETCHED_IN -#endif -#ifndef DtSHADOW_ETCHED_OUT -#define DtSHADOW_ETCHED_OUT XmSHADOW_ETCHED_OUT -#endif - -#define DtTERM_CHAR_CURSOR_BOX 0 -#define DtTERM_CHAR_CURSOR_BAR 1 -#define DtTERM_CHAR_CURSOR_INVISIBLE 2 - -#define DtTermEMULATIONHP 0 -#define DtTermEMULATIONANSI 1 - -/* Callback reasons */ - -#define DtCR_TERM_SUBPROCESS_TERMINATION 1 -#define DtCR_TERM_STATUS_CHANGE 2 -#define DtCR_TERM_INPUT_VERIFY 7 -#define DtCR_TERM_OUTPUT_LOG 8 - - -/* - * Types - */ - -/* insert char mode */ - -typedef enum { - DtTERM_INSERT_CHAR_OFF = 0, - DtTERM_INSERT_CHAR_ON, - DtTERM_INSERT_CHAR_ON_WRAP -} DtTermInsertCharMode; - -typedef struct { - int reason; - XEvent *event; - int cursorX; - int cursorY; - Boolean capsLock; - Boolean stop; - DtTermInsertCharMode insertCharMode; - Boolean locked; -} DtTermStatusChangeCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - pid_t pid; - int status; -} DtTermSubprocessTerminationCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - Boolean doit; - unsigned char *text; - int length; -} DtTermInputVerifyCallbackStruct; - -typedef struct { - int reason; - XEvent *event; - unsigned char *text; - int length; -} DtTermOutputLogCallbackStruct; - -typedef struct _DtTermTerminalSize { - short rows; - short columns; -} DtTermTerminalSize; - -typedef struct _DtTermTerminalSizeList { - int numSizes; - DtTermTerminalSize *sizes; -} DtTermTerminalSizeList; - -/* Widget class and instance */ - -typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass; -typedef struct _DtTermPrimitiveRec *DtTermPrimitiveWidget; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtTermPrimitiveWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateTermPrimitive( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern void DtTermInitialize(void); - -extern void DtTermDisplaySend( - Widget widget, - unsigned char *buffer, - int length); - -extern void DtTermSubprocSend( - Widget widget, - unsigned char *buffer, - int length); - -extern void DtTermSubprocReap( - pid_t pid, - int *stat_loc); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_TermPrim_h */ diff --git a/cde/lib/DtTerm/TermPrim/TermPrimP.h b/cde/lib/DtTerm/TermPrim/TermPrimP.h deleted file mode 100644 index 6da67cac..00000000 --- a/cde/lib/DtTerm/TermPrim/TermPrimP.h +++ /dev/null @@ -1,229 +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: TermPrimP.h /main/1 1996/04/21 19:18:08 drk $"; - */ -/* * - * (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_TermPrimP_h -#define _Dt_TermPrimP_h - -#include -#include "TermPrim.h" -#include "TermPrimData.h" - -/* include the other internal Term include files... - */ -#include "TermPrimScroll.h" -#include "TermPrimRender.h" -#include "TermPrimCursor.h" -#include "TermPrimLineFont.h" -#include "TermPrimBuffer.h" -#include "TermPrimSubproc.h" - -/* -** Now we can choose what shell we want -** NOTE: -** (is it worth making resources for defaultShell -** and defaultShellArgv0?) JRM -*/ -#ifdef hpV4 -# define DEFAULT_SHELL "/usr/bin/sh" -# define DEFAULT_SHELL_ARGV0 "sh" -#else /* hpV4 */ -# define DEFAULT_SHELL "/bin/sh" -# define DEFAULT_SHELL_ARGV0 "sh" -#endif /* hpV4 */ - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/* term class structure... */ - -typedef int -(*TermInsertProc) -( - Widget w, - unsigned char *buffer, - int length -); - -typedef struct _DtTermPrimitiveClassPart -{ - StateTable *parser_start_state; - Boolean use_history_buffer; - Boolean allow_scroll_below_buffer; - Boolean wrap_right_after_insert; - BufferCreateProc buffer_create_proc; - BufferFreeProc buffer_free_proc; - TermInsertProc term_insert_proc; - short sizeOfBuffer; - short sizeOfLine; - short sizeOfEnh; -} DtTermPrimitiveClassPart; - -/* full class record declaration for Term class... */ -typedef struct _DtTermPrimitiveClassRec { - CoreClassPart core_class; - XmPrimitiveClassPart primitive_class; - DtTermPrimitiveClassPart term_primitive_class; -} DtTermPrimitiveClassRec; - -externalref DtTermPrimitiveClassRec dtTermPrimitiveClassRec; - -/* term instance record... */ -typedef struct _DtTermPrimitivePart -{ - struct termData *tpd; /* non-widget terminal data */ - Widget verticalScrollBar; /* vertical sb to update/track */ - short verticalScrollBarValue; /* cached sb value */ - short verticalScrollBarMaximum; /* cached sb maximum */ - short verticalScrollBarSliderSize; /* cached sb size */ - short verticalScrollBarPageIncrement; - /* cached sb page inc */ - unsigned char charCursorStyle; /* cursor style: bar or box */ - int blinkRate; /* cursor blink rate (0 == no - * blink - */ - Boolean consoleMode; /* true == get console output */ - Boolean backgroundIsSelect; /* true == background is select - * color - */ - Boolean visualBell; /* true == visual bell */ - Boolean marginBell; /* true == rt margin waring bell*/ - int nMarginBell; /* warning bell distance */ - Boolean jumpScroll; /* true == jumpscroll, - * false == line by line scroll - */ - Boolean hasFocus; /* true == window has focus - * (and the cursor blinks) - */ - char *emulationId; /* $TERMINAL_EMULATOR variable */ - char *termId; /* term ID string for esc seq */ - char *termName; /* $TERM string */ - char *ttyModes; /* ttyModes string */ - char *csWidth; /* csWidth string */ - unsigned char shadowType; /* shadow type for term window */ - XmFontList fontList; /* fontList for base font */ - XmFontList boldFontList; /* fontList for bold font */ - XFontStruct *font; /* font for base font */ - XFontStruct *boldFont; /* font for bold font */ - XFontSet fontSet; /* fontSet generated from either - * the fontList or the font above - */ - XFontSet boldFontSet; /* fontSet generated from either - * the boldFontList or the boldFont - * above - */ - Boolean haveFontSet; /* true == we have a valid fontSet - */ - char *saveLines; /* save lines or screens */ - short rows; /* rows of displayed term win */ - short columns; /* columns of term win & memory */ - Dimension marginHeight; /* width of window's margin */ - Dimension marginWidth; /* height of window's margin */ - int baseWidth; /* base width for size hints */ - int baseHeight; /* base height for size hints */ - int widthInc; /* width inc for size hints */ - int heightInc; /* height inc for size hints */ - int ascent; /* ascent for font */ - int pty; /* file descriptor of pty */ - Boolean ptyAllocate; /* true, allocate a pty */ - char *ptySlaveName; /* name of pty slave device */ - int subprocessPid; /* process id of child (shell) - * process - */ - char *subprocessCWD; /* subprocess working directory */ - char *subprocessCmd; /* subprocess cmd to exec */ - char **subprocessArgv; /* argv to pass to above cmd */ - Boolean subprocessLoginShell; /* if true, prepend argv[0] with - * a '-' - */ - Boolean subprocessTerminationCatch; /* if true, catch child exit() */ - Boolean subprocessExec; /* if true, exec subprocess */ - _termSubprocId subprocessId; /* id of subprocess as returned - * by the subprocess code. - */ - XtCallbackList inputVerifyCallback; /* callback invoked when keyboard - * input or selection input is - * received. - */ - XtCallbackList outputLogCallback; /* callback invoked when pty output - * is received. - */ - XtCallbackList statusChangeCallback;/* callback invoked when there is - * some sort of status change - * (cursor motion, capsLockChange, - * outputStopped, etc). Reason - * indicates which has changed. - */ - XtCallbackList subprocessTerminationCallback; - /* callback invoked by subprocess - * termination (exit()) - */ - Boolean kshMode; /* use meta for escape */ - Boolean pointerBlank; /* blank pointer after */ - int pointerBlankDelay; /* pointerBlankDelay secs */ - Cursor pointerShape; /* pointer pixmap */ - Pixel pointerColor; /* pointer color */ - Pixel pointerColorBackground; /* pointer background color */ - Boolean mapOnOutput; /* map term on pty output after */ - int mapOnOutputDelay; /* mapOnOutputDelay secs */ - Boolean logging; /* copy tty output to file/pipe */ - Boolean log_on; /* is log file (pipe) open? */ - char * logFile; /* named logFile (default "logFile"*/ - Boolean logInhibit; /* don't allow logging */ - Boolean reverseVideo; /* true, reverse video on */ - uid_t euid_root; /* suid */ - uid_t euid_user; /* user id */ - Boolean allowSendEvents; /* allow key, button presses */ - Boolean allowOsfKeysyms; /* allow osfKeysyms through */ -} DtTermPrimitivePart; - -/* full instance record declaration... */ - -typedef struct _DtTermPrimitiveRec { - CorePart core; - XmPrimitivePart primitive; - DtTermPrimitivePart term; -} DtTermPrimitiveRec; - -/* private function declarations... */ -/* end private function declarations... */ - -#ifdef __cplusplus -} /* close scope of 'extern "C"'... */ -#endif /* __cplusplus */ -/* -** Some handy macros. -*/ -#define GetParserContext(w) (((DtTermPrimitiveWidget)w)->term.tpd->context) - - -#endif /* _Dt_TermPrimP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif... */ diff --git a/cde/lib/DtWidget/ComboBox.h b/cde/lib/DtWidget/ComboBox.h deleted file mode 100644 index b7bf0d3f..00000000 --- a/cde/lib/DtWidget/ComboBox.h +++ /dev/null @@ -1,587 +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: ComboBox.h /main/4 1995/10/26 09:29:51 rswiston $ */ -/* - * (c) Copyright 1993, 1994 Hewlett-Packard Company - * (c) Copyright 1993, 1994 International Business Machines Corp. - * (c) Copyright 1993, 1994 Novell, Inc. - * (c) Copyright 1993, 1994 Sun Microsystems, Inc. - */ -/*********************************************************** -Copyright 1993 Interleaf, Inc. - -Permission to use, copy, modify, and distribute this software -and its documentation for any purpose without fee is granted, -provided that the above copyright notice appear in all copies -and that both copyright notice and this permission notice appear -in supporting documentation, and that the name of Interleaf not -be used in advertising or publicly pertaining to distribution of -the software without specific written prior permission. - -Interleaf makes no representation about the suitability of this -software for any purpose. It is provided "AS IS" without any -express or implied warranty. -******************************************************************/ - -#ifndef _Dt_ComboBox_h -#define _Dt_ComboBox_h - -/* - * This widget is deprecated in favor of XmComboBox. The two are very - * similar, but do have minor differences. Applications doing new - * development are encouraged to use XmComboBox directly. Existing - * applications may wish to recompile with DT_USE_XM_COMBOBOX. - */ - -#include -#ifdef DT_USE_XM_COMBOBOX -#include -#endif - - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Resources */ - -#ifndef DT_USE_XM_COMBOBOX - -/*********************************************************************** - * - * NOTE: - * Because of future development of the ComboBox, not all of the - * following resources should be used. The only ones which are - * supported are the ones found in the Common Desktop Environment: - * Programmer's Guide. The supported resources include: - * DtNmarginHeight, DtNmarginWidth, DtNselectedItem, - * DtNselectedPosition, DtNselectionCallback, and DtNcomboBoxType. - * - * The use of the unsupported resources found in this header - * file may cause dangerous and unexpected behavior. - * - **********************************************************************/ - -/* WARNING: DtNactivateCallback is an unsupported resource in CDE 1.0 */ -#ifndef DtNactivateCallback -#define DtNactivateCallback XmNactivateCallback -#endif -/* WARNING: DtNalignment is an unsupported resource in CDE 1.0 */ -#ifndef DtNalignment -#define DtNalignment XmNalignment -#endif -/* WARNING: DtNarrowSize is an unsupported resource in CDE 1.0 */ -#ifndef DtNarrowSize -#define DtNarrowSize "arrowSize" -#endif -/* WARNING: DtNarrowSpacing is an unsupported resource in CDE 1.0 */ -#ifndef DtNarrowSpacing -#define DtNarrowSpacing "arrowSpacing" -#endif -/* WARNING: DtNarrowType is an unsupported resource in CDE 1.0 */ -#ifndef DtNarrowType -#define DtNarrowType "arrowType" -#endif -/* WARNING: DtNcolumns is an unsupported resource in CDE 1.0 */ -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNcomboBoxType -#define DtNcomboBoxType "comboBoxType" -#endif -/* WARNING: DtNfocusCallback is an unsupported resource in CDE 1.0 */ -#ifndef DtNfocusCallback -#define DtNfocusCallback XmNfocusCallback -#endif -/* WARNING: DtNhorizontalSpacing is an unsupported resource in CDE 1.0 */ -#ifndef DtNhorizontalSpacing -#define DtNhorizontalSpacing XmNhorizontalSpacing -#endif -/* WARNING: DtNitemCount is an unsupported resource in CDE 1.0 */ -#ifndef DtNitemCount -#define DtNitemCount XmNitemCount -#endif -/* WARNING: DtNitems is an unsupported resource in CDE 1.0 */ -#ifndef DtNitems -#define DtNitems XmNitems -#endif -/* WARNING: DtNlabelString is an unsupported resource in CDE 1.0 */ -#ifndef DtNlabelString -#define DtNlabelString XmNlabelString -#endif -/* WARNING: DtNlist is an unsupported resource in CDE 1.0 */ -#ifndef DtNlist -#define DtNlist "list" -#endif -/* WARNING: DtNlistFontList is an unsupported resource in CDE 1.0 */ -#ifndef DtNlistFontList -#define DtNlistFontList "listFontList" -#endif -/* WARNING: DtNlistMarginHeight is an unsupported resource in CDE 1.0 */ -#ifndef DtNlistMarginHeight -#define DtNlistMarginHeight XmNlistMarginHeight -#endif -/* WARNING: DtNlistMarginWidth is an unsupported resource in CDE 1.0 */ -#ifndef DtNlistMarginWidth -#define DtNlistMarginWidth XmNlistMarginWidth -#endif -/* WARNING: DtNlistSpacing is an unsupported resource in CDE 1.0 */ -#ifndef DtNlistSpacing -#define DtNlistSpacing XmNlistSpacing -#endif -/* WARNING: DtNlosingFocusCallback is an unsupported resource in CDE 1.0 */ -#ifndef DtNlosingFocusCallback -#define DtNlosingFocusCallback XmNlosingFocusCallback -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -/* WARNING: DtNmaxLength is an unsupported resource in CDE 1.0 */ -#ifndef DtNmaxLength -#define DtNmaxLength XmNmaxLength -#endif -/* WARNING: DtNmenuPostCallback is an unsupported resource in CDE 1.0 */ -#ifndef DtNmenuPostCallback -#define DtNmenuPostCallback "menuPostCallback" -#endif -/* WARNING: DtNorientation is an unsupported resource in CDE 1.0 */ -#ifndef DtNorientation -#define DtNorientation XmNorientation -#endif -/* WARNING: DtNpoppedUp is an unsupported resource in CDE 1.0 */ -#ifndef DtNpoppedUp -#define DtNpoppedUp "poppedUp" -#endif -/* WARNING: DtNrecomputeSize is an unsupported resource in CDE 1.0 */ -#ifndef DtNrecomputeSize -#define DtNrecomputeSize XmNrecomputeSize -#endif -#ifndef DtNselectedItem -#define DtNselectedItem "selectedItem" -#endif -#ifndef DtNselectedPosition -#define DtNselectedPosition "selectedPosition" -#endif -#ifndef DtNselectionCallback -#define DtNselectionCallback "selectionCallback" -#endif -/* WARNING: DtNtextField is an unsupported resource in CDE 1.0 */ -#ifndef DtNtextField -#define DtNtextField "textField" -#endif -/* WARNING: DtNtopItemPosition is an unsupported resource in CDE 1.0 */ -#ifndef DtNtopItemPosition -#define DtNtopItemPosition XmNtopItemPosition -#endif -/* WARNING: DtNupdateLabel is an unsupported resource in CDE 1.0 */ -#ifndef DtNupdateLabel -#define DtNupdateLabel "updateLabel" -#endif -/* WARNING: DtNverticalSpacing is an unsupported resource in CDE 1.0 */ -#ifndef DtNverticalSpacing -#define DtNverticalSpacing XmNverticalSpacing -#endif -/* WARNING: DtNvisibleItemCount is an unsupported resource in CDE 1.0 */ -#ifndef DtNvisibleItemCount -#define DtNvisibleItemCount XmNvisibleItemCount -#endif - -#ifndef DtCAlignment -#define DtCAlignment XmCAlignment -#endif -#ifndef DtCArrowSize -#define DtCArrowSize "ArrowSize" -#endif -#ifndef DtCArrowSpacing -#define DtCArrowSpacing "ArrowSpacing" -#endif -#ifndef DtCArrowType -#define DtCArrowType "ArrowType" -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCComboBoxType -#define DtCComboBoxType "ComboBoxType" -#endif -#ifndef DtCHorizontalSpacing -#define DtCHorizontalSpacing "HorizontalSpacing" -#endif -#ifndef DtCItemCount -#define DtCItemCount XmCItemCount -#endif -#ifndef DtCItems -#define DtCItems XmCItems -#endif -#ifndef DtCList -#define DtCList "List" -#endif -#ifndef DtCListFontList -#define DtCListFontList "ListFontList" -#endif -#ifndef DtCListMarginHeight -#define DtCListMarginHeight XmCListMarginHeight -#endif -#ifndef DtCListMarginWidth -#define DtCListMarginWidth XmCListMarginWidth -#endif -#ifndef DtCListSpacing -#define DtCListSpacing XmCListSpacing -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCMaxLength -#define DtCMaxLength XmCMaxLength -#endif -#ifndef DtCOrientation -#define DtCOrientation XmCOrientation -#endif -#ifndef DtCPoppedUp -#define DtCPoppedUp "PoppedUp" -#endif -#ifndef DtCRecomputeSize -#define DtCRecomputeSize XmCRecomputeSize -#endif -#ifndef DtCSelectedItem -#define DtCSelectedItem "SelectedItem" -#endif -#ifndef DtCSelectedPosition -#define DtCSelectedPosition "SelectedPosition" -#endif -#ifndef DtCTextField -#define DtCTextField "TextField" -#endif -#ifndef DtCTopItemPosition -#define DtCTopItemPosition XmCTopItemPosition -#endif -#ifndef DtCUpdateLabel -#define DtCUpdateLabel "UpdateLabel" -#endif -#ifndef DtCVerticalSpacing -#define DtCVerticalSpacing "VerticalSpacing" -#endif -#ifndef DtCVisibleItemCount -#define DtCVisibleItemCount XmCVisibleItemCount -#endif -#ifndef DtCXmString -#define DtCXmString XmCXmString -#endif - -#else /* DT_USE_XM_COMBOBOX */ - -#ifndef DtNarrowSize -#define DtNarrowSize XmNarrowSize -#endif -#ifndef DtNarrowSpacing -#define DtNarrowSpacing XmNarrowSpacing -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNcomboBoxType -#define DtNcomboBoxType XmNcomboBoxType -#endif -#ifndef DtNitemCount -#define DtNitemCount XmNitemCount -#endif -#ifndef DtNitems -#define DtNitems XmNitems -#endif -#ifndef DtNlabelString -#define DtNlabelString XmNlabelString -#endif -#ifndef DtNlist -#define DtNlist XmNlist -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -#ifndef DtNselectedItem -#define DtNselectedItem XmNselectedItem -#endif -#ifndef DtNselectedPosition -#define DtNselectedPosition XmNselectedPosition -#endif -#ifndef DtNselectionCallback -#define DtNselectionCallback XmNselectionCallback -#endif -#ifndef DtNtextField -#define DtNtextField XmNtextField -#endif -#ifndef DtNvisibleItemCount -#define DtNvisibleItemCount XmNvisibleItemCount -#endif - -#ifndef DtCArrowSize -#define DtCArrowSize XmCArrowSize -#endif -#ifndef DtCArrowSpacing -#define DtCArrowSpacing XmCArrowSpacing -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCComboBoxType -#define DtCComboBoxType XmCComboBoxType -#endif -#ifndef DtCItemCount -#define DtCItemCount XmCItemCount -#endif -#ifndef DtCItems -#define DtCItems XmCItems -#endif -#ifndef DtCList -#define DtCList XmCList -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCSelectedItem -#define DtCSelectedItem XmCSelectedItem -#endif -#ifndef DtCSelectedPosition -#define DtCSelectedPosition XmCSelectedPosition -#endif -#ifndef DtCTextField -#define DtCTextField XmCTextField -#endif -#ifndef DtCVisibleItemCount -#define DtCVisibleItemCount XmCVisibleItemCount -#endif -#ifndef DtCXmString -#define DtCXmString XmCXmString -#endif - -#endif /* DT_USE_XM_COMBOBOX */ - -/* Representation types */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtRArrowType -#define DtRArrowType "ArrowType" -#endif -#ifndef DtRComboBoxType -#define DtRComboBoxType "ComboBoxType" -#endif - -#else /* DT_USE_XM_COMBOBOX */ - -#ifndef DtRComboBoxType -#define DtRComboBoxType XmRComboBoxType -#endif - -#endif /* DT_USE_XM_COMBOBOX */ - -/* DtNorientation values */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtLEFT -#define DtLEFT 1 -#endif -#ifndef DtRIGHT -#define DtRIGHT 2 -#endif - -#endif /* not DT_USE_XM_COMBOBOX */ - -/* DtNarrowType values */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtMOTIF -#define DtMOTIF 0 -#endif -#ifndef DtWINDOWS -#define DtWINDOWS 1 -#endif - -#endif /* not DT_USE_XM_COMBOBOX */ - -/* DtNcomboBoxType values */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtDROP_DOWN_LIST -#define DtDROP_DOWN_LIST 2 -#endif -#ifndef DtDROP_DOWN_COMBO_BOX -#define DtDROP_DOWN_COMBO_BOX 1 -#endif - -#else /* DT_USE_XM_COMBOBOX */ - -#ifndef DtDROP_DOWN_LIST -#define DtDROP_DOWN_LIST XmDROP_DOWN_LIST -#endif -#ifndef DtDROP_DOWN_COMBO_BOX -#define DtDROP_DOWN_COMBO_BOX XmDROP_DOWN_COMBO_BOX -#endif - -#endif /* DT_USE_XM_COMBOBOX */ - -/* DtNalignment values */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtALIGNMENT_BEGINNING -#define DtALIGNMENT_BEGINNING XmALIGNMENT_BEGINNING -#endif -#ifndef DtALIGNMENT_CENTER -#define DtALIGNMENT_CENTER XmALIGNMENT_CENTER -#endif -#ifndef DtALIGNMENT_END -#define DtALIGNMENT_END XmALIGNMENT_END -#endif - -#endif /* not DT_USE_XM_COMBOBOX */ - -/* Callback reasons */ - -#ifndef DT_USE_XM_COMBOBOX - -#ifndef DtCR_SELECT -#define DtCR_SELECT 57 /* Large #, so no collisions with XM */ -#endif -#ifndef DtCR_MENU_POST -#define DtCR_MENU_POST 129 /* Large #, so no collisions with XM */ -#endif - -#endif /* not DT_USE_XM_COMBOBOX */ - - -/* - * Types - */ - -#ifndef DT_USE_XM_COMBOBOX - -typedef struct { - int reason; - XEvent *event; - XmString item_or_text; - int item_position; -} DtComboBoxCallbackStruct; - - -/* Widget class and instance */ - -typedef struct _DtComboBoxClassRec *DtComboBoxWidgetClass; -typedef struct _DtComboBoxRec *DtComboBoxWidget; - -#else /* DT_USE_XM_COMBOBOX */ - -#define DtComboBoxCallbackStruct XmComboBoxCallbackStruct -#define DtComboBoxWidgetClass XmComboBoxWidgetClass -#define DtComboBoxWidget XmComboBoxWidget - -#endif /* DT_USE_XM_COMBOBOX */ - - -/* - * Data - */ - -#ifndef DT_USE_XM_COMBOBOX - -/* Widget class record */ - -externalref WidgetClass dtComboBoxWidgetClass; - -#else /* DT_USE_XM_COMBOBOX */ - -#define dtComboBoxWidgetClass xmComboBoxWidgetClass; - -#endif /* DT_USE_XM_COMBOBOX */ - - -/* - * Functions - */ - -#ifndef DT_USE_XM_COMBOBOX - -extern Widget DtCreateComboBox( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern void DtComboBoxAddItem( - Widget combo, - XmString item, - int pos, - Boolean unique); - -extern void DtComboBoxDeletePos( - Widget combo, - int pos); - -extern void DtComboBoxSetItem( - Widget combo, - XmString item); - -extern void DtComboBoxSelectItem( - Widget combo, - XmString item); - -#else /* DT_USE_XM_COMBOBOX */ - -#define DtCreateComboBox XmCreateComboBox -#define DtComboBoxAddItem XmComboBoxAddItem -#define DtComboBoxDeletePos XmComboBoxDeletePos -#define DtComboBoxSetItem XmComboBoxSetItem -#define DtComboBoxSelectItem XmComboBoxSelectItem - -#endif /* DT_USE_XM_COMBOBOX */ - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_ComboBox_h */ diff --git a/cde/lib/DtWidget/ComboBoxP.h b/cde/lib/DtWidget/ComboBoxP.h deleted file mode 100644 index 00991970..00000000 --- a/cde/lib/DtWidget/ComboBoxP.h +++ /dev/null @@ -1,255 +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: ComboBoxP.h /main/3 1995/10/26 09:29:58 rswiston $ */ -/* - * DtWidget/ComboBoxP.h - */ -/* - * (c) Copyright 1993, 1994 Hewlett-Packard Company - * (c) Copyright 1993, 1994 International Business Machines Corp. - * (c) Copyright 1993, 1994 Novell, Inc. - * (c) Copyright 1993, 1994 Sun Microsystems, Inc. - */ -/*********************************************************** -Copyright 1993 Interleaf, Inc. - -Permission to use, copy, modify, and distribute this software -and its documentation for any purpose without fee is granted, -provided that the above copyright notice appear in all copies -and that both copyright notice and this permission notice appear -in supporting documentation, and that the name of Interleaf not -be used in advertising or publicly pertaining to distribution of -the software without specific written prior permission. - -Interleaf makes no representation about the suitability of this -software for any purpose. It is provided "AS IS" without any -express or implied warranty. -******************************************************************/ - -/* - * (C) Copyright 1991,1992, 1993 - * Interleaf, Inc. - * Nine Hillside Avenue, Waltham, MA 02154 - * - * ComboBoxP.h: - * - * Private header file for DtComboBoxWidget. - */ -#ifndef _ComboBoxP_h -#define _ComboBoxP_h - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include "ComboBox.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * External definitions of syn_resources for our list widget. - */ -#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value) -extern void _DtComboBoxGetArrowSize SYN_RESOURCE_AA; -extern void _DtComboBoxGetLabelString SYN_RESOURCE_AA; -extern void _DtComboBoxGetListItemCount SYN_RESOURCE_AA; -extern void _DtComboBoxGetListItems SYN_RESOURCE_AA; -extern void _DtComboBoxGetListFontList SYN_RESOURCE_AA; -extern void _DtComboBoxGetListMarginHeight SYN_RESOURCE_AA; -extern void _DtComboBoxGetListMarginWidth SYN_RESOURCE_AA; -extern void _DtComboBoxGetListSpacing SYN_RESOURCE_AA; -extern void _DtComboBoxGetListTopItemPosition SYN_RESOURCE_AA; -extern void _DtComboBoxGetListVisibleItemCount SYN_RESOURCE_AA; - -#define ARROW_MULT .45 -#define ARROW_MIN 13 -#define MARGIN 2 -#define LABEL_PADDING 2 -#define LABEL_SHADOW 2 -#define TEXT_FIELD_SHADOW 1 -#define TEXT_CONTEXT_MARGIN 4 - -/**************************************************************** - * - * Message Defines - * - ****************************************************************/ - -#define CB_ALIGNMENT DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_ALIGNMENT, _DtMsgComboBox_0000) - -#define CB_MARGIN_HEIGHT DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_MARGIN_HEIGHT, _DtMsgComboBox_0001) - -#define CB_MARGIN_WIDTH DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_MARGIN_WIDTH, _DtMsgComboBox_0002) - -#define CB_HORIZONTAL_SPACING DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_HORIZONTAL_SPACING, _DtMsgComboBox_0003) - -#define CB_VERTICAL_SPACING DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_VERTICAL_SPACING, _DtMsgComboBox_0004) - -#define CB_ORIENTATION DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_ORIENTATION, _DtMsgComboBox_0005) - -#define CB_ITEM_COUNT DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_ITEM_COUNT, _DtMsgComboBox_0006) - -#define CB_VISIBLE_ITEM DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_VISIBLE_ITEM, _DtMsgComboBox_0007) - -#define CB_TEXT DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_TEXT, _DtMsgComboBox_0008) - -#define CB_SET_ITEM DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_SET_ITEM, _DtMsgComboBox_0009) - -#define CB_SELECT_ITEM DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_SELECT_ITEM, _DtMsgComboBox_0010) - -#define CB_RESIZE DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_RESIZE, _DtMsgComboBox_0011) - -#define CB_LABEL DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_LABEL, _DtMsgComboBox_0012) - -#define CB_CVTSTRING DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_CVTSTRING, _DtMsgComboBox_0013) - -#define CB_DEL_POS DTWIDGET_GETMESSAGE( \ - MS_ComboBox, COMBO_DEL_POS, _DtMsgComboBox_0014) -/* - * Class Records - */ -typedef struct { - Boolean junk; /* Need something */ -} DtComboBoxClassPart; - -typedef struct _DtComboBoxClassRec { - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - DtComboBoxClassPart combo_box_class; -} DtComboBoxClassRec; - -extern DtComboBoxClassRec dtComboBoxClassRec; - - -/* - * Instance Record. - */ -typedef struct _DtComboBoxPart { - /* Private data */ - Widget arrow; - Widget shell; - Widget frame; - Widget label; - Widget sep; - Dimension old_width; - Dimension old_height; - Dimension label_max_length; - Dimension label_max_height; - /* - * max_shell_width is the width that is needed to hold the - * list if the longest item was visible. We then use this - * width to figure out if the shell is not wide enough, - * when it gets popped on the screen. This is needed in case the - * combo-box resizes, or if items changes (list will resize). - * Sometimes we change the size of the shell to fit on the screen, or - * to make it at least as large as the combo_box. The next time we pop - * the shell up the size may be different; therefore, we set the shell - * size to the maximum everytime it gets popped up, then we will - * make adjustments, only if needed. - * This value gets saved every time the user updates DtNitems. - */ - Dimension max_shell_width; - Dimension max_shell_height; - - /* ComboBox specific public resources */ - Dimension margin_height; - Dimension margin_width; - XmString selected_item; - int selected_position; - XtCallbackList selection_callback; - unsigned char type; - Dimension arrow_spacing; - - /* ComboBox specific private resources */ - Dimension arrow_size; - XtCallbackList activate_callback; - unsigned char alignment; - unsigned char arrow_type; - short text_columns; - XtCallbackList focus_callback; - Dimension horizontal_spacing; - int item_count; - XmStringTable items; - XmStringTable list_items; - XmString label_string; - Widget list; - XmFontList list_font_list; - Dimension list_margin_height; - Dimension list_margin_width; - Dimension list_spacing; - XtCallbackList losing_focus_callback; - unsigned int text_max_length; - XtCallbackList menu_post_callback; - unsigned char orientation; - Boolean popped_up; - Boolean recompute_size; - Widget text; - int top_item_position; - Boolean update_label; - Dimension vertical_spacing; - int visible_item_count; -} DtComboBoxPart; - - -typedef struct _DtComboBoxRec { - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - DtComboBoxPart combo_box; -} DtComboBoxRec; - - - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _XmComboBoxP_h */ diff --git a/cde/lib/DtWidget/Control.h b/cde/lib/DtWidget/Control.h deleted file mode 100644 index d01c7af7..00000000 --- a/cde/lib/DtWidget/Control.h +++ /dev/null @@ -1,109 +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: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: Control.h -*** -*** project: MotifPlus Widgets -*** -*** description: Public include file for DtControl class. -*** -*** -*** (c) Copyright 1992 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtControl_h -#define _DtControl_h - -#include - -#if defined(__cplusplus) || defined(c_plusplus) -extern "C" { -#endif - -#define XmCONTROL_NONE 0 -#define XmCONTROL_BLANK 1 -#define XmCONTROL_BUSY 2 -#define XmCONTROL_BUTTON 3 -#define XmCONTROL_CLIENT 4 -#define XmCONTROL_DATE 5 -#define XmCONTROL_MAIL 6 -#define XmCONTROL_MONITOR 7 -#define XmCONTROL_SWITCH 8 - -#define NUM_LIST_ITEMS 10 - -#define XmCR_BUSY_START 60 -#define XmCR_BUSY_STOP 61 -#define XmCR_MONITOR 62 - -#define DtMONITOR_OFF 0 -#define DtMONITOR_ON 1 - -#define XmNuseLabelAdjustment "use_label_adjustment" - -#ifndef DtIsControl -#define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass) -#endif /* DtIsControl */ - - -extern Widget _DtCreateControl (Widget, String, ArgList, int); -extern void _DtControlSetFileChanged (Widget, Boolean); -extern void _DtControlSetBusy (Widget, Boolean); -extern void _DtControlAddDropAnimationImage (Widget, String, int); -extern void _DtControlDoDropAnimation (Widget); -extern void _DtControlAddPushAnimationImage (Widget, String, int); -extern void _DtControlDoPushAnimation (Widget); -extern char _DtControlGetMonitorState(Widget); - - -extern WidgetClass dtControlGadgetClass; - -typedef struct _DtControlClassRec * DtControlClass; -typedef struct _DtControlRec * DtControlGadget; - -#define XmCR_FILE_CHANGED 51 - -typedef struct - { - int reason; - XEvent *event; - Boolean set; - unsigned char control_type; - XtPointer push_function; - XtPointer push_argument; - Widget subpanel; - long file_size; - } DtControlCallbackStruct; - -#if defined(__cplusplus) || defined(c_plusplus) -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - - -#endif /* _DtControl_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/ControlP.h b/cde/lib/DtWidget/ControlP.h deleted file mode 100644 index 878c1202..00000000 --- a/cde/lib/DtWidget/ControlP.h +++ /dev/null @@ -1,245 +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: ControlP.h /main/6 1996/03/25 11:17:48 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: ControlP.h -*** -*** project: MotifPlus Widgets -*** -*** description: Private include file for DtControl class. -*** -*** -*** (c) Copyright 1992 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtControlP_h -#define _DtControlP_h - -#include -#include
-#include
- -typedef struct _DtControlCacheObjClassPart -{ - XtPointer dummy; -} DtControlCacheObjClassPart; - - -typedef struct _DtControlCacheObjClassRec /* label cache class record */ -{ - ObjectClassPart object_class; - XmExtClassPart ext_class; - DtControlCacheObjClassPart control_class_cache; -} DtControlCacheObjClassRec; - -externalref DtControlCacheObjClassRec dtControlCacheObjClassRec; - - -/* The Control Gadget Cache instance record */ - -typedef struct _DtControlCacheObjPart -{ - XtPointer dummy; -} DtControlCacheObjPart; - -typedef struct _DtControlCacheObjRec -{ - ObjectPart object; - XmExtPart ext; - DtControlCacheObjPart control_cache; -} DtControlCacheObjRec; - -/*------------------------------------------------------------- -** Class Structure -*/ - -/* Class Part -*/ -typedef struct _DtControlClassPart -{ - XmCacheClassPartPtr cache_part; - caddr_t extension; -} DtControlClassPart; - -/* Full Class Record -*/ -typedef struct _DtControlClassRec -{ - RectObjClassPart rect_class; - XmGadgetClassPart gadget_class; - DtIconClassPart icon_class; - DtControlClassPart control_class; -} DtControlClassRec; - -/* Actual Class -*/ -extern DtControlClassRec dtControlClassRec; - - - -/*------------------------------------------------------------- -** Instance Structure -*/ - -/* Instance Part -*/ -typedef struct _DtControlPart -{ - XtPointer push_function; - XtPointer push_argument; - - String push_action; - int num_push_images; - int max_push_images; - int push_image_position; - int *push_delays; - Pixmap *push_pixmaps; - Pixmap *push_masks; - - String drop_action; - int num_drop_images; - int max_drop_images; - int drop_image_position; - int *drop_delays; - Pixmap *drop_pixmaps; - Pixmap *drop_masks; - - Widget subpanel; - - Pixmap alt_pix; - Pixmap alt_mask; - String alt_image; - - XmString alt_string; - Dimension alt_string_width; - Dimension alt_string_height; - - String format; - String format_jp; - String file_name; - long file_size; - XtIntervalId monitor_timer; - int monitor_time; - Boolean chime; - Boolean file_changed; - - Boolean _do_update; - Boolean use_embossed_text; - Boolean use_label_adj; - - unsigned char control_type; - - GC top_shadow_gc; - GC bottom_shadow_gc; - - XtIntervalId click_timer; - int click_time; - - short busy; - int blink_elapsed; - int max_blink_time; - int blink_time; - XtIntervalId blink_timer; - - XtIntervalId date_timer; - XtIntervalId push_animation_timer; - XtIntervalId drop_animation_timer; -} DtControlPart; - -/* Full Instance Record -*/ -typedef struct _DtControlRec -{ - ObjectPart object; - RectObjPart rectangle; - XmGadgetPart gadget; - DtIconPart icon; - DtControlPart control; -} DtControlRec; - - -/*------------------------------------------------------------- -** Class and Instance Macros -*/ - -/* DtControl Class Macros -*/ - -/* DtControl Instance Macros -*/ -#define G_Format(g) (g -> control.format) -#define G_TopShadowGC(g) (g -> control.top_shadow_gc) -#define G_BottomShadowGC(g) (g -> control.bottom_shadow_gc) -#define G_Busy(g) (g -> control.busy) -#define G_PushImagePosition(g) (g -> control.push_image_position) -#define G_NumPushImages(g) (g -> control.num_push_images) -#define G_MaxPushImages(g) (g -> control.max_push_images) -#define G_PushDelays(g) (g -> control.push_delays) -#define G_PushPixmaps(g) (g -> control.push_pixmaps) -#define G_PushMasks(g) (g -> control.push_masks) -#define G_DropImagePosition(g) (g -> control.drop_image_position) -#define G_NumDropImages(g) (g -> control.num_drop_images) -#define G_MaxDropImages(g) (g -> control.max_drop_images) -#define G_DropDelays(g) (g -> control.drop_delays) -#define G_DropPixmaps(g) (g -> control.drop_pixmaps) -#define G_DropMasks(g) (g -> control.drop_masks) -#define G_DropAction(g) (g -> control.drop_action) -#define G_PushAction(g) (g -> control.push_action) -#define G__DoUpdate(g) (g -> control._do_update) -#define G_PushFunction(g) (g -> control.push_function) -#define G_PushArgument(g) (g -> control.push_argument) -#define G_Subpanel(g) (g -> control.subpanel) -#define G_AltMask(g) (g -> control.alt_mask) -#define G_AltPix(g) (g -> control.alt_pix) -#define G_AltString(g) (g -> control.alt_string) -#define G_AltStringWidth(g) (g -> control.alt_string_width) -#define G_AltStringHeight(g) (g -> control.alt_string_height) -#define G_ControlType(g) (g -> control.control_type) -#define G_AltImage(g) (g -> control.alt_image) -#define G_FileChanged(g) (g -> control.file_changed) -#define G_FileName(g) (g -> control.file_name) -#define G_FileSize(g) (g -> control.file_size) -#define G_Chime(g) (g -> control.chime) -#define G_MonitorTimer(g) (g -> control.monitor_timer) -#define G_MonitorTime(g) (g -> control.monitor_time) -#define G_ClickTime(g) (g -> control.click_time) -#define G_ClickTimer(g) (g -> control.click_timer) -#define G_DateTimer(g) (g -> control.date_timer) -#define G_PushAnimationTimer(g) (g -> control.push_animation_timer) -#define G_DropAnimationTimer(g) (g -> control.drop_animation_timer) -#define G_BlinkCount(g) (g -> control.blink_count) -#define G_BlinkElapsed(g) (g -> control.blink_elapsed) -#define G_MaxBlinkTime(g) (g -> control.max_blink_time) -#define G_BlinkTime(g) (g -> control.blink_time) -#define G_BlinkTimer(g) (g -> control.blink_timer) -#define G_BlinkTime(g) (g -> control.blink_time) -#define G_UseEmbossedText(g) (g -> control.use_embossed_text) -#define G_UseLabelAdjustment(g) (g -> control.use_label_adj) - - -#endif /* _DtControlP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/DialogBox.h b/cde/lib/DtWidget/DialogBox.h deleted file mode 100644 index 8db03c5a..00000000 --- a/cde/lib/DtWidget/DialogBox.h +++ /dev/null @@ -1,88 +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: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: DialogBox.h -*** -*** project: MotifPlus Widgets -*** -*** description: Public include file for DtDialogBox class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtDialogBox_h -#define _DtDialogBox_h - -#include -#include
- -#ifndef DtIsDialogBox -#define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass) -#endif /* XmIsDialogBox */ - - -extern Widget _DtCreateDialogBox( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount) ; -extern Widget __DtCreateDialogBoxDialog( - Widget ds_p, - String name, - ArgList db_args, - Cardinal db_n) ; -extern Widget _DtDialogBoxGetButton( - Widget w, - Cardinal pos) ; -extern Widget _DtDialogBoxGetWorkArea( - Widget w) ; - - -extern WidgetClass dtDialogBoxWidgetClass; - -typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass; -typedef struct _DtDialogBoxRec * DtDialogBoxWidget; - - -#define XmBUTTON 11 - - -#define XmCR_DIALOG_BUTTON 100 - -typedef struct -{ - int reason; - XEvent * event; - Cardinal button_position; - Widget button; -} DtDialogBoxCallbackStruct; - - -#endif /* _DtDialogBox_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/DialogBoxP.h b/cde/lib/DtWidget/DialogBoxP.h deleted file mode 100644 index fc402f58..00000000 --- a/cde/lib/DtWidget/DialogBoxP.h +++ /dev/null @@ -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 - */ -/* $XConsortium: DialogBoxP.h /main/5 1996/03/27 20:16:24 drk $ */ -/**--------------------------------------------------------------------- -*** -*** file: DialogBoxP.h -*** -*** project: Motif Widgets -*** -*** description: Private include file for DtDialogBox class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtDialogBoxP_h -#define _DtDialogBoxP_h - -#include -#include -#include -#include
- -typedef void (*DlgGetSizeProc)( - Widget, - Dimension, - Dimension, - Dimension, - Dimension, - Dimension *, - Dimension * -); -/*------------------------------------------------------------- -** Class Structure -*/ - -/* Class Part -*/ -typedef struct _DtDialogBoxClassPart -{ - XtWidgetProc create_children; - XtWidgetProc configure_children; - DlgGetSizeProc get_size; - XtCallbackProc button_callback; - caddr_t extension; -} DtDialogBoxClassPart; - -/* Full Class Record -*/ -typedef struct _DtDialogBoxClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - XmFormClassPart form_class; - DtDialogBoxClassPart dialog_box_class; -} DtDialogBoxClassRec; - -/* Actual Class -*/ -extern DtDialogBoxClassRec dtDialogBoxClassRec; - - -/*------------------------------------------------------------- -** Instance Structure -*/ - -/* Instance Part -*/ -typedef struct _DtDialogBoxPart -{ - XtCallbackList callback; - Widget work_area; - Widget separator; - WidgetList button; - Cardinal button_count; - Boolean minimize_buttons; - XmStringTable button_label_strings; -} DtDialogBoxPart; - -/* Full Instance Record -*/ -typedef struct _DtDialogBoxRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - XmFormPart form; - DtDialogBoxPart dialog_box; -} DtDialogBoxRec; - - -/*------------------------------------------------------------- -** Constraint Structure -*/ - -/* Constraint Part -*/ -typedef struct _DtDialogBoxConstraintPart -{ - unsigned char child_type; -} DtDialogBoxConstraintPart, * DtDialogBoxConstraint; - -/* Full Constraint Record -*/ -typedef struct _DtDialogBoxConstraintRec -{ - XmManagerConstraintPart manager_constraint; - XmFormConstraintPart form_constraint; - DtDialogBoxConstraintPart dialog_box_constraint; -} DtDialogBoxConstraintRec, * DtDialogBoxConstraintPtr; - - - -/*------------------------------------------------------------- -** Class and Instance Macros -*/ - -/* DtDialogBox Class Macros -*/ -/**** WARNING: These macros are not thread-safe! ****/ -#define C_CreateChildren(mc) ((mc) -> dialog_box_class.create_children) -#define C_ConfigureChildren(mc) ((mc) -> dialog_box_class.configure_children) -#define C_GetSize(mc) ((mc) -> dialog_box_class.get_size) -#define C_ButtonCallback(mc) ((mc) -> dialog_box_class.button_callback) - -/* DtDialogBox Instance Macros -*/ -#define M_DialogBoxConstraint(w) \ - (&((DtDialogBoxConstraintPtr) (w)->core.constraints) \ - -> dialog_box_constraint) -#define M_WorkArea(m) (m -> dialog_box.work_area) -#define M_Separator(m) (m -> dialog_box.separator) -#define M_MinimizeButtons(m) (m -> dialog_box.minimize_buttons) -#define M_Button(m) (m -> dialog_box.button) -#define M_ButtonCount(m) (m -> dialog_box.button_count) -#define M_ButtonLabelStrings(m) (m -> dialog_box.button_label_strings) -#define M_Callback(m) (m -> dialog_box.callback) - -#endif /* _DtDialogBoxP_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/DtMsgsP.h b/cde/lib/DtWidget/DtMsgsP.h deleted file mode 100644 index 3f139754..00000000 --- a/cde/lib/DtWidget/DtMsgsP.h +++ /dev/null @@ -1,232 +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: DtMsgsP.h /main/7 1996/06/19 11:27:42 cde-dec $ */ -/* - * DtWidget/DtMsgsP.h - */ -/* - * DtMsgsP.h: - * - * Private header file for libDtWidget - */ -#ifndef _DtMessages_h -#define _DtMessages_h - -/*** const causes the HP compiler to complain. Remove reference until *** - *** the build and integration people can figure out how to get this to *** - *** work. ***/ - -/* #define CONST const */ -#define CONST - -#ifdef I18N_MSG -#include -#define DTWIDGET_GETMESSAGE(set, number, string)\ - (char *) _DtWidgetGetMessage(set, number, string) - -#else /* I18N_MSG */ -#define DTWIDGET_GETMESSAGE(set, number, string) string -#endif /* I18N_MSG */ - -extern CONST char _DtMsgCommon_0000[]; -extern CONST char _DtMsgCommon_0001[]; -extern CONST char _DtMsgComboBox_0000[]; -extern CONST char _DtMsgComboBox_0001[]; -extern CONST char _DtMsgComboBox_0002[]; -extern CONST char _DtMsgComboBox_0003[]; -extern CONST char _DtMsgComboBox_0004[]; -extern CONST char _DtMsgComboBox_0005[]; -extern CONST char _DtMsgComboBox_0006[]; -extern CONST char _DtMsgComboBox_0007[]; -extern CONST char _DtMsgComboBox_0008[]; -extern CONST char _DtMsgComboBox_0009[]; -extern CONST char _DtMsgComboBox_0010[]; -extern CONST char _DtMsgComboBox_0011[]; -extern CONST char _DtMsgComboBox_0012[]; -extern CONST char _DtMsgComboBox_0013[]; -extern CONST char _DtMsgComboBox_0014[]; -extern CONST char _DtMsgDialogBox_0000[]; -extern CONST char _DtMsgDialogBox_0001[]; -extern CONST char _DtMsgEditor_0000[]; -extern CONST char _DtMsgEditor_0001[]; -extern CONST char _DtMsgEditor_0002[]; -extern CONST char _DtMsgEditor_0003[]; -extern CONST char _DtMsgEditor_0004[]; -extern CONST char _DtMsgEditor_0005[]; -extern CONST char _DtMsgEditor_0006[]; -extern CONST char _DtMsgEditor_0007[]; -extern CONST char _DtMsgEditor_0008[]; -extern CONST char _DtMsgEditor_0009[]; -extern CONST char _DtMsgEditor_0010[]; -extern CONST char _DtMsgEditor_0011[]; -extern CONST char _DtMsgEditor_0012[]; -extern CONST char _DtMsgEditor_0013[]; -extern CONST char _DtMsgEditor_0014[]; -extern CONST char _DtMsgEditor_0015[]; -extern CONST char _DtMsgEditor_0016[]; -extern CONST char _DtMsgEditor_0017[]; -extern CONST char _DtMsgEditor_0018[]; -extern CONST char _DtMsgEditor_0019[]; -extern CONST char _DtMsgEditor_0020[]; -extern CONST char _DtMsgEditor_0021[]; -extern CONST char _DtMsgEditor_0022[]; -extern CONST char _DtMsgEditor_0023[]; -extern CONST char _DtMsgEditor_0024[]; -extern CONST char _DtMsgEditor_0025[]; -extern CONST char _DtMsgIcon_0000[]; -extern CONST char _DtMsgIcon_0001[]; -extern CONST char _DtMsgIcon_0002[]; -extern CONST char _DtMsgIcon_0003[]; -extern CONST char _DtMsgIcon_0004[]; -extern CONST char _DtMsgIcon_0005[]; -extern CONST char _DtMsgIndicator_0000[]; -extern CONST char _DtMsgMenuButton_0000[]; -extern CONST char _DtMsgMenuButton_0001[]; -extern CONST char _DtMsgMenuButton_0002[]; -extern CONST char _DtMsgSpinBox_0000[]; -extern CONST char _DtMsgSpinBox_0001[]; -extern CONST char _DtMsgSpinBox_0002[]; -extern CONST char _DtMsgSpinBox_0003[]; -extern CONST char _DtMsgSpinBox_0004[]; -extern CONST char _DtMsgSpinBox_0005[]; -extern CONST char _DtMsgSpinBox_0006[]; -extern CONST char _DtMsgSpinBox_0007[]; -extern CONST char _DtMsgSpinBox_0008[]; -extern CONST char _DtMsgSpinBox_0009[]; -extern CONST char _DtMsgSpinBox_0010[]; -extern CONST char _DtMsgSpinBox_0011[]; -extern CONST char _DtMsgSpinBox_0012[]; -extern CONST char _DtMsgSpinBox_0013[]; -extern CONST char _DtMsgSpinBox_0014[]; -extern CONST char _DtMsgTitleBox_0000[]; -extern CONST char _DtMsgTitleBox_0001[]; -extern CONST char _DtMsgTitleBox_0002[]; -extern CONST char _DtMsgTitleBox_0003[]; -extern CONST char _DtMsgTitleBox_0004[]; - -#ifdef I18N_MSG - -/* - * Message set for shared messages - */ -#define MS_Common 2 - -/* Message IDs for shared messages */ -#define MSG_CLOSE 1 -#define MSG_HELP 2 - -/* - * Message set for Editor widget - */ -#define MS_Editor 3 - -/* Message IDs for Editor */ -#define EDITOR_FORMAT_SETTINGS 1 -#define EDITOR_RIGHT_MARGIN 2 -#define EDITOR_LEFT_MARGIN 3 -#define EDITOR_LEFT_ALIGN 4 -#define EDITOR_RIGHT_ALIGN 5 -#define EDITOR_JUSTIFY 6 -#define EDITOR_CENTER 7 -#define EDITOR_PARAGRAPH 8 -#define EDITOR_ALL 9 -#define EDITOR_SPELL_TITLE 20 -#define EDITOR_FIND_TITLE 21 -#define EDITOR_MISSPELLED 22 -#define EDITOR_FIND_LABEL 23 -#define EDITOR_CHANGE_LABEL 24 -#define EDITOR_FIND_BUTTON 25 -#define EDITOR_CHANGE_BUTTON 26 -#define EDITOR_CHNG_ALL_BUTTON 27 -#define EDITOR_NO_FIND 30 -#define EDITOR_INFO_TITLE 31 -#define EDITOR_LINE 40 -#define EDITOR_TOTAL 41 -#define EDITOR_OVR 42 -#define EDITOR_INS 43 -#define EDITOR_FILTER_ERROR 50 -#define EDITOR_FILTER_ERROR2 51 -#define EDITOR_ERROR_TITLE 52 - -/* - * Message set for MenuButton widget - */ -#define MS_MenuButton 4 - -/* Message IDs for MenuButton*/ -#define MENU_POST 1 -#define MENU_PARENT 2 -#define MENU_SUBMENU 3 - -/* - * Message set for ComboBox widget - */ -#define MS_ComboBox 5 - -/* Message IDs for ComboBox */ -#define COMBO_ALIGNMENT 1 -#define COMBO_MARGIN_HEIGHT 2 -#define COMBO_MARGIN_WIDTH 3 -#define COMBO_HORIZONTAL_SPACING 4 -#define COMBO_VERTICAL_SPACING 5 -#define COMBO_ORIENTATION 6 -#define COMBO_ITEM_COUNT 7 -#define COMBO_VISIBLE_ITEM 8 -#define COMBO_TEXT 9 -#define COMBO_SET_ITEM 10 -#define COMBO_SELECT_ITEM 11 -#define COMBO_RESIZE 12 -#define COMBO_LABEL 13 -#define COMBO_CVTSTRING 14 -#define COMBO_DEL_POS 15 - -/* - * Message set for SpinBox widget - */ -#define MS_SpinBox 6 - -/* Message IDs for SpinBox */ -#define SPIN_ARROW_SENSITIVE 1 -#define SPIN_ALIGNMENT 2 -#define SPIN_INIT_DELAY 3 -#define SPIN_MARGIN_HEIGHT 4 -#define SPIN_MARGIN_WIDTH 5 -#define SPIN_ARROW_LAYOUT 6 -#define SPIN_REPEAT_DELAY 7 -#define SPIN_ITEM_COUNT 8 -#define SPIN_POSITION_STRING 9 -#define SPIN_POSITION_NUMERIC 10 -#define SPIN_DECIMAL_POINTS 11 -#define SPIN_MIN_MAX 12 -#define SPIN_TEXT 13 -#define SPIN_SET_ITEM 14 -#define SPIN_LABEL 15 - -extern char * _DtWidgetGetMessage( - int set, - int n, - char *s ); - -#endif /* I18N_MSG */ - -#endif /* _DtMessageh */ diff --git a/cde/lib/DtWidget/DtStrDefs.h b/cde/lib/DtWidget/DtStrDefs.h deleted file mode 100644 index bf9f992e..00000000 --- a/cde/lib/DtWidget/DtStrDefs.h +++ /dev/null @@ -1,542 +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: DtStrDefs.h /main/4 1996/03/25 11:18:44 rswiston $ */ -/* This file is automatically generated. */ -/* Do not edit. */ - -#ifndef _DtStrDefs_h_ -#define _DtStrDefs_h_ - -#ifdef DTSTRINGDEFINES -#define DtCAlternateImage "AlternateImage" -#define DtCBehavior "Behavior" -#define DtRBehavior "Behavior" -#define DtCBorderType "BorderType" -#define DtRBorderType "BorderType" -#define DtCBoxType "BoxType" -#define DtRBoxType "BoxType" -#define DtCButtonLabelStrings "ButtonLabelStrings" -#define DtCControlType "ControlType" -#define DtRControlType "ControlType" -#define DtCCursorFont "CursorFont" -#define DtCDrawShadow "DrawShadow" -#define DtCDropAction "DropAction" -#define DtCDropCallback "DropCallback" -#define DtCFillMode "FillMode" -#define DtRFillMode "FillMode" -#define DtCFormat "Format" -#define DtCHighResFontList "HighResFontList" -#define DtCLowResFontList "LowResFontList" -#define DtCMediumResFontList "MediumResFontList" -#define DtCPixmapPosition "PixmapPosition" -#define DtRPixmapPosition "PixmapPosition" -#define DtCPushArgument "PushArgument" -#define DtCPushFunction "PushFunction" -#define DtCStringPosition "StringPosition" -#define DtRStringPosition "StringPosition" -#define DtCSubpanel "Subpanel" -#define DtCTitleSpacing "TitleSpacing" -#define DtCTitlePosition "TitlePosition" -#define DtRTitlePosition "TitlePosition" -#define DtCUnderline "Underline" -#define DtNalternateImage "alternateImage" -#define DtNbehavior "behavior" -#define DtNbottomInset "bottomInset" -#define DtNborderType "borderType" -#define DtNboxType "boxType" -#define DtNbuttonLabelStrings "buttonLabelStrings" -#define DtNchime "chime" -#define DtNclientTimeoutInterval "clientTimeoutInterval" -#define DtNclockInterval "clockInterval" -#define DtNcontrolType "controlType" -#define DtNcursorFont "cursorFont" -#define DtNdrawShadow "drawShadow" -#define DtNdropAction "dropAction" -#define DtNdropCallback "dropCallback" -#define DtNfileName "fileName" -#define DtNfillMode "fillMode" -#define DtNformat "format" -#define DtNheightIncrement "heightIncrement" -#define DtNhighResFontList "highResFontList" -#define DtNimageName "imageName" -#define DtNleftInset "leftInset" -#define DtNlowResFontList "lowResFontList" -#define DtNmediumResFontList "mediumResFontList" -#define DtNmonitorTime "monitorTime" -#define DtNpixmapForeground "pixmapForeground" -#define DtNpixmapBackground "pixmapBackground" -#define DtNmaxPixmapWidth "maxPixmapWidth" -#define DtNmaxPixmapHeight "maxPixmapHeight" -#define DtNpixmapPosition "pixmapPosition" -#define DtNpushArgument "pushArgument" -#define DtNpushButtonClickTime "pushButtonClickTime" -#define DtNpushFunction "pushFunction" -#define DtNrightInset "rightInset" -#define DtNstringPosition "stringPosition" -#define DtNsubpanel "subpanel" -#define DtNresolution "resolution" -#define DtNtitleSpacing "titleSpacing" -#define DtNtitlePosition "titlePosition" -#define DtNtitleAlignment "titleAlignment" -#define DtNtopInset "topInset" -#define DtNunderline "underline" -#define DtNuseEmbossedText "useEmbossedText" -#define DtNwaitingBlinkRate "waitingBlinkRate" -#define DtNwidthIncrement "widthIncrement" -#define DtSicon_label "icon_label" -#define DtSicon_button "icon_button" -#define DtSicon_toggle "icon_toggle" -#define DtSicon_drag "icon_drag" -#define DtSwork_area "work_area" -#define DtStitle_area "title_area" -#define DtSseparator "separator" -#define DtSbutton "button" -#define DtSfill_none "fill_none" -#define DtSfill_parent "fill_parent" -#define DtSfill_transparent "fill_transparent" -#define DtSfill_self "fill_self" -#define DtSpixmap_top "pixmap_top" -#define DtSpixmap_bottom "pixmap_bottom" -#define DtSpixmap_left "pixmap_left" -#define DtSpixmap_right "pixmap_right" -#define DtSstring_top "string_top" -#define DtSstring_bottom "string_bottom" -#define DtSstring_left "string_left" -#define DtSstring_right "string_right" -#define DtStitle_top "title_top" -#define DtStitle_bottom "title_bottom" -#define DtNformatJP "formatJP" -#define DtCFormatJP "FormatJP" -#else -#ifndef _DtConst -#define _DtConst /**/ -#endif -extern _DtConst char _DtStrings[]; -#ifndef DtCAlternateImage -#define DtCAlternateImage ((char*)&_DtStrings[0]) -#endif -#ifndef DtCBehavior -#define DtCBehavior ((char*)&_DtStrings[15]) -#endif -#ifndef DtRBehavior -#define DtRBehavior ((char*)&_DtStrings[24]) -#endif -#ifndef DtCBorderType -#define DtCBorderType ((char*)&_DtStrings[33]) -#endif -#ifndef DtRBorderType -#define DtRBorderType ((char*)&_DtStrings[44]) -#endif -#ifndef DtCBoxType -#define DtCBoxType ((char*)&_DtStrings[55]) -#endif -#ifndef DtRBoxType -#define DtRBoxType ((char*)&_DtStrings[63]) -#endif -#ifndef DtCButtonLabelStrings -#define DtCButtonLabelStrings ((char*)&_DtStrings[71]) -#endif -#ifndef DtCControlType -#define DtCControlType ((char*)&_DtStrings[90]) -#endif -#ifndef DtRControlType -#define DtRControlType ((char*)&_DtStrings[102]) -#endif -#ifndef DtCCursorFont -#define DtCCursorFont ((char*)&_DtStrings[114]) -#endif -#ifndef DtCDrawShadow -#define DtCDrawShadow ((char*)&_DtStrings[125]) -#endif -#ifndef DtCDropAction -#define DtCDropAction ((char*)&_DtStrings[136]) -#endif -#ifndef DtCDropCallback -#define DtCDropCallback ((char*)&_DtStrings[147]) -#endif -#ifndef DtCFillMode -#define DtCFillMode ((char*)&_DtStrings[160]) -#endif -#ifndef DtRFillMode -#define DtRFillMode ((char*)&_DtStrings[169]) -#endif -#ifndef DtCFormat -#define DtCFormat ((char*)&_DtStrings[178]) -#endif -#ifndef DtCHighResFontList -#define DtCHighResFontList ((char*)&_DtStrings[185]) -#endif -#ifndef DtCLowResFontList -#define DtCLowResFontList ((char*)&_DtStrings[201]) -#endif -#ifndef DtCMediumResFontList -#define DtCMediumResFontList ((char*)&_DtStrings[216]) -#endif -#ifndef DtCPixmapPosition -#define DtCPixmapPosition ((char*)&_DtStrings[234]) -#endif -#ifndef DtRPixmapPosition -#define DtRPixmapPosition ((char*)&_DtStrings[249]) -#endif -#ifndef DtCPushArgument -#define DtCPushArgument ((char*)&_DtStrings[264]) -#endif -#ifndef DtCPushFunction -#define DtCPushFunction ((char*)&_DtStrings[277]) -#endif -#ifndef DtCStringPosition -#define DtCStringPosition ((char*)&_DtStrings[290]) -#endif -#ifndef DtRStringPosition -#define DtRStringPosition ((char*)&_DtStrings[305]) -#endif -#ifndef DtCSubpanel -#define DtCSubpanel ((char*)&_DtStrings[320]) -#endif -#ifndef DtCTitleSpacing -#define DtCTitleSpacing ((char*)&_DtStrings[329]) -#endif -#ifndef DtCTitlePosition -#define DtCTitlePosition ((char*)&_DtStrings[342]) -#endif -#ifndef DtRTitlePosition -#define DtRTitlePosition ((char*)&_DtStrings[356]) -#endif -#ifndef DtCUnderline -#define DtCUnderline ((char*)&_DtStrings[370]) -#endif -#ifndef DtNalternateImage -#define DtNalternateImage ((char*)&_DtStrings[380]) -#endif -#ifndef DtNbehavior -#define DtNbehavior ((char*)&_DtStrings[395]) -#endif -#ifndef DtNbottomInset -#define DtNbottomInset ((char*)&_DtStrings[404]) -#endif -#ifndef DtNborderType -#define DtNborderType ((char*)&_DtStrings[416]) -#endif -#ifndef DtNboxType -#define DtNboxType ((char*)&_DtStrings[427]) -#endif -#ifndef DtNbuttonLabelStrings -#define DtNbuttonLabelStrings ((char*)&_DtStrings[435]) -#endif -#ifndef DtNchime -#define DtNchime ((char*)&_DtStrings[454]) -#endif -#ifndef DtNclientTimeoutInterval -#define DtNclientTimeoutInterval ((char*)&_DtStrings[460]) -#endif -#ifndef DtNclockInterval -#define DtNclockInterval ((char*)&_DtStrings[482]) -#endif -#ifndef DtNcontrolType -#define DtNcontrolType ((char*)&_DtStrings[496]) -#endif -#ifndef DtNcursorFont -#define DtNcursorFont ((char*)&_DtStrings[508]) -#endif -#ifndef DtNdrawShadow -#define DtNdrawShadow ((char*)&_DtStrings[519]) -#endif -#ifndef DtNdropAction -#define DtNdropAction ((char*)&_DtStrings[530]) -#endif -#ifndef DtNdropCallback -#define DtNdropCallback ((char*)&_DtStrings[541]) -#endif -#ifndef DtNfileName -#define DtNfileName ((char*)&_DtStrings[554]) -#endif -#ifndef DtNfillMode -#define DtNfillMode ((char*)&_DtStrings[563]) -#endif -#ifndef DtNformat -#define DtNformat ((char*)&_DtStrings[572]) -#endif -#ifndef DtNheightIncrement -#define DtNheightIncrement ((char*)&_DtStrings[579]) -#endif -#ifndef DtNhighResFontList -#define DtNhighResFontList ((char*)&_DtStrings[595]) -#endif -#ifndef DtNimageName -#define DtNimageName ((char*)&_DtStrings[611]) -#endif -#ifndef DtNleftInset -#define DtNleftInset ((char*)&_DtStrings[621]) -#endif -#ifndef DtNlowResFontList -#define DtNlowResFontList ((char*)&_DtStrings[631]) -#endif -#ifndef DtNmediumResFontList -#define DtNmediumResFontList ((char*)&_DtStrings[646]) -#endif -#ifndef DtNmonitorTime -#define DtNmonitorTime ((char*)&_DtStrings[664]) -#endif -#ifndef DtNpixmapForeground -#define DtNpixmapForeground ((char*)&_DtStrings[676]) -#endif -#ifndef DtNpixmapBackground -#define DtNpixmapBackground ((char*)&_DtStrings[693]) -#endif -#ifndef DtNpixmapPosition -#define DtNpixmapPosition ((char*)&_DtStrings[710]) -#endif -#ifndef DtNpushArgument -#define DtNpushArgument ((char*)&_DtStrings[725]) -#endif -#ifndef DtNpushButtonClickTime -#define DtNpushButtonClickTime ((char*)&_DtStrings[738]) -#endif -#ifndef DtNpushFunction -#define DtNpushFunction ((char*)&_DtStrings[758]) -#endif -#ifndef DtNrightInset -#define DtNrightInset ((char*)&_DtStrings[771]) -#endif -#ifndef DtNstringPosition -#define DtNstringPosition ((char*)&_DtStrings[782]) -#endif -#ifndef DtNsubpanel -#define DtNsubpanel ((char*)&_DtStrings[797]) -#endif -#ifndef DtNresolution -#define DtNresolution ((char*)&_DtStrings[806]) -#endif -#ifndef DtNtitleSpacing -#define DtNtitleSpacing ((char*)&_DtStrings[817]) -#endif -#ifndef DtNtitlePosition -#define DtNtitlePosition ((char*)&_DtStrings[830]) -#endif -#ifndef DtNtitleAlignment -#define DtNtitleAlignment ((char*)&_DtStrings[844]) -#endif -#ifndef DtNtopInset -#define DtNtopInset ((char*)&_DtStrings[859]) -#endif -#ifndef DtNunderline -#define DtNunderline ((char*)&_DtStrings[868]) -#endif -#ifndef DtNuseEmbossedText -#define DtNuseEmbossedText ((char*)&_DtStrings[878]) -#endif -#ifndef DtNwaitingBlinkRate -#define DtNwaitingBlinkRate ((char*)&_DtStrings[894]) -#endif -#ifndef DtNwidthIncrement -#define DtNwidthIncrement ((char*)&_DtStrings[911]) -#endif -#ifndef DtSicon_label -#define DtSicon_label ((char*)&_DtStrings[926]) -#endif -#ifndef DtSicon_button -#define DtSicon_button ((char*)&_DtStrings[937]) -#endif -#ifndef DtSicon_toggle -#define DtSicon_toggle ((char*)&_DtStrings[949]) -#endif -#ifndef DtSicon_drag -#define DtSicon_drag ((char*)&_DtStrings[961]) -#endif -#ifndef DtSwork_area -#define DtSwork_area ((char*)&_DtStrings[971]) -#endif -#ifndef DtStitle_area -#define DtStitle_area ((char*)&_DtStrings[981]) -#endif -#ifndef DtSseparator -#define DtSseparator ((char*)&_DtStrings[992]) -#endif -#ifndef DtSbutton -#define DtSbutton ((char*)&_DtStrings[1002]) -#endif -#ifndef DtSfill_none -#define DtSfill_none ((char*)&_DtStrings[1009]) -#endif -#ifndef DtSfill_parent -#define DtSfill_parent ((char*)&_DtStrings[1019]) -#endif -#ifndef DtSfill_transparent -#define DtSfill_transparent ((char*)&_DtStrings[1031]) -#endif -#ifndef DtSfill_self -#define DtSfill_self ((char*)&_DtStrings[1048]) -#endif -#ifndef DtSpixmap_top -#define DtSpixmap_top ((char*)&_DtStrings[1058]) -#endif -#ifndef DtSpixmap_bottom -#define DtSpixmap_bottom ((char*)&_DtStrings[1069]) -#endif -#ifndef DtSpixmap_left -#define DtSpixmap_left ((char*)&_DtStrings[1083]) -#endif -#ifndef DtSpixmap_right -#define DtSpixmap_right ((char*)&_DtStrings[1095]) -#endif -#ifndef DtSstring_top -#define DtSstring_top ((char*)&_DtStrings[1108]) -#endif -#ifndef DtSstring_bottom -#define DtSstring_bottom ((char*)&_DtStrings[1119]) -#endif -#ifndef DtSstring_left -#define DtSstring_left ((char*)&_DtStrings[1133]) -#endif -#ifndef DtSstring_right -#define DtSstring_right ((char*)&_DtStrings[1145]) -#endif -#ifndef DtStitle_top -#define DtStitle_top ((char*)&_DtStrings[1158]) -#endif -#ifndef DtStitle_bottom -#define DtStitle_bottom ((char*)&_DtStrings[1168]) -#endif -#ifndef DtNmaxPixmapWidth -#define DtNmaxPixmapWidth ((char*)&_DtStrings[1181]) -#endif -#ifndef DtNmaxPixmapHeight -#define DtNmaxPixmapHeight ((char*)&_DtStrings[1196]) -#endif -#endif -extern _DtConst char _AIXJPStrings[]; -#ifndef DtNformatJP -#define DtNformatJP ((char*)&_AIXJPStrings[0]) -#endif -#ifndef DtCFormatJP -#define DtCFormatJP ((char*)&_AIXJPStrings[9]) -#endif - -/* - * Resource name mapping to Xm prefix. If Motif defines on of these - * resources, the redefined resource definition should be removed. - */ -#define XmCAlternateImage DtCAlternateImage -#define XmCBehavior DtCBehavior -#define XmRBehavior DtRBehavior -#define XmCBorderType DtCBorderType -#define XmRBorderType DtRBorderType -#define XmCBoxType DtCBoxType -#define XmRBoxType DtRBoxType -#define XmCButtonLabelStrings DtCButtonLabelStrings -#define XmCControlType DtCControlType -#define XmRControlType DtRControlType -#define XmCCursorFont DtCCursorFont -#define XmCDrawShadow DtCDrawShadow -#define XmCDropAction DtCDropAction -#define XmCDropCallback DtCDropCallback -#define XmCFillMode DtCFillMode -#define XmRFillMode DtRFillMode -#define XmCFormat DtCFormat -#define XmCHighResFontList DtCHighResFontList -#define XmCLowResFontList DtCLowResFontList -#define XmCMediumResFontList DtCMediumResFontList -#define XmCPixmapPosition DtCPixmapPosition -#define XmRPixmapPosition DtRPixmapPosition -#define XmCPushArgument DtCPushArgument -#define XmCPushFunction DtCPushFunction -#define XmCStringPosition DtCStringPosition -#define XmRStringPosition DtRStringPosition -#define XmCSubpanel DtCSubpanel -#define XmCTitleSpacing DtCTitleSpacing -#define XmCTitlePosition DtCTitlePosition -#define XmRTitlePosition DtRTitlePosition -#define XmCUnderline DtCUnderline -#define XmNalternateImage DtNalternateImage -#define XmNbehavior DtNbehavior -#define XmNbottomInset DtNbottomInset -#define XmNborderType DtNborderType -#define XmNboxType DtNboxType -#define XmNbuttonLabelStrings DtNbuttonLabelStrings -#define XmNchime DtNchime -#define XmNclientTimeoutInterval DtNclientTimeoutInterval -#define XmNclockInterval DtNclockInterval -#define XmNcontrolType DtNcontrolType -#define XmNcursorFont DtNcursorFont -#define XmNdrawShadow DtNdrawShadow -#define XmNdropAction DtNdropAction -#define XmNdropCallback DtNdropCallback -#define XmNfileName DtNfileName -#define XmNfillMode DtNfillMode -#define XmNformat DtNformat -#define XmNheightIncrement DtNheightIncrement -#define XmNhighResFontList DtNhighResFontList -#define XmNimageName DtNimageName -#define XmNleftInset DtNleftInset -#define XmNlowResFontList DtNlowResFontList -#define XmNmediumResFontList DtNmediumResFontList -#define XmNmonitorTime DtNmonitorTime -#define XmNpixmapForeground DtNpixmapForeground -#define XmNpixmapBackground DtNpixmapBackground -#define XmNmaxPixmapWidth DtNmaxPixmapWidth -#define XmNmaxPixmapHeight DtNmaxPixmapHeight -#define XmNpixmapPosition DtNpixmapPosition -#define XmNpushArgument DtNpushArgument -#define XmNpushButtonClickTime DtNpushButtonClickTime -#define XmNpushFunction DtNpushFunction -#define XmNrightInset DtNrightInset -#define XmNstringPosition DtNstringPosition -#define XmNsubpanel DtNsubpanel -#define XmNresolution DtNresolution -#define XmNtitleSpacing DtNtitleSpacing -#define XmNtitlePosition DtNtitlePosition -#define XmNtitleAlignment DtNtitleAlignment -#define XmNtopInset DtNtopInset -#define XmNunderline DtNunderline -#define XmNuseEmbossedText DtNuseEmbossedText -#define XmNwaitingBlinkRate DtNwaitingBlinkRate -#define XmNwidthIncrement DtNwidthIncrement -#define XmNformatJP DtNformatJP -#define XmCFormatJP DtCFormatJP - -/* - * String defines for converter string names. - */ -#define STR_ICON_LABEL DtSicon_label -#define STR_ICON_BUTTON DtSicon_button -#define STR_ICON_TOGGLE DtSicon_toggle -#define STR_ICON_DRAG DtSicon_drag -#define STR_WORK_AREA DtSwork_area -#define STR_TITLE_AREA DtStitle_area -#define STR_SEPARATOR DtSseparator -#define STR_BUTTON DtSbutton -#define STR_FILL_NONE DtSfill_none -#define STR_FILL_PARENT DtSfill_parent -#define STR_FILL_TRANSPARENT DtSfill_transparent -#define STR_FILL_SELF DtSfill_self -#define STR_PIXMAP_TOP DtSpixmap_top -#define STR_PIXMAP_BOTTOM DtSpixmap_bottom -#define STR_PIXMAP_LEFT DtSpixmap_left -#define STR_PIXMAP_RIGHT DtSpixmap_right -#define STR_STRING_TOP DtSstring_top -#define STR_STRING_BOTTOM DtSstring_bottom -#define STR_STRING_LEFT DtSstring_left -#define STR_STRING_RIGHT DtSstring_right -#define STR_TITLE_TOP DtStitle_top -#define STR_TITLE_BOTTOM DtStitle_bottom -#endif diff --git a/cde/lib/DtWidget/Editor.h b/cde/lib/DtWidget/Editor.h deleted file mode 100644 index 01e2b866..00000000 --- a/cde/lib/DtWidget/Editor.h +++ /dev/null @@ -1,616 +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: Editor.h /main/3 1995/10/26 09:32: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. - */ - -#ifndef _Dt_Editor_h -#define _Dt_Editor_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Sources of Help requests */ -/* Used with XmNhelpCallback */ - -#define DtEDITOR_HELP_EDIT_WINDOW 1 -#define DtEDITOR_HELP_STATUS_LINE 2 -#define DtEDITOR_HELP_STATUS_CURRENT_LINE 3 -#define DtEDITOR_HELP_STATUS_TOTAL_LINES 4 -#define DtEDITOR_HELP_STATUS_MESSAGE 5 -#define DtEDITOR_HELP_STATUS_OVERSTRIKE 6 -#define DtEDITOR_HELP_FORMAT_DIALOG 7 -#define DtEDITOR_HELP_FORMAT_LEFT_MARGIN 8 -#define DtEDITOR_HELP_FORMAT_RIGHT_MARGIN 9 -#define DtEDITOR_HELP_FORMAT_ALIGNMENT 10 -#define DtEDITOR_HELP_CHANGE_DIALOG 11 -#define DtEDITOR_HELP_CHANGE_FIND 12 -#define DtEDITOR_HELP_CHANGE_CHANGE 13 -#define DtEDITOR_HELP_SPELL_DIALOG 14 -#define DtEDITOR_HELP_SPELL_MISSPELLED_WORDS 15 -#define DtEDITOR_HELP_SPELL_CHANGE 16 - -/* Specifies the last line in the edit area */ -/* Used with DtEditorGoToLine */ -#define DtEDITOR_LAST_LINE -999 - -/* Resource constants */ - -#ifndef DtNautoShowCursorPosition -#define DtNautoShowCursorPosition XmNautoShowCursorPosition -#endif -#ifndef DtCAutoShowCursorPosition -#define DtCAutoShowCursorPosition XmCAutoShowCursorPosition -#endif -#ifndef DtNblinkRate -#define DtNblinkRate XmNblinkRate -#endif -#ifndef DtCBlinkRate -#define DtCBlinkRate XmCBlinkRate -#endif -#ifndef DtNbuttonFontList -#define DtNbuttonFontList XmNbuttonFontList -#endif -#ifndef DtCFontList -#define DtCFontList XmCFontList -#endif -#ifndef DtNcenterToggleLabel -#define DtNcenterToggleLabel "centerToggleLabel" -#endif -#ifndef DtCCenterToggleLabel -#define DtCCenterToggleLabel "CenterToggleLabel" -#endif -#ifndef DtNchangeAllButtonLabel -#define DtNchangeAllButtonLabel "changeAllButtonLabel" -#endif -#ifndef DtCChangeAllButtonLabel -#define DtCChangeAllButtonLabel "ChangeAllButtonLabel" -#endif -#ifndef DtNchangeButtonLabel -#define DtNchangeButtonLabel "changeButtonLabel" -#endif -#ifndef DtCChangeButtonLabel -#define DtCChangeButtonLabel "ChangeButtonLabel" -#endif -#ifndef DtNchangeFieldLabel -#define DtNchangeFieldLabel "changeFieldLabel" -#endif -#ifndef DtCChangeFieldLabel -#define DtCChangeFieldLabel "ChangeFieldLabel" -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtNcurrentLineLabel -#define DtNcurrentLineLabel "currentLineLabel" -#endif -#ifndef DtCCurrentLineLabel -#define DtCCurrentLineLabel "CurrentLineLabel" -#endif -#ifndef DtNcursorPosition -#define DtNcursorPosition XmNcursorPosition -#endif -#ifndef DtCCursorPosition -#define DtCCursorPosition XmCCursorPosition -#endif -#ifndef DtNcursorPositionVisible -#define DtNcursorPositionVisible XmNcursorPositionVisible -#endif -#ifndef DtCCursorPositionVisible -#define DtCCursorPositionVisible XmCCursorPositionVisible -#endif -#ifndef DtNdialogTitle -#define DtNdialogTitle "dialogTitle" -#endif -#ifndef DtCDialogTitle -#define DtCDialogTitle XmCDialogTitle -#endif -#ifndef DtNeditable -#define DtNeditable XmNeditable -#endif -#ifndef DtCEditable -#define DtCEditable XmCEditable -#endif -#ifndef DtNfindButtonLabel -#define DtNfindButtonLabel "findButtonLabel" -#endif -#ifndef DtCFindButtonLabel -#define DtCFindButtonLabel "FindButtonLabel" -#endif -#ifndef DtNfindChangeDialogTitle -#define DtNfindChangeDialogTitle "findChangeDialogTitle" -#endif -#ifndef DtCFindChangeDialogTitle -#define DtCFindChangeDialogTitle "FindChangeDialogTitle" -#endif -#ifndef DtNfindFieldLabel -#define DtNfindFieldLabel "findFieldLabel" -#endif -#ifndef DtCFindFieldLabel -#define DtCFindFieldLabel "FindFieldLabel" -#endif -#ifndef DtNformatAllButtonLabel -#define DtNformatAllButtonLabel "formatAllButtonLabel" -#endif -#ifndef DtCFormatAllButtonLabel -#define DtCFormatAllButtonLabel "FormatAllButtonLabel" -#endif -#ifndef DtNformatParagraphButtonLabel -#define DtNformatParagraphButtonLabel "formatParagraphButtonLabel" -#endif -#ifndef DtCFormatParagraphButtonLabel -#define DtCFormatParagraphButtonLabel "FormatParagraphButtonLabel" -#endif -#ifndef DtNformatSettingsDialogTitle -#define DtNformatSettingsDialogTitle "formatSettingsDialogTitle" -#endif -#ifndef DtCFormatSettingsDialogTitle -#define DtCFormatSettingsDialogTitle "FormatSettingsDialogTitle" -#endif -#ifndef DtNinformationDialogTitle -#define DtNinformationDialogTitle "informationDialogTitle" -#endif -#ifndef DtCInformationDialogTitle -#define DtCInformationDialogTitle "InformationDialogTitle" -#endif -#ifndef DtNinsertLabel -#define DtNinsertLabel "insertLabel" -#endif -#ifndef DtCInsertLabel -#define DtCInsertLabel "InsertLabel" -#endif -#ifndef DtNjustifyToggleLabel -#define DtNjustifyToggleLabel "justifyToggleLabel" -#endif -#ifndef DtCJustifyToggleLabel -#define DtCJustifyToggleLabel "JustifyToggleLabel" -#endif -#ifndef DtNlabelFontList -#define DtNlabelFontList XmNlabelFontList -#endif -#ifndef DtNleftAlignToggleLabel -#define DtNleftAlignToggleLabel "leftAlignToggleLabel" -#endif -#ifndef DtCLeftAlignToggleLabel -#define DtCLeftAlignToggleLabel "LeftAlignToggleLabel" -#endif -#ifndef DtNleftMarginFieldLabel -#define DtNleftMarginFieldLabel "leftMarginFieldLabel" -#endif -#ifndef DtCLeftMarginFieldLabel -#define DtCLeftMarginFieldLabel "LeftMarginFieldLabel" -#endif -#ifndef DtNmaxLength -#define DtNmaxLength XmNmaxLength -#endif -#ifndef DtCMaxLength -#define DtCMaxLength XmCMaxLength -#endif -#ifndef DtNmisspelledListLabel -#define DtNmisspelledListLabel "misspelledListLabel" -#endif -#ifndef DtCMisspelledListLabel -#define DtCMisspelledListLabel "MisspelledListLabel" -#endif -#ifndef DtNoverstrike -#define DtNoverstrike "overstrike" -#endif -#ifndef DtCOverstrike -#define DtCOverstrike "Overstrike" -#endif -#ifndef DtNoverstrikeLabel -#define DtNoverstrikeLabel "overstrikeLabel" -#endif -#ifndef DtCOverstrikeLabel -#define DtCOverstrikeLabel "OverstrikeLabel" -#endif -#ifndef DtNrightAlignToggleLabel -#define DtNrightAlignToggleLabel "rightAlignToggleLabel" -#endif -#ifndef DtCRightAlignToggleLabel -#define DtCRightAlignToggleLabel "RightAlignToggleLabel" -#endif -#ifndef DtNrightMarginFieldLabel -#define DtNrightMarginFieldLabel "rightMarginFieldLabel" -#endif -#ifndef DtCRightMarginFieldLabel -#define DtCRightMarginFieldLabel "RightMarginFieldLabel" -#endif -#ifndef DtNrows -#define DtNrows XmNrows -#endif -#ifndef DtCRows -#define DtCRows XmCRows -#endif -#ifndef DtNscrollHorizontal -#define DtNscrollHorizontal XmNscrollHorizontal -#endif -#ifndef DtCScroll -#define DtCScroll XmCScroll -#endif -#ifndef DtNscrollLeftSide -#define DtNscrollLeftSide XmNscrollLeftSide -#endif -#ifndef DtCScrollSide -#define DtCScrollSide XmCScrollSide -#endif -#ifndef DtNscrollTopSide -#define DtNscrollTopSide XmNscrollTopSide -#endif -#ifndef DtNscrollVertical -#define DtNscrollVertical XmNscrollVertical -#endif -#ifndef DtNshowStatusLine -#define DtNshowStatusLine "showStatusLine" -#endif -#ifndef DtCShowStatusLine -#define DtCShowStatusLine "ShowStatusLine" -#endif -#ifndef DtNspellDialogTitle -#define DtNspellDialogTitle "spellDialogTitle" -#endif -#ifndef DtCSpellDialogTitle -#define DtCSpellDialogTitle "SpellDialogTitle" -#endif -#ifndef DtNspellFilter -#define DtNspellFilter "spellFilter" -#endif -#ifndef DtCSpellFilter -#define DtCSpellFilter "SpellFilter" -#endif -#ifndef DtNtextBackground -#define DtNtextBackground "textBackground" -#endif -#ifndef DtCBackground -#define DtCBackground XmCBackground -#endif -#ifndef DtNtextDeselectCallback -#define DtNtextDeselectCallback "textDeselectCallback" -#endif -#ifndef DtNtextFontList -#define DtNtextFontList XmNtextFontList -#endif -#ifndef DtNtextForeground -#define DtNtextForeground "textForeground" -#endif -#ifndef DtCForeground -#define DtCForeground XmCForeground -#endif -#ifndef DtNtextSelectCallback -#define DtNtextSelectCallback "textSelectCallback" -#endif -#ifndef DtNtextTranslations -#define DtNtextTranslations XmNtextTranslations -#endif -#ifndef DtCTranslations -#define DtCTranslations XmCTranslations -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtNtopCharacter -#define DtNtopCharacter XmNtopCharacter -#endif -#ifndef DtCTopCharacter -#define DtCTopCharacter XmCTopCharacter -#endif -#ifndef DtNtotalLineCountLabel -#define DtNtotalLineCountLabel "totalLineCountLabel" -#endif -#ifndef DtCTotalLineCountLabel -#define DtCTotalLineCountLabel "TotalLineCountLabel" -#endif -#ifndef DtNwordWrap -#define DtNwordWrap XmNwordWrap -#endif -#ifndef DtCWordWrap -#define DtCWordWrap XmCWordWrap -#endif - -#ifndef DtEditorHelpCallbackStruct -#define DtEditorHelpCallbackStruct XmAnyCallbackStruct -#endif -#ifndef DtEditorSelectCallbackStruct -#define DtEditorSelectCallbackStruct XmAnyCallbackStruct -#endif -#ifndef DtEditorDeselectCallbackStruct -#define DtEditorDeselectCallbackStruct XmAnyCallbackStruct -#endif - - -/* Used with DtEditorChange() */ - -enum { - DtEDITOR_CURRENT_SELECTION, - DtEDITOR_NEXT_OCCURRENCE, - DtEDITOR_ALL_OCCURRENCES -}; - -/* Used with DtEditorFormat() */ - -enum { - DtEDITOR_FORMAT_ALL, - DtEDITOR_FORMAT_PARAGRAPH -}; - -enum { - DtEDITOR_ALIGN_CENTER, - DtEDITOR_ALIGN_JUSTIFY, - DtEDITOR_ALIGN_LEFT, - DtEDITOR_ALIGN_RIGHT -}; - -/* Used with DtNtextSelectCallback */ -enum { - DtEDITOR_TEXT_SELECT, - DtEDITOR_TEXT_DESELECT -}; - -/* - * Types - */ - -typedef enum _DtEditorErrorCode{ - DtEDITOR_NO_ERRORS, - DtEDITOR_INVALID_TYPE, - DtEDITOR_INVALID_RANGE, - DtEDITOR_NULL_ITEM, - DtEDITOR_ILLEGAL_SIZE, - DtEDITOR_SPELL_FILTER_FAILED, - DtEDITOR_NO_TMP_FILE, - DtEDITOR_INVALID_FILENAME, - DtEDITOR_NONEXISTENT_FILE, - DtEDITOR_UNREADABLE_FILE, - DtEDITOR_READ_ONLY_FILE, - DtEDITOR_NO_FILE_ACCESS, - DtEDITOR_DIRECTORY, - DtEDITOR_CHAR_SPECIAL_FILE, - DtEDITOR_BLOCK_MODE_FILE, - DtEDITOR_UNWRITABLE_FILE, - DtEDITOR_WRITABLE_FILE, - DtEDITOR_SAVE_FAILED, - DtEDITOR_INSUFFICIENT_MEMORY, - DtEDITOR_NULLS_REMOVED -} DtEditorErrorCode; - - -/* Used with DtEditorChange() to specify Find and Change To strings */ - -typedef struct _DtEditorChangeValues { - char *find; - char *changeTo; -} DtEditorChangeValues; - -/* Used with DtEditorFormat() to specify left margin, right margin * - * and justification styles. */ - -typedef struct _DtEditorFormatSettings { - int leftMargin; - int rightMargin; - unsigned int alignment; -} DtEditorFormatSettings; - -/* Types used to tag data to/from the editor widget */ - -typedef enum _DtEditorDataFormat{ - DtEDITOR_TEXT, - DtEDITOR_WCHAR, - DtEDITOR_DATA -} DtEditorDataFormat; - - -/* Types used to pass data to/from the editor widget */ - -typedef struct _DtEditor_DataObj { - unsigned int length; - void *buf; -} DtEditor_DataObj; - -typedef struct _DtEditorContentRec { - DtEditorDataFormat type; - union { - char *string; - wchar_t *wchar; - DtEditor_DataObj data; - } value; -} DtEditorContentRec; - - -/* Widget class and instance */ - -typedef struct _DtEditorClassRec *DtEditorClass; -typedef struct _DtEditorRec *DtEditorWidget; - - -/* - * Data - */ - -/* Widget class */ - -externalref WidgetClass dtEditorWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateEditor( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern DtEditorErrorCode DtEditorAppend( - Widget widget, - DtEditorContentRec *data); - -extern DtEditorErrorCode DtEditorAppendFromFile( - Widget widget, - char *fileName); - -extern Boolean DtEditorChange( - Widget widget, - DtEditorChangeValues *findChangeStrings, - unsigned int instanceToChange); - -extern Boolean DtEditorCheckForUnsavedChanges( - Widget widget); - -extern Boolean DtEditorClearSelection( - Widget widget); - -extern Boolean DtEditorCopyToClipboard( - Widget widget); - -extern Boolean DtEditorCutToClipboard( - Widget widget); - -extern Boolean DtEditorDeleteSelection( - Widget widget); - -extern Boolean DtEditorDeselect( - Widget widget); - -extern void DtEditorDisableRedisplay( - Widget widget); - -extern void DtEditorEnableRedisplay( - Widget widget); - -extern Boolean DtEditorFind( - Widget widget, - char * find); - -extern DtEditorErrorCode DtEditorFormat( - Widget widget, - DtEditorFormatSettings *formatSettings, - unsigned int amountToFormat); - -extern DtEditorErrorCode DtEditorGetContents( - Widget widget, - DtEditorContentRec *data, - Boolean hardCarriageReturns, - Boolean markContentsAsSaved); - -extern XmTextPosition DtEditorGetInsertionPosition( - Widget widget); - -extern XmTextPosition DtEditorGetLastPosition( - Widget widget); - -extern Widget DtEditorGetMessageTextFieldID( - Widget widget); - -extern void DtEditorGetSizeHints( - Widget widget, - XSizeHints *pHints); - -extern void DtEditorGoToLine( - Widget widget, - int lineNumber); - -extern DtEditorErrorCode DtEditorInsert( - Widget widget, - DtEditorContentRec *data); - -extern DtEditorErrorCode DtEditorInsertFromFile( - Widget widget, - char *fileName); - -extern void DtEditorInvokeFindChangeDialog( - Widget widget); - -extern void DtEditorInvokeFormatDialog( - Widget widget); - -extern DtEditorErrorCode DtEditorInvokeSpellDialog( - Widget widget); - -extern Boolean DtEditorPasteFromClipboard( - Widget widget); - -extern DtEditorErrorCode DtEditorReplace( - Widget widget, - XmTextPosition startPos, - XmTextPosition endPos, - DtEditorContentRec *data); - -extern DtEditorErrorCode DtEditorReplaceFromFile( - Widget widget, - XmTextPosition startPos, - XmTextPosition endPos, - char *fileName); - -extern void DtEditorReset( - Widget widget); - -extern DtEditorErrorCode DtEditorSaveContentsToFile( - Widget widget, - char *fileName, - Boolean overwriteIfExists, - Boolean hardCarriageReturns, - Boolean markContentsAsSaved); - -extern Boolean DtEditorSelectAll( - Widget widget); - -extern DtEditorErrorCode DtEditorSetContents( - Widget widget, - DtEditorContentRec *data); - -extern DtEditorErrorCode DtEditorSetContentsFromFile( - Widget widget, - char *fileName); - -extern void DtEditorSetInsertionPosition( - Widget widget, - XmTextPosition position); - -extern void DtEditorTraverseToEditor( - Widget widget); - -extern Boolean DtEditorUndoEdit( - Widget widget); - - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_Editor_h */ diff --git a/cde/lib/DtWidget/EditorP.h b/cde/lib/DtWidget/EditorP.h deleted file mode 100644 index c727df63..00000000 --- a/cde/lib/DtWidget/EditorP.h +++ /dev/null @@ -1,710 +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: EditorP.h /main/4 1996/06/19 11:28:20 cde-dec $ */ -/**********************************<+>************************************* -*************************************************************************** -** -** File: EditorP.h -** -** Project: DtEditor widget -** -** Description: -** ----------- -** Private include file for the DtEditor widget, text editor class. -** -******************************************************************* -* -* (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 _DtEditorP_h -#define _DtEditorP_h - -#include
- -#include -#include -#include -#include -#include - -#include -#include -#include - -#include -#include -#include -#include - -#include "MacrosP.h" -#include
- -#ifdef SENTINEL -#include -#endif /* SENTINEL */ - - -/**************************************************************** - * - * Defines - * - ****************************************************************/ - -#define READ_ACCESS 1 -#define WRITE_ACCESS 2 - -#define REPLACE 0 -#define FIND 1 -#define SPELL 2 - -#define UNKNOWN_ACTION -1 -#define EXTEND_SELECTION 0 -#define ICON_FOCUSED 1 - -#define NO_DELETION_IN_PROGRESS -999 - -#ifndef DtUNSPECIFIED -#define DtUNSPECIFIED (~0) -#endif - - -#define CLOSE_BUTTON DTWIDGET_GETMESSAGE( \ - MS_Common, MSG_CLOSE, _DtMsgCommon_0000) - -#define HELP_BUTTON DTWIDGET_GETMESSAGE( \ - MS_Common, MSG_HELP, _DtMsgCommon_0001) - -#define FORMAT_SETTINGS DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FORMAT_SETTINGS, _DtMsgEditor_0000) - -#define RIGHT_MARGIN DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_RIGHT_MARGIN, _DtMsgEditor_0001) - -#define LEFT_MARGIN DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_LEFT_MARGIN, _DtMsgEditor_0002) - -#define LEFT_ALIGN DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_LEFT_ALIGN, _DtMsgEditor_0003) - -#define RIGHT_ALIGN DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_RIGHT_ALIGN, _DtMsgEditor_0004) - -#define JUSTIFY DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_JUSTIFY, _DtMsgEditor_0005) - -#define CENTER DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_CENTER, _DtMsgEditor_0006) - -#define PARAGRAPH DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_PARAGRAPH, _DtMsgEditor_0007) - -#define ALL DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_ALL, _DtMsgEditor_0008) - -#define SPELL_TITLE DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_SPELL_TITLE, _DtMsgEditor_0009) - -#define FIND_TITLE DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FIND_TITLE, _DtMsgEditor_0010) - -#define MISSPELLED DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_MISSPELLED, _DtMsgEditor_0011) - -#define FIND_LABEL DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FIND_LABEL, _DtMsgEditor_0012) - -#define CHANGE_LABEL DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_CHANGE_LABEL, _DtMsgEditor_0013) - -#define FIND_BUTTON DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FIND_BUTTON, _DtMsgEditor_0014) - -#define CHANGE_BUTTON DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_CHANGE_BUTTON, _DtMsgEditor_0015) - -#define CHNG_ALL_BUTTON DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_CHNG_ALL_BUTTON, _DtMsgEditor_0016) - -#define NO_FIND DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_NO_FIND, _DtMsgEditor_0017) - -#define INFO_TITLE DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_INFO_TITLE, _DtMsgEditor_0018) - -#define LINE DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_LINE, _DtMsgEditor_0019) - -#define TOTAL DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_TOTAL, _DtMsgEditor_0020) - -#define OVR DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_OVR, _DtMsgEditor_0021) - -#define INS DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_INS, _DtMsgEditor_0022) - -#define BAD_FILTER DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FILTER_ERROR, _DtMsgEditor_0023) - -#define BAD_FILTER2 DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_FILTER_ERROR2, _DtMsgEditor_0024) - -#define ERROR_TITLE DTWIDGET_GETMESSAGE( \ - MS_Editor, EDITOR_ERROR_TITLE, _DtMsgEditor_0025) - - -/**************************************************************** - * - * Structures - * - ****************************************************************/ - -typedef struct _AdjRec { - int bflag; /* -b (blanks) option */ - int cflag; /* -c (center) option */ - int jflag; /* -j (justify) option */ - int rflag; /* -r (right justify) */ - int tabsize; /* tab size in use */ - long margin; - FILE *infp; /* file pointer for unformatted data */ - FILE *outfp; /* file pointer for formatted data */ -} AdjRec, *AdjRecPtr; - - -/**************************************************************** - * - * Deleted text structure definition - * - ****************************************************************/ -typedef struct _DtEditorUndoRec { - char *deletedText; - XmTextPosition deletionStart; - XmTextPosition insertStart; - int insertionLength; -} DtEditorUndoRec; - -/**************************************************************** - * - * Data structures for miscellaneous edit information - * - ****************************************************************/ -typedef struct _DtEditorEditStuff -{ - int blinkRate, - maxLength; - short columns, rows; - XmTextPosition cursorPos, - topCharacter; - Boolean autoShowCursorPos, - cursorPosVisible, - editable, - overstrikeMode, - scrollHorizontal, - scrollLeft, - scrollTop, - scrollVertical, - wordWrap; - Pixel background, - foreground; - int fontWidth, /* widest font, used for formatting */ - fontHeight; /* font height; used for WM size hints */ - - DtEditorUndoRec undo; /* holds deleted text for undo */ - - Boolean loadingAllNewData, - unreadChanges; /* Data changed since read by app? */ - - SetSelectionProc setSelection; -} DtEditorEditStuff; - -/**************************************************************** - * - * Data structures for Search - * - ****************************************************************/ -typedef struct _DtEditorSearchWidgets { - Widget formDlg, - listLbl, - spellList, - findLbl, - findText, - replaceLbl, - replaceText, - separator, - findBtn, - replaceBtn, - replaceAllBtn, - closeBtn, - helpBtn; -} DtEditorSearchWidgets; - -typedef struct _DtEditorSearchStuff { - DtEditorSearchWidgets widgets; - int search_dialog_mode; - char *search_string, /* last string searched for */ - *replace_string, /* last replacement string */ - *misspelled_string, /* last misspelled word selected */ - *spellFilter; - Boolean misspelled_found; - Dimension buttonHeight; - XmString spellTitle, - fndChngTitle, - changeAllButtonLabel, - changeButtonLabel, - changeFieldLabel, - findButtonLabel, - findFieldLabel, - misspelledListLabel; -} DtEditorSearchStuff; - -/**************************************************************** - * - * Data structures for Format - * - ****************************************************************/ -typedef struct _DtEditorFormatWidgets { - Widget format_dialog, - right_label, - left_label, - rightMargField, /* format right margin text field */ - leftMargField, /* format left margin text field */ - radio_box, - left_just, /* format type toggle button */ - right_just, /* format type toggle button */ - both_just, /* format type toggle button */ - center, /* format type toggle button */ - separator, - paragraph, - all, - close, - help; -} DtEditorFormatWidgets; - -typedef struct _DtEditorFormatStuff { - DtEditorFormatWidgets widgets; - XmString centerToggleLabel, - formatAllButtonLabel, - formatParaButtonLabel, - formatDialogTitle, - justifyToggleLabel, - leftAlignToggleLabel, - leftMarginFieldLabel, - rightAlignToggleLabel, - rightMarginFieldLabel; -} DtEditorFormatStuff; - - -/**************************************************************** - * - * Data structures for the Status Line - * - ****************************************************************/ - -typedef struct _status { - Boolean showStatusLine; - int currentLine, - lastLine; - XmString ovr, - ins, - currentLineLabel, - totalLineLabel; - Widget statusArea, - lineLabel, - lineText, - totalLabel, - totalText, - overstrikeLabel, - messageText; -} DtEditorStatusStuff; - -/**************************************************************** - * - * Data structures for holding warning dialogs - * - ****************************************************************/ - -typedef struct _textlibwarning { - Widget warningDialog; - XmString infoDialogTitle; -} DtEditorWarningStuff; - - -/**************************************************************** - * - * Class Part structure definition - * - ****************************************************************/ -typedef struct _DtEditorClassPart -{ - int ignore; -} DtEditorClassPart; - - -/**************************************************************** - * - * Full Class Record declaration - * - ****************************************************************/ -typedef struct _DtEditorClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - XmFormClassPart form_class; - DtEditorClassPart editor_class; -} DtEditorClassRec; - -externalref DtEditorClassRec dtEditorClassRec; - - -/**************************************************************** - * - * Resources added by the Editor widget - * - ****************************************************************/ -typedef struct _DtEditorPart -{ - Display *display; - Widget topLevelShell, - /* - * scrolled text widget - */ - text; - Dimension width; /* the text widget width */ - - /* All data for Edit functions */ - DtEditorEditStuff editStuff; - /* All data for Search functions */ - DtEditorSearchStuff searchStuff; - /* All data for Format functions */ - DtEditorFormatStuff formatStuff; - /* All data for warning dialogs functions */ - DtEditorWarningStuff warningStuff; - /* All data for the status line */ - DtEditorStatusStuff statusStuff; - - XtAppContext app_context; - - /* - * The editor widget's callbacks - */ - - Boolean textSelectCbCalled; - XtCallbackList textSelect; - XtCallbackList textDeselect; - -} DtEditorPart; - - -/**************************************************************** - * - * Full Instance Record declaration - * - ****************************************************************/ -typedef struct _DtEditorRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - XmFormPart form; - DtEditorPart editor; -} DtEditorRec; - - -/**************************************************************** - * - * MACRO DEFINITIONS - * - ****************************************************************/ - -/* - * Class and Instance Macros - */ - -/* - * Note: DtEditor utilizes the bulletin board's dialog_title and - * text_translations fields to hold its dialogTitle and textTranslations - * resources - */ -#define E_dialogTitle(m) (m -> bulletin_board.dialog_title) -#define E_textTranslations(m) (m -> bulletin_board.text_translations) -#define E_buttonFontList(m) (m -> bulletin_board.button_font_list) -#define E_labelFontList(m) (m -> bulletin_board.label_font_list) -#define E_textFontList(m) (m -> bulletin_board.text_font_list) - -#define M_app_context(m) (m -> editor.app_context) -#define M_display(m) (m -> editor.display) -#define M_topLevelShell(m) (m -> editor.topLevelShell) -#define M_text(m) (m -> editor.text) -#define M_textWidth(m) (m -> editor.width) - -/* callbacks */ -#define M_textSelect(m) (m -> editor.textSelect) -#define M_textDeselect(m) (m -> editor.textDeselect) -#define M_textSelectCbCalled(m) (m -> editor.textSelectCbCalled) - -/* editStuff - scrolled text resources */ -#define M_autoShowCursorPos(m) (m->editor.editStuff.autoShowCursorPos) -#define M_blinkRate(m) (m -> editor.editStuff.blinkRate) -#define M_columns(m) (m -> editor.editStuff.columns) -#define M_cursorPos(m) (m -> editor.editStuff.cursorPos) -#define M_cursorPosVisible(m) (m -> editor.editStuff.cursorPosVisible) -#define M_editable(m) (m -> editor.editStuff.editable) -#define M_fontWidth(m) (m -> editor.editStuff.fontWidth) -#define M_fontHeight(m) (m -> editor.editStuff.fontHeight) -#define M_maxLength(m) (m -> editor.editStuff.maxLength) -#define M_overstrikeMode(m) (m -> editor.editStuff.overstrikeMode) -#define M_rows(m) (m -> editor.editStuff.rows) -#define M_scrollHorizontal(m) (m -> editor.editStuff.scrollHorizontal) -#define M_scrollLeftSide(m) (m -> editor.editStuff.scrollLeft) -#define M_scrollTopSide(m) (m -> editor.editStuff.scrollTop) -#define M_scrollVertical(m) (m -> editor.editStuff.scrollVertical) -#define M_topCharacter(m) (m -> editor.editStuff.topCharacter) -#define M_wordWrap(m) (m -> editor.editStuff.wordWrap) -#define M_textBackground(m) (m -> editor.editStuff.background) -#define M_textForeground(m) (m -> editor.editStuff.foreground) - -/* editStuff - scrolled text related data */ -#define M_deletionStart(m) (m -> editor.editStuff.undo.deletionStart) -#define M_deletedText(m) (m -> editor.editStuff.undo.deletedText) -#define M_insertStart(m) (m -> editor.editStuff.undo.insertStart) -#define M_insertionLength(m) (m -> editor.editStuff.undo.insertionLength) -#define M_loadingAllNewData(m) (m -> editor.editStuff.loadingAllNewData) -#define M_unreadChanges(m) (m -> editor.editStuff.unreadChanges) -#define M_setSelection(m) (m -> editor.editStuff.setSelection) - -/* searchStuff */ -#define M_search_dialogMode(m) (m ->editor.searchStuff.search_dialog_mode) -#define M_spellTitle(m) (m -> editor.searchStuff.spellTitle) -#define M_fndChngTitle(m) (m -> editor.searchStuff.fndChngTitle) -#define E_changeAllButtonLabel(m) (m->editor.searchStuff.changeAllButtonLabel) -#define E_changeButtonLabel(m) (m->editor.searchStuff.changeButtonLabel) -#define E_changeFieldLabel(m) (m->editor.searchStuff.changeFieldLabel) -#define E_findButtonLabel(m) (m->editor.searchStuff.findButtonLabel) -#define E_findFieldLabel(m) (m->editor.searchStuff.findFieldLabel) -#define E_misspelledListLabel(m) (m->editor.searchStuff.misspelledListLabel) -#define M_search_string(m) (m -> editor.searchStuff.search_string) -#define M_replace_string(m) (m -> editor.searchStuff.replace_string) -#define M_misspelled_string(m) (m -> editor.searchStuff.misspelled_string) -#define M_misspelled_found(m) (m -> editor.searchStuff.misspelled_found) -#define M_spellFilter(m) (m -> editor.searchStuff.spellFilter) -#define M_replaceText(m) (m -> editor.searchStuff.widgets.replaceText) -#define M_findText(m) (m -> editor.searchStuff.widgets.findText) -#define M_search_replaceLbl(m) (m -> editor.searchStuff.widgets.replaceLbl) -#define M_search_buttonHeight(m) (m -> editor.searchStuff.buttonHeight) -#define M_search_dialog(m) (m -> editor.searchStuff.widgets.formDlg) -#define M_search_closeBtn(m) (m -> editor.searchStuff.widgets.closeBtn) -#define M_search_helpBtn(m) (m -> editor.searchStuff.widgets.helpBtn) -#define M_search_findBtn(m) (m -> editor.searchStuff.widgets.findBtn) -#define M_search_replaceBtn(m) (m -> editor.searchStuff.widgets.replaceBtn) -#define M_search_replaceAllBtn(m)\ - (m -> editor.searchStuff.widgets.replaceAllBtn) -#define M_search_spellList(m) (m -> editor.searchStuff.widgets.spellList) -#define M_search_listLbl(m) (m -> editor.searchStuff.widgets.listLbl) -#define M_search_findLbl(m) (m -> editor.searchStuff.widgets.findLbl) -#define M_search_separator(m) (m -> editor.searchStuff.widgets.separator) - -/* formatStuff */ -#define E_format_centerToggleLabel(m) (m->editor.formatStuff.centerToggleLabel) -#define E_format_formatAllButtonLabel(m)\ - (m->editor.formatStuff.formatAllButtonLabel) -#define E_format_formatParagraphButtonLabel(m)\ - (m->editor.formatStuff.formatParaButtonLabel) -#define E_format_dialogTitle(m) (m->editor.formatStuff.formatDialogTitle) -#define E_format_justifyToggleLabel(m)\ - (m->editor.formatStuff.justifyToggleLabel) -#define E_format_leftAlignToggleLabel(m)\ - (m->editor.formatStuff.leftAlignToggleLabel) -#define E_format_leftMarginFieldLabel(m)\ - (m->editor.formatStuff.leftMarginFieldLabel) -#define E_format_rightAlignToggleLabel(m)\ - (m->editor.formatStuff.rightAlignToggleLabel) -#define E_format_rightMarginFieldLabel(m)\ - (m->editor.formatStuff.rightMarginFieldLabel) -#define M_format_all(m) (m -> editor.formatStuff.widgets.all) -#define M_format_bothJust(m) (m -> editor.formatStuff.widgets.both_just) -#define M_format_center(m) (m -> editor.formatStuff.widgets.center) -#define M_format_close(m) (m -> editor.formatStuff.widgets.close) -#define M_format_dialog(m) (m -> editor.formatStuff.widgets.format_dialog) -#define M_format_help(m) (m -> editor.formatStuff.widgets.help) -#define M_format_leftJust(m) (m -> editor.formatStuff.widgets.left_just) -#define M_format_leftLabel(m) (m -> editor.formatStuff.widgets.left_label) -#define M_format_leftMarginField(m) (m -> editor.formatStuff.widgets.leftMargField) -#define M_format_paragraph(m) (m -> editor.formatStuff.widgets.paragraph) -#define M_format_radioBox(m) (m -> editor.formatStuff.widgets.radio_box) -#define M_format_rightJust(m) (m -> editor.formatStuff.widgets.right_just) -#define M_format_rightLabel(m) (m -> editor.formatStuff.widgets.right_label) -#define M_format_rightMarginField(m) (m -> editor.formatStuff.widgets.rightMargField) -#define M_format_separator(m) (m -> editor.formatStuff.widgets.separator) - -/* statusStuff */ -#define M_status_showStatusLine(m) (m -> editor.statusStuff.showStatusLine) -#define M_status_currentLine(m) (m -> editor.statusStuff.currentLine) -#define M_status_lastLine(m) (m -> editor.statusStuff.lastLine) -#define M_status_overstrikeLabel(m) (m -> editor.statusStuff.ovr) -#define M_status_insertLabel(m) (m -> editor.statusStuff.ins) -#define E_status_currentLineLabel(m) (m -> editor.statusStuff.currentLineLabel) -#define E_status_totalLineCountLabel(m) (m->editor.statusStuff.totalLineLabel) -#define M_status_statusArea(m) (m -> editor.statusStuff.statusArea) -#define M_status_lineLabel(m) (m -> editor.statusStuff.lineLabel) -#define M_status_lineText(m) (m -> editor.statusStuff.lineText) -#define M_status_totalLabel(m) (m -> editor.statusStuff.totalLabel) -#define M_status_totalText(m) (m -> editor.statusStuff.totalText) -#define M_status_overstrikeWidget(m) (m->editor.statusStuff.overstrikeLabel) -#define M_status_messageText(m) (m -> editor.statusStuff.messageText) - -/* warningStuff */ -#define M_gen_warning(m) (m ->editor.warningStuff.warningDialog) -#define E_infoDialogTitle(m) (m ->editor.warningStuff.infoDialogTitle) - -/* - * Misc macros - */ -#define M_editor(m) ((DtEditorWidget) m ->core.parent -> core.parent) - - -/**************************************************************** - * - * Private library functions - * - ****************************************************************/ - -/*** library-private functions in Editor.c ***/ -extern void _DtEditorResetUndo( - DtEditorWidget editor); -extern void _DtEditorUpdateLineDisplay( - DtEditorWidget editor, - int currentLine, - Boolean forceUpdate ); -extern int _DtEditorGetLineIndex( - XmTextWidget tw, - XmTextPosition pos); -extern void _DtEditorWarning( - DtEditorWidget pPriv, - char *mess, - unsigned char dialogType); -extern DtEditorErrorCode _DtEditorValidateFileAccess( - char *fileName, - int accessType ); -extern void _DtEditorHelpSearchCB ( - Widget w, - caddr_t client_data , - caddr_t call_data ); -extern void _DtEditorHelpSearchSpellCB ( - Widget w, - caddr_t client_data , - caddr_t call_data ); -extern void _DtEditorHelpSearchFindCB ( - Widget w, - caddr_t client_data , - caddr_t call_data ); -extern void _DtEditorHelpSearchChangeCB ( - Widget w, - caddr_t client_data , - caddr_t call_data ); - -/*** library-private functions in EditAreaData.c ***/ - -extern char *_DtEditorGetPointer( - char *pString, - int startChar); - -/*** library-private functions in EditorCalls.c ***/ - -extern void _DtEditorModifyVerifyCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); - -/*** library-private functions in SearchCalls.c ***/ - -extern void _DtEditorSearchMapCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern int _DtEditor_CountCharacters( - char *str, - int num_count_bytes); -extern void _DtEditorDialogSearchCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorDialogReplaceCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorDialogReplaceAllCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorDialogFindCancelCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorMisspelledSelectCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorMisspelledDblClickCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorFindTextChangedCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorReplaceTextChangedCB( - Widget w, - caddr_t client_data, - caddr_t call_data ); -extern void _DtEditorSetFindSensitivity( - DtEditorWidget pPriv, - Boolean sensitivity); -extern void _DtEditorSetReplaceSensitivity( - DtEditorWidget pPriv, - Boolean sensitivity); -extern void _DtEditorSetReplaceAllSensitivity( - DtEditorWidget pPriv, - Boolean sensitivity); - - -/*** library-private functions in SearchDlg.c ***/ -extern void _DtEditorSearch( - DtEditorWidget pPriv, - Boolean spell, - Boolean createonly ); - -#endif /* _DtEditorP_h */ - diff --git a/cde/lib/DtWidget/Icon.h b/cde/lib/DtWidget/Icon.h deleted file mode 100644 index 0b36064d..00000000 --- a/cde/lib/DtWidget/Icon.h +++ /dev/null @@ -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: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: Icon.h -*** -*** project: MotifPlus Widgets -*** -*** description: Public include file for DtIcon gadget class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtIcon_h -#define _DtIcon_h - -#include -#include
- -#ifndef DtIsIcon -#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass) -#endif /* DtIsIcon */ - -typedef struct _DtIconClassRec * DtIconGadgetClass; -typedef struct _DtIconRec * DtIconGadget; -typedef struct _DtIconCacheObjRec * DtIconCacheObject; - - -extern Widget _DtCreateIcon( - Widget parent, - String name, - ArgList arglist, - Cardinal argcount) ; -extern Boolean _DtIconGetState( - Widget w) ; -extern void _DtIconSetState( - Widget w, - Boolean state, - Boolean notify) ; -extern Drawable _DtIconDraw( - Widget widget, - Drawable drawable, - Position x, - Position y, - Boolean fill) ; -extern Widget _DtDuplicateIcon( - Widget parent, - Widget widget, - XmString string, - String pixmap, - XtPointer user_data, - Boolean underline) ; -extern Boolean _DtIconSelectInTitle( - Widget widget, - Position pt_x, - Position pt_y) ; -extern XRectangle * _DtIconGetTextExtent( - Widget widget) ; -extern void _DtIconGetIconRects( - DtIconGadget g, - unsigned char *flags, - XRectangle *rect1, - XRectangle *rect2) ; - - - -extern WidgetClass dtIconGadgetClass; - - -#define XmCR_SELECT XmCR_SINGLE_SELECT -#define XmCR_DROP 50 -#define XmCR_POPUP 51 -#define XmCR_HIGHLIGHT 52 -#define XmCR_UNHIGHLIGHT 53 -#define XmCR_SHADOW 54 - -typedef struct -{ - int reason; - XEvent * event; - Boolean set; -} DtIconCallbackStruct; - - -#define XmPIXMAP_TOP 0 -#define XmPIXMAP_BOTTOM 1 -#define XmPIXMAP_LEFT 2 -#define XmPIXMAP_RIGHT 3 -#define XmPIXMAP_MIDDLE 4 - -#define XmSTRING_BOTTOM 0 -#define XmSTRING_TOP 1 -#define XmSTRING_RIGHT 2 -#define XmSTRING_LEFT 3 - -#define XmICON_LABEL 0 -#define XmICON_BUTTON 1 -#define XmICON_TOGGLE 2 -#define XmICON_DRAG 3 - -#define XmFILL_NONE 0 -#define XmFILL_PARENT 1 -#define XmFILL_SELF 2 -#define XmFILL_TRANSPARENT 3 - -#define XmPIXMAP_RECT 0x01 -#define XmLABEL_RECT 0x02 - -#define DtRECTANGLE 0 -#define DtNON_RECTANGLE 1 - - -#endif /* _XmIcon_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/IconP.h b/cde/lib/DtWidget/IconP.h deleted file mode 100644 index dff4e568..00000000 --- a/cde/lib/DtWidget/IconP.h +++ /dev/null @@ -1,350 +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: IconP.h /main/7 1996/03/29 11:33:23 drk $ */ -/**--------------------------------------------------------------------- -*** -*** file: IconP.h -*** -*** project: MotifPlus Widgets -*** -*** description: Private include file for DtIcon gadget class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtIconP_h -#define _DtIconP_h - -#include -#include -#include -#include
- - -/*------------------------------------------------------------- -** Cache Class Structure -*/ - -/* Cache Class Part -*/ -typedef struct _DtIconCacheObjClassPart -{ - int foo; -} DtIconCacheObjClassPart; - -/* Cache Full Class Record -*/ -typedef struct _DtIconCacheObjClassRec /* label cache class record */ -{ - ObjectClassPart object_class; - XmExtClassPart ext_class; - DtIconCacheObjClassPart icon_class_cache; -} DtIconCacheObjClassRec; - -/* Cache Actual Class -*/ -externalref DtIconCacheObjClassRec dtIconCacheObjClassRec; - - -/*------------------------------------------------------------- -** Cache Instance Structure -*/ - -/* Cache Instance Part -*/ -typedef struct _DtIconCacheObjPart -{ - Dimension margin_width; - Dimension margin_height; - Dimension string_height; - Dimension spacing; - Pixel foreground; - Pixel background; - Pixel arm_color; - Boolean fill_on_arm; - Boolean recompute_size; - Boolean draw_shadow; - unsigned char pixmap_position; - unsigned char string_position; - unsigned char alignment; - unsigned char behavior; - unsigned char fill_mode; -} DtIconCacheObjPart; - -typedef struct _DtIconCacheObjRec -{ - ObjectPart object; - XmExtPart ext; - DtIconCacheObjPart icon_cache; -} DtIconCacheObjRec; - - -typedef void (*GetPositionProc)( - DtIconGadget, - Position, - Position, - Dimension, - Dimension, - Position *, - Position *, - Position *, - Position * -); -typedef void (*GetSizeProc)( - DtIconGadget, - Dimension *, - Dimension * -); -typedef void (*DrawProc)( - DtIconGadget, - Drawable, - Position, - Position, - Dimension, - Dimension, - Dimension, - Dimension, - unsigned char, - unsigned char -); -typedef void (*CallCallbackProc)( - DtIconGadget, - XtCallbackList, - int, - XEvent * -); -typedef void (*UpdateGCsProc)( - DtIconGadget -); -/*------------------------------------------------------------- -** Class Structure -*/ - -/* Class Part -*/ -typedef struct _DtIconClassPart -{ - GetSizeProc get_size; - GetPositionProc get_positions; - DrawProc draw; - CallCallbackProc call_callback; - UpdateGCsProc update_gcs; - Boolean optimize_redraw; - XmCacheClassPartPtr cache_part; - caddr_t extension; -} DtIconClassPart; - -/* Full Class Record -*/ -typedef struct _DtIconClassRec -{ - RectObjClassPart rect_class; - XmGadgetClassPart gadget_class; - DtIconClassPart icon_class; -} DtIconClassRec; - -/* Actual Class -*/ -externalref DtIconClassRec dtIconClassRec; - - -/*------------------------------------------------------------- -** Instance Structure -*/ - -/* Instance Part -*/ -typedef struct _DtIconPart -{ - Boolean set; - Boolean armed; - Boolean sync; - Boolean underline; - unsigned char shadow_type; - unsigned char border_type; - XtCallbackList callback; - XtIntervalId click_timer_id; - XButtonEvent * click_event; - String image_name; - Pixmap pixmap; - Pixmap mask; - Pixel pixmap_foreground; - Pixel pixmap_background; - Dimension max_pixmap_width; - Dimension max_pixmap_height; - XmFontList font_list; - XmString string; - Dimension string_width; - Dimension pixmap_width; - Dimension pixmap_height; - GC clip_gc; - GC normal_gc; - GC background_gc; - GC armed_gc; - GC armed_background_gc; - GC parent_background_gc; - Pixel saved_parent_background; - DtIconCacheObjPart *cache; - unsigned char operations; - XtCallbackList drop_callback; -} DtIconPart; - -/* Full Instance Record -*/ -typedef struct _DtIconRec -{ - ObjectPart object; - RectObjPart rectangle; - XmGadgetPart gadget; - DtIconPart icon; -} DtIconRec; - - -/*------------------------------------------------------------- -** Class and Instance Macros -*/ - -/* DtIcon Class Macros -*/ -#define DtInheritGetSize ((GetSizeProc) _XtInherit) -#define DtInheritGetPositions ((GetPositionProc) _XtInherit) -#define DtInheritDraw ((DrawProc) _XtInherit) -#define DtInheritCallCallback ((CallCallbackProc) _XtInherit) -#define DtInheritUpdateGCs ((UpdateGCsProc) _XtInherit) - -/*** WARNING: These macros are not thread-safe! ***/ -#define C_GetSize(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.get_size) -#define C_GetPositions(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.get_positions) -#define C_Draw(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.draw) -#define C_CallCallback(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.call_callback) -#define C_OptimizeRedraw(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.optimize_redraw) -#define C_UpdateGCs(wc) \ - (((DtIconGadgetClass)(wc)) -> icon_class.update_gcs) - -/* DtIcon Macros -*/ - -/*** WARNING: These macros are not thread-safe! ***/ -#define G_GetSize(g,w,h) \ - (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_size) \ - (g,w,h) -#define G_GetPositions(g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) \ - (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_positions) \ - (g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) -#define G_Draw(g,d,x,y,w,h,h_t,s_t,s_type,fill) \ - (((DtIconClassRec *)g -> object.widget_class) -> icon_class.draw) \ - (g,d,x,y,w,h,h_t,s_t,s_type,fill) -#define G_CallCallback(g,cb,r,e) \ - (((DtIconClassRec *)g -> object.widget_class) -> icon_class.call_callback) \ - (g,cb,r,e) -#define G_UpdateGCs(g) \ - (((DtIconClassRec *)g -> object.widget_class) -> icon_class.update_gcs) \ - (g) - -/* Cached Instance Field Macros -*/ -#define G_CachePixmapPosition(co) (((DtIconCacheObject)(co)) -> \ - icon_cache.pixmap_position) -#define G_FillOnArm(g) (((DtIconGadget)(g)) -> \ - icon.cache -> fill_on_arm) -#define G_RecomputeSize(g) (((DtIconGadget)(g)) -> \ - icon.cache -> recompute_size) -#define G_DrawShadow(g) (((DtIconGadget)(g)) -> \ - icon.cache -> draw_shadow) -#define G_PixmapPosition(g) (((DtIconGadget)(g)) -> \ - icon.cache -> pixmap_position) -#define G_StringPosition(g) (((DtIconGadget)(g)) -> \ - icon.cache -> string_position) -#define G_Alignment(g) (((DtIconGadget)(g)) -> \ - icon.cache -> alignment) -#define G_Behavior(g) (((DtIconGadget)(g)) -> \ - icon.cache -> behavior) -#define G_FillMode(g) (((DtIconGadget)(g)) -> \ - icon.cache -> fill_mode) -#define G_MarginWidth(g) (((DtIconGadget)(g)) -> \ - icon.cache -> margin_width) -#define G_MarginHeight(g) (((DtIconGadget)(g)) -> \ - icon.cache -> margin_height) -#define G_StringHeight(g) (((DtIconGadget)(g)) -> \ - icon.cache -> string_height) -#define G_Spacing(g) (((DtIconGadget)(g)) -> \ - icon.cache -> spacing) -#define G_Foreground(g) (((DtIconGadget)(g)) -> \ - icon.cache -> foreground) -#define G_Background(g) (((DtIconGadget)(g)) -> \ - icon.cache -> background) -#define G_ArmColor(g) (((DtIconGadget)(g)) -> \ - icon.cache -> arm_color) - -/* Non-Cached Instance Field Macros -*/ -#define G_Armed(g) (g -> icon.armed) -#define G_Set(g) (g -> icon.set) -#define G_Sync(g) (g -> icon.sync) -#define G_Callback(g) (g -> icon.callback) -#define G_ClickTimerID(g) (g -> icon.click_timer_id) -#define G_ClickInterval(g) (g -> icon.click_interval) -#define G_ClickEvent(g) (g -> icon.click_event) -#define G_ShadowType(g) (g -> icon.shadow_type) -#define G_BorderType(g) (g -> icon.border_type) -#define G_Pixmap(g) (g -> icon.pixmap) -#define G_Mask(g) (g -> icon.mask) -#define G_PixmapForeground(g) (g -> icon.pixmap_foreground) -#define G_PixmapBackground(g) (g -> icon.pixmap_background) -#define G_MaxPixmapWidth(g) (g -> icon.max_pixmap_width) -#define G_MaxPixmapHeight(g) (g -> icon.max_pixmap_height) -#define G_String(g) (g -> icon.string) -#define G_FontList(g) (g -> icon.font_list) -#define G_ImageName(g) (g -> icon.image_name) -#define G_StringWidth(g) (g -> icon.string_width) -#define G_PixmapWidth(g) (g -> icon.pixmap_width) -#define G_PixmapHeight(g) (g -> icon.pixmap_height) -#define G_BackgroundGC(g) (g -> icon.background_gc) -#define G_ArmedGC(g) (g -> icon.armed_gc) -#define G_ArmedBackgroundGC(g) (g -> icon.armed_background_gc) -#define G_NormalGC(g) (g -> icon.normal_gc) -#define G_ClipGC(g) (g -> icon.clip_gc) -#define G_Underline(g) (g -> icon.underline) -#define G_ParentBackgroundGC(g) (g -> icon.parent_background_gc) -#define G_SavedParentBG(g) (g -> icon.saved_parent_background) -#define G_Operations(g) (g -> icon.operations) -#define G_DropCallback(g) (g -> icon.drop_callback) - -#define Icon_Cache(w) (((DtIconGadget)(w))-> \ - icon.cache) - -#define Icon_ClassCachePart(w) \ - (((DtIconGadgetClass)dtIconGadgetClass)->gadget_class.cache_part) - - -#endif /* _DtIconP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/MacrosP.h b/cde/lib/DtWidget/MacrosP.h deleted file mode 100644 index 6579435f..00000000 --- a/cde/lib/DtWidget/MacrosP.h +++ /dev/null @@ -1,199 +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: MacrosP.h /main/5 1996/03/27 20:16:40 drk $ - * - * (c) Copyright 1996 Digital Equipment Corporation. - * (c) Copyright 1990,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. - */ - -/**--------------------------------------------------------------------- -*** -*** file: MacrosP.h -*** -*** project: MotifPlus Widgets -*** -*** description: Private include file with macros for MotifPlus -*** widgets and gadgets. -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtMacrosP_h -#define _DtMacrosP_h - -#define XmUNSPECIFIED_STRING (XmString) 3 - - -/*------------------------------------------------------------- -** Widget Class Macros -*/ - -/* Core Class Macros -*/ -/*** WARNING: These macros are not thread-safe! ***/ -#define C_WidgetClass(wc) (wc -> core_class.widget_class) -#define C_Superclass(wc) (wc -> core_class.superclass) -#define C_ClassName(wc) (wc -> core_class.class_name) -#define C_ClassInited(wc) (wc -> core_class.class_inited) -#define C_NumResources(wc) (wc -> core_class.num_resources) - -/* Composite Class Macros -*/ -#ifdef _XtCompositeP_h -#define C_ChangeManaged(wc) (wc -> composite_class.change_managed) -#endif /* _XtCompositeP_h */ - -/* Constraint Class Macros -*/ -#ifdef _XtConstraintP_h -#define C_ConstraintResources(wc) (wc -> constraint_class.resources) -#define C_ConstraintNumResources(wc) (wc -> constraint_class.num_resources) -#endif /* _XtConstraintP_h */ - -/* XmGadget Class Macros -*/ -#define XmInheritBorderHighlight ((XtWidgetProc) _XtInherit) -#define XmInheritBorderUnhighlight ((XtWidgetProc) _XtInherit) -#define XmInheritVisualChange ((XmVisualChangeProc) _XtInherit) - - - -/*------------------------------------------------------------- -** Primitive Macros -*/ - -#define P_X(w) (w -> core.x) -#define P_Y(w) (w -> core.y) -#define P_Width(w) (w -> core.width) -#define P_Height(w) (w -> core.height) -#define P_BorderWidth(w) (w -> core.border_width) -#define P_XrmName(w) (w -> core.xrm_name) -#define P_PopupList(w) (w -> core.popup_list) -#define P_NumPopups(w) (w -> core.num_popups) - - - -/*------------------------------------------------------------- -** Gadget Macros -*/ - -/* Object Macros -*/ -#define G_XrmName(r) (r -> object.xrm_name) -#define G_Class(r) (r -> object.widget_class) - -/* RectObject Macros -*/ -#define G_X(r) (r -> rectangle.x) -#define G_Y(r) (r -> rectangle.y) -#define G_Width(r) (r -> rectangle.width) -#define G_Height(r) (r -> rectangle.height) -#define G_BorderWidth(r) (r -> rectangle.border_width) - -/* XmGadget Macros -*/ -#define G_HelpCB(g) (g -> gadget.help_callback) -#define G_EventMask(g) (g -> gadget.event_mask) -#define G_Highlighted(g) (g -> gadget.highlighted) -#define G_UnitType(g) (g -> gadget.unit_type) - - - -/*------------------------------------------------------------- -** Manager Macros -*/ - -/* Core Macros -*/ -#define M_X(w) (w -> core.x) -#define M_Y(w) (w -> core.y) -#define M_Width(w) (w -> core.width) -#define M_Height(w) (w -> core.height) -#define M_BorderWidth(w) (w -> core.border_width) -#define M_Background(w) (w -> core.background_pixel) -#define M_Sensitive(w) (w->core.sensitive && w->core.ancestor_sensitive) -#define M_Name(w) (w -> core.name) -#define M_Accelerators(w) (w -> core.accelerators) -#define M_TmTranslations(w) (w -> core.tm.translations) -#define M_PopupList(w) (w -> core.popup_list) -#define M_NumPopups(w) (w -> core.num_popups) - -/* Composite and Constraint Macros -*/ -#define M_Children(m) (m -> composite.children) -#define M_NumChildren(m) (m -> composite.num_children) - -/* XmManager Macros -*/ -#ifdef _XmManagerP_h -#define M_Foreground(m) (m -> manager.foreground) -#define M_HighlightThickness(m) (m -> manager.highlight_thickness) -#define M_ShadowThickness(m) (m -> manager.shadow_thickness) -#define M_TopShadowGC(m) (m -> manager.top_shadow_GC) -#define M_BottomShadowGC(m) (m -> manager.bottom_shadow_GC) -#define M_BackgroundGC(m) (m -> manager.background_GC) -#define M_SelectedGadget(m) (m -> manager.selected_gadget) -#define M_HelpCB(m) (m -> manager.help_callback) -#define M_UnitType(m) (m -> manager.unit_type) -#endif /* _XmManagerP_h */ - -/* XmDrawingArea Macros -*/ -#ifdef _XmDrawingAreaP_h -#define M_MarginWidth(m) (m -> drawing_area.margin_width) -#define M_MarginHeight(m) (m -> drawing_area.margin_height) -#endif /* _XmDrawingAreaP_h */ - -/* XmBulletinBoard Macros -*/ -#ifdef _XmBulletinBoardP_h -#define M_ButtonFontList(m) (m -> bulletin_board.button_font_list) -#define M_LabelFontList(m) (m -> bulletin_board.label_font_list) -#define M_TextFontList(m) (m -> bulletin_board.text_font_list) -#define M_MarginWidth(m) (m -> bulletin_board.margin_width) -#define M_MarginHeight(m) (m -> bulletin_board.margin_height) -#endif /* _XmBulletinBoardP_h */ - -#ifdef MAYBE -/* DtIconBox Macros -*/ -#ifdef _DtIconBoxP_h -#define M_Timer(m) (m -> icon_box.timer) -#define M_ShellX(m) (m -> icon_box.shell_x) -#define M_ShellY(m) (m -> icon_box.shell_y) -#define M_DragShell(m) (m -> icon_box.drag_shell) -#define M_DragWidget(m) (m -> icon_box.drag_widget) -#define M_DragIcon(m) (m -> icon_box.drag_icon) -#define M_XCursor(m) (m -> icon_box.x_cursor) -#define M_CrossCursor(m) (m -> icon_box.cross_cursor) -#endif /* _DtIconBoxP_h */ -#endif /* MAYBE */ - -#endif /* _DtMacrosP_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/MenuButton.h b/cde/lib/DtWidget/MenuButton.h deleted file mode 100644 index e1a6fba2..00000000 --- a/cde/lib/DtWidget/MenuButton.h +++ /dev/null @@ -1,104 +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: MenuButton.h /main/3 1995/10/26 09:33: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. - */ - -#ifndef _Dt_MenuButton_h -#define _Dt_MenuButton_h - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Constants - */ - -/* Resources */ - -#ifndef DtNcascadingCallback -#define DtNcascadingCallback XmNcascadingCallback -#endif -#ifndef DtNsubMenuId -#define DtNsubMenuId XmNsubMenuId -#endif -#ifndef DtNcascadePixmap -#define DtNcascadePixmap XmNcascadePixmap -#endif - -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCPixmap -#define DtCPixmap XmCPixmap -#endif -#ifndef DtCMenuWidget -#define DtCMenuWidget XmCMenuWidget -#endif - -#ifndef DtCR_CASCADING -#define DtCR_CASCADING XmCR_CASCADING -#endif - - -/* - * Types - */ - -/* Widget class and instance */ - -typedef struct _DtMenuButtonRec * DtMenuButtonWidget; -typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass; - - -/* - * Data - */ - -/* Widget class record */ - -externalref WidgetClass dtMenuButtonWidgetClass; - - -/* - * Functions - */ - -extern Widget DtCreateMenuButton( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_MenuButton_h */ diff --git a/cde/lib/DtWidget/MenuButtonP.h b/cde/lib/DtWidget/MenuButtonP.h deleted file mode 100644 index 7b8ab7fd..00000000 --- a/cde/lib/DtWidget/MenuButtonP.h +++ /dev/null @@ -1,123 +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: MenuButtonP.h /main/3 1995/10/26 09:33:17 rswiston $ */ -/* - * Copyright (C) 1986,1991 Sun Microsystems, Inc - * All rights reserved. - * Notice of copyright on this source code - * product does not indicate publication. - * - * RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by - * the U.S. Government is subject to restrictions as set forth - * in subparagraph (c)(1)(ii) of the Rights in Technical Data - * and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988) - * and FAR 52.227-19 (c) (June 1987). - * - * Sun Microsystems, Inc., 2550 Garcia Avenue, - * Mountain View, California 94043. - * - */ - -#ifndef _DtMenuButtonP_h -#define _DtMenuButtonP_h - -#include "MenuButton.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/**************************************************************** - * - * Message Defines - * - ****************************************************************/ - -#define MB_POST DTWIDGET_GETMESSAGE( \ - MS_MenuButton, MENU_POST, _DtMsgMenuButton_0000) - -#define MB_PARENT DTWIDGET_GETMESSAGE( \ - MS_MenuButton, MENU_PARENT, _DtMsgMenuButton_0001) - -#define MB_SUBMENU DTWIDGET_GETMESSAGE( \ - MS_MenuButton, MENU_SUBMENU, _DtMsgMenuButton_0002) - - -/* The MenuButton instance record */ - -typedef struct -{ /* resources */ - XtCallbackList cascading_callback; /* Cascading callback */ - Widget submenu; /* the menu to pull down */ - Pixmap menu_pixmap; /* pixmap for the menu */ - - /* internal fields */ - - Boolean armed; /* armed flag */ - Boolean popped_up; /* submenu popped up flag*/ - XRectangle menu_rect; /* location of menu*/ - Time last_timestamp; /* last time submenu popped down */ - Boolean private_submenu; - GC gc; -} DtMenuButtonPart; - - -/* Full instance record declaration */ - -typedef struct _DtMenuButtonRec -{ - CorePart core; - XmPrimitivePart primitive; - XmLabelPart label; - DtMenuButtonPart menu_button; -} DtMenuButtonRec; - - -/* MenuButton class structure */ - -typedef struct { - XtPointer extension; /* Pointer to extension record */ -} DtMenuButtonClassPart; - - -/* Full class record declaration for MenuButton class */ - -typedef struct _DtMenuButtonClassRec { - CoreClassPart core_class; - XmPrimitiveClassPart primitive_class; - XmLabelClassPart label_class; - DtMenuButtonClassPart menu_button_class; -} DtMenuButtonClassRec; - - -extern DtMenuButtonClassRec dtMenuButtonClassRec; - - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtMenuButtonP_h */ -/* DON'T ADD STUFF AFTER THIS #endif */ - diff --git a/cde/lib/DtWidget/SpinBox.h b/cde/lib/DtWidget/SpinBox.h deleted file mode 100644 index 3d1515dd..00000000 --- a/cde/lib/DtWidget/SpinBox.h +++ /dev/null @@ -1,566 +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: SpinBox.h /main/4 1995/10/26 09:34:23 rswiston $ */ -/* - * (c) Copyright 1993, 1994 Hewlett-Packard Company - * (c) Copyright 1993, 1994 International Business Machines Corp. - * (c) Copyright 1993, 1994 Novell, Inc. - * (c) Copyright 1993, 1994 Sun Microsystems, Inc. - */ -/*********************************************************** -Copyright 1993 Interleaf, Inc. - -Permission to use, copy, modify, and distribute this software -and its documentation for any purpose without fee is granted, -provided that the above copyright notice appear in all copies -and that both copyright notice and this permission notice appear -in supporting documentation, and that the name of Interleaf not -be used in advertising or publicly pertaining to distribution of -the software without specific written prior permission. - -Interleaf makes no representation about the suitability of this -software for any purpose. It is provided "AS IS" without any -express or implied warranty. -******************************************************************/ - -#ifndef _Dt_SpinBox_h -#define _Dt_SpinBox_h - -#include -#if defined(DT_USE_XM_SSPINBOX) -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - - -/* - * Constants - */ - -/* Resources */ - -#ifndef DtNarrowLayout -# if defined(DT_USE_XM_SSPINBOX) -# define DtNarrowLayout XmNarrowLayout -# else -# define DtNarrowLayout "arrowLayout" -# endif -#endif -#ifndef DtNarrowSensitivity -# if defined(DT_USE_XM_SSPINBOX) -# define DtNarrowSensitivity XmNarrowSensitivity -# else -# define DtNarrowSensitivity "arrowSensitivity" -# endif -#endif -#ifndef DtNarrowSize -# if defined(DT_USE_XM_SSPINBOX) -# define DtNarrowSize XmNarrowSize -# else -# define DtNarrowSize "arrowSize" -# endif -#endif -#ifndef DtNspinBoxChildType -# if defined(DT_USE_XM_SSPINBOX) -# define DtNspinBoxChildType XmNspinBoxChildType -# else -# define DtNspinBoxChildType "spinBoxChildType" -# endif -#endif -#ifndef DtNposition -# if defined(DT_USE_XM_SSPINBOX) -# define DtNposition XmNposition -# else -# define DtNposition "position" -# endif -#endif -#ifndef DtNtextField -# if defined(DT_USE_XM_SSPINBOX) -# define DtNtextField XmNtextField -# else -# define DtNtextField "textField" -# endif -#endif -#ifndef DtNwrap -# if defined(DT_USE_XM_SSPINBOX) -# define DtNwrap "wrap" -# else -# define DtNwrap "wrap" -# endif -#endif -#ifndef DtNincrementValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtNincrementValue XmNincrementValue -# else -# define DtNincrementValue "incrementValue" -# endif -#endif -#ifndef DtNmaximumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtNmaximumValue XmNmaximumValue -# else -# define DtNmaximumValue "maximumValue" -# endif -#endif -#ifndef DtNminimumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtNminimumValue XmNminimumValue -# else -# define DtNminimumValue "minimumValue" -# endif -#endif -#ifndef DtNnumValues -# if defined(DT_USE_XM_SSPINBOX) -# define DtNnumValues XmNnumValues -# else -# define DtNnumValues "numValues" -# endif -#endif -#ifndef DtNvalues -# if defined(DT_USE_XM_SSPINBOX) -# define DtNvalues XmNvalues -# else -# define DtNvalues "values" -# endif -#endif - -#ifndef DtNactivateCallback -#define DtNactivateCallback XmNactivateCallback -#endif -#ifndef DtNalignment -#define DtNalignment XmNalignment -#endif -#ifndef DtNcolumns -#define DtNcolumns XmNcolumns -#endif -#ifndef DtNdecimalPoints -#define DtNdecimalPoints XmNdecimalPoints -#endif -#ifndef DtNeditable -#define DtNeditable XmNeditable -#endif -#ifndef DtNfocusCallback -#define DtNfocusCallback XmNfocusCallback -#endif -#ifndef DtNinitialDelay -#define DtNinitialDelay XmNinitialDelay -#endif -#ifndef DtNlosingFocusCallback -#define DtNlosingFocusCallback XmNlosingFocusCallback -#endif -#ifndef DtNmarginHeight -#define DtNmarginHeight XmNmarginHeight -#endif -#ifndef DtNmarginWidth -#define DtNmarginWidth XmNmarginWidth -#endif -#ifndef DtNmaxLength -#define DtNmaxLength XmNmaxLength -#endif -#ifndef DtNmodifyVerifyCallback -#define DtNmodifyVerifyCallback XmNmodifyVerifyCallback -#endif -#ifndef DtNrecomputeSize -#define DtNrecomputeSize XmNrecomputeSize -#endif -#ifndef DtNrepeatDelay -#define DtNrepeatDelay XmNrepeatDelay -#endif -#ifndef DtNvalueChangedCallback -#define DtNvalueChangedCallback XmNvalueChangedCallback -#endif - -#ifndef DtCArrowLayout -# if defined(DT_USE_XM_SSPINBOX) -# define DtCArrowLayout XmCArrowLayout -# else -# define DtCArrowLayout "ArrowLayout" -# endif -#endif -#ifndef DtCArrowSensitivity -# if defined(DT_USE_XM_SSPINBOX) -# define DtCArrowSensitivity XmCArrowSensitivity -# else -# define DtCArrowSensitivity "ArrowSensitivity" -# endif -#endif -#ifndef DtCArrowSize -# if defined(DT_USE_XM_SSPINBOX) -# define DtCArrowSize XmCArrowSize -# else -# define DtCArrowSize "ArrowSize" -# endif -#endif -#ifndef DtCSpinBoxChildType -# if defined(DT_USE_XM_SSPINBOX) -# define DtCSpinBoxChildType XmCSpinBoxChildType -# else -# define DtCSpinBoxChildType "SpinBoxChildType" -# endif -#endif -#ifndef DtCPosition -# if defined(DT_USE_XM_SSPINBOX) -# define DtCPosition XmCPosition -# else -# define DtCPosition "Position" -# endif -#endif -#ifndef DtCTextField -# if defined(DT_USE_XM_SSPINBOX) -# define DtCTextField XmCTextField -# else -# define DtCTextField "TextField" -# endif -#endif -#ifndef DtCWrap -# define DtCWrap "Wrap" -#endif -#ifndef DtCIncrementValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtCIncrementValue XmCIncrementValue -# else -# define DtCIncrementValue "incrementValue" -# endif -#endif -#ifndef DtCMaximumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtCMaximumValue XmCMaximumValue -# else -# define DtCMaximumValue "maximumValue" -# endif -#endif -#ifndef DtCMinimumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtCMinimumValue XmCMinimumValue -# else -# define DtCMinimumValue "minimumValue" -# endif -#endif -#ifndef DtCNumValues -# if defined(DT_USE_XM_SSPINBOX) -# define DtCNumValues XmCNumValues -# else -# define DtCNumValues "numValues" -# endif -#endif -#ifndef DtCValues -# if defined(DT_USE_XM_SSPINBOX) -# define DtCValues XmCValues -# else -# define DtCValues "values" -# endif -#endif - -#ifndef DtCAlignment -#define DtCAlignment XmCAlignment -#endif -#ifndef DtCCallback -#define DtCCallback XmCCallback -#endif -#ifndef DtCColumns -#define DtCColumns XmCColumns -#endif -#ifndef DtCDecimalPoints -#define DtCDecimalPoints XmCDecimalPoints -#endif -#ifndef DtCEditable -#define DtCEditable XmCEditable -#endif -#ifndef DtCInitialDelay -#define DtCInitialDelay XmCInitialDelay -#endif -#ifndef DtCItems -#define DtCItems XmCItems -#endif -#ifndef DtCMarginHeight -#define DtCMarginHeight XmCMarginHeight -#endif -#ifndef DtCMarginWidth -#define DtCMarginWidth XmCMarginWidth -#endif -#ifndef DtCMaxLength -#define DtCMaxLength XmCMaxLength -#endif -#ifndef DtCPosition -#define DtCPosition XmCPosition -#endif -#ifndef DtCRecomputeSize -#define DtCRecomputeSize XmCRecomputeSize -#endif -#ifndef DtCRepeatDelay -#define DtCRepeatDelay XmCRepeatDelay -#endif - -/* Representation types */ - -#ifndef DtRIncrementValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtRIncrementValue XmRint -# else -# define DtRIncrementValue "IncrementValue" -# endif -#endif -#ifndef DtRMaximumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtRMaximumValue XmRint -# else -# define DtRMaximumValue "MaximumValue" -# endif -#endif -#ifndef DtRMinimumValue -# if defined(DT_USE_XM_SSPINBOX) -# define DtRMinimumValue XmRint -# else -# define DtRMinimumValue "MinimumValue" -# endif -#endif -#ifndef DtRNumValues -# if defined(DT_USE_XM_SSPINBOX) -# define DtRNumValues XmRint -# else -# define DtRNumValues "NumValues" -# endif -#endif -#ifndef DtRValues -# if defined(DT_USE_XM_SSPINBOX) -# define DtRValues XmRXmStringTable -# else -# define DtRValues "Values" -# endif -#endif -#ifndef DtRArrowSensitivity -# if defined(DT_USE_XM_SSPINBOX) -# define DtRArrowSensitivity XmRArrowSensitivity -# else -# define DtRArrowSensitivity "ArrowSensitivity" -# endif -#endif -#ifndef DtRArrowLayout -# if defined(DT_USE_XM_SSPINBOX) -# define DtRArrowLayout XmRArrowLayout -# else -# define DtRArrowLayout "ArrowLayout" -# endif -#endif -#ifndef DtRSpinBoxChildType -# if defined(DT_USE_XM_SSPINBOX) -# define DtRSpinBoxChildType XmRSpinBoxChildType -# else -# define DtRSpinBoxChildType "SpinBoxChildType" -# endif -#endif - -/* DtNarrowLayout values */ - -#ifndef DtARROWS_FLAT_BEGINNING -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_FLAT_BEGINNING XmARROWS_FLAT_BEGINNING -# else -# define DtARROWS_FLAT_BEGINNING 4 -# endif -#endif -#ifndef DtARROWS_FLAT_END -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_FLAT_END XmARROWS_FLAT_END -# else -# define DtARROWS_FLAT_END 3 -# endif -#endif -#ifndef DtARROWS_SPLIT -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_SPLIT XmARROWS_SPLIT -# else -# define DtARROWS_SPLIT 2 -# endif -#endif -#ifndef DtARROWS_BEGINNING -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_BEGINNING XmARROWS_BEGINNING -# else -# define DtARROWS_BEGINNING 1 -# endif -#endif -#ifndef DtARROWS_END -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_END XmARROWS_END -# else -# define DtARROWS_END 0 -# endif -#endif - -/* DtNarrowSensitivity values */ - -#ifndef DtARROWS_SENSITIVE -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_SENSITIVE XmARROWS_SENSITIVE -# else -# define DtARROWS_SENSITIVE 3 -# endif -#endif -#ifndef DtARROWS_DECREMENT_SENSITIVE -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_DECREMENT_SENSITIVE XmARROWS_DECREMENT_SENSITIVE -# else -# define DtARROWS_DECREMENT_SENSITIVE 2 -# endif -#endif -#ifndef DtARROWS_INCREMENT_SENSITIVE -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_INCREMENT_SENSITIVE XmARROWS_INCREMENT_SENSITIVE -# else -# define DtARROWS_INCREMENT_SENSITIVE 1 -# endif -#endif -#ifndef DtARROWS_INSENSITIVE -# if defined(DT_USE_XM_SSPINBOX) -# define DtARROWS_INSENSITIVE XmARROWS_INSENSITIVE -# else -# define DtARROWS_INSENSITIVE 0 -# endif -#endif - -/* DtNspinBoxChildType values */ - -#ifndef DtNUMERIC -# if defined(DT_USE_XM_SSPINBOX) -# define DtNUMERIC XmNUMERIC -# else -# define DtNUMERIC 3 -# endif -#endif - -#ifndef DtSTRING -# define DtSTRING XmSTRING -#endif - -/* DtNalignment values */ - -#ifndef DtALIGNMENT_BEGINNING -#define DtALIGNMENT_BEGINNING XmALIGNMENT_BEGINNING -#endif -#ifndef DtALIGNMENT_CENTER -#define DtALIGNMENT_CENTER XmALIGNMENT_CENTER -#endif -#ifndef DtALIGNMENT_END -#define DtALIGNMENT_END XmALIGNMENT_END -#endif - -/* Callback reasons */ - -#ifndef DtCR_OK -# define DtCR_OK XmCR_OK -#endif -#ifndef DtCR_SPIN_NEXT -# if defined(DT_USE_XM_SSPINBOX) -# define DtCR_SPIN_NEXT XmCR_SPIN_NEXT -# else -# define DtCR_SPIN_NEXT 62 -# endif -#endif -#ifndef DtCR_SPIN_PRIOR -# if defined(DT_USE_XM_SSPINBOX) -# define DtCR_SPIN_PRIOR XmCR_SPIN_PRIOR -# else -# define DtCR_SPIN_PRIOR 63 -# endif -#endif - - -/* - * Types - */ -#if defined(DT_USE_XM_SSPINBOX) -# define DtSpinBoxCallbackStruct XmSpinBoxCallbackStruct -#else -typedef struct { - int reason; - XEvent *event; - Widget widget; - Boolean doit; - int position; - XmString value; - Boolean crossed_boundary; -} DtSpinBoxCallbackStruct; -#endif - -/* Widget class and instance */ -#if defined(DT_USE_XM_SSPINBOX) -# define _DtSpinBoxClassRec _XmSimpleSpinBoxClassRec -# define _DtSpinBoxRec _XmSimpleSpinBoxRec -# define DtSpinBoxWidgetClass XmSimpleSpinBoxWidgetClass -# define DtSpinBoxWidget XmSimpleSpinBoxWidget -#else -typedef struct _DtSpinBoxClassRec *DtSpinBoxWidgetClass; -typedef struct _DtSpinBoxRec *DtSpinBoxWidget; -#endif - -/* - * Data - */ - -/* Widget class record */ -#if defined(DT_USE_XM_SSPINBOX) -# define dtSpinBoxWidgetClass xmSimpleSpinBoxWidgetClass -#else -externalref WidgetClass dtSpinBoxWidgetClass; -#endif - - -/* - * Functions - */ - -#if defined(DT_USE_XM_SSPINBOX) -# define DtCreateSpinBox XmCreateSimpleSpinBox -# define DtSpinBoxAddItem XmSimpleSpinBoxAddItem -# define DtSpinBoxDeletePos XmSimpleSpinBoxDeletePos -# define DtSpinBoxSetItem XmSimpleSpinBoxSetItem -#else -extern Widget DtCreateSpinBox( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount); - -extern void DtSpinBoxAddItem( - Widget widget, - XmString item, - int pos); - -extern void DtSpinBoxDeletePos( - Widget widget, - int pos); - -extern void DtSpinBoxSetItem( - Widget widget, - XmString item); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _Dt_SpinBox_h */ diff --git a/cde/lib/DtWidget/SpinBoxP.h b/cde/lib/DtWidget/SpinBoxP.h deleted file mode 100644 index f7d993b0..00000000 --- a/cde/lib/DtWidget/SpinBoxP.h +++ /dev/null @@ -1,223 +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: SpinBoxP.h /main/4 1996/03/26 19:54:14 drk $ */ -/* - * SpinBoxP.h, Interleaf, 16aug93 2:37pm Version 1.1. - */ - -/*********************************************************** -Copyright 1993 Interleaf, Inc. - -Permission to use, copy, modify, and distribute this software -and its documentation for any purpose without fee is granted, -provided that the above copyright notice appear in all copies -and that both copyright notice and this permission notice appear -in supporting documentation, and that the name of Interleaf not -be used in advertising or publicly pertaining to distribution of -the software without specific written prior permission. - -Interleaf makes no representation about the suitability of this -software for any purpose. It is provided "AS IS" without any -express or implied warranty. -******************************************************************/ - -/* - * (C) Copyright 1991,1992, 1993 - * Interleaf, Inc. - * 9 Hillside Avenue, Waltham, MA 02154 - * - * SpinBoxP.h: - * - * Private header file for DtSpinBoxWidget. - */ -#ifndef _SpinBoxP_h -#define _SpinBoxP_h - -#include -#include -#include -#include -#include "SpinBox.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * External definitions of syn_resources for our list widget. - */ -#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value) -extern void _DtSpinBoxGetArrowSize SYN_RESOURCE_AA; - -#define ARROW_MULT .45 -#define ARROW_MIN 13 -#define MAX_FLOAT_DECIMALS 6 -#define NUMERIC_LENGTH 128 -#define MARGIN 2 -#define LABEL_PADDING 2 -#define LABEL_SHADOW 2 -#define TEXT_FIELD_SHADOW 1 -#define TEXT_CONTEXT_MARGIN 4 - -/**************************************************************** - * - * Message Defines - * - ****************************************************************/ - -#define SB_ARROW_SENSITIVE DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_ARROW_SENSITIVE, _DtMsgSpinBox_0000) - -#define SB_ALIGNMENT DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_ALIGNMENT, _DtMsgSpinBox_0001) - -#define SB_INIT_DELAY DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_INIT_DELAY, _DtMsgSpinBox_0002) - -#define SB_MARGIN_HEIGHT DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_MARGIN_HEIGHT, _DtMsgSpinBox_0003) - -#define SB_MARGIN_WIDTH DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_MARGIN_WIDTH, _DtMsgSpinBox_0004) - -#define SB_ARROW_LAYOUT DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_ARROW_LAYOUT, _DtMsgSpinBox_0005) - -#define SB_REPEAT_DELAY DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_REPEAT_DELAY, _DtMsgSpinBox_0006) - -#define SB_ITEM_COUNT DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_ITEM_COUNT, _DtMsgSpinBox_0007) - -#define SB_POSITION_STRING DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_POSITION_STRING, _DtMsgSpinBox_0008) - -#define SB_POSITION_NUMERIC DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_POSITION_NUMERIC, _DtMsgSpinBox_0009) - -#define SB_DECIMAL_POINTS DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_DECIMAL_POINTS, _DtMsgSpinBox_0010) - -#define SB_MIN_MAX DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_MIN_MAX, _DtMsgSpinBox_0011) - -#define SB_TEXT DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_TEXT, _DtMsgSpinBox_0012) - -#define SB_SET_ITEM DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_SET_ITEM, _DtMsgSpinBox_0013) - -#define SB_LABEL DTWIDGET_GETMESSAGE( \ - MS_SpinBox, SPIN_LABEL, _DtMsgSpinBox_0014) -/* - * Class Records - */ -typedef struct { - Boolean junk; -} DtSpinBoxClassPart; - -typedef struct _DtSpinBoxClassRec { - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - DtSpinBoxClassPart spin_box_class; -} DtSpinBoxClassRec; - -extern DtSpinBoxClassRec dtSpinBoxClassRec; - - -/* - * Instance Record. - */ -typedef struct _DtSpinBoxPart { - /* Private data */ - Widget label; - Widget up_arrow; - Widget down_arrow; - unsigned char which_arrow; - Boolean init_cb; - Boolean grabbed; - int base; - float min, max; - float increment, current; - char float_format[10]; - Dimension old_width; - Dimension old_height; - Dimension label_max_length; - Dimension label_max_height; - - /* Resource-related data */ - unsigned char arrow_sensitivity; - short decimal_points; - int numeric_increment; - int maximum; - int minimum; - int item_count; - int position; - unsigned char child_type; - XmStringTable items; - XtCallbackList activate_callback; - unsigned char alignment; - unsigned char arrow_layout; - Dimension arrow_size; - short text_columns; - Boolean editable; - XtCallbackList focus_callback; - unsigned int initial_delay; - XtCallbackList losing_focus_callback; - Dimension margin_height; - Dimension margin_width; - int text_max_length; - XtCallbackList modify_verify_callback; - Boolean recompute_size; - unsigned int repeat_delay; - Widget text; - XtCallbackList value_changed_callback; - Boolean wrap; - - /* Spin timer. */ - XtIntervalId timer; - - /* String list related resources */ - - /* Numeric related resources */ - - /* TextField resources */ -} DtSpinBoxPart; - - -/* Full instance record declaration */ -typedef struct _DtSpinBoxRec { - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - DtSpinBoxPart spin_box; -} DtSpinBoxRec; - -#ifdef __cplusplus -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _SpinBoxP_h */ diff --git a/cde/lib/DtWidget/TitleBox.h b/cde/lib/DtWidget/TitleBox.h deleted file mode 100644 index d0fd37b1..00000000 --- a/cde/lib/DtWidget/TitleBox.h +++ /dev/null @@ -1,76 +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: TitleBox.h /main/4 1995/10/26 09:34:50 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: TitleBox.h -*** -*** project: MotifPlus Widgets -*** -*** description: Public include file for DtTitleBox class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtTitleBox_h -#define _DtTitleBox_h - -#include -#include
- -#ifndef DtIsTitleBox -#define DtIsTitleBox(w) XtIsSubclass(w, DtTitleBoxClass) -#endif /* DtIsTitleBox */ - - -/******** Public Function Declarations ********/ - -extern Widget _DtCreateTitleBox( - Widget parent, - char *name, - ArgList arglist, - Cardinal argcount) ; -extern Widget _DtTitleBoxGetTitleArea( - Widget w) ; -extern Widget _DtTitleBoxGetWorkArea( - Widget w) ; - - -extern WidgetClass dtTitleBoxWidgetClass; - -typedef struct _DtTitleBoxClassRec * DtTitleBoxWidgetClass; -typedef struct _DtTitleBoxRec * DtTitleBoxWidget; - - -#define XmTITLE_TOP 0 -#define XmTITLE_BOTTOM 1 - -#define XmTITLE_AREA 1 - - -#endif /* _DtTitleBox_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/TitleBoxP.h b/cde/lib/DtWidget/TitleBoxP.h deleted file mode 100644 index 6d42be59..00000000 --- a/cde/lib/DtWidget/TitleBoxP.h +++ /dev/null @@ -1,159 +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: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: TitleBoxP.h -*** -*** project: MotifPlus Widgets -*** -*** description: Private include file for DtTitleBox class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtTitleBoxP_h -#define _DtTitleBoxP_h - -#include -#include
- - - -/*------------------------------------------------------------- -** Class Structure -*/ - -/* Class Part -*/ -typedef struct _DtTitleBoxClassPart -{ - caddr_t extension; -} DtTitleBoxClassPart; - -/* Full Class Record -*/ -typedef struct _DtTitleBoxClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - DtTitleBoxClassPart title_box_class; -} DtTitleBoxClassRec; - -/* Actual Class -*/ -extern DtTitleBoxClassRec dtTitleBoxClassRec; - - - - -/*------------------------------------------------------------- -** Instance Structure -*/ - -/* Instance Part -*/ -typedef struct _DtTitleBoxPart -{ - Widget work_area; - Widget title_area; - XmString title_string; - XmFontList font_list; - Dimension margin_width; - Dimension margin_height; - Dimension old_width; - Dimension old_height; - Dimension old_shadow_thickness; - Dimension title_spacing; - unsigned char title_position; - unsigned char title_alignment; - unsigned char shadow_type; -} DtTitleBoxPart; - -/* Full Instance Record -*/ -typedef struct _DtTitleBoxRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - DtTitleBoxPart title_box; -} DtTitleBoxRec; - - - -/*------------------------------------------------------------- -** Constraint Structure -*/ - -/* Constraint Part -*/ -typedef struct _DtTitleBoxConstraintPart -{ - unsigned char child_type; -} DtTitleBoxConstraintPart, * DtTitleBoxConstraint; - -/* Full Constraint Record -*/ -typedef struct _DtTitleBoxConstraintRec -{ - XmManagerConstraintPart manager_constraint; - DtTitleBoxConstraintPart title_box_constraint; -} DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr; - - -/*------------------------------------------------------------- -** Class and Instance Macros -*/ - -/* DtTitleBox Class Macros -*/ - -/* DtTitleBox Instance Macros -*/ -#define M_TitleBoxConstraint(w) \ - (&((DtTitleBoxConstraintPtr) (w)->core.constraints)->title_box_constraint) -#define M_WorkArea(m) (m -> title_box.work_area) -#define M_TitleArea(m) (m -> title_box.title_area) -#define M_TitleString(m) (m -> title_box.title_string) -#define M_TitleSpacing(m) (m -> title_box.title_spacing) -#define M_TitlePosition(m) (m -> title_box.title_position) -#define M_TitleAlignment(m) (m -> title_box.title_alignment) -#define M_FontList(m) (m -> title_box.font_list) -#define M_ShadowType(m) (m -> title_box.shadow_type) -#define M_MarginWidth(m) (m -> title_box.margin_width) -#define M_MarginHeight(m) (m -> title_box.margin_height) -#define M_OldWidth(m) (m -> title_box.old_width) -#define M_OldHeight(m) (m -> title_box.old_height) -#define M_OldShadowThickness(m) (m -> title_box.old_shadow_thickness) - - -#endif /* _DtTitleBoxP_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/View.h b/cde/lib/DtWidget/View.h deleted file mode 100644 index 53de0ed7..00000000 --- a/cde/lib/DtWidget/View.h +++ /dev/null @@ -1,132 +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: View.h /main/3 1995/10/26 09:35:11 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: View.h -*** -*** project: MotifPlus Widgets -*** -*** description: Public include file for DtView class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtView_h -#define _DtView_h - -#include - -#if defined(__cplusplus) || defined(c_plusplus) -extern "C" { -#endif - -/* Temporary location for resource definition. Need to */ -/* move into the string defs file. */ - -#define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect" -#define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect" -#define XmNsubpanelTorn "subpanelTorn" -#define XmCSubpanelTorn "SubpanelTorn" - -/* These macros are also defined in DtStrDefs.h */ -/* Control->View.h */ -/* Control.c->Control.h->Icon.h->DtStrDefs.h */ - -#ifndef XmNleftInset -#define XmNleftInset "leftInset" -#endif /* XmNleftInset */ - -#ifndef XmNrightInset -#define XmNrightInset "rightInset" -#endif /* XmNrightInset */ - -#ifndef XmNtopInset -#define XmNtopInset "topInset" -#endif /* XmNtopInset */ - -#ifndef XmNbottomInset -#define XmNbottomInset "bottomInset" -#endif /* XmNbottomInset */ - -#ifndef XmNwidthIncrement -#define XmNwidthIncrement "widthIncrement" -#endif /* XmNwidthIncrement */ - -#ifndef XmNheightIncrement -#define XmNheightIncrement "heightIncrement" -#endif /* XmNheightIncrement */ - -#ifndef XmNboxType -#define XmNboxType "boxType" -#endif /* XmNboxType */ - -#ifndef XmCBoxType -#define XmCBoxType "BoxType" -#endif /* XmCBoxType */ - -#ifndef XmRBoxType -#define XmRBoxType "BoxType" -#endif /* XmRBoxType */ - -#define XmBOX_NONE 0 -#define XmBOX_PRIMARY 1 -#define XmBOX_SECONDARY 2 -#define XmBOX_SUBPANEL 3 -#define XmBOX_SWITCH 4 - -#ifndef DtIsView -#define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass) -#endif /* XmIsView */ - - -extern Widget _DtCreateView(); - -extern WidgetClass dtViewWidgetClass; - -typedef struct _DtViewClassRec * DtViewWidgetClass; -typedef struct _DtViewRec * DtViewWidget; - - -typedef struct -{ - int reason; - XEvent * event; - int category_index; - XmString category; - int item_index; - XmString item; -} DtViewCallbackStruct; - -#define XmCR_SELECT XmCR_SINGLE_SELECT - -#if defined(__cplusplus) || defined(c_plusplus) -} /* Close scope of 'extern "C"' declaration which encloses file. */ -#endif - -#endif /* _DtView_h */ -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/DtWidget/ViewP.h b/cde/lib/DtWidget/ViewP.h deleted file mode 100644 index b3a1b4ce..00000000 --- a/cde/lib/DtWidget/ViewP.h +++ /dev/null @@ -1,158 +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: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */ -/**--------------------------------------------------------------------- -*** -*** file: ViewP.h -*** -*** project: MotifPlus Widgets -*** -*** description: Private include file for DtView class. -*** -*** -*** (c) Copyright 1990 by Hewlett-Packard Company. -*** -*** -***-------------------------------------------------------------------*/ - - -#ifndef _DtViewP_h -#define _DtViewP_h - -#include -#include -#include -#include
- - - -/*------------------------------------------------------------- -** Class Structure -*/ - -/* Class Part -*/ -typedef struct _DtViewClassPart -{ - caddr_t extension; -} DtViewClassPart; - -/* Full Class Record -*/ -typedef struct _DtViewClassRec -{ - CoreClassPart core_class; - CompositeClassPart composite_class; - ConstraintClassPart constraint_class; - XmManagerClassPart manager_class; - XmBulletinBoardClassPart bulletin_board_class; - XmFormClassPart form_class; - DtViewClassPart view_class; -} DtViewClassRec; - -/* Actual Class -*/ -extern DtViewClassRec dtViewClassRec; - - - - -/*------------------------------------------------------------- -** Instance Structure -*/ - -/* Instance Part -*/ -typedef struct _DtViewPart -{ - Dimension width_increment; - Dimension height_increment; - Dimension left_inset; - Dimension right_inset; - Dimension top_inset; - Dimension bottom_inset; - unsigned char box_type; - Boolean subpanel_unpost_on_select; - Boolean subpanel_torn; -} DtViewPart; - -/* Full Instance Record -*/ -typedef struct _DtViewRec -{ - CorePart core; - CompositePart composite; - ConstraintPart constraint; - XmManagerPart manager; - XmBulletinBoardPart bulletin_board; - XmFormPart form; - DtViewPart view; -} DtViewRec; - - -/*------------------------------------------------------------- -** Constraint Structure -*/ - -/* Constraint Part -*/ -typedef struct _DtViewConstraintPart -{ - unsigned char foo_bar; -} DtViewConstraintPart, * DtViewConstraint; - -/* Full Constraint Record -*/ -typedef struct _DtViewConstraintRec -{ - XmManagerConstraintPart manager_constraint; - XmFormConstraintPart form_constraint; - DtViewConstraintPart view_constraint; -} DtViewConstraintRec, * DtViewConstraintPtr; - - -/*------------------------------------------------------------- -** Class and Instance Macros -*/ - -/* DtView Class Macros -*/ - -/* DtView Instance Macros -*/ -#define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color) -#define M_TopShadowColor(m) (m -> manager.top_shadow_color) -#define M_HighlightColor(m) (m -> manager.highlight_color) -#define M_BackgroundPixmap(m) (m -> core.background_pixmap) -#define M_LeftInset(m) (m -> view.left_inset) -#define M_RightInset(m) (m -> view.right_inset) -#define M_TopInset(m) (m -> view.top_inset) -#define M_BottomInset(m) (m -> view.bottom_inset) -#define M_BoxType(m) (m -> view.box_type) -#define M_WidthIncrement(m) (m -> view.width_increment) -#define M_HeightIncrement(m) (m -> view.height_increment) - - -#endif /* _DtViewP_h */ - -/* DON'T ADD ANYTHING AFTER THIS #endif */ diff --git a/cde/lib/csa/csa.h b/cde/lib/csa/csa.h deleted file mode 100644 index b1b6219f..00000000 --- a/cde/lib/csa/csa.h +++ /dev/null @@ -1,1147 +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: csa.h /main/1 1996/04/21 19:23:01 drk $ */ -/* - * (c) Copyright 1993, 1994 Hewlett-Packard Company - * (c) Copyright 1993, 1994 International Business Machines Corp. - * (c) Copyright 1993, 1994 Novell, Inc. - * (c) Copyright 1993, 1994 Sun Microsystems, Inc. - */ - -#ifndef _CSA_H -#define _CSA_H - -/* BEGIN CSA INTERFACE */ - -/* BASIC DATA TYPES */ - -#ifndef DIFFERENT_PLATFORM -typedef short CSA_sint16; -typedef long CSA_sint32; -typedef unsigned char CSA_uint8; -typedef unsigned short CSA_uint16; -typedef unsigned long CSA_uint32; -typedef void *CSA_buffer; -typedef CSA_uint32 CSA_entry_handle; -typedef CSA_uint32 CSA_session_handle; -typedef char *CSA_string; -#endif - -typedef CSA_string CSA_attribute_reference; -typedef CSA_uint32 CSA_boolean; -typedef CSA_string CSA_date_time; -typedef CSA_string CSA_date_time_range; -typedef CSA_sint32 CSA_enum; -typedef CSA_uint32 CSA_flags; -typedef CSA_uint32 CSA_return_code; -typedef CSA_string CSA_service_reference; -typedef CSA_string CSA_time_duration; - -#define CSA_FALSE ((CSA_boolean)0) -#define CSA_TRUE ((CSA_boolean)1) - -/* DATA STRUCTURES */ - -/* EXTENSION */ -typedef struct CSA_TAG_EXTENSION { - CSA_uint32 item_code; - CSA_uint32 item_data; - CSA_buffer item_reference; - CSA_flags extension_flags; -} CSA_extension; - -/* EXTENSION FLAGS */ -#define CSA_EXT_REQUIRED ((CSA_flags)0x1) -#define CSA_EXT_OUTPUT ((CSA_flags)0x2) -#define CSA_EXT_LAST_ELEMENT ((CSA_flags)0x4) - -/* CALENDAR USER */ -typedef struct CSA_TAG_CALENDAR_USER{ - CSA_string user_name; - CSA_enum user_type; - CSA_string calendar_address; - CSA_extension *calendar_user_extensions; -} CSA_calendar_user; - -/* CALENDAR USER TYPE */ -#define CSA_USER_TYPE_INDIVIDUAL ((CSA_enum)0) -#define CSA_USER_TYPE_GROUP ((CSA_enum)1) -#define CSA_USER_TYPE_RESOURCE ((CSA_enum)2) - -/* ACCESS LIST */ -typedef struct CSA_TAG_ACESS_RIGHTS { - CSA_calendar_user *user; - CSA_flags rights; - struct CSA_TAG_ACESS_RIGHTS *next; -} CSA_access_rights, *CSA_access_list; - -/* ACCESS RIGHT FLAGS */ -#define CSA_FREE_TIME_SEARCH ((CSA_flags)0x1) -#define CSA_VIEW_PUBLIC_ENTRIES ((CSA_flags)0x2) -#define CSA_VIEW_CONFIDENTIAL_ENTRIES ((CSA_flags)0x4) -#define CSA_VIEW_PRIVATE_ENTRIES ((CSA_flags)0x8) -#define CSA_INSERT_PUBLIC_ENTRIES ((CSA_flags)0x10) -#define CSA_INSERT_CONFIDENTIAL_ENTRIES ((CSA_flags)0x20) -#define CSA_INSERT_PRIVATE_ENTRIES ((CSA_flags)0x40) -#define CSA_CHANGE_PUBLIC_ENTRIES ((CSA_flags)0x80) -#define CSA_CHANGE_CONFIDENTIAL_ENTRIES ((CSA_flags)0x100) -#define CSA_CHANGE_PRIVATE_ENTRIES ((CSA_flags)0x200) -#define CSA_VIEW_CALENDAR_ATTRIBUTES ((CSA_flags)0x400) -#define CSA_INSERT_CALENDAR_ATTRIBUTES ((CSA_flags)0x800) -#define CSA_CHANGE_CALENDAR_ATTRIBUTES ((CSA_flags)0x1000) -#define CSA_ORGANIZER_RIGHTS ((CSA_flags)0x2000) -#define CSA_SPONSOR_RIGHTS ((CSA_flags)0x4000) -#define CSA_OWNER_RIGHTS ((CSA_flags)0x8000) - -/* access right flags for data version 1, 2, and 3 */ -#define CSA_X_DT_BROWSE_ACCESS ((CSA_flags)0x1) -#define CSA_X_DT_INSERT_ACCESS ((CSA_flags)0x2) -#define CSA_X_DT_DELETE_ACCESS ((CSA_flags)0x4) - -/* ATTENDEE LIST */ -typedef struct CSA_TAG_ATTENDEE { - CSA_calendar_user attendee; - CSA_enum priority; - CSA_enum status; - CSA_boolean rsvp_requested; - struct CSA_TAG_ATTENDEE *next; -} CSA_attendee, *CSA_attendee_list; - -/* ATTENDEE PRIORITIES */ -#define CSA_FOR_YOUR_INFORMATION ((CSA_enum)0) -#define CSA_ATTENDANCE_REQUESTED ((CSA_enum)1) -#define CSA_ATTENDANCE_REQUIRED ((CSA_enum)2) -#define CSA_IMMEDIATE_RESPONSE ((CSA_enum)3) - -/* DATE AND TIME LIST */ -typedef struct CSA_TAG_DATE_TIME_ITEM { - CSA_date_time date_time; - struct CSA_TAG_DATE_TIME_ITEM *next; -} CSA_date_time_entry, *CSA_date_time_list; - -/* OPAQUE DATA */ -typedef struct CSA_TAG_OPAQUE_DATA { - CSA_uint32 size; - CSA_uint8 *data; -} CSA_opaque_data; - -/* REMINDER */ -typedef struct CSA_TAG_REMINDER { - CSA_time_duration lead_time; - CSA_time_duration snooze_time; - CSA_uint32 repeat_count; - CSA_opaque_data reminder_data; -} CSA_reminder; - -/* ATTRIBUTE */ -typedef struct CSA_TAG_ATTRIBUTE_ITEM { - CSA_enum type; - union { - CSA_boolean boolean_value; - CSA_enum enumerated_value; - CSA_flags flags_value; - CSA_sint32 sint32_value; - CSA_uint32 uint32_value; - CSA_string string_value; - CSA_calendar_user *calendar_user_value; - CSA_date_time date_time_value; - CSA_date_time_range date_time_range_value; - CSA_time_duration time_duration_value; - CSA_access_list access_list_value; - CSA_attendee_list attendee_list_value; - CSA_date_time_list date_time_list_value; - CSA_reminder *reminder_value; - CSA_opaque_data *opaque_data_value; - } item; -} CSA_attribute_value; - -typedef struct CSA_TAG_ATTRIBUTE { - CSA_string name; - CSA_attribute_value *value; - CSA_extension *attribute_extensions; -} CSA_attribute; - -/* ATTRIBUTE VALUE TYPE */ -#define CSA_VALUE_BOOLEAN ((CSA_enum)0) -#define CSA_VALUE_ENUMERATED ((CSA_enum)1) -#define CSA_VALUE_FLAGS ((CSA_enum)2) -#define CSA_VALUE_SINT32 ((CSA_enum)3) -#define CSA_VALUE_UINT32 ((CSA_enum)4) -#define CSA_VALUE_STRING ((CSA_enum)5) -#define CSA_VALUE_CALENDAR_USER ((CSA_enum)6) -#define CSA_VALUE_DATE_TIME ((CSA_enum)7) -#define CSA_VALUE_DATE_TIME_RANGE ((CSA_enum)8) -#define CSA_VALUE_TIME_DURATION ((CSA_enum)9) -#define CSA_VALUE_ACCESS_LIST ((CSA_enum)10) -#define CSA_VALUE_ATTENDEE_LIST ((CSA_enum)11) -#define CSA_VALUE_DATE_TIME_LIST ((CSA_enum)12) -#define CSA_VALUE_REMINDER ((CSA_enum)13) -#define CSA_VALUE_OPAQUE_DATA ((CSA_enum)14) - -/* CALLBACK */ - -/* REASON FOR CALLBACK */ -#define CSA_CB_CALENDAR_LOGON ((CSA_flags)0x1) -#define CSA_CB_CALENDAR_DELETED ((CSA_flags)0x2) -#define CSA_CB_CALENDAR_ATTRIBUTE_UPDATED ((CSA_flags)0x4) -#define CSA_CB_ENTRY_ADDED ((CSA_flags)0x8) -#define CSA_CB_ENTRY_DELETED ((CSA_flags)0x10) -#define CSA_CB_ENTRY_UPDATED ((CSA_flags)0x20) - -/* CALL DATA FOR CSA_CB_CALENDAR_LOGON */ -typedef struct CSA_TAG_LOGON_CB_DATA { - CSA_calendar_user *user; -} CSA_logon_callback_data; - -/* CALL DATA FOR CSA_CB_CALENDAR_DELETED */ -typedef struct CSA_TAG_CALENDAR_DELETED_CB_DATA { - CSA_calendar_user *user; -} CSA_calendar_deleted_callback_data; - -/* CALL DATA FOR CSA_CB_CALENDAR_ATTRIBUTE_UPDATED */ -typedef struct CSA_TAG_CALENDAR_ATTR_UPDATE_CB_DATA { - CSA_calendar_user *user; - CSA_uint32 number_attributes; - CSA_attribute_reference *attribute_names; -} CSA_calendar_attr_update_callback_data; - -/* CALL DATA FOR CSA_CB_ENTRY_ADDED */ -typedef struct CSA_TAG_ADD_ENTRY_CB_DATA { - CSA_calendar_user *user; - CSA_opaque_data added_entry_id; -} CSA_add_entry_callback_data; - -/* CALL DATA FOR CSA_CB_ENTRY_DELETED */ -typedef struct CSA_TAG_DELETE_ENTRY_CB_DATA { - CSA_calendar_user *user; - CSA_opaque_data deleted_entry_id; - CSA_enum scope; - CSA_date_time date_and_time; -} CSA_delete_entry_callback_data; - -/* CALL DATA FOR CSA_CB_ENTRY_UPDATED */ -typedef struct CSA_TAG_UPDATE_ENTRY_CB_DATA { - CSA_calendar_user *user; /* who updated entry? */ - CSA_opaque_data old_entry_id; /* id of updated entry */ - CSA_opaque_data new_entry_id; /* new id after update */ - CSA_enum scope; /* scope of the update op */ - CSA_date_time date_and_time; /* time of first updated */ -} CSA_update_entry_callback_data; - -/* CALLBACK FUNCTION PROTOTYPE */ -typedef void (*CSA_callback)( - CSA_session_handle session, - CSA_flags reason, - CSA_buffer call_data, - CSA_buffer client_data, - CSA_extension *callback_extensions); - -/* FREE TIME */ -typedef struct CSA_TAG_FREE_TIME { - CSA_uint32 number_free_time_data; - CSA_date_time_range *free_time_data; -} CSA_free_time; - -/* REMINDER REFERENCE */ -typedef struct CSA_TAG_REMINDER_REFERENCE { - CSA_entry_handle entry; - CSA_date_time run_time; - CSA_time_duration snooze_time; - CSA_uint32 repeat_count; - CSA_attribute_reference attribute_name; -} CSA_reminder_reference; - -/* WORK SCHEDULE */ -typedef struct CSA_TAG_WORK_SCHEDULE { - CSA_date_time schedule_begin_time; - CSA_boolean cyclic_definition_flag; - CSA_date_time cycle_end_time; - CSA_date_time_list *work_cycle; -} CSA_work_schedule; - -/* CSA FUNCTIONS */ - -/* CROSS FUNCTION FLAGS */ - -/* CLASSIFICATION */ -#define CSA_CLASS_PUBLIC ((CSA_enum)0) -#define CSA_CLASS_PRIVATE ((CSA_enum)1) -#define CSA_CLASS_CONFIDENTIAL ((CSA_enum)2) - -/* STATUS */ -#define CSA_STATUS_ACCEPTED ((CSA_enum)0) -#define CSA_STATUS_NEEDS_ACTION ((CSA_enum)1) -#define CSA_STATUS_SENT ((CSA_enum)2) -#define CSA_STATUS_TENTATIVE ((CSA_enum)3) -#define CSA_STATUS_CONFIRMED ((CSA_enum)4) -#define CSA_STATUS_REJECTED ((CSA_enum)5) -#define CSA_STATUS_COMPLETED ((CSA_enum)6) -#define CSA_STATUS_DELEGATED ((CSA_enum)7) - -/* CDE specific status values */ -#define CSA_X_DT_STATUS_ACTIVE ((CSA_enum)0x900) -#define CSA_X_DT_STATUS_DELETE_PENDING ((CSA_enum)0x901) -#define CSA_X_DT_STATUS_ADD_PENDING ((CSA_enum)0x902) -#define CSA_X_DT_STATUS_COMMITTED ((CSA_enum)0x903) -#define CSA_X_DT_STATUS_CANCELLED ((CSA_enum)0x904) - -/* SCOPE */ -#define CSA_SCOPE_ALL ((CSA_enum)0) -#define CSA_SCOPE_ONE ((CSA_enum)1) -#define CSA_SCOPE_FORWARD ((CSA_enum)2) - -/* OPERATORS */ -#define CSA_MATCH_ANY ((CSA_enum)0) -#define CSA_MATCH_EQUAL_TO ((CSA_enum)1) -#define CSA_MATCH_NOT_EQUAL_TO ((CSA_enum)2) -#define CSA_MATCH_GREATER_THAN ((CSA_enum)3) -#define CSA_MATCH_LESS_THAN ((CSA_enum)4) -#define CSA_MATCH_GREATER_THAN_OR_EQUAL_TO ((CSA_enum)5) -#define CSA_MATCH_LESS_THAN_OR_EQUAL_TO ((CSA_enum)6) -#define CSA_MATCH_CONTAIN ((CSA_enum)7) - -/* FREE */ -CSA_return_code -csa_free( - CSA_buffer memory -); - -/* LIST CALENDARS */ -CSA_return_code -csa_list_calendars( - CSA_service_reference calendar_service, - CSA_uint32 *number_names, - CSA_calendar_user **calendar_names, - CSA_extension *list_calendars_extensions -); - -/* LOGOFF */ -CSA_return_code -csa_logoff( - CSA_session_handle session, - CSA_extension *logoff_extensions -); - -/* LOGON */ -CSA_return_code -csa_logon( - CSA_service_reference calendar_service, - CSA_calendar_user *user, - CSA_string password, - CSA_string character_set, - CSA_string required_csa_version, - CSA_session_handle *session, - CSA_extension *logon_extensions -); - -/* LOOK UP */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_look_up( - CSA_session_handle session, - CSA_calendar_user *users, - CSA_flags look_up_flags, - CSA_uint32 *number_users, - CSA_calendar_user **user_list, - CSA_extension *look_up_extensions -); - -#define CSA_LOOKUP_RESOLVE_PREFIX_SEARCH ((CSA_flags)0x1) -#define CSA_LOOKUP_RESOLVE_IDENTITY ((CSA_flags)0x2) - -/* QUERY CONFIGURATION */ -CSA_return_code -csa_query_configuration( - CSA_session_handle session, - CSA_enum item, - CSA_buffer *reference, - CSA_extension *query_configuration_extensions -); - -#define CSA_CONFIG_CHARACTER_SET ((CSA_enum)0) -#define CSA_CONFIG_LINE_TERM ((CSA_enum)1) -#define CSA_CONFIG_DEFAULT_SERVICE ((CSA_enum)2) -#define CSA_CONFIG_DEFAULT_USER ((CSA_enum)3) -#define CSA_CONFIG_REQ_PASSWORD ((CSA_enum)4) -#define CSA_CONFIG_REQ_SERVICE ((CSA_enum)5) -#define CSA_CONFIG_REQ_USER ((CSA_enum)6) -#define CSA_CONFIG_UI_AVAIL ((CSA_enum)7) -#define CSA_CONFIG_VER_IMPLEM ((CSA_enum)8) -#define CSA_CONFIG_VER_SPEC ((CSA_enum)9) - -#define CSA_LINE_TERM_CRLF ((CSA_enum)0) -#define CSA_LINE_TERM_LF ((CSA_enum)1) -#define CSA_LINE_TERM_CR ((CSA_enum)2) - -#define CSA_REQUIRED_NO ((CSA_enum)0) -#define CSA_REQUIRED_OPT ((CSA_enum)1) -#define CSA_REQUIRED_YES ((CSA_enum)2) - -/* CHARACTER SE IDENTIFIERS */ -#define CSA_CHARSET_437 "-//XAPIA//CHARSET IBM 437//EN" -#define CSA_CHARSET_850 "-//XAPIA//CHARSET IBM 850//EN" -#define CSA_CHARSET_1252 "-//XAPIA//CHARSET Microsoft 1252//EN" -#define CSA_CHARSET_ISTRING "-//XAPIA//CHARSET Apple ISTRING//EN" -#define CSA_CHARSET_UNICODE "-//XAPIA//CHARSET UNICODE//EN" -#define CSA_CHARSET_T61 "-//XAPIA//CHARSET TSS T61//EN" -#define CSA_CHARSET_IA5 "-//XAPIA//CHARSET TSS IA5//EN" -#define CSA_CHARSET_ISO_10646 "-//XAPIA//CHARSET ISO 10646//EN" -#define CSA_CHARSET_ISO_646 "-//XAPIA//CHARSET ISO 646//EN" -#define CSA_CHARSET_iso_8859_1 "-//XAPIA//CHARSET ISO 8859-1//EN" - -/* RESTORE */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_restore( - CSA_session_handle session, - CSA_string archive_name, - CSA_uint32 number_attributes, - CSA_attribute *attributes, - CSA_enum *operators, - CSA_extension *restore_extensions -); - -/* SAVE */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_save( - CSA_session_handle session, - CSA_string archive_name, - CSA_uint32 number_attributes, - CSA_attribute *attributes, - CSA_enum *operators, - CSA_boolean delete_entry, - CSA_extension *save_extensions -); - -/* ADD CALENDAR */ -CSA_return_code -csa_add_calendar( - CSA_session_handle session, - CSA_calendar_user *user, - CSA_uint32 number_attributes, - CSA_attribute *calendar_attributes, - CSA_extension *add_calendar_extensions -); - -/* DELETE CALENDAR */ -CSA_return_code -csa_delete_calendar( - CSA_session_handle session, - CSA_extension *delete_calendar_extensions -); - -/* LIST CALENDAR ATTRIBUTES */ -CSA_return_code -csa_list_calendar_attributes( - CSA_session_handle session, - CSA_uint32 *number_names, - CSA_attribute_reference **calendar_attributes_names, - CSA_extension *list_calendar_attributes_extensions -); - -/* READ CALENDAR ATTRIBUTES */ -CSA_return_code -csa_read_calendar_attributes( - CSA_session_handle session, - CSA_uint32 number_names, - CSA_attribute_reference *attribte_names, - CSA_uint32 *number_attributes, - CSA_attribute **calendar_attributes, - CSA_extension *read_calendar_attributes_extensions -); - -/* REGISTER CALLBACK FUNCTION */ -CSA_return_code -csa_register_callback( - CSA_session_handle session, - CSA_flags reason, - CSA_callback callback, - CSA_buffer client_data, - CSA_extension *register_callback_extensions -); - -/* UNREGISTER CALLBACK FUNCTION */ -CSA_return_code -csa_unregister_callback( - CSA_session_handle session, - CSA_flags reason, - CSA_callback callback, - CSA_buffer client_data, - CSA_extension *unregister_callback_extensions -); - -/* CALL CALLBACK FUNCTION */ -CSA_return_code -csa_call_callbacks( - CSA_session_handle session, - CSA_flags reason, - CSA_extension *call_callbacks_extensions -); - -/* UDPATE CALENDAR ATTRIBUTES */ -CSA_return_code -csa_update_calendar_attributes( - CSA_session_handle session, - CSA_uint32 number_attributes, - CSA_attribute *calendar_attributes, - CSA_extension *update_calendar_attributes_extensions -); - -/* Add ENTRY */ -CSA_return_code -csa_add_entry( - CSA_session_handle session, - CSA_uint32 number_attributes, - CSA_attribute *entry_attributes, - CSA_entry_handle *entry, - CSA_extension *add_entry_extensions -); - -/* DELETE ENTRY */ -CSA_return_code -csa_delete_entry( - CSA_session_handle session, - CSA_entry_handle entry, - CSA_enum delete_scope, - CSA_extension *delete_entry_extensions -); - -/* FREE TIME SEARCH */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_free_time_search( - CSA_session_handle session, - CSA_date_time_range date_time_range, - CSA_time_duration time_duration, - CSA_uint32 number_users, - CSA_calendar_user *calendar_users, - CSA_free_time **free_time, - CSA_extension *free_time_search_extensions -); - -/* LIST ENTRIES */ -CSA_return_code -csa_list_entries( - CSA_session_handle session, - CSA_uint32 number_attributes, - CSA_attribute *entry_attributes, - CSA_enum *list_operators, - CSA_uint32 *number_entries, - CSA_entry_handle **entries, - CSA_extension *list_entries_extensions -); - -/* LIST ENTRY ATTRIBUTES */ -CSA_return_code -csa_list_entry_attributes( - CSA_session_handle session, - CSA_entry_handle entry, - CSA_uint32 *number_names, - CSA_attribute_reference **entry_attribute_names, - CSA_extension *list_entry_attributes_extensions -); - -/* LIST ENTRY SEQUENCE */ -CSA_return_code -csa_list_entry_sequence( - CSA_session_handle session, - CSA_entry_handle entry, - CSA_date_time_range time_range, - CSA_uint32 *number_entries, - CSA_entry_handle **entry_list, - CSA_extension *list_entry_sequence_extensions -); - -/* READ ENTRY ATTRIBUTES */ -CSA_return_code -csa_read_entry_attributes( - CSA_session_handle session, - CSA_entry_handle entry, - CSA_uint32 number_names, - CSA_attribute_reference *attribute_names, - CSA_uint32 *number_attributes, - CSA_attribute **entry_attributes, - CSA_extension *read_entry_attributes_extensions -); - -/* READ NEXT REMINDERS */ -CSA_return_code -csa_read_next_reminder( - CSA_session_handle session, - CSA_uint32 number_names, - CSA_attribute_reference *reminder_names, - CSA_date_time given_time, - CSA_uint32 *number_reminders, - CSA_reminder_reference **reminder_references, - CSA_extension *read_next_reminder_extensions -); - -/* UPDATE ENTRY ATTRIBUTES */ -CSA_return_code -csa_update_entry_attributes( - CSA_session_handle session, - CSA_entry_handle entry, - CSA_enum update_scope, - CSA_boolean update_propagation, - CSA_uint32 number_attributes, - CSA_attribute *entry_attributes, - CSA_entry_handle *new_entry, - CSA_extension *update_entry_attributes_extensions -); - -/* STRING BASED FUNCTIONS */ - -/* ADD EVENT */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_add_event( - CSA_service_reference calendar_service, - CSA_string calendar_address, - CSA_string logon_user, - CSA_string logon_password, - CSA_string attendee, - CSA_enum attendee_priority, - CSA_enum attendee_status, - CSA_boolean attendee_rsvp_requested, - CSA_date_time start_date, - CSA_date_time end_date, - CSA_string organizer, - CSA_string sponsor, - CSA_string summary, - CSA_string description, - CSA_string recurrence_rule, - CSA_string exception_rule, - CSA_string subtype, - CSA_enum classification, - CSA_string delimiters, - CSA_string add_event_extensions -); - -/* ADD TODO */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_add_todo( - CSA_service_reference calendar_service, - CSA_string calendar_address, - CSA_string logon_user, - CSA_string logon_password, - CSA_enum attendee_priority, - CSA_enum attendee_status, - CSA_boolean attendee_rsvp_requested, - CSA_date_time start_date, - CSA_date_time due_date, - CSA_uint32 priority, - CSA_string summary, - CSA_string description, - CSA_enum classification, - CSA_string delimiters, - CSA_string add_todo_extensions -); - -/* ADD MEMO */ /* NOT IMPLEMENTED IN THIS RELEASE */ -CSA_return_code -csa_add_memo( - CSA_service_reference calendar_service, - CSA_string calendar_address, - CSA_string logon_user, - CSA_string logon_password, - CSA_date_time start_date, - CSA_string summary, - CSA_string delimiters, - CSA_string add_memo_extensions -); - -/* RETURN ERROR FLAGS */ -#define CSA_ERROR_RSV_MASK ((CSA_return_code)0x0000FFFF) -#define CSA_ERROR_IMPL_MASK ((CSA_return_code)0xFFFF0000) - -/* macro to get XAPIA CSA return code */ -#define CSA_X_DT_CSA_RETURN_CODE(c) \ - ((CSA_return_code)((c) & CSA_ERROR_RSV_MASK)) - -/* RETURN CODES */ -#define CSA_SUCCESS ((CSA_return_code)0) - -#define CSA_E_AMBIGUOUS_USER ((CSA_return_code)1) -#define CSA_E_CALENDAR_EXISTS ((CSA_return_code)2) -#define CSA_E_CALENDAR_NOT_EXIST ((CSA_return_code)3) -#define CSA_E_CALLBACK_NOT_REGISTERED ((CSA_return_code)4) -#define CSA_E_DISK_FULL ((CSA_return_code)5) -#define CSA_E_FAILURE ((CSA_return_code)6) -#define CSA_E_FILE_EXIST ((CSA_return_code)7) -#define CSA_E_FILE_NOT_EXIST ((CSA_return_code)8) -#define CSA_E_INSUFFICIENT_MEMORY ((CSA_return_code)9) -#define CSA_E_INVALID_ATTRIBUTE ((CSA_return_code)10) -#define CSA_E_INVALID_ATTRIBUTE_VALUE ((CSA_return_code)11) -#define CSA_E_INVALID_CALENDAR_SERVICE ((CSA_return_code)12) -#define CSA_E_INVALID_CONFIGURATION ((CSA_return_code)13) -#define CSA_E_INVALID_DATA_EXT ((CSA_return_code)14) -#define CSA_E_INVALID_DATE_TIME ((CSA_return_code)15) -#define CSA_E_INVALID_ENTRY_HANDLE ((CSA_return_code)16) -#define CSA_E_INVALID_ENUM ((CSA_return_code)17) -#define CSA_E_INVALID_FILE_NAME ((CSA_return_code)18) -#define CSA_E_INVALID_FLAG ((CSA_return_code)19) -#define CSA_E_INVALID_FUNCTION_EXT ((CSA_return_code)20) -#define CSA_E_INVALID_MEMORY ((CSA_return_code)21) -#define CSA_E_INVALID_PARAMETER ((CSA_return_code)22) -#define CSA_E_INVALID_PASSWORD ((CSA_return_code)23) -#define CSA_E_INVALID_RULE ((CSA_return_code)24) -#define CSA_E_INVALID_SESSION_HANDLE ((CSA_return_code)25) -#define CSA_E_INVALID_USER ((CSA_return_code)26) -#define CSA_E_NO_AUTHORITY ((CSA_return_code)27) -#define CSA_E_NOT_SUPPORTED ((CSA_return_code)28) -#define CSA_E_PASSWORD_REQUIRED ((CSA_return_code)29) -#define CSA_E_READONLY ((CSA_return_code)30) -#define CSA_E_SERVICE_UNAVAILABLE ((CSA_return_code)31) -#define CSA_E_TEXT_TOO_LARGE ((CSA_return_code)32) -#define CSA_E_TOO_MANY_USERS ((CSA_return_code)33) -#define CSA_E_UNABLE_TO_OPEN_FILE ((CSA_return_code)34) -#define CSA_E_UNSUPPORTED_ATTRIBUTE ((CSA_return_code)35) -#define CSA_E_UNSUPPORTED_CHARACTER_SET ((CSA_return_code)36) -#define CSA_E_UNSUPPORTED_DATA_EXT ((CSA_return_code)37) -#define CSA_E_UNSUPPORTED_ENUM ((CSA_return_code)38) -#define CSA_E_UNSUPPORTED_FLAG ((CSA_return_code)39) -#define CSA_E_UNSUPPORTED_FUNCTION_EXT ((CSA_return_code)40) -#define CSA_E_UNSUPPORTED_PARAMETER ((CSA_return_code)41) -#define CSA_E_UNSUPPORTED_VERSION ((CSA_return_code)42) -#define CSA_E_USER_NOT_FOUND ((CSA_return_code)43) -#define CSA_E_TIME_ONLY ((CSA_return_code)44) - -#define CSA_X_DT_E_BACKING_STORE_PROBLEM ((CSA_return_code)0x900001F) -#define CSA_X_DT_E_ENTRY_NOT_FOUND ((CSA_return_code)0x9010010) -#define CSA_X_DT_E_INVALID_SERVER_LOCATION ((CSA_return_code)0x902000C) -#define CSA_X_DT_E_SERVER_TIMEOUT ((CSA_return_code)0x903001F) -#define CSA_X_DT_E_SERVICE_NOT_REGISTERED ((CSA_return_code)0x904001F) - -/* CALENDAR ATTRIBUTES */ - -extern char *_CSA_calendar_attribute_names[]; - -/* CALENDAR ATTRIBUTE NAMES */ - -#define CSA_CAL_ATTR_ACCESS_LIST_I 1 -#define CSA_CAL_ATTR_ACCESS_LIST \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_ACCESS_LIST_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Access List//EN" */ - -#define CSA_CAL_ATTR_CALENDAR_NAME_I 2 -#define CSA_CAL_ATTR_CALENDAR_NAME \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_NAME_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Name//EN" */ - -#define CSA_CAL_ATTR_CALENDAR_OWNER_I 3 -#define CSA_CAL_ATTR_CALENDAR_OWNER \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_OWNER_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Owner//EN" */ - -#define CSA_CAL_ATTR_CALENDAR_SIZE_I 4 -#define CSA_CAL_ATTR_CALENDAR_SIZE \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_SIZE_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Size//EN" */ - -#define CSA_CAL_ATTR_CHARACTER_SET_I 5 -#define CSA_CAL_ATTR_CHARACTER_SET \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_CHARACTER_SET_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Character Set//EN" */ - -#define CSA_CAL_ATTR_COUNTRY_I 6 -#define CSA_CAL_ATTR_COUNTRY \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_COUNTRY_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Country//EN" */ - -#define CSA_CAL_ATTR_DATE_CREATED_I 7 -#define CSA_CAL_ATTR_DATE_CREATED \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_DATE_CREATED_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Date Created//EN" */ - -#define CSA_CAL_ATTR_LANGUAGE_I 8 -#define CSA_CAL_ATTR_LANGUAGE \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_LANGUAGE_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Language//EN" */ - -#define CSA_CAL_ATTR_NUMBER_ENTRIES_I 9 -#define CSA_CAL_ATTR_NUMBER_ENTRIES \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_NUMBER_ENTRIES_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Number Entries//EN" */ - -#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I 10 -#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Product Identifier//EN" */ - -#define CSA_CAL_ATTR_TIME_ZONE_I 11 -#define CSA_CAL_ATTR_TIME_ZONE \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_TIME_ZONE_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Time Zone//EN" */ - -#define CSA_CAL_ATTR_VERSION_I 12 -#define CSA_CAL_ATTR_VERSION \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_VERSION_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Version//EN" */ - -#define CSA_CAL_ATTR_WORK_SCHEDULE_I 13 -#define CSA_CAL_ATTR_WORK_SCHEDULE \ - _CSA_calendar_attribute_names[CSA_CAL_ATTR_WORK_SCHEDULE_I] - /* "-//XAPIA/CSA/CALATTR//NONSGML Work Schedule//EN" */ - -#define CSA_X_DT_CAL_ATTR_SERVER_VERSION_I 14 -#define CSA_X_DT_CAL_ATTR_SERVER_VERSION \ - _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_SERVER_VERSION_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Server Version//EN" */ - -#define CSA_X_DT_CAL_ATTR_DATA_VERSION_I 15 -#define CSA_X_DT_CAL_ATTR_DATA_VERSION \ - _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_DATA_VERSION_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Data Version//EN" */ - -#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I 16 -#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER \ - _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Calendar Delimiter//EN" */ - - -/* ENTRY ATTRIBUTES */ - -extern char *_CSA_entry_attribute_names[]; - -/* ENTRY ATTRIBUTES NAMES */ - -#define CSA_ENTRY_ATTR_ATTENDEE_LIST_I 1 -#define CSA_ENTRY_ATTR_ATTENDEE_LIST \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ATTENDEE_LIST_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Attendee List//EN" */ - -#define CSA_ENTRY_ATTR_AUDIO_REMINDER_I 2 -#define CSA_ENTRY_ATTR_AUDIO_REMINDER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_AUDIO_REMINDER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Audio Reminder//EN" */ - -#define CSA_ENTRY_ATTR_CLASSIFICATION_I 3 -#define CSA_ENTRY_ATTR_CLASSIFICATION \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_CLASSIFICATION_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Classification//EN" */ - -#define CSA_ENTRY_ATTR_DATE_COMPLETED_I 4 -#define CSA_ENTRY_ATTR_DATE_COMPLETED \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_COMPLETED_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Completed//EN" */ - -#define CSA_ENTRY_ATTR_DATE_CREATED_I 5 -#define CSA_ENTRY_ATTR_DATE_CREATED \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_CREATED_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Created//EN" */ - -#define CSA_ENTRY_ATTR_DESCRIPTION_I 6 -#define CSA_ENTRY_ATTR_DESCRIPTION \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DESCRIPTION_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Description//EN" */ - -#define CSA_ENTRY_ATTR_DUE_DATE_I 7 -#define CSA_ENTRY_ATTR_DUE_DATE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DUE_DATE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Due Date//EN" */ - -#define CSA_ENTRY_ATTR_END_DATE_I 8 -#define CSA_ENTRY_ATTR_END_DATE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_END_DATE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML End Date//EN" */ - -#define CSA_ENTRY_ATTR_EXCEPTION_DATES_I 9 -#define CSA_ENTRY_ATTR_EXCEPTION_DATES \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_DATES_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Dates//EN" */ - -#define CSA_ENTRY_ATTR_EXCEPTION_RULE_I 10 -#define CSA_ENTRY_ATTR_EXCEPTION_RULE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_RULE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Rule//EN" */ - -#define CSA_ENTRY_ATTR_FLASHING_REMINDER_I 11 -#define CSA_ENTRY_ATTR_FLASHING_REMINDER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_FLASHING_REMINDER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Flashing Reminder//EN" */ - -#define CSA_ENTRY_ATTR_LAST_UPDATE_I 12 -#define CSA_ENTRY_ATTR_LAST_UPDATE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_LAST_UPDATE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Last Update//EN" */ - -#define CSA_ENTRY_ATTR_MAIL_REMINDER_I 13 -#define CSA_ENTRY_ATTR_MAIL_REMINDER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_MAIL_REMINDER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Mail Reminder//EN" */ - -#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I 14 -#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Number Recurrences//EN" */ - -#define CSA_ENTRY_ATTR_ORGANIZER_I 15 -#define CSA_ENTRY_ATTR_ORGANIZER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ORGANIZER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Organizer//EN" */ - -#define CSA_ENTRY_ATTR_POPUP_REMINDER_I 16 -#define CSA_ENTRY_ATTR_POPUP_REMINDER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_POPUP_REMINDER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Popup Reminder//EN" */ - -#define CSA_ENTRY_ATTR_PRIORITY_I 17 -#define CSA_ENTRY_ATTR_PRIORITY \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_PRIORITY_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Priority//EN" */ - -#define CSA_ENTRY_ATTR_RECURRENCE_RULE_I 18 -#define CSA_ENTRY_ATTR_RECURRENCE_RULE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRENCE_RULE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurrence Rule//EN" */ - -#define CSA_ENTRY_ATTR_RECURRING_DATES_I 19 -#define CSA_ENTRY_ATTR_RECURRING_DATES \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRING_DATES_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurring Dates//EN" */ - -#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I 20 -#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Reference Identifier//EN" */ - -#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I 21 -#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sequence Number//EN" */ - -#define CSA_ENTRY_ATTR_SPONSOR_I 22 -#define CSA_ENTRY_ATTR_SPONSOR \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SPONSOR_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sponsor//EN" */ - -#define CSA_ENTRY_ATTR_START_DATE_I 23 -#define CSA_ENTRY_ATTR_START_DATE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_START_DATE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Start Date//EN" */ - -#define CSA_ENTRY_ATTR_STATUS_I 24 -#define CSA_ENTRY_ATTR_STATUS \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_STATUS_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Status//EN" */ - -#define CSA_ENTRY_ATTR_SUBTYPE_I 25 -#define CSA_ENTRY_ATTR_SUBTYPE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUBTYPE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Subtype//EN" */ - -#define CSA_ENTRY_ATTR_SUMMARY_I 26 -#define CSA_ENTRY_ATTR_SUMMARY \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUMMARY_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Summary//EN" */ - -#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I 27 -#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Time Transparency//EN" */ - -#define CSA_ENTRY_ATTR_TYPE_I 28 -#define CSA_ENTRY_ATTR_TYPE \ - _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TYPE_I] - /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Type//EN" */ - -/* cde defined entry attributes */ -#define CSA_X_DT_ENTRY_ATTR_SHOWTIME_I 29 -#define CSA_X_DT_ENTRY_ATTR_SHOWTIME \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SHOWTIME_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Show Time//EN" */ - -#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I 30 -#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Type//EN" */ - -#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I 31 -#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Times//EN" */ - -#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I 32 -#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Interval//EN" */ - -#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I 33 -#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I] - /*"-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Occurrence Number//EN"*/ - -#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I 34 -#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Sequence End Date//EN" */ - -#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I 35 -#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER \ - _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I] - /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Entry Delimiter//EN" */ - -/* - * values for entry attribute CSA_ENTRY_ATTR_TYPE - */ - -#define CSA_TYPE_EVENT ((CSA_enum)0) -#define CSA_TYPE_TODO ((CSA_enum)1) -#define CSA_TYPE_MEMO ((CSA_enum)2) -#define CSA_X_DT_TYPE_OTHER ((CSA_enum)900) - -/* - * values for entry attribute CSA_ENTRY_ATTR_SUBTYPE - */ - -extern char *_CSA_entry_subtype_values[]; - -#define CSA_SUBTYPE_APPOINTMENT_I 0 -#define CSA_SUBTYPE_APPOINTMENT \ - _CSA_entry_subtype_values[CSA_SUBTYPE_APPOINTMENT_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Appointment//EN" */ - -#define CSA_SUBTYPE_CLASS_I 1 -#define CSA_SUBTYPE_CLASS \ - _CSA_entry_subtype_values[CSA_SUBTYPE_CLASS_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Class//EN" */ - -#define CSA_SUBTYPE_HOLIDAY_I 2 -#define CSA_SUBTYPE_HOLIDAY \ - _CSA_entry_subtype_values[CSA_SUBTYPE_HOLIDAY_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Holiday//EN" */ - -#define CSA_SUBTYPE_MEETING_I 3 -#define CSA_SUBTYPE_MEETING \ - _CSA_entry_subtype_values[CSA_SUBTYPE_MEETING_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Meeting//EN" */ - -#define CSA_SUBTYPE_MISCELLANEOUS_I 4 -#define CSA_SUBTYPE_MISCELLANEOUS \ - _CSA_entry_subtype_values[CSA_SUBTYPE_MISCELLANEOUS_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Miscellaneous//EN" */ - -#define CSA_SUBTYPE_PHONE_CALL_I 5 -#define CSA_SUBTYPE_PHONE_CALL \ - _CSA_entry_subtype_values[CSA_SUBTYPE_PHONE_CALL_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Phone Call//EN" */ - -#define CSA_SUBTYPE_SICK_DAY_I 6 -#define CSA_SUBTYPE_SICK_DAY \ - _CSA_entry_subtype_values[CSA_SUBTYPE_SICK_DAY_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Sick Day//EN" */ - -#define CSA_SUBTYPE_SPECIAL_OCCASION_I 7 -#define CSA_SUBTYPE_SPECIAL_OCCASION \ - _CSA_entry_subtype_values[CSA_SUBTYPE_SPECIAL_OCCASION_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Special Occasion//EN" */ - -#define CSA_SUBTYPE_TRAVEL_I 8 -#define CSA_SUBTYPE_TRAVEL \ - _CSA_entry_subtype_values[CSA_SUBTYPE_TRAVEL_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Travel//EN" */ - -#define CSA_SUBTYPE_VACATION_I 9 -#define CSA_SUBTYPE_VACATION \ - _CSA_entry_subtype_values[CSA_SUBTYPE_VACATION_I] - /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Vacation//EN" */ - -/* - * special value for CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES - */ - -#define CSA_X_DT_DT_REPEAT_FOREVER 0 - -/* - * Values for entry attribute CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE - */ - -#define CSA_X_DT_REPEAT_ONETIME ((CSA_enum)0) -#define CSA_X_DT_REPEAT_DAILY ((CSA_enum)1) -#define CSA_X_DT_REPEAT_WEEKLY ((CSA_enum)2) -#define CSA_X_DT_REPEAT_BIWEEKLY ((CSA_enum)3) -#define CSA_X_DT_REPEAT_MONTHLY_BY_WEEKDAY ((CSA_enum)4) -#define CSA_X_DT_REPEAT_MONTHLY_BY_DATE ((CSA_enum)5) -#define CSA_X_DT_REPEAT_YEARLY ((CSA_enum)6) -#define CSA_X_DT_REPEAT_EVERY_NDAY ((CSA_enum)7) -#define CSA_X_DT_REPEAT_EVERY_NWEEK ((CSA_enum)8) -#define CSA_X_DT_REPEAT_EVERY_NMONTH ((CSA_enum)9) -#define CSA_X_DT_REPEAT_MON_TO_FRI ((CSA_enum)10) -#define CSA_X_DT_REPEAT_MONWEDFRI ((CSA_enum)11) -#define CSA_X_DT_REPEAT_TUETHUR ((CSA_enum)12) -#define CSA_X_DT_REPEAT_WEEKDAYCOMBO ((CSA_enum)13) -#define CSA_X_DT_REPEAT_OTHER ((CSA_enum)14) -#define CSA_X_DT_REPEAT_OTHER_WEEKLY ((CSA_enum)15) -#define CSA_X_DT_REPEAT_OTHER_MONTHLY ((CSA_enum)16) -#define CSA_X_DT_REPEAT_OTHER_YEARLY ((CSA_enum)17) - -/* COMMON EXTENSIONS DECLARATIONS */ - -/* EXTENSION SET ID */ - -/* Common Extension Set */ -#define CSA_XS_COM ((CSA_uint32)0) - -/* Bilateral Extension Set */ -#define CSA_XS_BLT ((CSA_uint32)256) - -/* FUNCTION EXTENSIONS */ - -/* Query for extension support in implementation */ - -#define CSA_X_COM_SUPPORT_EXT ((CSA_uint32)1) - -typedef struct CSA_TAG_XCOM { - CSA_uint32 item_code; - CSA_flags flags; -} CSA_X_COM_support; - -#define CSA_X_COM_SUPPORTED ((CSA_flags)0x1) -#define CSA_X_COM_NOT_SUPPORTED ((CSA_flags)0x2) -#define CSA_X_COM_DATA_EXT_SUPPORTED ((CSA_flags)0x4) -#define CSA_X_COM_FUNC_EXT_SUPPORTED ((CSA_flags)0x8) -#define CSA_X_COM_SUP_EXCLUDE ((CSA_flags)0x10) - -/* UI_ID EXTENSION */ - -#define CSA_X_UI_ID_EXT ((CSA_uint32)2) - -/* Extension Flags */ -#define CSA_X_LOGON_UI_ALLOWED ((CSA_flags)0x1) -#define CSA_X_ERROR_UI_ALLOWED ((CSA_flags)0x2) -#define CSA_X_LOOKUP_RESOLVE_UI ((CSA_flags)0x4) -#define CSA_X_LOOKUP_DETAILS_UI ((CSA_flags)0x8) -#define CSA_X_LOOKUP_ADDRESSING_UI ((CSA_flags)0x10) -#define CSA_X_ADD_DEFINE_ENTRY_UI ((CSA_flags)0x20) - -/* Extension Return Codes */ -#define CSA_X_E_INVALID_UI_ID ((CSA_return_code)1025) -#define CSA_X_E_LOGON_FAILURE ((CSA_return_code)1026) -#define CSA_X_E_USER_CANCEL ((CSA_return_code)1027) - -/* XT APPLICATION CONTEXT EXTENSION */ - -#define CSA_X_XT_APP_CONTEXT_EXT ((CSA_uint32)3) - -/* Get User access extension */ -#define CSA_XS_DT ((CSA_uint32)900) -#define CSA_X_DT_GET_USER_ACCESS_EXT ((CSA_uint32)901) - -#endif - diff --git a/cde/lib/tt/lib/api/c/tt_c.h b/cde/lib/tt/lib/api/c/tt_c.h deleted file mode 100644 index d583057e..00000000 --- a/cde/lib/tt/lib/api/c/tt_c.h +++ /dev/null @@ -1,703 +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: tt_c.h /main/10 1999/09/16 13:46:20 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. */ - -/* - * ToolTalk 1.2 API C language headers. - */ - -#ifndef _tt_c_h -#define _tt_c_h - -#include - -/* ToolTalk version - Format: - * - * - * - * For example: - * 10100 --> Version 1.1.0 - * 100102 --> Version 10.1.2 - */ -#define TT_VERSION 10300 - -#if defined(_EXTERN_) && defined(__STDC__) -# define _TT_CONST -# define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x##name () -#else -#if defined(_EXTERN_) -# define _TT_CONST -# define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x/**/name () -#else -#if defined(_NAMES_) -# define _TT_CONST -# define _TT_EXTERN_FUNC(type,name,list)name -#else -#if defined(_XSCHEME_) -# define _TT_CONST const -# define _TT_EXTERN_FUNC(type,name,list)type; name; list -#else -#if defined(__cplusplus) -/* C++ 2.0 or later*/ -# define _TT_CONST const -# define _TT_EXTERN_FUNC(type,name,list) extern "C" { type name list; } -#else -#if defined(__STDC__) -/* ANSI C */ -# define _TT_CONST const -# define _TT_EXTERN_FUNC(type,name,list) type name list; -#else -/* Sun C (K&R C, almost) */ -# define _TT_CONST -# define _TT_EXTERN_FUNC(type,name,list) type name(); -#endif -#endif -#endif -#endif -#endif -#endif - -#if !defined(_EXTERN_) && !defined(_NAMES_) && !defined(_XSCHEME_) - -#if !defined(_XENUMS_) && !defined(_TYPES_) -#include -#endif - -#include -#include - -/* former status 1030 removed, but not used, for backward compatibility. */ -typedef enum tt_status { - TT_OK = 0, - TT_WRN_NOTFOUND = 1, - TT_WRN_STALE_OBJID = 2, - TT_WRN_STOPPED = 3, - TT_WRN_SAME_OBJID = 4, - TT_WRN_START_MESSAGE = 5, - TT_WRN_NOT_ENABLED = 6, - TT_WRN_APPFIRST = 512, - TT_WRN_LAST = 1024, - TT_ERR_CLASS = 1025, - TT_ERR_DBAVAIL = 1026, - TT_ERR_DBEXIST = 1027, - TT_ERR_FILE = 1028, - TT_ERR_INVALID = 1029, - TT_ERR_MODE = 1031, - TT_ERR_ACCESS = 1032, - TT_ERR_NOMP = 1033, - TT_ERR_NOTHANDLER = 1034, - TT_ERR_NUM = 1035, - TT_ERR_OBJID = 1036, - TT_ERR_OP = 1037, - TT_ERR_OTYPE = 1038, - TT_ERR_ADDRESS = 1039, - TT_ERR_PATH = 1040, - TT_ERR_POINTER = 1041, - TT_ERR_PROCID = 1042, - TT_ERR_PROPLEN = 1043, - TT_ERR_PROPNAME = 1044, - TT_ERR_PTYPE = 1045, - TT_ERR_DISPOSITION = 1046, - TT_ERR_SCOPE = 1047, - TT_ERR_SESSION = 1048, - TT_ERR_VTYPE = 1049, - TT_ERR_NO_VALUE = 1050, - TT_ERR_INTERNAL = 1051, - TT_ERR_READONLY = 1052, - TT_ERR_NO_MATCH = 1053, - TT_ERR_UNIMP = 1054, - TT_ERR_OVERFLOW = 1055, - TT_ERR_PTYPE_START = 1056, - TT_ERR_CATEGORY = 1057, - TT_ERR_DBUPDATE = 1058, - TT_ERR_DBFULL = 1059, - TT_ERR_DBCONSIST = 1060, - TT_ERR_STATE = 1061, - TT_ERR_NOMEM = 1062, - TT_ERR_SLOTNAME = 1063, - TT_ERR_XDR = 1064, - TT_ERR_NETFILE = 1065, - TT_ERR_TOOLATE = 1066, - TT_ERR_AUTHORIZATION = 1067, - TT_ERR_VERSION_MISMATCH = 1068, - TT_DESKTOP_ = 1100, - TT_DESKTOP_EPERM = 1101, - TT_DESKTOP_ENOENT = 1102, - TT_DESKTOP_EINTR = 1104, - TT_DESKTOP_EIO = 1105, - TT_DESKTOP_EAGAIN = 1111, - TT_DESKTOP_ENOMEM = 1112, - TT_DESKTOP_EACCES = 1113, - TT_DESKTOP_EFAULT = 1114, - TT_DESKTOP_EEXIST = 1117, - TT_DESKTOP_ENODEV = 1119, - TT_DESKTOP_ENOTDIR = 1120, - TT_DESKTOP_EISDIR = 1121, - TT_DESKTOP_EINVAL = 1122, - TT_DESKTOP_ENFILE = 1123, - TT_DESKTOP_EMFILE = 1124, - TT_DESKTOP_ETXTBSY = 1126, - TT_DESKTOP_EFBIG = 1127, - TT_DESKTOP_ENOSPC = 1128, - TT_DESKTOP_EROFS = 1130, - TT_DESKTOP_EMLINK = 1131, - TT_DESKTOP_EPIPE = 1132, - TT_DESKTOP_ENOMSG = 1135, - TT_DESKTOP_EDEADLK = 1145, - TT_DESKTOP_ECANCELED = 1147, - TT_DESKTOP_ENOTSUP = 1148, - TT_DESKTOP_ENODATA = 1161, - TT_DESKTOP_EPROTO = 1171, - TT_DESKTOP_ENOTEMPTY = 1193, - TT_DESKTOP_ETIMEDOUT = 1245, - TT_DESKTOP_EALREADY = 1249, - TT_DESKTOP_UNMODIFIED = 1299, - TT_MEDIA_ERR_SIZE = 1300, - TT_MEDIA_ERR_FORMAT = 1301, - TT_AUTHFILE_ACCESS = 1400, - TT_AUTHFILE_LOCK = 1401, - TT_AUTHFILE_LOCK_TIMEOUT = 1402, - TT_AUTHFILE_UNLOCK = 1403, - TT_AUTHFILE_MISSING = 1404, - TT_AUTHFILE_ENTRY_MISSING = 1405, - TT_AUTHFILE_WRITE = 1406, - TT_ERR_APPFIRST = 1536, - TT_ERR_LAST = 2047, - TT_STATUS_LAST = 2048} Tt_status; - - -typedef enum tt_filter_action { - TT_FILTER_CONTINUE = 0, - TT_FILTER_STOP = 1, - TT_FILTER_LAST = 2} Tt_filter_action; - -typedef enum tt_callback_action { - TT_CALLBACK_CONTINUE = 0, - TT_CALLBACK_PROCESSED = 1, - TT_CALLBACK_LAST = 2} Tt_callback_action; - -typedef enum tt_mode { - TT_MODE_UNDEFINED = 0, - TT_IN = 1, - TT_OUT = 2, - TT_INOUT = 3, - TT_MODE_LAST = 4} Tt_mode; - -typedef enum tt_scope { - TT_SCOPE_NONE = 0, - TT_SESSION = 1, - TT_FILE = 2, - TT_BOTH = 3, - TT_FILE_IN_SESSION = 4} Tt_scope; - -typedef enum tt_class { - TT_CLASS_UNDEFINED = 0, - TT_NOTICE = 1, - TT_REQUEST = 2, - TT_OFFER = 3, - TT_CLASS_LAST = 4} Tt_class; - -typedef enum tt_category { - TT_CATEGORY_UNDEFINED = 0, - TT_OBSERVE = 1, - TT_HANDLE = 2, - TT_HANDLE_PUSH = 3, - TT_HANDLE_ROTATE = 4, - TT_CATEGORY_LAST = 5} Tt_category; - -typedef enum tt_address { - TT_PROCEDURE = 0, - TT_OBJECT = 1, - TT_HANDLER = 2, - TT_OTYPE = 3, - TT_ADDRESS_LAST = 4} Tt_address; - -typedef enum tt_disposition { - /* Flag bits, not enumerated values */ - TT_DISCARD = 0, /* for resetting value */ - TT_QUEUE = 1, - TT_START = 2} Tt_disposition; - -typedef enum tt_state { - TT_CREATED = 0, - TT_SENT = 1, - TT_HANDLED = 2, - TT_FAILED = 3, - TT_QUEUED = 4, - TT_STARTED = 5, - TT_REJECTED = 6, - TT_RETURNED = 7, - TT_ACCEPTED = 8, - TT_ABSTAINED = 9, - TT_STATE_LAST = 10} Tt_state; - -typedef enum tt_feature { - _TT_FEATURE_MULTITHREADED = 1, - _TT_FEATURE_LAST = 2} Tt_feature; - -#define TT_FEATURE_MULTITHREADED _TT_FEATURE_MULTITHREADED -#define TT_FEATURE_LAST _TT_FEATURE_LAST - -#ifndef _XENUMS_ - -/* - * Official properties of ToolTalk objects. - * - * ToolTalk should prevent non-root processes from setting the values - * of properties whose name begins with '_'. - * - * Integrators should prevent users from assigning arbitrary strings - * as values of properties whose name begins with '.'. That is, "dot" - * properties are like "dot" files: their existence should normally be - * hidden from users, and the displaying and setting of their contents - * should be mediated programatically, sort of like the OpenWindows - * "props" application mediates .Xdefaults. - */ -#define TT_OBJECT_NAME_PROPERTY ".Name" -#define TT_OBJECT_OWNER_PROPERTY "_Owner" -#define TT_OBJECT_GROUP_PROPERTY "_Group" -#define TT_OBJECT_MODE_PROPERTY "_Mode" -#define TT_OBJECT_CREATION_DATE_PROPERTY "_Creation_Date" - -/* - * The following define opaque handles which can be type checked (as compared - * to void *). Don't bother looking for the definitions of the structs, there - * aren't any. - */ -typedef struct _Tt_message_handle *Tt_message; -typedef struct _Tt_pattern_handle *Tt_pattern; -typedef struct _tt_AuthFileEntry *Tt_AuthFileEntry; - - -#if defined(__cplusplus) || defined(__STDC__) -typedef Tt_filter_action (*Tt_filter_function)(_TT_CONST char *nodeid, - void *context, - void *accumulator); -typedef Tt_callback_action (*Tt_message_callback) (Tt_message m, - Tt_pattern p); -#else -typedef Tt_filter_action (*Tt_filter_function)(); -typedef Tt_callback_action (*Tt_message_callback)(); -#endif - -#endif /* _XENUMS_ */ -#endif /* _XSCHEME_ _NAMES_ _EXTERN_ */ - -#ifndef _XENUMS_ - -_TT_EXTERN_FUNC(char *,tt_open,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_close,(void)) -_TT_EXTERN_FUNC(char *,tt_X_session,(_TT_CONST char *xdisplay)) - -_TT_EXTERN_FUNC(char *,tt_default_ptype,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_default_ptype_set,(_TT_CONST char * ptid)) -_TT_EXTERN_FUNC(char *,tt_default_file,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_default_file_set,(_TT_CONST char * docid)) -_TT_EXTERN_FUNC(char *,tt_default_session,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_default_session_set,(_TT_CONST char *sessid)) -_TT_EXTERN_FUNC(char *,tt_thread_session,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_thread_session_set,(_TT_CONST char *sessid)) -_TT_EXTERN_FUNC(char *,tt_default_procid,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_default_procid_set,(_TT_CONST char *procid)) -_TT_EXTERN_FUNC(char *,tt_thread_procid,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_thread_procid_set,(_TT_CONST char *procid)) -_TT_EXTERN_FUNC(char *,tt_procid_session,(_TT_CONST char *procid)) - -_TT_EXTERN_FUNC(Tt_status,tt_file_join,(_TT_CONST char * filepath)) -_TT_EXTERN_FUNC(Tt_status,tt_file_quit,(_TT_CONST char * filepath)) -_TT_EXTERN_FUNC(Tt_status,tt_file_objects_query, - (_TT_CONST char * filepath, - Tt_filter_function filter, - void *context,void *accumulator)) -_TT_EXTERN_FUNC(Tt_status,tt_file_move, - (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath)) -_TT_EXTERN_FUNC(Tt_status,tt_file_copy, - (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath)) -_TT_EXTERN_FUNC(Tt_status,tt_file_destroy,(_TT_CONST char * filepath)) - -_TT_EXTERN_FUNC(char *,tt_message_context_val, - (Tt_message m, _TT_CONST char *slotname)) -_TT_EXTERN_FUNC(Tt_status,tt_message_context_ival, - (Tt_message m, _TT_CONST char *slotname, int *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_context_bval, - (Tt_message m, _TT_CONST char *slotname, - unsigned char **value, int *len)) -_TT_EXTERN_FUNC(Tt_status,tt_message_context_xval, - (Tt_message m, _TT_CONST char *slotname, - xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_context_set, - (Tt_message m, _TT_CONST char *slotname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_icontext_set, - (Tt_message m, _TT_CONST char *slotname, int value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_bcontext_set, - (Tt_message m, _TT_CONST char *slotname, - _TT_CONST unsigned char *value, int len)) -_TT_EXTERN_FUNC(Tt_status,tt_message_xcontext_set, - (Tt_message m, _TT_CONST char *slotname, - xdrproc_t xdr_proc, void *value)) - -_TT_EXTERN_FUNC(Tt_status,tt_context_join, - (_TT_CONST char *slotname, _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_icontext_join, - (_TT_CONST char *slotname, int value)) -_TT_EXTERN_FUNC(Tt_status,tt_bcontext_join, - (_TT_CONST char *slotname, - _TT_CONST unsigned char *value, int len)) -_TT_EXTERN_FUNC(Tt_status,tt_xcontext_join, - (_TT_CONST char *slotname, - xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(Tt_status,tt_context_quit, - (_TT_CONST char *slotname, _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_icontext_quit, - (_TT_CONST char *slotname, int value)) -_TT_EXTERN_FUNC(Tt_status,tt_bcontext_quit, - (_TT_CONST char *slotname, - _TT_CONST unsigned char *value, int len)) -_TT_EXTERN_FUNC(Tt_status,tt_xcontext_quit, - (_TT_CONST char *slotname, - xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(int,tt_message_contexts_count,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_context_slotname, - (Tt_message m, int i)) - -_TT_EXTERN_FUNC(Tt_message,tt_message_create,(void)) -_TT_EXTERN_FUNC(Tt_message,tt_message_create_super,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_destroy,(Tt_message m)) - -_TT_EXTERN_FUNC(Tt_status,tt_message_send,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_send_on_exit,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_message,tt_message_receive,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_message_reply,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_reject,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_accept,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_fail,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_pattern,tt_message_pattern,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_callback_add, - (Tt_message m,Tt_message_callback f)) - -_TT_EXTERN_FUNC(void *,tt_message_user,(Tt_message m,int key)) -_TT_EXTERN_FUNC(Tt_status,tt_message_user_set,(Tt_message m,int key,void *v)) - -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_add, - (Tt_message m,Tt_mode n,_TT_CONST char *vtype, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_mode,tt_message_arg_mode,(Tt_message m,int n)) -_TT_EXTERN_FUNC(char *,tt_message_arg_type,(Tt_message m,int n)) -_TT_EXTERN_FUNC(char *,tt_message_arg_val,(Tt_message m,int n)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_val_set, - (Tt_message m,int n,_TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval, - (Tt_message m,int n,unsigned char **value,int *len)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval_set, - (Tt_message m,int n,_TT_CONST unsigned char *value,int len)) -_TT_EXTERN_FUNC(Tt_status,tt_message_barg_add, - (Tt_message m,Tt_mode n,_TT_CONST char *vtype, - _TT_CONST unsigned char *value,int len)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival, - (Tt_message m,int n,int *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival_set, - (Tt_message m,int n,int value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_iarg_add, - (Tt_message m,Tt_mode n,_TT_CONST char *vtype,int value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval, - (Tt_message m,int n,xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval_set, - (Tt_message m,int n,xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(Tt_status,tt_message_xarg_add, - (Tt_message m,Tt_mode n,_TT_CONST char *vtype, - xdrproc_t xdr_proc, void *value)) -_TT_EXTERN_FUNC(int,tt_message_args_count,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_class,tt_message_class,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_class_set, - (Tt_message m,Tt_class c)) -_TT_EXTERN_FUNC(char *,tt_message_file,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_file_set, - (Tt_message m,_TT_CONST char *file)) -_TT_EXTERN_FUNC(char *,tt_message_object,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_object_set, - (Tt_message m,_TT_CONST char *objid)) -_TT_EXTERN_FUNC(char *,tt_message_id,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_op,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_op_set, - (Tt_message m,_TT_CONST char *opname)) -_TT_EXTERN_FUNC(int,tt_message_opnum,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_otype,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_otype_set, - (Tt_message m,_TT_CONST char *otype)) -_TT_EXTERN_FUNC(Tt_address,tt_message_address,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_address_set, - (Tt_message m,Tt_address p)) -_TT_EXTERN_FUNC(char *,tt_message_handler,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_handler_set, - (Tt_message m,_TT_CONST char *procid)) -_TT_EXTERN_FUNC(char *,tt_message_handler_ptype,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_handler_ptype_set, - (Tt_message m,_TT_CONST char *ptid)) -_TT_EXTERN_FUNC(int,tt_message_accepters_count,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_accepter,(Tt_message m,int n)) -_TT_EXTERN_FUNC(int,tt_message_rejecters_count,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_rejecter,(Tt_message m,int n)) -_TT_EXTERN_FUNC(int,tt_message_abstainers_count,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_abstainer,(Tt_message m,int n)) -_TT_EXTERN_FUNC(Tt_disposition,tt_message_disposition,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_disposition_set, - (Tt_message m,Tt_disposition r)) -_TT_EXTERN_FUNC(Tt_scope,tt_message_scope,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_scope_set,(Tt_message m,Tt_scope s)) -_TT_EXTERN_FUNC(char *,tt_message_sender,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_message_sender_ptype,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_sender_ptype_set, - (Tt_message m,_TT_CONST char *ptid)) -_TT_EXTERN_FUNC(char *,tt_message_session,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_session_set, - (Tt_message m,_TT_CONST char *sessid)) -_TT_EXTERN_FUNC(Tt_state,tt_message_state,(Tt_message m)) -_TT_EXTERN_FUNC(int,tt_message_status,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_status_set,(Tt_message m,int status)) -_TT_EXTERN_FUNC(char *,tt_message_status_string,(Tt_message m)) -_TT_EXTERN_FUNC(Tt_status,tt_message_status_string_set, - (Tt_message m,_TT_CONST char *status_str)) -_TT_EXTERN_FUNC(uid_t,tt_message_uid,(Tt_message m)) -_TT_EXTERN_FUNC(gid_t,tt_message_gid,(Tt_message m)) - -/* - * The following are "macros" which provide a simpler high level - * interface to the above low level calls. - */ -_TT_EXTERN_FUNC(Tt_message,tt_pnotice_create, - (Tt_scope scope, _TT_CONST char *op)) -_TT_EXTERN_FUNC(Tt_message,tt_prequest_create, - (Tt_scope scope, _TT_CONST char *op)) -_TT_EXTERN_FUNC(Tt_message,tt_onotice_create, - (_TT_CONST char *objid, _TT_CONST char *op)) -_TT_EXTERN_FUNC(Tt_message,tt_orequest_create, - (_TT_CONST char *objid, _TT_CONST char *op)) - -_TT_EXTERN_FUNC(char *,tt_spec_create,(_TT_CONST char * filepath)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_write,(_TT_CONST char * nodeid)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_destroy,(_TT_CONST char * nodeid)) - -_TT_EXTERN_FUNC(char *,tt_spec_file,(_TT_CONST char * nodeid)) -_TT_EXTERN_FUNC(char *,tt_spec_type,(_TT_CONST char * nodeid)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_type_set, - (_TT_CONST char * nodeid,_TT_CONST char * otid)) -_TT_EXTERN_FUNC(char *,tt_spec_move, - (_TT_CONST char * nodeid,_TT_CONST char * newfilepath)) -_TT_EXTERN_FUNC(char *,tt_spec_propname,(_TT_CONST char *nodeid,int n)) -_TT_EXTERN_FUNC(int,tt_spec_propnames_count,(_TT_CONST char *nodeid)) - - -_TT_EXTERN_FUNC(char *,tt_spec_prop, - (_TT_CONST char *nodeid,_TT_CONST char *propname,int i)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_add, - (_TT_CONST char *nodeid,_TT_CONST char *propname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(int,tt_spec_prop_count, - (_TT_CONST char *nodeid,_TT_CONST char *propname)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_set, - (_TT_CONST char *nodeid,_TT_CONST char *propname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop, - (_TT_CONST char *nodeid,_TT_CONST char *propname,int i, - unsigned char **value,int *length)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_add, - (_TT_CONST char *nodeid,_TT_CONST char *propname, - _TT_CONST unsigned char *value,int length)) -_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_set, - (_TT_CONST char *nodeid,_TT_CONST char *propname, - _TT_CONST unsigned char *value,int length)) - -_TT_EXTERN_FUNC(int,tt_objid_equal, - (_TT_CONST char * nodeid1,_TT_CONST char * nodeid2)) -_TT_EXTERN_FUNC(char *,tt_objid_objkey,(_TT_CONST char * nodeid)) - -_TT_EXTERN_FUNC(int,tt_otype_deriveds_count,(_TT_CONST char *otype)) -_TT_EXTERN_FUNC(char *,tt_otype_derived,(_TT_CONST char *otype, int i)) -_TT_EXTERN_FUNC(char *,tt_otype_base,(_TT_CONST char *otype)) -_TT_EXTERN_FUNC(int,tt_otype_is_derived, - (_TT_CONST char *derivedotype, _TT_CONST char *baseotype)) -_TT_EXTERN_FUNC(int,tt_otype_osig_count,(_TT_CONST char * otype)) -_TT_EXTERN_FUNC(int,tt_otype_hsig_count,(_TT_CONST char * otype)) -_TT_EXTERN_FUNC(char *,tt_otype_osig_op,(_TT_CONST char * otype, int sig)) -_TT_EXTERN_FUNC(char *,tt_otype_hsig_op,(_TT_CONST char * otype, int sig)) -_TT_EXTERN_FUNC(int,tt_otype_osig_args_count,(_TT_CONST char * otype, int sig)) -_TT_EXTERN_FUNC(int,tt_otype_hsig_args_count,(_TT_CONST char * otype, int sig)) -_TT_EXTERN_FUNC(Tt_mode,tt_otype_osig_arg_mode,(_TT_CONST char * otype, - int sig, int arg)) -_TT_EXTERN_FUNC(Tt_mode,tt_otype_hsig_arg_mode,(_TT_CONST char * otype, - int sig, int arg)) -_TT_EXTERN_FUNC(char *,tt_otype_osig_arg_type,(_TT_CONST char * otype, - int sig, int arg)) -_TT_EXTERN_FUNC(char *,tt_otype_hsig_arg_type,(_TT_CONST char * otype, - int sig, int arg)) - -_TT_EXTERN_FUNC(Tt_pattern,tt_pattern_create,(void)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_destroy,(Tt_pattern p)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_register,(Tt_pattern p)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_unregister,(Tt_pattern p)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_callback_add, - (Tt_pattern m,Tt_message_callback f)) - -_TT_EXTERN_FUNC(void *,tt_pattern_user,(Tt_pattern p,int key)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_user_set,(Tt_pattern p,int key,void *v)) - -_TT_EXTERN_FUNC(Tt_category,tt_pattern_category,(Tt_pattern p)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_category_set, - (Tt_pattern p,Tt_category c)) - -_TT_EXTERN_FUNC(Tt_status,tt_pattern_arg_add, - (Tt_pattern p,Tt_mode n,_TT_CONST char *vtype, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_barg_add, - (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, - _TT_CONST unsigned char *value,int len)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_iarg_add, - (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, int value)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_xarg_add, - (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, - xdrproc_t xdr_proc, void *value)) - -_TT_EXTERN_FUNC(Tt_status,tt_pattern_class_add, - (Tt_pattern p,Tt_class c)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_file_add, - (Tt_pattern p,_TT_CONST char *file)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_object_add, - (Tt_pattern p,_TT_CONST char *objid)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_op_add, - (Tt_pattern p,_TT_CONST char *opname)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_opnum_add,(Tt_pattern p,int opnum)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_otype_add, - (Tt_pattern p,_TT_CONST char *otype)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_address_add, - (Tt_pattern p,Tt_address d)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_disposition_add, - (Tt_pattern p,Tt_disposition r)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_scope_add,(Tt_pattern p,Tt_scope s)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_add, - (Tt_pattern p,_TT_CONST char *procid)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_ptype_add, - (Tt_pattern p,_TT_CONST char *ptid)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_session_add, - (Tt_pattern p,_TT_CONST char *sessid)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_state_add,(Tt_pattern p,Tt_state s)) - -_TT_EXTERN_FUNC(Tt_status,tt_pattern_context_add, - (Tt_pattern p, _TT_CONST char *slotname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_icontext_add, - (Tt_pattern p, _TT_CONST char *slotname, - int value)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_bcontext_add, - (Tt_pattern p, _TT_CONST char *slotname, - _TT_CONST unsigned char *value, int length)) -_TT_EXTERN_FUNC(Tt_status,tt_pattern_xcontext_add, - (Tt_pattern p, _TT_CONST char *slotname, - xdrproc_t xdr_proc, void *value)) - -_TT_EXTERN_FUNC(Tt_status,tt_ptype_declare,(_TT_CONST char * ptid)) -_TT_EXTERN_FUNC(Tt_status,tt_ptype_undeclare,(_TT_CONST char * ptid)) -_TT_EXTERN_FUNC(Tt_status,tt_ptype_exists,(_TT_CONST char * ptid)) -_TT_EXTERN_FUNC(Tt_status,tt_ptype_opnum_callback_add, - (_TT_CONST char * ptid, int opnum, Tt_message_callback f)) -_TT_EXTERN_FUNC(Tt_status,tt_otype_opnum_callback_add, - (_TT_CONST char * otid, int opnum, Tt_message_callback f)) - - -_TT_EXTERN_FUNC(Tt_status,tt_session_join,(_TT_CONST char * sessid)) -_TT_EXTERN_FUNC(Tt_status,tt_session_quit,(_TT_CONST char * sessid)) -_TT_EXTERN_FUNC(char *,tt_initial_session,(void)) - -_TT_EXTERN_FUNC(char *,tt_session_propname,(_TT_CONST char *sessid,int n)) -_TT_EXTERN_FUNC(int,tt_session_propnames_count,(_TT_CONST char *sessid)) -_TT_EXTERN_FUNC(char *,tt_session_prop, - (_TT_CONST char *sessid,_TT_CONST char *propname,int i)) -_TT_EXTERN_FUNC(Tt_status,tt_session_prop_add, - (_TT_CONST char *sessid,_TT_CONST char *propname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(int,tt_session_prop_count, - (_TT_CONST char *sessid,_TT_CONST char *propname)) -_TT_EXTERN_FUNC(Tt_status,tt_session_prop_set, - (_TT_CONST char *sessid, _TT_CONST char *propname, - _TT_CONST char *value)) -_TT_EXTERN_FUNC(Tt_status,tt_session_bprop, - (_TT_CONST char *sessid,_TT_CONST char *propname,int i, - unsigned char **value,int *length)) -_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_add, - (_TT_CONST char *sessid,_TT_CONST char *propname, - _TT_CONST unsigned char *value,int length)) -_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_set, - (_TT_CONST char *sessid,_TT_CONST char *propname, - _TT_CONST unsigned char *value,int length)) -_TT_EXTERN_FUNC(Tt_status,tt_session_types_load, - (_TT_CONST char *sessid, _TT_CONST char *filename)) - - -_TT_EXTERN_FUNC(int,tt_fd,(void)) - -_TT_EXTERN_FUNC(int,tt_mark,(void)) -_TT_EXTERN_FUNC(void,tt_release,(int mark)) -_TT_EXTERN_FUNC(caddr_t,tt_malloc,(size_t s)) -_TT_EXTERN_FUNC(void,tt_free,(caddr_t p)) - -_TT_EXTERN_FUNC(char *,tt_status_message,(Tt_status ttrc)) -_TT_EXTERN_FUNC(Tt_status,tt_pointer_error,(void *pointer)) -_TT_EXTERN_FUNC(Tt_status,tt_int_error,(int return_val)) - -_TT_EXTERN_FUNC(void,tt_error,(const char *func,Tt_status ttrc)) -_TT_EXTERN_FUNC(void *,tt_error_pointer,(Tt_status ttrc)) -_TT_EXTERN_FUNC(int,tt_error_int,(Tt_status ttrc)) - -_TT_EXTERN_FUNC(int,tt_trace_control,(int onoff)) - -_TT_EXTERN_FUNC(char *,tt_message_print,(Tt_message m)) -_TT_EXTERN_FUNC(char *,tt_pattern_print,(Tt_pattern p)) - -_TT_EXTERN_FUNC(char *,tt_file_netfile, (const char *filename)) -_TT_EXTERN_FUNC(char *,tt_netfile_file, (const char *netfilename)) - -_TT_EXTERN_FUNC(char *,tt_host_file_netfile, (const char * host, const char * filename)) -_TT_EXTERN_FUNC(char *,tt_host_netfile_file, (const char * host, const char * netfilename)) -_TT_EXTERN_FUNC(Tt_status,tt_feature_enabled, (Tt_feature f)) -_TT_EXTERN_FUNC(Tt_status,tt_feature_required, (Tt_feature f)) - -_TT_EXTERN_FUNC(char*, tt_AuthFileName, (void)) -_TT_EXTERN_FUNC(int, tt_LockAuthFile, (char*, int, int, long)) -_TT_EXTERN_FUNC(void, tt_UnlockAuthFile, (char*)) -_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_ReadAuthFileEntry, (FILE*)) -_TT_EXTERN_FUNC(void, tt_FreeAuthFileEntry, (Tt_AuthFileEntry)) -_TT_EXTERN_FUNC(int, tt_WriteAuthFileEntry, (FILE*, Tt_AuthFileEntry)) -_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_GetAuthFileEntry, (char*, char*, char*)) -_TT_EXTERN_FUNC(char*, tt_GenerateMagicCookie, (int)) - -#endif /* _XENUMS_ */ - -#define tt_ptr_error(p) tt_pointer_error((void *)(p)) -#define tt_is_err(p) (TT_WRN_LAST < (p)) -#undef _TT_EXTERN_FUNC -#undef _TT_CONST -#endif diff --git a/cde/lib/tt/lib/tttk/tttk.h b/cde/lib/tt/lib/tttk/tttk.h deleted file mode 100644 index f3e9d0d9..00000000 --- a/cde/lib/tt/lib/tttk/tttk.h +++ /dev/null @@ -1,366 +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: tttk.h /main/3 1995/10/23 10:33:00 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. */ - -/* - * @(#)tttk.h 1.11 93/09/29 - */ - -#ifndef tttk_h -#define tttk_h - -#include -#include - -#if defined(__cplusplus) -extern "C" { -#endif - -typedef enum { - TTDT_OP_NONE, - TTDT_CREATED, - TTDT_DELETED, - TTDT_DO_COMMAND, - TTDT_SET_ENVIRONMENT, - TTDT_GET_ENVIRONMENT, - TTDT_SET_GEOMETRY, - TTDT_GET_GEOMETRY, - TTDT_SET_ICONIFIED, - TTDT_GET_ICONIFIED, - TTDT_SET_LOCALE, - TTDT_GET_LOCALE, - TTDT_SET_MAPPED, - TTDT_GET_MAPPED, - TTDT_MODIFIED, - TTDT_REVERTED, - TTDT_GET_MODIFIED, - TTDT_MOVED, - TTDT_PAUSE, - TTDT_RESUME, - TTDT_QUIT, - TTDT_RAISE, - TTDT_LOWER, - TTDT_SAVE, - TTDT_REVERT, - TTDT_SAVED, - TTDT_SET_SITUATION, - TTDT_GET_SITUATION, - TTDT_SIGNAL, - TTDT_STARTED, - TTDT_STOPPED, - TTDT_STATUS, - TTDT_GET_STATUS, - TTDT_GET_SYSINFO, - TTDT_SET_XINFO, - TTDT_GET_XINFO, - TTME_ABSTRACT, - TTME_DEPOSIT, - TTME_DISPLAY, - TTME_EDIT, - TTME_COMPOSE, - TTME_INTERPRET, - TTME_PRINT, - TTME_TRANSLATE, - TTME_MAIL, - TTME_MAIL_COMPOSE, - TTME_MAIL_EDIT, - TTME_INSTANTIATE, - TTDT_OP_LAST -} Tttk_op; - -/* - * Standard vtype names - */ -extern const char *Tttk_integer; -extern const char *Tttk_string; -extern const char *Tttk_boolean; -extern const char *Tttk_file; -extern const char *Tttk_message_id; -extern const char *Tttk_title; -extern const char *Tttk_width; -extern const char *Tttk_height; -extern const char *Tttk_xoffset; -extern const char *Tttk_yoffset; - -/* - ********************************************************************** - * - * Procid lifecycle - * - ********************************************************************** - */ -char *ttdt_open( - int *tt_fd, - const char *toolname, - const char *vendor, - const char *version, - int sendStarted - ); -Tt_status ttdt_sender_imprint_on( - const char *handler, - Tt_message commission, - char **display, - int *width, - int *height, - int *xoffset, - int *yoffset, - XtAppContext app2run, - int ms_timeout - ); -Tt_status ttdt_close( - const char *procid, - const char *newprocid, - int sendStopped - ); -/* - ********************************************************************** - * - * Sessions - * - ********************************************************************** - */ -typedef Tt_message (*Ttdt_contract_cb)( - Tt_message msg, - void *clientdata, - Tt_message contract - ); -Tt_pattern *ttdt_session_join( - const char *sessid, - Ttdt_contract_cb cb, - Widget shell, - void *clientdata, - int join - ); -Tt_status ttdt_session_quit( - const char *sessid, - Tt_pattern *sess_pats, - int quit - ); -/* - ********************************************************************** - * - * Contracts - * - ********************************************************************** - */ -Tt_pattern *ttdt_message_accept( - Tt_message contract, - Ttdt_contract_cb cb, - Widget shell, - void *clientdata, - int accept, - int sendStatus - ); -Tt_pattern *ttdt_subcontract_manage( - Tt_message subcontract, - Ttdt_contract_cb cb, - Widget shell, - void *clientdata - ); -/* - ********************************************************************** - * - * Desktop: Files - * - ********************************************************************** - */ -typedef Tt_message (*Ttdt_file_cb)( - Tt_message msg, - Tttk_op op, - char *pathname, - void *clientdata, - int same_euid_egid, - int same_procid - ); -Tt_pattern *ttdt_file_join( - const char *pathname, - Tt_scope scope, - int join, - Ttdt_file_cb cb, - void *clientdata - ); -Tt_status ttdt_file_event( - Tt_message context, - Tttk_op event, - Tt_pattern *patterns, - int send - ); -Tt_status ttdt_file_quit( - Tt_pattern *patterns, - int quit - ); -int ttdt_Get_Modified( - Tt_message context, - const char *pathname, - Tt_scope scope, - XtAppContext app2run, - int ms_timeout - ); -Tt_status ttdt_Save( - Tt_message context, - const char *pathname, - Tt_scope scope, - XtAppContext app2run, - int ms_timeout - ); -Tt_status ttdt_Revert( - Tt_message context, - const char *pathname, - Tt_scope scope, - XtAppContext app2run, - int ms_timeout - ); -Tt_message ttdt_file_notice( - Tt_message context, - Tttk_op op, - Tt_scope scope, - const char *file, - int send_and_destroy - ); -Tt_message ttdt_file_request( - Tt_message context, - Tttk_op op, - Tt_scope scope, - const char *file, - Ttdt_file_cb cb, - void *clientdata, - int send - ); -/* - ********************************************************************** - * - * Media Exchange - * - ********************************************************************** - */ -typedef Tt_message (*Ttmedia_load_pat_cb)( - Tt_message msg, - void *clientdata, - Tttk_op op, - Tt_status diagnosis, - unsigned char *contents, - int len, - char *file, - char *docname - ); -Tt_status ttmedia_ptype_declare( - const char *ptype, - int base_opnum, - Ttmedia_load_pat_cb cb, - void *clientdata, - int declare - ); -typedef Tt_message (*Ttmedia_load_msg_cb)( - Tt_message msg, - void *clientdata, - Tttk_op op, - unsigned char *contents, - int len, - char *file - ); -Tt_message ttmedia_load( - Tt_message context, - Ttmedia_load_msg_cb cb, - void *clientdata, - Tttk_op op, - const char *media_type, - const unsigned char *contents, - int len, - const char *file, - const char *docname, - int send - ); -Tt_status ttmedia_load_reply( - Tt_message contract, - const unsigned char *new_contents, - int new_len, - int reply_and_destroy - ); -Tt_status ttmedia_Deposit( - Tt_message contract, - const char *buffer_id, - const char *media_type, - const unsigned char *new_contents, - int new_len, - const char *file, - XtAppContext app2run, - int ms_timeout - ); -/* - ********************************************************************** - * - * ToolTalk Toolkit - * - ********************************************************************** - */ -void tttk_Xt_input_handler( - XtPointer procid, - int *, - XtInputId * - ); -Tt_status tttk_block_while( - XtAppContext app2run, - const int *blocked, - int ms_timeout - ); -Tt_message tttk_message_create( - Tt_message context, - Tt_class the_class, - Tt_scope the_scope, - const char *handler, - const char *op, - Tt_message_callback callback - ); -Tt_status tttk_message_destroy( - Tt_message msg - ); -Tt_status tttk_message_reject( - Tt_message msg, - Tt_status status, - const char *status_string, - int destroy - ); -Tt_status tttk_message_fail( - Tt_message msg, - Tt_status status, - const char *status_string, - int destroy - ); -Tt_status tttk_message_abandon( - Tt_message msg - ); -Tttk_op tttk_string_op( - const char *s - ); -char *tttk_op_string( - Tttk_op op - ); -#if defined(__cplusplus) -} -#endif - -#endif