2
* Copyright 2009 VMware, Inc.
5
* Permission is hereby granted, free of charge, to any person obtaining a
6
* copy of this software and associated documentation files (the "Software"),
7
* to deal in the Software without restriction, including without limitation
8
* on the rights to use, copy, modify, merge, publish, distribute, sub
9
* license, and/or sell copies of the Software, and to permit persons to whom
10
* the Software is furnished to do so, subject to the following conditions:
12
* The above copyright notice and this permission notice (including the next
13
* paragraph) shall be included in all copies or substantial portions of the
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
19
* VMWARE AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22
* USE OR OTHER DEALINGS IN THE SOFTWARE.
26
* This file holds structs decelerations and function prototypes for one of
27
* the rbug extensions. Implementation of the functions is in the same folder
28
* in the c file matching this file's name.
30
* The structs what is returned from the demarshal functions. The functions
31
* starting rbug_send_* encodes a call to the write format and sends that to
32
* the supplied connection, while functions starting with rbug_demarshal_*
33
* demarshal data from the wire protocol.
35
* Structs and functions ending with _reply are replies to requests.
38
#ifndef _RBUG_PROTO_TEXTURE_H_
39
#define _RBUG_PROTO_TEXTURE_H_
41
#include "rbug_proto.h"
42
#include "rbug_core.h"
44
struct rbug_proto_texture_list
46
struct rbug_header header;
49
struct rbug_proto_texture_info
51
struct rbug_header header;
52
rbug_texture_t texture;
55
struct rbug_proto_texture_write
57
struct rbug_header header;
58
rbug_texture_t texture;
71
struct rbug_proto_texture_read
73
struct rbug_header header;
74
rbug_texture_t texture;
84
struct rbug_proto_texture_list_reply
86
struct rbug_header header;
88
rbug_texture_t *textures;
89
uint32_t textures_len;
92
struct rbug_proto_texture_info_reply
94
struct rbug_header header;
112
struct rbug_proto_texture_read_reply
114
struct rbug_header header;
125
int rbug_send_texture_list(struct rbug_connection *__con,
128
int rbug_send_texture_info(struct rbug_connection *__con,
129
rbug_texture_t texture,
132
int rbug_send_texture_write(struct rbug_connection *__con,
133
rbug_texture_t texture,
146
int rbug_send_texture_read(struct rbug_connection *__con,
147
rbug_texture_t texture,
157
int rbug_send_texture_list_reply(struct rbug_connection *__con,
159
rbug_texture_t *textures,
160
uint32_t textures_len,
163
int rbug_send_texture_info_reply(struct rbug_connection *__con,
181
int rbug_send_texture_read_reply(struct rbug_connection *__con,
192
struct rbug_proto_texture_list * rbug_demarshal_texture_list(struct rbug_proto_header *header);
194
struct rbug_proto_texture_info * rbug_demarshal_texture_info(struct rbug_proto_header *header);
196
struct rbug_proto_texture_write * rbug_demarshal_texture_write(struct rbug_proto_header *header);
198
struct rbug_proto_texture_read * rbug_demarshal_texture_read(struct rbug_proto_header *header);
200
struct rbug_proto_texture_list_reply * rbug_demarshal_texture_list_reply(struct rbug_proto_header *header);
202
struct rbug_proto_texture_info_reply * rbug_demarshal_texture_info_reply(struct rbug_proto_header *header);
204
struct rbug_proto_texture_read_reply * rbug_demarshal_texture_read_reply(struct rbug_proto_header *header);