-
Notifications
You must be signed in to change notification settings - Fork 1
/
lock_data.h
28 lines (25 loc) · 829 Bytes
/
lock_data.h
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
/* lock_data.h - request and grant locks among cloud boxes
*
* Copyright (C) 2012, Greg Johnson
* Released under the terms of the GNU GPL v2.0.
*
* 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.
*
* $Id: lock_data.h,v 1.6 2012-02-22 18:55:25 greg Exp $
*/
#ifndef LOCK_DATA_H
#define LOCK_DATA_H
#include "mac.h"
/* request from one cloud box to another to lock the (logical) arc connecting
* the boxes; we intend to change graph connectivity and want to own the
* arc while we are doing it.
*/
typedef struct {
mac_address_t originator;
mac_address_t node_1;
mac_address_t node_2;
} lock_message_t;
#endif