summaryrefslogtreecommitdiff
path: root/src/comm_structs.h
blob: efa72f260e39f367f1c5b666e3cb766e0f461b21 (plain)
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
/**
 * @file
 * @section AUTHORS
 *
 *  Authors:
 *       Eamon Walsh <ewalsh@tycho.nsa.gov>
 *       Mark Rader
 *
 * @section LICENSE
 *
 *  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; under version 2 of the License.
 *
 *  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.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _LINPICKER_COMM_STRUCTS_H_
#define _LINPICKER_COMM_STRUCTS_H_

#include <stdint.h>

/* Messages sent by server */
#define LINPICKER_REQUEST_UPDATE 0

/* Messages sent by client */
#define LINPICKER_RESET 0
#define LINPICKER_CREATE 1
#define LINPICKER_UPDATE 2
#define LINPICKER_DESTROY 3

#define LINPICKER_FLAG_POSITION 1
#define LINPICKER_FLAG_TOPMOST  2
#define LINPICKER_FLAG_BOTMOST  4
#define LINPICKER_FLAG_ABOVE    8
#define LINPICKER_FLAG_BELOW    16
#define LINPICKER_FLAG_HIDDEN   32
#define LINPICKER_FLAG_SHOWN    64

struct lin_message {
	uint32_t type;
	uint32_t view;
	uint32_t flags;
	uint32_t sibling;
	uint32_t x;
	uint32_t y;
	uint32_t w;
	uint32_t h;
};

#endif /* _LINPICKER_COMM_STRUCTS_H_ */