summaryrefslogtreecommitdiff
path: root/usbredirparser
diff options
context:
space:
mode:
authorMichael Hanselmann <public@hansmi.ch>2021-05-29 17:08:29 +0200
committerMichael Hanselmann <public@hansmi.ch>2021-05-29 17:41:55 +0200
commitdc26377dff414e4f0b7194c19eb71cd1251a97d1 (patch)
treebe21696a60371c74a699625666d29f1a412ec0ce /usbredirparser
parent176bc7df5ae58c5f3775305078172ed9d28947f1 (diff)
Fix typos in header comments
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Diffstat (limited to 'usbredirparser')
-rw-r--r--usbredirparser/usbredirfilter.h8
-rw-r--r--usbredirparser/usbredirparser.h12
2 files changed, 10 insertions, 10 deletions
diff --git a/usbredirparser/usbredirfilter.h b/usbredirparser/usbredirfilter.h
index 3587a42..486f202 100644
--- a/usbredirparser/usbredirfilter.h
+++ b/usbredirparser/usbredirfilter.h
@@ -45,11 +45,11 @@ struct usbredirfilter_rule {
And the rules are themselves are separated by the rule_sep character, ie:
<rule1>|<rule2>|<rule3>
- Assuming "|" as the rule_sep character. Note that with the seperator used
+ Assuming "|" as the rule_sep character. Note that with the separator used
in this example the format matches the format as written by the RHEV-M USB
filter editor tool.
- Note that the seperators must be single character strings!
+ Note that the separators must be single character strings!
On success the rules get returned in rules_ret and rules_count_ret, the
returned rules array should be freed with free() when the caller is done
@@ -66,7 +66,7 @@ int usbredirfilter_string_to_rules(
usbredirfilter_string_to_rules(); The returned string must be free()-ed
by the caller when it is done with it.
- Return value: The string on sucess, or NULL if the rules fail verification,
+ Return value: The string on success, or NULL if the rules fail verification,
or when allocating the string fails.
*/
char *usbredirfilter_rules_to_string(const struct usbredirfilter_rule *rules,
@@ -91,7 +91,7 @@ char *usbredirfilter_rules_to_string(const struct usbredirfilter_rule *rules,
- If the usbredirfilter_fl_dont_skip_non_boot_hid flag is not passed, then
for devices with more than 1 interface and an interface with an interface
class of 0x03, an interface subclass of 0x00 and an interface protocol
- of 0x00, the check is skipped for that interface. This allows to skip ie
+ of 0x00, the check is skipped for that interface. This allows to skip i.e.
checking the interface for volume buttons on some usbaudio class devices.
If the result of all (not skipped) passes is allow, then 0 will be returned,
diff --git a/usbredirparser/usbredirparser.h b/usbredirparser/usbredirparser.h
index ffeb1d7..426b6d6 100644
--- a/usbredirparser/usbredirparser.h
+++ b/usbredirparser/usbredirparser.h
@@ -61,7 +61,7 @@ typedef void (*usbredirparser_free_lock)(void *lock);
type has been received.
Note that the passed in packet-type-specific-header's lifetime is only
- guarenteed to be that of the callback.
+ guaranteed to be that of the callback.
Control packets: */
typedef void (*usbredirparser_hello)(void *priv,
@@ -118,7 +118,7 @@ typedef void (*usbredirparser_bulk_receiving_status)(void *priv,
/* Data packets:
- Note that ownership of the the data buffer (if not NULL) is passed on to
+ Note that ownership of the data buffer (if not NULL) is passed on to
the callback. The callback should free it by calling
usbredirparser_free_packet_data when it is done with it. */
typedef void (*usbredirparser_control_packet)(void *priv,
@@ -141,7 +141,7 @@ typedef void (*usbredirparser_buffered_bulk_packet)(void *priv, uint64_t id,
/* Public part of the data allocated by usbredirparser_alloc, *never* allocate
a usbredirparser struct yourself, it may be extended in the future to add
callbacks for new packet types (which will then get added at the end),
- *and* usbredirparser_alloc will also alloc some space behind it for
+ *and* usbredirparser_alloc will also allocate some space behind it for
private data */
struct usbredirparser {
/* app private data passed into all callbacks as the priv argument */
@@ -230,11 +230,11 @@ int usbredirparser_have_peer_caps(struct usbredirparser *parser);
should not be used before the hello_func callback has been called. */
int usbredirparser_peer_has_cap(struct usbredirparser *parser, int cap);
-/* Call this whenever there is data ready from the otherside to parse
+/* Call this whenever there is data ready from the other side to parse.
On an usbredirparser_read_io_error this function will continue where it
left of the last time on the next call. On an
usbredirparser_read_parse_error it will skip to the next packet (*).
- *) As determined by the faulty's package headers length field */
+ *) As determined by the faulty package's headers length field */
enum {
usbredirparser_read_io_error = -1,
usbredirparser_read_parse_error = -2,
@@ -261,7 +261,7 @@ void usbredirparser_free_write_buffer(struct usbredirparser *parser,
void usbredirparser_free_packet_data(struct usbredirparser *parser,
uint8_t *data);
-/* Functions to marshall and queue a packet for sending to its peer. Note:
+/* Functions to marshal and queue a packet for sending to its peer. Note:
1) it will not be actually send until usbredirparser_do_write is called
2) if their is not enough memory for buffers the packet will be dropped
(and an error message will be logged */