Skip to content

Commit

Permalink
Add perl binding and documentation for new ping_iterator_count function
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishcoleman committed May 9, 2017
1 parent 8fe50dd commit e67d732
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/perl/Oping.xs
Expand Up @@ -134,6 +134,14 @@ _ping_iterator_next (iter)
OUTPUT:
RETVAL

int
_ping_iterator_count (obj)
pingobj_t *obj
CODE:
RETVAL = ping_iterator_count (obj);
OUTPUT:
RETVAL

double
_ping_iterator_get_latency (iter)
pingobj_iter_t *iter
Expand Down
1 change: 1 addition & 0 deletions src/mans/liboping.pod
Expand Up @@ -69,6 +69,7 @@ L<ping_setopt(3)>,
L<ping_host_add(3)>,
L<ping_send(3)>,
L<ping_get_error(3)>,
L<ping_iterator_count(3)>,
L<ping_iterator_get(3)>,
L<ping_iterator_get_info(3)>,
L<ping_iterator_get_context(3)>
Expand Down
33 changes: 33 additions & 0 deletions src/mans/ping_iterator_count.pod
@@ -0,0 +1,33 @@
=head1 NAME

ping_iterator_count - Count the number of hosts in a liboping object

=head1 SYNOPSIS

#include <oping.h>

int ping_iterator_count (pingobj_t *obj);

=head1 DESCRIPTION

This functions is used to count the number of hosts currently associated
with a liboping object.

=head1 RETURN VALUE

The B<ping_iterator_count> returns an integer number or zero if no host is
associated with I<obj>.

=head1 SEE ALSO

L<ping_host_add(3)>,
L<ping_iterator_get(3)>,
L<ping_iterator_next(3)>,
L<liboping(3)>

=head1 AUTHOR

liboping is written by Florian "octo" Forster E<lt>ff at octo.itE<gt>.
Its homepage can be found at L<http://noping.cc/>.

Copyright (c) 2005-2016 by Florian "octo" Forster.

0 comments on commit e67d732

Please sign in to comment.