summaryrefslogtreecommitdiff
path: root/src/evemu.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-03-15 15:44:59 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-03-15 15:44:59 +0100
commite744eafadce0fb3c878d5e2e8577b521faa4f72f (patch)
tree5ea86fccb9f74d073b76ec9cf6f84fe638c9a097 /src/evemu.c
parentbb19e820a29b326891fb9a4fe58e64b1935c8e72 (diff)
Complete function documentation in evemu.h
For reasons not likely to become clear again at the moment, only two functions were ever documented, and those were made in the source file where nobody can see it. This patch adds function documentation to all functions in the header file. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/evemu.c')
-rw-r--r--src/evemu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/evemu.c b/src/evemu.c
index 988ae7c..df6b250 100644
--- a/src/evemu.c
+++ b/src/evemu.c
@@ -72,16 +72,6 @@ static void copy_bits(unsigned char *mask, const unsigned long *bits, int bytes)
72 } 72 }
73} 73}
74 74
75/**
76 * evemu_new() - allocate a new evemu device
77 * @name: wanted input device name (or NULL to leave empty)
78 *
79 * This function allocates a new evemu device structure and
80 * initializes all fields to zero. If name is non-null and the length
81 * is sane, it is copied to the device name.
82 *
83 * Returns NULL in case of memory failure.
84 */
85struct evemu_device *evemu_new(const char *name) 75struct evemu_device *evemu_new(const char *name)
86{ 76{
87 struct evemu_device *dev = calloc(1, sizeof(struct evemu_device)); 77 struct evemu_device *dev = calloc(1, sizeof(struct evemu_device));
@@ -94,12 +84,6 @@ struct evemu_device *evemu_new(const char *name)
94 return dev; 84 return dev;
95} 85}
96 86
97/**
98 * evemu_delete() - free and allocated evemu device
99 * @dev: the device to free
100 *
101 * The device pointer is invalidated by this call.
102 */
103void evemu_delete(struct evemu_device *dev) 87void evemu_delete(struct evemu_device *dev)
104{ 88{
105 free(dev); 89 free(dev);