source: Main/src/test_lib/DrafterPrivateDefs.h @ 27

Revision 27, 934 bytes checked in by duggan, 18 months ago (diff)

Added test client. When server is running, client makes dummy request for context. Server returns dummy contextid.

Line 
1/*
2 * Copyright 2011 Dewey Taylor (james.dewey.taylor@gmail.com)
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5#ifndef DRAFTERPRIVATEDEFS_H
6#define DRAFTERPRIVATEDEFS_H
7
8// Include OS specific headers
9#ifdef __HAIKU__
10#include <SupportDefs.h>
11#include <OS.h>
12#endif
13
14
15// Declare OS specific variables
16#ifdef __HAIKU__
17
18//static area_id context_area = B_ERROR; // invalid default
19//static char* context_addr = NULL;
20
21#define CONTEXT_AREA_NAME "Drafter Context Area"
22#define CONTEXT_AREA_CLONE_NAME "Drafter Context Area Clone"
23
24#endif
25
26
27#define DRAFTER_BUFFER_SIZE 4096
28
29enum ContextFlags {
30        DRAFTER_CONTEXT_USED = 1,
31        DRAFTER_FULLSCREEN = 2,
32        DRAFTER_BUFFER_FULL = 4
33};
34
35struct ContextData
36{
37        uint32 flags;
38        uint32 width;
39        uint32 height;
40        char* teamID;
41        uint32 workspace;
42        uint32 zLevel;
43        uint32 device;
44};
45
46//static ContextData* contexts;
47//static uint32* contextCount;
48
49
50#endif // DRAFTERPRIVATEDEFS_H
Note: See TracBrowser for help on using the repository browser.