aboutsummaryrefslogtreecommitdiff
path: root/src/proxy/proxy_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxy/proxy_server.h')
-rw-r--r--src/proxy/proxy_server.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/proxy/proxy_server.h b/src/proxy/proxy_server.h
new file mode 100644
index 00000000..1b5ca02b
--- /dev/null
+++ b/src/proxy/proxy_server.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2021 Google LLC
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef PROXY_SERVER_H
+#define PROXY_SERVER_H
+
+#include "proxy_common.h"
+
+#include <sys/types.h>
+
+struct proxy_server {
+ pid_t pid;
+ int client_fd;
+};
+
+struct proxy_server *
+proxy_server_create(void);
+
+void
+proxy_server_destroy(struct proxy_server *srv);
+
+int
+proxy_server_connect(struct proxy_server *srv);
+
+#endif /* PROXY_SERVER_H */