mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove extern "C"
This commit is contained in:
parent
d98fe63695
commit
8f974511fe
35 changed files with 3 additions and 279 deletions
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
struct io;
|
||||
|
@ -106,7 +102,3 @@ struct format_type {
|
|||
struct format_type * format_type_lookup(const char *name);
|
||||
|
||||
const char * format_type_name(struct format_type *vt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations. */
|
||||
struct io;
|
||||
struct sample;
|
||||
|
@ -37,7 +33,3 @@ void csv_header(struct io *io, const struct sample *smp);
|
|||
|
||||
int csv_sprint(struct io *io, char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt);
|
||||
int csv_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
|
||||
#include <jansson.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
struct io;
|
||||
|
@ -37,7 +33,3 @@ int json_reserve_sscan(struct io *io, const char *buf, size_t len, size_t *rbyte
|
|||
|
||||
int json_reserve_print(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
int json_reserve_scan(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
|
||||
#include <jansson.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
|
||||
|
@ -37,6 +33,3 @@ int json_sscan(struct io *io, const char *buf, size_t len, size_t *wbytes, struc
|
|||
int json_print(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
int json_scan(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declaration */
|
||||
struct msg;
|
||||
struct sample;
|
||||
|
@ -58,7 +54,3 @@ int msg_to_sample(struct msg *msg, struct sample *smp, struct vlist *signals);
|
|||
|
||||
/** Copy fields form \p smp into \p msg. */
|
||||
int msg_from_sample(struct msg *msg, struct sample *smp, struct vlist *signals);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** The current version number for the message format */
|
||||
#define MSG_VERSION 2
|
||||
|
||||
|
@ -86,7 +82,3 @@ struct msg
|
|||
uint32_t i; /**< Integer values. */
|
||||
} data[];
|
||||
} __attribute__((packed));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
|
||||
|
@ -38,6 +34,3 @@ int protobuf_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, struct
|
|||
/** Read struct sample's from buffer \p buf into samples \p smps. */
|
||||
int protobuf_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* float128 is currently not yet supported as htole128() functions a missing */
|
||||
#if 0 && defined(__GNUC__) && defined(__linux__)
|
||||
#define HAS_128BIT
|
||||
|
@ -57,6 +53,3 @@ int raw_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, struct samp
|
|||
/** Read struct sample's from buffer \p buf into samples \p smps. */
|
||||
int raw_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations. */
|
||||
struct sample;
|
||||
struct msg;
|
||||
|
@ -43,7 +39,3 @@ int villas_binary_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, s
|
|||
|
||||
/** Read struct sample's from buffer \p buf into samples \p smps. */
|
||||
int villas_binary_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct io;
|
||||
struct sample;
|
||||
|
@ -37,7 +33,3 @@ void villas_human_header(struct io *io, const struct sample *smp);
|
|||
|
||||
int villas_human_print(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
int villas_human_scan(struct io *io, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -33,10 +33,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum hook_flags {
|
||||
HOOK_BUILTIN = (1 << 0), /**< Should we add this hook by default to every path?. */
|
||||
HOOK_PATH = (1 << 1), /**< This hook type is used by paths. */
|
||||
|
@ -50,7 +46,3 @@ enum hook_reason {
|
|||
HOOK_SKIP_SAMPLE,
|
||||
HOOK_STOP_PROCESSING
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include <villas/node.h>
|
||||
#include <villas/signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
struct format_type;
|
||||
|
@ -150,7 +146,3 @@ int io_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct
|
|||
* @retval <0 Something went wrong.
|
||||
*/
|
||||
int io_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, struct sample *smps[], unsigned cnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -35,10 +35,6 @@
|
|||
|
||||
#include <villas/list.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define IF_IRQ_MAX 3 /**< Maxmimal number of IRQs of an interface */
|
||||
|
||||
#ifndef SO_MARK
|
||||
|
@ -134,8 +130,4 @@ int if_get_irqs(struct interface *i);
|
|||
*/
|
||||
int if_set_affinity(struct interface *i, int affinity);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/** @} */
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#include <netlink/route/route.h>
|
||||
#include <netlink/route/link.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Get index of outgoing interface for given destination address.
|
||||
*
|
||||
* @retval >=0 Interface index of outgoing interface.
|
||||
|
@ -48,8 +44,4 @@ struct nl_sock *nl_init();
|
|||
/** Close and free global netlink socket. */
|
||||
void nl_shutdown();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -39,10 +39,6 @@
|
|||
|
||||
#include <jansson.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef uint32_t tc_hdl_t;
|
||||
|
||||
struct interface;
|
||||
|
@ -78,8 +74,4 @@ int tc_prio(struct interface *i, struct rtnl_qdisc **qd, tc_hdl_t handle, tc_hdl
|
|||
*/
|
||||
int tc_mark(struct interface *i, struct rtnl_cls **cls, tc_hdl_t flowid, uint32_t mark);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -39,10 +39,6 @@
|
|||
|
||||
#include <jansson.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef uint32_t tc_hdl_t;
|
||||
|
||||
struct interface;
|
||||
|
@ -76,8 +72,4 @@ int tc_netem(struct interface *i, struct rtnl_qdisc **qd, tc_hdl_t handle, tc_hd
|
|||
|
||||
int tc_netem_set_delay_distribution(struct rtnl_qdisc *qdisc, json_t *json);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include <villas/stats.h>
|
||||
#include <villas/common.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct node;
|
||||
struct sample;
|
||||
|
@ -101,7 +97,3 @@ int mapping_list_parse(struct vlist *ml, json_t *cfg, struct vlist *nodes);
|
|||
int mapping_list_prepare(struct vlist *ml);
|
||||
|
||||
int mapping_list_remap(const struct vlist *ml, struct sample *remapped, const struct sample *original);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
#include <villas/node/config.h>
|
||||
#include <villas/memory_type.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct node;
|
||||
|
||||
|
@ -85,7 +81,3 @@ void * memory_alloc_aligned(struct memory_type *m, size_t len, size_t alignment)
|
|||
int memory_free(void *ptr);
|
||||
|
||||
struct memory_allocation * memory_get_allocation(void *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -25,17 +25,9 @@
|
|||
|
||||
#include <villas/node.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct memory_ib {
|
||||
struct ibv_pd *pd;
|
||||
struct memory_type *parent;
|
||||
};
|
||||
|
||||
struct ibv_mr * memory_ib_get_mr(void *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -26,10 +26,6 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct memory_type;
|
||||
struct node;
|
||||
|
@ -66,6 +62,3 @@ int memory_hugepage_init(int hugepages);
|
|||
|
||||
struct memory_type * memory_type_lookup(enum memory_type_flags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -43,10 +43,6 @@
|
|||
#define WITH_NETEM
|
||||
#endif /* LIBNL3_ROUTE_FOUND */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
#ifdef WITH_NETEM
|
||||
struct rtnl_qdisc;
|
||||
|
@ -204,8 +200,4 @@ bool node_is_enabled(const struct node *n);
|
|||
|
||||
struct vlist * node_get_signals(struct node *n, enum node_dir dir);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -33,10 +33,6 @@
|
|||
#include <villas/common.h>
|
||||
#include <villas/list.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct node;
|
||||
|
||||
|
@ -76,7 +72,3 @@ int node_direction_destroy(struct node_direction *nd, struct node *n);
|
|||
struct vlist * node_direction_get_signals(struct node_direction *nd);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -24,10 +24,6 @@
|
|||
* @{
|
||||
*********************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <jansson.h>
|
||||
|
@ -245,8 +241,4 @@ const char * node_type_name(struct node_type *vt);
|
|||
|
||||
struct node_type * node_type_lookup(const char *name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <bitset>
|
||||
|
||||
#include <pthread.h>
|
||||
#include <jansson.h>
|
||||
|
||||
|
@ -39,13 +41,7 @@
|
|||
#include <villas/mapping.h>
|
||||
#include <villas/task.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <bitset>
|
||||
|
||||
#include <villas/log.hpp>
|
||||
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <villas/log.hpp>
|
||||
|
||||
/* Forward declarations */
|
||||
struct stats;
|
||||
|
@ -92,12 +88,10 @@ struct path {
|
|||
pthread_t tid; /**< The thread id for this path. */
|
||||
json_t *cfg; /**< A JSON object containing the configuration of the path. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
villas::Logger logger;
|
||||
|
||||
std::bitset<MAX_SAMPLE_LENGTH> mask; /**< A mask of path_sources which are enabled for poll(). */
|
||||
std::bitset<MAX_SAMPLE_LENGTH> received; /**< A mask of path_sources for which we already received samples. */
|
||||
#endif
|
||||
};
|
||||
|
||||
/** Initialize internal data structures. */
|
||||
|
@ -172,7 +166,3 @@ bool path_is_reversed(const struct path *p);
|
|||
struct vlist * path_get_signals(struct path *p);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
|
||||
#include <villas/queue.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct path;
|
||||
struct sample;
|
||||
|
@ -53,8 +49,4 @@ void path_destination_enqueue(struct path *p, struct sample *smps[], unsigned cn
|
|||
|
||||
void path_destination_write(struct path_destination *pd, struct path *p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -32,10 +32,6 @@
|
|||
#include <villas/pool.h>
|
||||
#include <villas/list.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct path;
|
||||
struct sample;
|
||||
|
@ -55,8 +51,4 @@ int path_source_destroy(struct path_source *ps);
|
|||
|
||||
int path_source_read(struct path_source *ps, struct path *p, int i);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include <villas/node_type.h>
|
||||
#include <villas/format_type.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** (De-)Register a plugin by adding it to the global plugin list.
|
||||
*
|
||||
* We make use of GCC's / Clang's constructor/destructor function
|
||||
|
@ -83,7 +79,3 @@ void plugin_dump(enum plugin_type type);
|
|||
|
||||
/** Find registered and loaded plugin with given name and type. */
|
||||
struct plugin * plugin_lookup(enum plugin_type type, const char *name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -32,10 +32,6 @@
|
|||
#include <villas/common.h>
|
||||
#include <villas/memory.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** A thread-safe memory pool */
|
||||
struct pool {
|
||||
enum state state;
|
||||
|
@ -95,7 +91,3 @@ INLINE int pool_put(struct pool *p, void *buf)
|
|||
{
|
||||
return queue_push(&p->queue, buf);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -41,10 +41,6 @@
|
|||
#include <villas/common.h>
|
||||
#include <villas/config.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct memory_type;
|
||||
|
||||
|
@ -114,7 +110,3 @@ int queue_pull_many(struct queue *q, void *ptr[], size_t cnt);
|
|||
* @return -1 on failure.
|
||||
*/
|
||||
int queue_close(struct queue *q);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -27,10 +27,6 @@
|
|||
|
||||
#include <villas/queue.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum queue_signalled_flags {
|
||||
/* Mode */
|
||||
QUEUE_SIGNALLED_AUTO = (0 << 0), /**< We will choose the best method available on the platform */
|
||||
|
@ -84,7 +80,3 @@ int queue_signalled_close(struct queue_signalled *qs);
|
|||
|
||||
/** Returns a file descriptor which can be used with poll / select to wait for new data */
|
||||
int queue_signalled_fd(struct queue_signalled *qs);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#include <villas/atomic.h>
|
||||
#include <villas/signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct pool;
|
||||
|
||||
|
@ -138,7 +134,3 @@ enum signal_type sample_format(const struct sample *s, unsigned idx);
|
|||
void sample_data_insert(struct sample *smp, const union signal_data *src, size_t offset, size_t len);
|
||||
|
||||
void sample_data_remove(struct sample *smp, size_t offset, size_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -37,10 +37,6 @@
|
|||
#define DEFAULT_SHMEM_QUEUELEN 512u
|
||||
#define DEFAULT_SHMEM_SAMPLELEN 64u
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Struct containing all parameters that need to be known when creating a new
|
||||
* shared memory object. */
|
||||
struct shmem_conf {
|
||||
|
@ -128,7 +124,3 @@ int shmem_int_alloc(struct shmem_int *shm, struct sample *smps[], unsigned cnt);
|
|||
size_t shmem_total_size(int queuelen, int samplelen);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -33,10 +33,6 @@
|
|||
|
||||
#include <villas/atomic.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct vlist;
|
||||
struct node;
|
||||
|
@ -133,6 +129,3 @@ int signal_data_parse_json(union signal_data *data, const struct signal *sig, js
|
|||
|
||||
void signal_data_set(union signal_data *data, const struct signal *sig, double val);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -55,10 +55,6 @@ union sockaddr_union {
|
|||
#endif
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Generate printable socket address depending on the address family
|
||||
*
|
||||
* A IPv4 address is formatted as dotted decimals followed by the port/protocol number
|
||||
|
@ -86,7 +82,3 @@ char * socket_print_addr(struct sockaddr *saddr);
|
|||
int socket_parse_address(const char *str, struct sockaddr *sa, enum socket_layer layer, int flags);
|
||||
|
||||
int socket_compare_addr(struct sockaddr *x, struct sockaddr *y);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
#include <villas/hist.hpp>
|
||||
#include <villas/signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct sample;
|
||||
struct node;
|
||||
|
@ -122,6 +118,3 @@ void stats_print(struct stats *s, FILE *f, enum stats_format fmt, int verbose);
|
|||
|
||||
union signal_data stats_get_value(const struct stats *s, enum stats_metric sm, enum stats_type st);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue