Subversion Repositories shark

Rev

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

Rev Author Line No. Line
669 trimarchi 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
 *   Giacomo Guidi       <giacomo@gandalf.sssup.it>
10
 *   Michael Trimarchi   <trimarchi@gandalf.sssup.it>
11
 *   (see the web pages for full authors list)
12
 *
13
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
14
 *
15
 * http://www.sssup.it
16
 * http://retis.sssup.it
17
 * http://shark.sssup.it
18
 */
19
 
20
/*
21
 * Copyright (C) 2002 Paolo Gai
22
 *
23
 * This program is free software; you can redistribute it and/or modify
24
 * it under the terms of the GNU General Public License as published by
25
 * the Free Software Foundation; either version 2 of the License, or
26
 * (at your option) any later version.
27
 *
28
 * This program is distributed in the hope that it will be useful,
29
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31
 * GNU General Public License for more details.
32
 *
33
 * You should have received a copy of the GNU General Public License
34
 * along with this program; if not, write to the Free Software
35
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
36
 *
37
 */
38
 
39
 
40
#ifndef __MESSAGE_H__
41
#define __MESSAGE_H__
42
 
908 trimarchi 43
typedef enum {
669 trimarchi 44
 NO_TYPE=-1,
45
 NEGOTIATE_CONTRACT,
46
 RENEGOTIATE_CONTRACT,
866 trimarchi 47
 REQUEST_RENEGOTIATE_CONTRACT,
669 trimarchi 48
 CHANGE_PARAMETER,
866 trimarchi 49
 WAIT_NEGOTIATE,
679 trimarchi 50
 NUM_MESSAGE,
51
 } message_type;
669 trimarchi 52
 
908 trimarchi 53
typedef struct qual_imp {
54
  int importance;
55
  int quality;
56
} qual_imp;
57
 
58
 
866 trimarchi 59
typedef struct mess {
669 trimarchi 60
  message_type type;
679 trimarchi 61
  fsf_server_id_t server;
908 trimarchi 62
  union {
63
    fsf_contract_parameters_t contract;
64
    qual_imp qi;
65
  }
679 trimarchi 66
} mess;
669 trimarchi 67
 
68
 
69
#endif