Rework the "SetUsername" functionality

- Remove SetUsername itself, and add a username parameter to DeviceClaim,
  ListEnrolledFingers and DeleteEnrolledFingers.
- For each of those calls, check that the incoming connection is allowed
  to operate on that particular username
- Don't require a claimed device to list or remove fingerprints
- Clean up username and sender when releasing the device
- Modify the storage backend to not require an opened device to list
  or delete fingerprints
- Add a simple test program to list registered fingerprints for the
  usernames passed as argument
This commit is contained in:
Bastien Nocera
2008-10-30 16:53:05 +00:00
committed by Daniel Drake
parent bd2debc01e
commit e8c36e9592
9 changed files with 324 additions and 121 deletions

View File

@ -29,13 +29,13 @@ int file_storage_print_data_save(struct fp_print_data *data,
int file_storage_print_data_load(struct fp_dev *dev,
enum fp_finger finger, struct fp_print_data **data, const char *username);
int file_storage_print_data_delete(struct fp_dev *dev,
int file_storage_print_data_delete(struct fp_dscv_dev *dev,
enum fp_finger finger, const char *username);
int file_storage_init(void);
int file_storage_deinit(void);
GSList *file_storage_discover_prints(struct fp_dev *dev, const char *username);
GSList *file_storage_discover_prints(struct fp_dscv_dev *dev, const char *username);
#endif