xref: /aosp_15_r20/external/virglrenderer/src/proxy/proxy_server.h (revision bbecb9d118dfdb95f99bd754f8fa9be01f189df3)
1 /*
2  * Copyright 2021 Google LLC
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef PROXY_SERVER_H
7 #define PROXY_SERVER_H
8 
9 #include "proxy_common.h"
10 
11 #include <sys/types.h>
12 
13 struct proxy_server {
14    pid_t pid;
15    int client_fd;
16 };
17 
18 struct proxy_server *
19 proxy_server_create(void);
20 
21 void
22 proxy_server_destroy(struct proxy_server *srv);
23 
24 int
25 proxy_server_connect(struct proxy_server *srv);
26 
27 #endif /* PROXY_SERVER_H */
28