Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / tools / Edit / IPC_Prefs.h
blobe4597f6aee4d7e2b2d12d98cd0a886468eddbd7b
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 ***************************************************************/
7 #ifndef IPC_PREFS_H
8 #define IPC_PREFS_H
10 #define JANOPREFS_PORT "JANOPREF"
11 #define JANO_PORT "JANO"
13 /** Packet used to communicate between process **/
14 struct JPacket
16 struct Message Msg; /* Exec's message */
17 ULONG class; /* Class of message (see below) */
18 # ifdef UTILITY_H
19 union {
20 PREFS prefs; /* Preference data */
21 StartUpArgs *args; /* List of file to edit */
22 } msg;
23 # else
24 PREFS prefs; /* args in needed only in Events.c */
25 # endif
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 );
45 #endif