X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Ftimeval.h;h=6470f015b1ef1c1253cfb82be6cc007c8a1bb08e;hb=9c0f9c65093cfa53d45f9b68782321eb8063a032;hp=5bbe1a705e5535fd62f3c5f488f21fa0db628a94;hpb=ee4cc41fafaac0a2d76c1c791f6d43a6b6d937a7;p=catta diff --git a/avahi-common/timeval.h b/avahi-common/timeval.h index 5bbe1a7..6470f01 100644 --- a/avahi-common/timeval.h +++ b/avahi-common/timeval.h @@ -1,43 +1,41 @@ #ifndef footimevalhfoo #define footimevalhfoo -/* $Id$ */ - /*** This file is part of avahi. - + avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - + avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ +/** \file timeval.h Functions to facilitate timeval handling */ + #include #include #include -#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_BEGIN -#endif /** A numeric data type for storing microsecond values. (signed 64bit integer) */ typedef int64_t AvahiUsec; -/** Compare two timeval structures and return a ngeative value when a < b, 0 when a == b and a positive value otherwise */ +/** Compare two timeval structures and return a negative value when a < b, 0 when a == b and a positive value otherwise */ int avahi_timeval_compare(const struct timeval *a, const struct timeval *b); -/** Calculate the difference between to timeval structures as microsecond value */ +/** Calculate the difference between two timeval structures as microsecond value */ AvahiUsec avahi_timeval_diff(const struct timeval *a, const struct timeval *b); /** Add a number of microseconds to the specified timeval structure and return it. *a is modified. */ @@ -51,8 +49,6 @@ AvahiUsec avahi_age(const struct timeval *a); * the jitter */ struct timeval *avahi_elapse_time(struct timeval *tv, unsigned ms, unsigned j); -#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_END -#endif #endif