oping.h | oping.h | |||
---|---|---|---|---|
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 1002000 | #define OPING_VERSION 1003000 | |||
/* | /* | |||
* 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; | |||
#define PING_OPT_TIMEOUT 0x01 | #define PING_OPT_TIMEOUT 0x01 | |||
#define PING_OPT_TTL 0x02 | #define PING_OPT_TTL 0x02 | |||
#define PING_OPT_AF 0x04 | #define PING_OPT_AF 0x04 | |||
#define PING_OPT_DATA 0x08 | #define PING_OPT_DATA 0x08 | |||
#define PING_OPT_SOURCE 0x10 | #define PING_OPT_SOURCE 0x10 | |||
#define PING_OPT_DEVICE 0x20 | ||||
#define PING_DEF_TIMEOUT 1.0 | #define PING_DEF_TIMEOUT 1.0 | |||
#define PING_DEF_TTL 255 | #define PING_DEF_TTL 255 | |||
#define PING_DEF_AF AF_UNSPEC | #define PING_DEF_AF AF_UNSPEC | |||
#define PING_DEF_DATA "Florian Forster <octo@verplant.org> http://verpla nt.org/" | #define PING_DEF_DATA "Florian Forster <octo@verplant.org> http://verpla nt.org/" | |||
/* | /* | |||
* Method definitions | * Method definitions | |||
*/ | */ | |||
pingobj_t *ping_construct (void); | pingobj_t *ping_construct (void); | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||