Skip to content
Snippets Groups Projects
Commit ee261c02 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Samuel Thibault
Browse files

slirp: API is extern C


Make it possible to use headers easily with C++ projects.

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
parent 3e0fad3a
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@
#include <arpa/inet.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct Slirp Slirp;
enum {
......@@ -96,5 +100,8 @@ void slirp_socket_recv(Slirp *slirp, struct in_addr guest_addr,
int guest_port, const uint8_t *buf, int size);
size_t slirp_socket_can_recv(Slirp *slirp, struct in_addr guest_addr,
int guest_port);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LIBSLIRP_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment