oping.h | oping.h | |||
---|---|---|---|---|
/** | /** | |||
* Object oriented C module to send ICMP and ICMPv6 `echo's. | * Object oriented C module to send ICMP and ICMPv6 `echo's. | |||
* Copyright (C) 2006 Florian octo Forster <octo at verplant.org> | * Copyright (C) 2006-2009 Florian octo Forster <octo at verplant.org> | |||
* | * | |||
* This program is free software; you can redistribute it and/or modify | * 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 | * it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; only version 2 of the License is | * the Free Software Foundation; only version 2 of the License is | |||
* applicable. | * applicable. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, | * This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | * GNU General Public License for more details. | |||
skipping to change at line 44 | skipping to change at line 44 | |||
# include <sys/types.h> | # include <sys/types.h> | |||
#endif | #endif | |||
#if HAVE_SYS_SOCKET_H | #if HAVE_SYS_SOCKET_H | |||
# include <sys/socket.h> | # include <sys/socket.h> | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#define OPING_VERSION 1000000 | ||||
/* | /* | |||
* Type definitions | * Type definitions | |||
*/ | */ | |||
struct pinghost; | struct pinghost; | |||
typedef struct pinghost pinghost_t; | typedef struct pinghost pinghost_t; | |||
typedef pinghost_t pingobj_iter_t; | typedef pinghost_t pingobj_iter_t; | |||
struct pingobj; | struct pingobj; | |||
typedef struct pingobj pingobj_t; | typedef struct pingobj pingobj_t; | |||
skipping to change at line 89 | skipping to change at line 91 | |||
pingobj_iter_t *ping_iterator_get (pingobj_t *obj); | pingobj_iter_t *ping_iterator_get (pingobj_t *obj); | |||
pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter); | pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter); | |||
#define PING_INFO_HOSTNAME 1 | #define PING_INFO_HOSTNAME 1 | |||
#define PING_INFO_ADDRESS 2 | #define PING_INFO_ADDRESS 2 | |||
#define PING_INFO_FAMILY 3 | #define PING_INFO_FAMILY 3 | |||
#define PING_INFO_LATENCY 4 | #define PING_INFO_LATENCY 4 | |||
#define PING_INFO_SEQUENCE 5 | #define PING_INFO_SEQUENCE 5 | |||
#define PING_INFO_IDENT 6 | #define PING_INFO_IDENT 6 | |||
#define PING_INFO_DATA 7 | #define PING_INFO_DATA 7 | |||
#define PING_INFO_USERNAME 8 | ||||
#define PING_INFO_DROPPED 9 | ||||
int ping_iterator_get_info (pingobj_iter_t *iter, int info, | int ping_iterator_get_info (pingobj_iter_t *iter, int info, | |||
void *buffer, size_t *buffer_len); | void *buffer, size_t *buffer_len); | |||
const char *ping_get_error (pingobj_t *obj); | const char *ping_get_error (pingobj_t *obj); | |||
void *ping_iterator_get_context (pingobj_iter_t *iter); | void *ping_iterator_get_context (pingobj_iter_t *iter); | |||
void ping_iterator_set_context (pingobj_iter_t *iter, void *context); | void ping_iterator_set_context (pingobj_iter_t *iter, void *context); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added | |||