aboutsummaryrefslogtreecommitdiff
path: root/src/proxy/proxy_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxy/proxy_client.h')
-rw-r--r--src/proxy/proxy_client.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/proxy/proxy_client.h b/src/proxy/proxy_client.h
new file mode 100644
index 00000000..d20af311
--- /dev/null
+++ b/src/proxy/proxy_client.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2021 Google LLC
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef PROXY_CLIENT_H
+#define PROXY_CLIENT_H
+
+#include "proxy_common.h"
+
+struct proxy_client {
+ struct proxy_socket socket;
+};
+
+struct proxy_client *
+proxy_client_create(struct proxy_server *srv, uint32_t flags);
+
+void
+proxy_client_destroy(struct proxy_client *client);
+
+bool
+proxy_client_reset(struct proxy_client *client);
+
+bool
+proxy_client_create_context(struct proxy_client *client,
+ uint32_t ctx_id,
+ size_t ctx_name_len,
+ const char *ctx_name,
+ int *out_ctx_fd);
+
+bool
+proxy_client_destroy_context(struct proxy_client *client, uint32_t ctx_id);
+
+#endif /* PROXY_CLIENT_H */