Remove extern "C" from internal headers
[lttng-tools.git] / src / common / sessiond-comm / inet.h
index 83209bb719fff759e4719ed48f34cf69bb8fd7a2..fd7cffedef1c11edb6d615e05b30f855365800cf 100644 (file)
@@ -1,24 +1,13 @@
 /*
- * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
+ * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
  *
- * 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.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * 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_INET_H
 #define _LTTCOMM_INET_H
 
-#define _GNU_SOURCE
 #include <limits.h>
 
 #include "sessiond-comm.h"
@@ -41,7 +30,7 @@
  * Maximum timeout value in seconds of a TCP connection for both send/recv and
  * connect operations.
  */
-extern unsigned long lttcomm_inet_tcp_timeout;
+LTTNG_EXPORT extern unsigned long lttcomm_inet_tcp_timeout;
 
 /* Stub */
 struct lttcomm_sock;
@@ -58,8 +47,8 @@ extern int lttcomm_listen_inet_sock(struct lttcomm_sock *sock, int backlog);
 
 extern ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf,
                size_t len, int flags);
-extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf,
-               size_t len, int flags);
+extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock,
+               const void *buf, size_t len, int flags);
 
 /* Initialize inet communication layer. */
 extern void lttcomm_inet_init(void);
This page took 0.024819 seconds and 4 git commands to generate.