1 /**
2  * xrdp: A Remote Desktop Protocol server.
3  *
4  * Copyright (C) Jay Sorg 2013 jay.sorg@gmail.com
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 
20 /*
21  * smartcard redirection support, PCSC daemon standin
22  */
23 
24 #ifndef _SMARTCARD_PCSC_H
25 #define _SMARTCARD_PCSC_H
26 
27 int scard_pcsc_get_wait_objs(tbus *objs, int *count, int *timeout);
28 int scard_pcsc_check_wait_objs(void);
29 int scard_pcsc_init(void);
30 int scard_pcsc_deinit(void);
31 int scard_function_establish_context_return(void *user_data,
32         struct stream *in_s,
33         int len, int status);
34 int scard_function_release_context_return(void *user_data,
35         struct stream *in_s,
36         int len, int status);
37 int scard_function_list_readers_return(void *user_data,
38                                        struct stream *in_s,
39                                        int len, int status);
40 
41 int scard_function_transmit_return(void *user_data,
42                                    struct stream *in_s,
43                                    int len, int status);
44 
45 int scard_function_control_return(void *user_data,
46                                   struct stream *in_s,
47                                   int len, int status);
48 
49 int scard_function_get_status_change_return(void *user_data,
50         struct stream *in_s,
51         int len, int status);
52 
53 int scard_function_connect_return(void *user_data,
54                                   struct stream *in_s,
55                                   int len, int status);
56 
57 int scard_function_status_return(void *user_data,
58                                  struct stream *in_s,
59                                  int len, int status);
60 
61 int scard_function_begin_transaction_return(void *user_data,
62         struct stream *in_s,
63         int len, int status);
64 
65 int scard_function_end_transaction_return(void *user_data,
66         struct stream *in_s,
67         int len, int status);
68 
69 int scard_function_is_context_valid_return(void *user_data,
70         struct stream *in_s,
71         int len, int status);
72 
73 int scard_function_reconnect_return(void *user_data,
74                                     struct stream *in_s,
75                                     int len, int status);
76 
77 int scard_function_disconnect_return(void *user_data,
78                                      struct stream *in_s,
79                                      int len, int status);
80 
81 int scard_function_cancel_return(void *user_data,
82                                  struct stream *in_s,
83                                  int len, int status);
84 
85 int scard_function_get_attrib_return(void *user_data,
86                                      struct stream *in_s,
87                                      int len, int status);
88 
89 #endif /* end #ifndef _SMARTCARD_PCSC_H */
90