UNIXworkcode

1 /******************************************************************************* 2 * * 3 * server_common.h -- Nirvana Editor common server stuff * 4 * * 5 * Copyright (C) 1999 Mark Edel * 6 * * 7 * This is free software; you can redistribute it and/or modify it under the * 8 * terms of the GNU General Public License as published by the Free Software * 9 * Foundation; either version 2 of the License, or (at your option) any later * 10 * version. In addition, you may distribute versions of this program linked to * 11 * Motif or Open Motif. See README for details. * 12 * * 13 * This software is distributed in the hope that it will be useful, but WITHOUT * 14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * 16 * more details. * 17 * * 18 * You should have received a copy of the GNU General Public License along with * 19 * software; if not, write to the Free Software Foundation, Inc., 59 Temple * 20 * Place, Suite 330, Boston, MA 02111-1307 USA * 21 * * 22 * Nirvana Text Editor * 23 * November, 1995 * 24 * * 25 * Written by Mark Edel * 26 * * 27 *******************************************************************************/ 28 29 #ifndef NEDIT_SERVER_COMMON_H_INCLUDED 30 #define NEDIT_SERVER_COMMON_H_INCLUDED 31 32 #include <X11/Intrinsic.h> 33 34 /* Lets limit the unique server name to MAXPATHLEN */ 35 #define MAXSERVERNAMELEN MAXPATHLEN 36 37 #define DEFAULTSERVERNAME "" 38 39 void CreateServerPropertyAtoms(const char *serverName, 40 Atom *serverExistsAtomReturn, 41 Atom *serverRequestAtomReturn); 42 Atom CreateServerFileOpenAtom(const char *serverName, 43 const char *path); 44 Atom CreateServerFileClosedAtom(const char *serverName, 45 const char *path, 46 Bool only_if_exists); 47 void DeleteServerFileAtoms(const char* serverName, Window rootWindow); 48 49 #endif /* NEDIT_SERVER_COMMON_H_INCLUDED */ 50