Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
 
22
/**
23
 ------------
24
 CVS :        $Id: cabs.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
25
 
26
 File:        $File$
27
 Revision:    $Revision: 1.1.1.1 $
28
 Last update: $Date: 2002-03-29 14:12:51 $
29
 ------------
30
 
31
 This file contains the Hartik 3.3.1 CAB functions
32
 
33
 
34
 Author:      Gerardo Lamastra
35
              Giuseppe Lipari
36
 Date:        9/5/96
37
 
38
 File:        Cabs.H
39
 Revision:    1.1
40
 Date:  14/3/97
41
 
42
**/
43
 
44
/*
45
 * Copyright (C) 2000 Paolo Gai
46
 *
47
 * This program is free software; you can redistribute it and/or modify
48
 * it under the terms of the GNU General Public License as published by
49
 * the Free Software Foundation; either version 2 of the License, or
50
 * (at your option) any later version.
51
 *
52
 * This program is distributed in the hope that it will be useful,
53
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
54
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
55
 * GNU General Public License for more details.
56
 *
57
 * You should have received a copy of the GNU General Public License
58
 * along with this program; if not, write to the Free Software
59
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
60
 *
61
 */
62
 
63
/* $HEADER+ */
64
 
65
#ifndef __CAB_H__
66
#define __CAB_H__
67
 
68
#include <ll/sys/types.h>
69
 
70
#define MAX_CAB_NAME 10               /*+ Max. n. of chars for a CAB   +*/
71
 
72
#define MAX_CAB         10U           /*+ Maximum number of CABs       +*/
73
 
74
 
75
typedef int CAB;
76
 
77
/*+ This function must be inserted in the __hartik_register_levels__ +*/
78
void CABS_register_module(void);
79
 
80
/* User level CAB primitives */
81
CAB cab_create(char *name, int dim_mes, BYTE num_mes);
82
char *cab_reserve(CAB id);
83
int cab_putmes(CAB id, char *pbuf);
84
char *cab_getmes(CAB id);
85
int cab_unget(CAB id, char *pun_mes);
86
void cab_delete(CAB id);
87
 
88
 
89
#endif /* __CAB_H__ */
90