]> www.average.org Git - pam_pcsc_cr.git/blob - reader.h
configure.ac: remove sanitizer by default
[pam_pcsc_cr.git] / reader.h
1 #ifndef _READER_H
2 #define _READER_H
3
4 struct reader_ctx;
5 struct target_ctx;
6
7 struct reader_interface {
8         char *name;
9         struct reader_ctx *(*init_ctx) (void);
10         int (*parse_option)(struct reader_ctx * ctx, char *key, char *val);
11         int (*for_each_target)(struct reader_ctx * ctx,
12                                (int *callback)(struct target_ctx * tgt,
13                                                void *arg), void *arg);
14         void (*drop_ctx)(*struct reader_ctx * ctx);
15         int (*transcieve)(struct target_ctx * tgt, uint8_t * send,
16                          size_t send_size, uint8_t * recv,
17                          size_t *recv_size_p);
18 };
19
20 #endif