home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef STRUCTURES_H
- #define STRUCTURES_H
- /*
- ** $Filename: Structures.h $
- ** $Revision: 2.0 $
- ** $Release: 2.21 $
- ** $Date : 92/09/12 $
- **
- **
- ** (C) Copyright 1992 David Scrève
- ** All Rights Reserved
- */
-
-
- #include "menus_values.h"
- #include <dos/dos.h>
- #include <libraries/Gadtools.h>
-
- /* New for Release 2.2 : Adaptive Application Screen Title */
-
- #define AppliNameFrancais "DP Managing 68030/68882 Version 2.21 By David Scrève © 1992"
- #define AppliNameEnglish "DP Managing 68030/68882 Release 2.21 By David Scrève © 1992"
-
- /* New for Gadtools.h V37 */
- #define GT_Underscore GT_TagBase+64
-
- #define STD_STRING_LEN 65
- #define EXSTD_STRING_LEN 200
- #define BUFFER_SIZE 65536L
- #define DISK_SIZE 830000L
-
- #define NO_ERROR 0L
- #define ALLOC_MEM_ERR 1L
- #define OBJECT_NOT_CREATED 2L
- #define OPERATION_CANCELED 3L
- #define DEALLOC_MEM_ERR 4L
- #define UNAUTHORIZED_PEOPLE 5L
- #define UNKNOWN_DISK_ERROR 6L
- #define EOF_REACHED 7L
-
- /* Define for checking the directory Names in Tooltypes 's icon*/
- #define SLASH 47
- #define DOUBLE_POINT 58
-
- /* Value returned by the different modules */
-
- #define MOD_STATISTIQUES 2L
- #define MOD_MAINTENANCE 3L
- #define MOD_CONSULTATION 4L
- #define MOD_EMPRUNTS 5L
- #define MOD_AJOUT 6L
- #define MOD_QUIT 7L
- #define CHANGE_LANGUAGE 11L
-
- /* The NeXT Step will be 12L */
-
-
- /* Hera are value for different languages */
- #define FRANCAIS 0L
- #define ENGLISH 1L
-
-
- /* global Datas */
-
- /* for the printer */
-
- #define MaxLenProg 22
- #define MaxLenDisk 6
- #define MaxLenTaille 6
- #define MaxLenComment 56
- #define MaxLenConfig 33
-
-
- /* this structure is used with the disk management */
- struct programme
- {
- LONG taille;
- LONG disk;
- char categorie[STD_STRING_LEN];
- char nom[STD_STRING_LEN];
- char comment[STD_STRING_LEN];
- char config[STD_STRING_LEN];
- };
-
- /* this structure is used with the memory management */
- struct ProgMem
- {
- struct programme program;
- BOOL special;
- BOOL news;
- };
-
- struct adhrent
- {
- char nom[STD_STRING_LEN];
- char prenom[STD_STRING_LEN];
- LONG age;
- LONG NbCommandes;
- LONG NbPrgEmp;
- };
-
- struct DiskHeader
- {
- LONG numero;
- LONG FreeSize;
- };
-
- /* this structure is used with the disk management */
- struct CateHeader
- {
- char code_serveur[3];
- LONG nb_emprunts;
- };
-
- /* this structure is used with the memory management */
- struct CateMem
- {
- char nom[STD_STRING_LEN];
- struct CateHeader head;
- };
-
- struct SoftRecord
- {
- char nom[STD_STRING_LEN];
- LONG indice;
- };
-
- struct OneEmprunt
- {
- char nom[STD_STRING_LEN];
- LONG indice;
- LONG disk;
- LONG taille;
- };
-
- struct OneCommande
- {
- struct DateStamp date;
- LONG taille;
- LONG nbemprunts;
- char emprunteur[STD_STRING_LEN];
- struct OneEmprunt lesprog[5];
- };
-
- /* this strange structure is returned by DoubleManageError */
- /* Also we known if the user canceled the double requester or click */
- /* on the OK button when all was good ( NO_ERROR Value ) */
-
- struct DoubleAnswer
- {
- BOOL arret;
- BOOL OK;
- };
-
- #endif /* STRUCTURES_H */