summaryrefslogtreecommitdiff
path: root/api.h
blob: 2dd6eb5af78ad05e0c146a84497bba1c8b1bd518 (plain)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SLIRP4NETNS_API_H
# define SLIRP4NETNS_API_H
int api_bindlisten(const char *api_socket);
struct api_ctx;
struct slirp4netns_config;
struct api_ctx *api_ctx_alloc(struct slirp4netns_config *cfg);
void api_ctx_free(struct api_ctx *ctx);
int api_handler(Slirp * slirp, int listenfd, struct api_ctx *ctx);
#endif