1 /* 2 * Copyright 2021 Google LLC 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #ifndef PROXY_COMMON_H 7 #define PROXY_COMMON_H 8 9 #include <assert.h> 10 #include <errno.h> 11 #include <inttypes.h> 12 #include <stdatomic.h> 13 #include <stdbool.h> 14 #include <stddef.h> 15 #include <stdint.h> 16 #include <stdlib.h> 17 #include <string.h> 18 19 #include "util/hash_table.h" 20 #include "util/list.h" 21 #include "util/macros.h" 22 #include "virgl_util.h" 23 #include "virglrenderer.h" 24 25 #include "proxy_renderer.h" 26 #include "proxy_socket.h" 27 28 struct proxy_client; 29 struct proxy_context; 30 struct proxy_server; 31 struct proxy_socket; 32 33 struct proxy_renderer { 34 const struct proxy_renderer_cbs *cbs; 35 uint32_t flags; 36 37 struct proxy_server *server; 38 struct proxy_client *client; 39 }; 40 41 extern struct proxy_renderer proxy_renderer; 42 43 void 44 proxy_log(const char *fmt, ...); 45 46 #endif /* PROXY_COMMON_H */ 47