mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
cocci: Add spatch/coccinelle patches for driver porting
This is an impartial set of transformations to help port the drivers to the new interfaces.
This commit is contained in:
20
cocci/08-ssm.cocci
Normal file
20
cocci/08-ssm.cocci
Normal file
@@ -0,0 +1,20 @@
|
||||
@ ssm_callbacks @
|
||||
identifier ssm;
|
||||
identifier cb;
|
||||
@@
|
||||
fp_ssm_start(ssm, cb)
|
||||
|
||||
@@
|
||||
identifier ssm_callbacks.cb;
|
||||
identifier ssm;
|
||||
identifier dev;
|
||||
identifier user_data;
|
||||
@@
|
||||
void cb(FpSsm *ssm, FpDevice *dev, void* user_data
|
||||
+ , GError *error
|
||||
)
|
||||
{
|
||||
+ _Pragma("GCC warning \"Check that error is returned/free'ed properly!\"");
|
||||
...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user