summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2010-08-05 11:34:08 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-05 22:48:38 +0200
commit00f7895d101de2703dbcea3600a68c4f653a0378 (patch)
treee049b7f9f6754c34cac702f72bd561aeea9c71c1
parentd7d89e2afae9151f4d16aa71a99eedbf920ecc1a (diff)
Correct mistake in api argument names
The bitmask passed to get_clients takes the number of bytes in the bitmask as argument, not the number of types, as easily assumed given the argument name. This patch changes the name to type_bytes to avoid confusion. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
-rw-r--r--include/grail.h2
-rw-r--r--test/grail.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grail.h b/include/grail.h
index 875d94d..1113188 100644
--- a/include/grail.h
+++ b/include/grail.h
@@ -87,7 +87,7 @@ struct grail {
87 int (*get_clients)(struct grail *ge, 87 int (*get_clients)(struct grail *ge,
88 struct grail_client_info *client, int max_clients, 88 struct grail_client_info *client, int max_clients,
89 const struct grail_coord *coords, int num_coords, 89 const struct grail_coord *coords, int num_coords,
90 const grail_mask_t *types, int num_types); 90 const grail_mask_t *types, int type_bytes);
91 void (*event)(struct grail *ge, 91 void (*event)(struct grail *ge,
92 const struct input_event *ev); 92 const struct input_event *ev);
93 void (*gesture)(struct grail *ge, 93 void (*gesture)(struct grail *ge,
diff --git a/test/grail.c b/test/grail.c
index c8c57cc..f34bd6f 100644
--- a/test/grail.c
+++ b/test/grail.c
@@ -33,7 +33,7 @@ static grail_mask_t flag_mask[DIM_GRAIL_TYPE_BYTES];
33static int tp_get_clients(struct grail *ge, 33static int tp_get_clients(struct grail *ge,
34 struct grail_client_info *clients, int max_clients, 34 struct grail_client_info *clients, int max_clients,
35 const struct grail_coord *coords, int num_coords, 35 const struct grail_coord *coords, int num_coords,
36 const grail_mask_t *types, int ntypes) 36 const grail_mask_t *types, int type_bytes)
37{ 37{
38 memset(&clients[0], 0, sizeof(clients[0])); 38 memset(&clients[0], 0, sizeof(clients[0]));
39 clients[0].id.client = 345; 39 clients[0].id.client = 345;