X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet6.h;fp=src%2Fcommon%2Fsessiond-comm%2Finet6.h;h=4cb4dca3e038de36aab02a21619572f73092d2aa;hp=0000000000000000000000000000000000000000;hb=6364a07adde1072d595044a19359e61fc27940dd;hpb=a027b2d2edced8011ef674f88146253715952af7 diff --git a/src/common/sessiond-comm/inet6.h b/src/common/sessiond-comm/inet6.h new file mode 100644 index 000000000..4cb4dca3e --- /dev/null +++ b/src/common/sessiond-comm/inet6.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2012 - David Goulet + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2 only, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef _LTTCOMM_INET6_H +#define _LTTCOMM_INET6_H + +#define _GNU_SOURCE +#include + +#include "sessiond-comm.h" + +/* Stub */ +struct lttcomm_sock; + +/* Net family callback */ +extern int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, + int proto); + +extern struct lttcomm_sock *lttcomm_accept_inet6_sock( + struct lttcomm_sock *sock); +extern int lttcomm_bind_inet6_sock(struct lttcomm_sock *sock); +extern int lttcomm_close_inet6_sock(struct lttcomm_sock *sock); +extern int lttcomm_connect_inet6_sock(struct lttcomm_sock *sock); +extern int lttcomm_listen_inet6_sock(struct lttcomm_sock *sock, int backlog); + +extern ssize_t lttcomm_recvmsg_inet6_sock(struct lttcomm_sock *sock, void *buf, + size_t len, int flags); +extern ssize_t lttcomm_sendmsg_inet6_sock(struct lttcomm_sock *sock, void *buf, + size_t len, int flags); + +#endif /* _LTTCOMM_INET6_H */