X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Foping.h;h=ce02abd1032cb770a48c8d157ec0ced16688dbbc;hb=e212784b3cda7d17569a8c6ca3b73f35454e8c75;hp=c013a50f38d610a9e07d36dfc5529cfc1e5fda7c;hpb=8ae4a45666440926c9b2e10a1f7388af1618522b;p=liboping.git diff --git a/src/oping.h b/src/oping.h index c013a50..ce02abd 100644 --- a/src/oping.h +++ b/src/oping.h @@ -1,6 +1,6 @@ /** * Object oriented C module to send ICMP and ICMPv6 `echo's. - * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2006-2009 Florian octo Forster * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,6 +37,12 @@ # include #endif +#ifdef __cplusplus +extern "C" { +#endif + +#define OPING_VERSION 1001002 + /* * Type definitions */ @@ -75,13 +81,16 @@ int ping_host_remove (pingobj_t *obj, const char *host); pingobj_iter_t *ping_iterator_get (pingobj_t *obj); pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter); -#define PING_INFO_HOSTNAME 1 -#define PING_INFO_ADDRESS 2 -#define PING_INFO_FAMILY 3 -#define PING_INFO_LATENCY 4 -#define PING_INFO_SEQUENCE 5 -#define PING_INFO_IDENT 6 -#define PING_INFO_DATA 7 +#define PING_INFO_HOSTNAME 1 +#define PING_INFO_ADDRESS 2 +#define PING_INFO_FAMILY 3 +#define PING_INFO_LATENCY 4 +#define PING_INFO_SEQUENCE 5 +#define PING_INFO_IDENT 6 +#define PING_INFO_DATA 7 +#define PING_INFO_USERNAME 8 +#define PING_INFO_DROPPED 9 +#define PING_INFO_RECV_TTL 10 int ping_iterator_get_info (pingobj_iter_t *iter, int info, void *buffer, size_t *buffer_len); @@ -90,4 +99,8 @@ const char *ping_get_error (pingobj_t *obj); void *ping_iterator_get_context (pingobj_iter_t *iter); void ping_iterator_set_context (pingobj_iter_t *iter, void *context); +#ifdef __cplusplus +} +#endif + #endif /* OCTO_PING_H */