summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/address.h2
-rw-r--r--avahi-common/cdecl.h4
-rw-r--r--avahi-common/defs.h18
-rw-r--r--avahi-common/error.h2
-rw-r--r--avahi-common/strlst.h2
-rw-r--r--avahi-common/thread-watch.h2
-rw-r--r--avahi-common/timeval.c2
-rw-r--r--avahi-common/watch.h4
8 files changed, 18 insertions, 18 deletions
diff --git a/avahi-common/address.h b/avahi-common/address.h
index 5c2f580..6023a03 100644
--- a/avahi-common/address.h
+++ b/avahi-common/address.h
@@ -75,7 +75,7 @@ typedef struct AvahiAddress {
union {
AvahiIPv6Address ipv6; /**< Address when IPv6 */
AvahiIPv4Address ipv4; /**< Address when IPv4 */
- uint8_t data[1]; /**< Type independant data field */
+ uint8_t data[1]; /**< Type-independent data field */
} data;
} AvahiAddress;
diff --git a/avahi-common/cdecl.h b/avahi-common/cdecl.h
index b08e2a0..fc89197 100644
--- a/avahi-common/cdecl.h
+++ b/avahi-common/cdecl.h
@@ -26,13 +26,13 @@
#ifdef __cplusplus
/** If using C++ this macro enables C mode, otherwise does nothing */
#define AVAHI_C_DECL_BEGIN extern "C" {
-/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
+/** If using C++ this macro switches back to C++ mode, otherwise does nothing */
#define AVAHI_C_DECL_END }
#else
/** If using C++ this macro enables C mode, otherwise does nothing */
#define AVAHI_C_DECL_BEGIN
-/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
+/** If using C++ this macro switches back to C++ mode, otherwise does nothing */
#define AVAHI_C_DECL_END
#endif
diff --git a/avahi-common/defs.h b/avahi-common/defs.h
index eabe4cd..a74fd6a 100644
--- a/avahi-common/defs.h
+++ b/avahi-common/defs.h
@@ -35,15 +35,15 @@
*
* \li <b>avahi-core</b>: an API for embedding a complete mDNS/DNS-SD stack
* into your software. This is intended for developers of embedded
- * ampliances only. We dissuade from using this API in normal desktop
+ * appliances only. We dissuade from using this API in normal desktop
* applications since it is not a good idea to run multiple mDNS
* stacks simultaneously on the same host.
* \li <b>the D-Bus API</b>: an extensive D-Bus interface for browsing and
* registering mDNS/DNS-SD services using avahi-daemon. We recommend
- * to use this API for software written in any language but
- * C. (i.e. Python)
+ * using this API for software written in any language other than
+ * C (e.g. Python).
* \li <b>avahi-client</b>: a simplifying C wrapper around the D-Bus API. We
- * recommend to use this API in C or C++ progams. The D-Bus internals
+ * recommend using this API in C or C++ progams. The D-Bus internals
* are hidden completely.
*
* All three APIs are very similar, however avahi-core is the most powerful.
@@ -108,7 +108,7 @@
*
* \section event_loop Event Loop Abstraction
*
- * Avahi uses a simple event loop abstraction laye. A table AvahiPoll
+ * Avahi uses a simple event loop abstraction layer. A table AvahiPoll
* which contains function pointers for user defined timeout and I/O
* condition event source implementations needs to be passed to
* avahi_client_new(). An adapter for this abstraction layer is
@@ -128,7 +128,7 @@
* be established.
* - Remove your services when the server enters
* AVAHI_SERVER_COLLISION or AVAHI_SERVER_REGISTERING state. Your
- * services may no be reachable anymore since the local host name is
+ * services may not be reachable anymore since the local host name is
* no longer established or is currently in the process of being
* established.
* - When registering services, use the following algorithm:
@@ -152,7 +152,7 @@
* AVAHI_PUBLISH_UPDATE when changing the service name! Renaming a
* DNS-SD service is identical to deleting and creating a new one, and
* that's exactly what you should do in that case. First call
- * avahi_entry_group_reset() to remove it and than readd it normally.
+ * avahi_entry_group_reset() to remove it and then read it normally.
*
* \section good_browse How to Browse for Services
*
@@ -183,7 +183,7 @@
* AvahiClient object in that case and reconnect to the server anew -
* again with passing AVAHI_CLIENT_NO_FAIL to avahi_client_new().
*
- * We encourage to implement this in all software where service
+ * We encourage implementing this in all software where service
* discovery is not an integral part of application. e.g. use it in
* all kinds of background daemons, but not in software like iChat
* compatible IM software.
@@ -282,7 +282,7 @@ typedef enum {
typedef enum {
AVAHI_BROWSER_NEW, /**< The object is new on the network */
AVAHI_BROWSER_REMOVE, /**< The object has been removed from the network */
- AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been send */
+ AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been sent */
AVAHI_BROWSER_ALL_FOR_NOW, /**< One-time event, to notify the user that more records will probably not show up in the near future, i.e. all cache entries have been read and all static servers been queried */
AVAHI_BROWSER_FAILURE /**< Browsing failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */
} AvahiBrowserEvent;
diff --git a/avahi-common/error.h b/avahi-common/error.h
index 3e014c2..3e4d25f 100644
--- a/avahi-common/error.h
+++ b/avahi-common/error.h
@@ -88,7 +88,7 @@ enum {
AVAHI_ERR_NOT_PERMITTED = -50, /**< Operation not permitted */
AVAHI_ERR_INVALID_ARGUMENT = -51, /**< Invalid argument */
AVAHI_ERR_IS_EMPTY = -52, /**< Is empty */
- AVAHI_ERR_NO_CHANGE = -53, /**< The requested operation is invalid because redundant */
+ AVAHI_ERR_NO_CHANGE = -53, /**< The requested operation is invalid because it is redundant */
/****
**** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD
diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h
index 119e416..8d827d6 100644
--- a/avahi-common/strlst.h
+++ b/avahi-common/strlst.h
@@ -110,7 +110,7 @@ AvahiStringList *avahi_string_list_add_many_va(AvahiStringList *r, va_list va);
/** Convert the string list object to a single character string,
* seperated by spaces and enclosed in "". avahi_free() the result! This
- * function doesn't work well with string that contain NUL bytes. */
+ * function doesn't work well with strings that contain NUL bytes. */
char* avahi_string_list_to_string(AvahiStringList *l);
/** \cond fulldocs */
diff --git a/avahi-common/thread-watch.h b/avahi-common/thread-watch.h
index e603293..92b5dfc 100644
--- a/avahi-common/thread-watch.h
+++ b/avahi-common/thread-watch.h
@@ -37,7 +37,7 @@ typedef struct AvahiThreadedPoll AvahiThreadedPoll;
* AvahiSimplePoll, but will not start the helper thread. \since 0.6.4 */
AvahiThreadedPoll *avahi_threaded_poll_new(void);
-/** Free an event loop object. Ths will stop the associated evet loop
+/** Free an event loop object. This will stop the associated event loop
* thread (if it is running). \since 0.6.4 */
void avahi_threaded_poll_free(AvahiThreadedPoll *p);
diff --git a/avahi-common/timeval.c b/avahi-common/timeval.c
index 2d0d693..edab241 100644
--- a/avahi-common/timeval.c
+++ b/avahi-common/timeval.c
@@ -115,7 +115,7 @@ struct timeval *avahi_elapse_time(struct timeval *tv, unsigned msec, unsigned ji
/* We use the same jitter for 10 seconds. That way our
* time events elapse in bursts which has the advantage that
- * packet data can be aggegrated better */
+ * packet data can be aggregated better */
avahi_timeval_add(tv, (AvahiUsec) (jitter*1000.0*r/(RAND_MAX+1.0)));
}
diff --git a/avahi-common/watch.h b/avahi-common/watch.h
index 80ed888..31adad7 100644
--- a/avahi-common/watch.h
+++ b/avahi-common/watch.h
@@ -55,7 +55,7 @@ typedef void (*AvahiWatchCallback)(AvahiWatch *w, int fd, AvahiWatchEvent event,
typedef void (*AvahiTimeoutCallback)(AvahiTimeout *t, void *userdata);
/** Defines an abstracted event polling API. This may be used to
- connect Avahi to other main loops. This is losely based on Unix
+ connect Avahi to other main loops. This is loosely based on Unix
poll(2). A consumer will call watch_new() for all file descriptors it
wants to listen for events on. In addition he can call timeout_new()
to define time based events .*/
@@ -86,7 +86,7 @@ struct AvahiPoll {
AvahiTimeout* (*timeout_new)(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata);
/** Update the absolute expiration time for a timeout, If tv is
- * null, the timeout is disabled. It is safe to call this function from an AvahiTimeoutCallback */
+ * NULL, the timeout is disabled. It is safe to call this function from an AvahiTimeoutCallback */
void (*timeout_update)(AvahiTimeout *, const struct timeval *tv);
/** Free a timeout. It is safe to call this function from an AvahiTimeoutCallback */