1 /* GNUPLOT - gpexecute.h */ 2 3 /*[ 4 * Permission to use, copy, and distribute this software and its 5 * documentation for any purpose with or without fee is hereby granted, 6 * provided that the above copyright notice appear in all copies and 7 * that both that copyright notice and this permission notice appear 8 * in supporting documentation. 9 * 10 * Permission to modify the software is granted, but not the right to 11 * distribute the complete modified source code. Modifications are to 12 * be distributed as patches to the released version. Permission to 13 * distribute binaries produced by compiling modified sources is granted, 14 * provided you 15 * 1. distribute the corresponding source modifications from the 16 * released version in the form of a patch file along with the binaries, 17 * 2. add special version identification to distinguish your version 18 * in addition to the base release version number, 19 * 3. provide your name and address as the primary contact for the 20 * support of your modified version, and 21 * 4. retain our contact information in regard to use of the base 22 * software. 23 * Permission to distribute the released version of the source code along 24 * with corresponding source modifications in the form of a patch file is 25 * granted with same provisions 2 through 4 for binary distributions. 26 * 27 * This software is provided "as is" without express or implied warranty 28 * to the extent permitted by applicable law. 29 ]*/ 30 31 /* 32 * AUTHORS 33 * 34 * Original Software (October 1999 - January 2000): 35 * Pieter-Tjerk de Boer <ptdeboer@cs.utwente.nl> 36 * Petr Mikulik <mikulik@physics.muni.cz> 37 * Johannes Zellner <johannes@zellner.org> 38 */ 39 40 #ifndef GPEXECUTE_H 41 #define GPEXECUTE_H 42 43 #include "syscfg.h" 44 #include "mousecmn.h" 45 46 #ifdef OS2_IPC 47 48 #define INCL_DOSPROCESS 49 #define INCL_DOSSEMAPHORES 50 #include <os2.h> 51 52 void gp_execute(char *command); 53 extern char mouseShareMemName[]; 54 55 extern PVOID input_from_PM_Terminal; 56 extern HEV semInputReady; 57 extern int pausing; 58 extern ULONG ppidGnu; 59 60 /* forward declarations */ 61 void gp_post_shared_mem __PROTO((void)); 62 void gp_execute __PROTO((char *s)); 63 64 #endif /* OS2_IPC */ 65 66 #ifdef PIPE_IPC 67 68 extern int pipe_died; 69 RETSIGTYPE pipe_died_handler __PROTO((int signum)); 70 71 #endif /* PIPE_IPC */ 72 73 #if defined(PIPE_IPC) || defined(WIN_IPC) 74 75 typedef struct gpe_fifo_t { 76 struct gpe_fifo_t* prev; 77 struct gp_event_t ge; 78 struct gpe_fifo_t* next; 79 } gpe_fifo_t; 80 extern int buffered_output_pending; 81 82 #endif /* PIPE_IPC || WIN_IPC */ 83 84 85 void gp_exec_event __PROTO((char type, int mx, int my, int par1, int par2, int winid)); 86 87 #endif /* GPEXECUTE_H */ 88