forked from drath/libratbag
Add some more function stubs
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -548,6 +548,18 @@ ratbag_device_set_active_profile(struct ratbag_device *device,
|
||||
return device->driver->set_active_profile(device, profile->index);
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT int
|
||||
ratbag_profile_get_resolution_dpi(const struct ratbag_profile *profile)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT int
|
||||
ratbag_profile_get_report_rate_hz(const struct ratbag_profile *profile)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ratbag_button *
|
||||
ratbag_create_button(struct ratbag_device *device, struct ratbag_profile *profile,
|
||||
unsigned int index)
|
||||
@@ -589,6 +601,12 @@ ratbag_profile_get_button_by_index(struct ratbag_profile *profile,
|
||||
return ratbag_create_button(profile->device, profile, index);
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT enum ratbag_button_type
|
||||
ratbag_button_get_type(struct ratbag_button *button)
|
||||
{
|
||||
return RATBAG_BUTTON_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT struct ratbag_button *
|
||||
ratbag_button_ref(struct ratbag_button *button)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ LIBRATBAG_0.1.0 {
|
||||
global:
|
||||
ratbag_create_context;
|
||||
ratbag_button_ref;
|
||||
ratbag_button_get_type;
|
||||
ratbag_button_unref;
|
||||
ratbag_device_unref;
|
||||
ratbag_device_get_active_profile;
|
||||
@@ -19,6 +20,8 @@ global:
|
||||
ratbag_log_set_handler;
|
||||
ratbag_log_set_priority;
|
||||
ratbag_profile_get_button_by_index;
|
||||
ratbag_profile_get_report_rate_hz;
|
||||
ratbag_profile_get_resolution_dpi;
|
||||
ratbag_profile_ref;
|
||||
ratbag_profile_unref;
|
||||
ratbag_ref;
|
||||
|
||||
Reference in New Issue
Block a user