xref: /aosp_15_r20/external/virglrenderer/src/proxy/proxy_client.h (revision bbecb9d118dfdb95f99bd754f8fa9be01f189df3)
1 /*
2  * Copyright 2021 Google LLC
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef PROXY_CLIENT_H
7 #define PROXY_CLIENT_H
8 
9 #include "proxy_common.h"
10 
11 struct proxy_client {
12    struct proxy_socket socket;
13 };
14 
15 struct proxy_client *
16 proxy_client_create(struct proxy_server *srv, uint32_t flags);
17 
18 void
19 proxy_client_destroy(struct proxy_client *client);
20 
21 bool
22 proxy_client_reset(struct proxy_client *client);
23 
24 bool
25 proxy_client_create_context(struct proxy_client *client,
26                             uint32_t ctx_id,
27                             size_t ctx_name_len,
28                             const char *ctx_name,
29                             int *out_ctx_fd);
30 
31 bool
32 proxy_client_destroy_context(struct proxy_client *client, uint32_t ctx_id);
33 
34 #endif /* PROXY_CLIENT_H */
35