1 /***************************************************************
2 **** IPC_Prefs.h: Datatypes used to communicate with Jano ****
3 **** Free software under GNU license, started on 11/11/2000 ****
4 **** Written by T.Pierron ****
5 ***************************************************************/
10 #define JANOPREFS_PORT "JANOPREF"
11 #define JANO_PORT "JANO"
13 /** Packet used to communicate between process **/
16 struct Message Msg
; /* Exec's message */
17 ULONG
class; /* Class of message (see below) */
20 PREFS prefs
; /* Preference data */
21 StartUpArgs
*args
; /* List of file to edit */
24 PREFS prefs
; /* args in needed only in Events.c */
28 /** Possible values of class field (Jano & pref) **/
29 #define CMD_SHOW (CMD_NONSTD+1) /* CMD_NONSTD defined in exec/io.h */
30 #define CMD_KILL (CMD_NONSTD+2)
31 #define CMD_PREF (CMD_NONSTD+3) /* Copy local prefs into message */
32 #define CMD_NEWPREF (CMD_NONSTD+4) /* Copy message prefs into local */
33 #define CMD_SAVPREF (CMD_NONSTD+5) /* Copy and save message prefs into local */
35 /** JanoEditor only **/
36 #define CMD_NEWEDIT (CMD_NONSTD+6)
38 ULONG
create_port( void ); /* Create control port */
39 void handle_port( void ); /* Process commands */
40 char find_prefs( void ); /* Search for preference port */
41 char send_jano(PREFS
*, ULONG
); /* Send new pref struct to Jano */
42 char find_jano(PREFS
*); /* Try to find Jano and ask for its preference */
43 void close_port( void );