summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2011-03-15 15:47:21 +0100
committerHenrik Rydberg <rydberg@bitmath.org>2011-03-15 15:47:21 +0100
commit37650a934edc1033cdde179f2ccbe311a57c1e9d (patch)
treeeaf17ac7be4f90d30cf034fbdc9a59a6fd3394c2 /include
parentb3ebbfd9a0dc04ca20325f4cf2621f8d952147fe (diff)
Add the missing evemu_set_name() function
During the evolution of evemu, the process of setting the device name has shifted towards the evemu_extract() and evemu_read() functions, rendering the initial name in evemu_new() more or less useless. This patch adds the missing evemu_set_name() function, in order to make it possible to override the device name before device creation. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/evemu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/evemu.h b/include/evemu.h
index 31107bc..6e6ed44 100644
--- a/include/evemu.h
+++ b/include/evemu.h
@@ -55,6 +55,7 @@ void evemu_delete(struct evemu_device *dev);
unsigned int evemu_get_version(const struct evemu_device *dev);
const char *evemu_get_name(const struct evemu_device *dev);
+void evemu_set_name(struct evemu_device *dev, const char *name);
unsigned int evemu_get_id_bustype(const struct evemu_device *dev);
unsigned int evemu_get_id_vendor(const struct evemu_device *dev);