diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-02-03 17:27:54 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-02-03 17:27:54 +0000 |
commit | f8ff8b56fb44e530bb5bc38b4d3fa031eb7535f1 (patch) | |
tree | ce88c690db9f9820e98888212683ec63bc5f520d | |
parent | 04f2fb62dee5105182a258e96fedadf22d3c3ff4 (diff) |
lib: Add big fat warning about updating WacomDevice
-rw-r--r-- | libwacom/libwacom-database.c | 2 | ||||
-rw-r--r-- | libwacom/libwacomint.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c index 0aa1253..7311d98 100644 --- a/libwacom/libwacom-database.c +++ b/libwacom/libwacom-database.c @@ -274,6 +274,8 @@ libwacom_parse_tablet_keyfile(const char *path) device->features & FEATURE_REVERSIBLE) g_warning ("Tablet '%s' is both reversible and builtin. This is impossible", device->match); + g_message ("%d", g_key_file_get_integer(keyfile, FEATURE_GROUP, "NumStrips", NULL)); + device->num_strips = g_key_file_get_integer(keyfile, FEATURE_GROUP, "NumStrips", NULL); device->num_buttons = g_key_file_get_integer(keyfile, FEATURE_GROUP, "Buttons", NULL); diff --git a/libwacom/libwacomint.h b/libwacom/libwacomint.h index 91966ba..dfa0925 100644 --- a/libwacom/libwacomint.h +++ b/libwacom/libwacomint.h @@ -56,6 +56,8 @@ enum WacomFeature { FEATURE_REVERSIBLE = (1 << 5) }; +/* WARNING: When adding new members to this struct + * make sure to update libwacom_copy() ! */ struct _WacomDevice { char *name; int width; |