1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
/*
* xtel - Emulateur MINITEL sous X11
*
* Copyright (C) 1991-1994 Lectra Systemes & Pierre Ficheux
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ident "$Id: xtel.h,v 1.10 2001/02/11 00:05:52 pierre Exp $"
#ifndef _xtel_h
#define _xtel_h
/*
* definition des constantes
*/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#ifdef NO_NETWORK
#include <sys/socket.h>
#include <sys/un.h>
struct sockaddr_un unaddr;
#endif /* NO_NETWORK */
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/Xos.h>
#include "demon.h"
/* le widget Videotex */
#include "Videotex.h"
/* Mode d'impression */
#define ASCII 0
#define VIDEOTEX 1
/* Telechargement */
#define X_MODEM 0
#define Y_MODEM 1
#define Z_MODEM 2
/* Pour le mode Tele-informatique */
#define MODE_VIDEOTEX 0
#define MODE_TELEINFO_ASCII 1
#define MODE_TELEINFO_FR 2
/* Type d'arret */
#define ARRET_FF 1
#define ARRET_SUITE 2
/* definition d'une touche MINITEL */
struct definition_touche {
char *nom;
char *code;
};
/* ressources de Xtel */
typedef struct _ressources_xtel {
String serveur;
Boolean petiteFonte;
Boolean nGris;
String commandeImpression;
String commandeImpressionAscii;
String nomService;
String typeArret;
Boolean boutonRaccrocher;
Boolean lowMemory;
Boolean privateColormap;
String string[9];
String erreur[4];
} ressources_xtel;
/* nb de procedures */
#define MAXPROC 10
#define P_PROC 0
#define P_SERV 1
#define P_WAIT 2
#define P_TRAN 3
#define P_REC 4
#define P_WRI 5
#define P_HUP 6
#define P_EXI 7
#define P_ADMP 8
#define P_PDMP 9
struct keyword {
char *mnemonic;
char alias;
char type;
};
struct procedure {
char *nom;
char *service;
struct d {
char type;
struct d *suivant;
union {
char *attente;
char *emission;
char *filename;
char state;
} p;
} *d;
};
/* Protocoles de telechargement */
#define MAXPROTO 10
/* Procedure */
struct protocole {
char *nom;
char *commande;
};
/* Definitions globales */
#include "global.h"
#endif
|