1f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/*
2f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Copyright 2009 VMware, Inc.
3f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * All Rights Reserved.
4f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
5f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Permission is hereby granted, free of charge, to any person obtaining a
6f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * copy of this software and associated documentation files (the "Software"),
7f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * to deal in the Software without restriction, including without limitation
8f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * on the rights to use, copy, modify, merge, publish, distribute, sub
9f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * license, and/or sell copies of the Software, and to permit persons to whom
10f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the Software is furnished to do so, subject to the following conditions:
11f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
12f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The above copyright notice and this permission notice (including the next
13f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * paragraph) shall be included in all copies or substantial portions of the
14f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Software.
15f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
16f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
19f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * VMWARE AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * USE OR OTHER DEALINGS IN THE SOFTWARE.
23f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
24f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
25f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/*
26f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * This file holds structs decelerations and function prototypes for one of
27f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the rbug extensions. Implementation of the functions is in the same folder
28f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * in the c file matching this file's name.
29f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
30f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The structs what is returned from the demarshal functions. The functions
31f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * starting rbug_send_* encodes a call to the write format and sends that to
32f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the supplied connection, while functions starting with rbug_demarshal_*
33f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * demarshal data from the wire protocol.
34f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
35f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Structs and functions ending with _reply are replies to requests.
36f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
37f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
38f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifndef _RBUG_PROTO_CONTEXT_H_
39f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define _RBUG_PROTO_CONTEXT_H_
40f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
41f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "rbug_proto.h"
42f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "rbug_core.h"
43f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
44f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgtypedef enum
45f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
46f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	RBUG_BLOCK_BEFORE = 1,
47f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	RBUG_BLOCK_AFTER = 2,
48f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	RBUG_BLOCK_RULE = 4,
49f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	RBUG_BLOCK_MASK = 7
50f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org} rbug_block_t;
51f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
52f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_list
53f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
54f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
55f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
56f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
57f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_info
58f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
59f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
60f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
61f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
62f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
63f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_block
64f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
65f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
66f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
67f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t block;
68f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
69f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
70f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_step
71f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
72f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
73f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
74f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t step;
75f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
76f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
77f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_unblock
78f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
79f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
80f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
81f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t unblock;
82f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
83f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
84f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_rule
85f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
86f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
87f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
88f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_shader_t vertex;
89f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_shader_t fragment;
90f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_texture_t texture;
91f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_texture_t surface;
92f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t block;
93f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
94f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
95f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_flush
96f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
97f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
98f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
99f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
100f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
101f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_list_reply
102f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
103f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
104f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	uint32_t serial;
105f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t *contexts;
106f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	uint32_t contexts_len;
107f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
108f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
109f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_info_reply
110f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
111f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
112f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	uint32_t serial;
113f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_shader_t vertex;
114f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_shader_t fragment;
115f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_texture_t *texs;
116f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	uint32_t texs_len;
117f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_texture_t *cbufs;
118f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	uint32_t cbufs_len;
119f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_texture_t zsbuf;
120f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t blocker;
121f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t blocked;
122f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
123f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
124f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_blocked
125f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
126f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	struct rbug_header header;
127f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_context_t context;
128f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org	rbug_block_t block;
129f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
130f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
131f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_list(struct rbug_connection *__con,
132f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                           uint32_t *__serial);
133f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
134f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_info(struct rbug_connection *__con,
135f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                           rbug_context_t context,
136f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                           uint32_t *__serial);
137f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
138f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_draw_block(struct rbug_connection *__con,
139f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_context_t context,
140f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_block_t block,
141f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t *__serial);
142f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
143f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_draw_step(struct rbug_connection *__con,
144f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_context_t context,
145f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_block_t step,
146f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                uint32_t *__serial);
147f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
148f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_draw_unblock(struct rbug_connection *__con,
149f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   rbug_context_t context,
150f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   rbug_block_t unblock,
151f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   uint32_t *__serial);
152f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
153f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_draw_rule(struct rbug_connection *__con,
154f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_context_t context,
155f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_shader_t vertex,
156f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_shader_t fragment,
157f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_texture_t texture,
158f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_texture_t surface,
159f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                rbug_block_t block,
160f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                uint32_t *__serial);
161f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
162f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_flush(struct rbug_connection *__con,
163f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                            rbug_context_t context,
164f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                            uint32_t *__serial);
165f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
166f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_list_reply(struct rbug_connection *__con,
167f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t serial,
168f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_context_t *contexts,
169f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t contexts_len,
170f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t *__serial);
171f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
172f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_info_reply(struct rbug_connection *__con,
173f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t serial,
174f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_shader_t vertex,
175f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_shader_t fragment,
176f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_texture_t *texs,
177f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t texs_len,
178f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_texture_t *cbufs,
179f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t cbufs_len,
180f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_texture_t zsbuf,
181f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_block_t blocker,
182f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 rbug_block_t blocked,
183f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                 uint32_t *__serial);
184f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
185f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgint rbug_send_context_draw_blocked(struct rbug_connection *__con,
186f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   rbug_context_t context,
187f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   rbug_block_t block,
188f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                   uint32_t *__serial);
189f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
190f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_list * rbug_demarshal_context_list(struct rbug_proto_header *header);
191f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
192f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_info * rbug_demarshal_context_info(struct rbug_proto_header *header);
193f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
194f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_block * rbug_demarshal_context_draw_block(struct rbug_proto_header *header);
195f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
196f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_step * rbug_demarshal_context_draw_step(struct rbug_proto_header *header);
197f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
198f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_unblock * rbug_demarshal_context_draw_unblock(struct rbug_proto_header *header);
199f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
200f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_rule * rbug_demarshal_context_draw_rule(struct rbug_proto_header *header);
201f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
202f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_flush * rbug_demarshal_context_flush(struct rbug_proto_header *header);
203f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
204f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_list_reply * rbug_demarshal_context_list_reply(struct rbug_proto_header *header);
205f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
206f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_info_reply * rbug_demarshal_context_info_reply(struct rbug_proto_header *header);
207f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
208f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgstruct rbug_proto_context_draw_blocked * rbug_demarshal_context_draw_blocked(struct rbug_proto_header *header);
209f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
210f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif
211