Changeset 951
- Timestamp:
- 05/25/07 12:02:04 (5 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
-
ifd/ifd-acr30u.c (modified) (2 diffs)
-
ifd/ifd-ccid.c (modified) (1 diff)
-
ifd/ifd-wbeiuu.c (modified) (2 diffs)
-
ifd/ifdhandler.c (modified) (9 diffs)
-
ifd/ifdproxy.c (modified) (5 diffs)
-
ifd/ria-device.c (modified) (3 diffs)
-
ifd/ria-server.c (modified) (10 diffs)
-
tools/openct-control.c (modified) (7 diffs)
-
tools/openct-tool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ifd/ifd-acr30u.c
r950 r951 520 520 } 521 521 522 #if 0 522 523 /* 523 524 * Set the card's baud rate etc … … 527 528 return 0; 528 529 } 530 #endif 529 531 530 532 /* -
trunk/src/ifd/ifd-ccid.c
r928 r951 1127 1127 if (st->sbuf[dad]) { 1128 1128 free(st->sbuf[dad]); 1129 st->sbuf[dad] = 0;1130 st->slen[dad] = 0;1129 st->sbuf[dad] = NULL; 1130 st->slen[dad] = NULL; 1131 1131 } 1132 1132 -
trunk/src/ifd/ifd-wbeiuu.c
r950 r951 564 564 } 565 565 566 #if 0 566 567 static int wbeiuu_card_status(ifd_reader_t * reader, int slot, int *status) 567 568 { … … 602 603 return 0; 603 604 } 605 #endif 604 606 605 607 static int wbeiuu_send(ifd_reader_t * reader, unsigned int dad, -
trunk/src/ifd/ifdhandler.c
r892 r951 1 / *1 /i* 2 2 * Manage a single reader 3 3 * … … 190 190 * Spawn a new ifd handler thread 191 191 */ 192 void ifdhandler_run(ifd_reader_t * reader)192 static void ifdhandler_run(ifd_reader_t * reader) 193 193 { 194 194 ct_socket_t *sock; … … 245 245 * Poll for presence of hotplug device 246 246 */ 247 int ifdhandler_poll_presence(ct_socket_t * sock, struct pollfd *pfd)247 static int ifdhandler_poll_presence(ct_socket_t * sock, struct pollfd *pfd) 248 248 { 249 249 ifd_reader_t *reader = (ifd_reader_t *) sock->user_data; … … 321 321 * Receive data from client 322 322 */ 323 int ifdhandler_recv(ct_socket_t * sock)323 static int ifdhandler_recv(ct_socket_t * sock) 324 324 { 325 325 ifd_reader_t *reader; … … 359 359 * Transmit data to client 360 360 */ 361 int ifdhandler_send(ct_socket_t * sock)361 static int ifdhandler_send(ct_socket_t * sock) 362 362 { 363 363 return ct_socket_flsbuf(sock, 0); … … 368 368 * Release any locks held by this client 369 369 */ 370 void ifdhandler_close(ct_socket_t * sock)370 static void ifdhandler_close(ct_socket_t * sock) 371 371 { 372 372 ifdhandler_unlock_all(sock); … … 401 401 } 402 402 403 void print_info(void)403 static void print_info(void) 404 404 { 405 405 const char *names[64]; … … 426 426 * Display version 427 427 */ 428 void version(void)428 static void version(void) 429 429 { 430 430 fprintf(stdout, "OpenCT " VERSION "\n"); … … 435 435 * Usage message 436 436 */ 437 void usage(int exval)437 static void usage(int exval) 438 438 { 439 439 fprintf(exval ? stderr : stdout, -
trunk/src/ifd/ifdproxy.c
r870 r951 172 172 } 173 173 174 int run_server(int argc, char **argv)174 static int run_server(int argc, char **argv) 175 175 { 176 176 int rc; … … 206 206 } 207 207 208 int run_client(int argc, char **argv)208 static int run_client(int argc, char **argv) 209 209 { 210 210 const char *name, *device, *address; … … 238 238 } 239 239 240 int list_devices(int argc, char **argv)240 static int list_devices(int argc, char **argv) 241 241 { 242 242 unsigned char buffer[8192]; … … 279 279 } 280 280 281 void version()281 static void version(void) 282 282 { 283 283 fprintf(stderr, "OpenCT " VERSION "\n"); … … 285 285 } 286 286 287 void usage(int exval)287 static void usage(int exval) 288 288 { 289 289 fprintf(exval ? stderr : stdout, -
trunk/src/ifd/ria-device.c
r662 r951 95 95 } 96 96 97 int ria_devsock_process(ct_socket_t * sock, header_t * hdr, ct_buf_t * args,98 ct_buf_t * resp)97 static int ria_devsock_process(ct_socket_t * sock, header_t * hdr, 98 ct_buf_t * args, ct_buf_t * resp) 99 99 { 100 100 ria_client_t *ria = (ria_client_t *) sock->user_data; … … 185 185 } 186 186 187 void ria_devsock_close(ct_socket_t * sock)187 static void ria_devsock_close(ct_socket_t * sock) 188 188 { 189 189 ct_error("Network connection closed, exiting\n"); … … 237 237 } 238 238 239 void ria_close_device(ct_socket_t * sock)239 static void ria_close_device(ct_socket_t * sock) 240 240 { 241 241 ct_error("Dispatcher requests that device is closed, abort"); -
trunk/src/ifd/ria-server.c
r677 r951 79 79 } 80 80 81 int ria_svc_accept(ct_socket_t * listener)81 static int ria_svc_accept(ct_socket_t * listener) 82 82 { 83 83 ria_peer_t *clnt; … … 104 104 } 105 105 106 void ria_svc_app_close(ct_socket_t * sock)106 static void ria_svc_app_close(ct_socket_t * sock) 107 107 { 108 108 ria_peer_t *clnt = (ria_peer_t *) sock->user_data; … … 113 113 } 114 114 115 void ria_svc_dev_close(ct_socket_t * sock)115 static void ria_svc_dev_close(ct_socket_t * sock) 116 116 { 117 117 ria_peer_t *clnt = (ria_peer_t *) sock->user_data; … … 125 125 * to claim a device). 126 126 */ 127 int ria_svc_app_handler(ct_socket_t * sock, header_t * hdr, ct_buf_t * args,128 ct_buf_t * resp)127 static int ria_svc_app_handler(ct_socket_t * sock, header_t * hdr, 128 ct_buf_t * args, ct_buf_t * resp) 129 129 { 130 130 unsigned char cmd; … … 196 196 * Process commands from remote clients (i.e. those offering a device). 197 197 */ 198 int ria_svc_dev_handler(ct_socket_t * sock, header_t * hdr, ct_buf_t * args,199 ct_buf_t * resp)198 static int ria_svc_dev_handler(ct_socket_t * sock, header_t * hdr, 199 ct_buf_t * args, ct_buf_t * resp) 200 200 { 201 201 unsigned char cmd; … … 255 255 } 256 256 257 ria_peer_t *ria_peer_new(ct_socket_t * sock)257 static ria_peer_t *ria_peer_new(ct_socket_t * sock) 258 258 { 259 259 ria_peer_t *clnt; … … 270 270 } 271 271 272 void ria_peer_free(ria_peer_t * clnt, int detach_peer)272 static void ria_peer_free(ria_peer_t * clnt, int detach_peer) 273 273 { 274 274 ria_peer_t *peer; … … 287 287 } 288 288 289 void ria_svc_link(ria_peer_t * clnt)289 static void ria_svc_link(ria_peer_t * clnt) 290 290 { 291 291 ria_peer_t *prev; … … 298 298 } 299 299 300 ria_peer_t *ria_find_device(const char *handle, size_t len)300 static ria_peer_t *ria_find_device(const char *handle, size_t len) 301 301 { 302 302 ria_peer_t *peer; … … 320 320 } 321 321 322 void ria_svc_unlink(ria_peer_t * clnt)322 static void ria_svc_unlink(ria_peer_t * clnt) 323 323 { 324 324 ria_peer_t *prev, *next; -
trunk/src/tools/openct-control.c
r941 r951 92 92 } 93 93 94 int mgr_init(int argc, char **argv)94 static int mgr_init(int argc, char **argv) 95 95 { 96 96 int n; … … 132 132 * shut down the whole thing 133 133 */ 134 int mgr_shutdown(int argc, char **argv)134 static int mgr_shutdown(int argc, char **argv) 135 135 { 136 136 const ct_info_t *status; … … 159 159 * Attach a new reader 160 160 */ 161 int mgr_attach(int argc, char **argv)161 static int mgr_attach(int argc, char **argv) 162 162 { 163 163 const char *driver, *type, *device; … … 203 203 * Show status of all readers 204 204 */ 205 int mgr_status(int argc, char **argv)205 static int mgr_status(int argc, char **argv) 206 206 { 207 207 const ct_info_t *readers, *r; … … 255 255 * Configure a reader using info from the config file 256 256 */ 257 void configure_reader(ifd_conf_node_t * cf)257 static void configure_reader(ifd_conf_node_t * cf) 258 258 { 259 259 static unsigned int nreaders = 0; … … 282 282 * Display version 283 283 */ 284 void version(void)284 static void version(void) 285 285 { 286 286 fprintf(stdout, "OpenCT " VERSION "\n"); … … 291 291 * Usage message 292 292 */ 293 void usage(int exval)293 static void usage(int exval) 294 294 { 295 295 fprintf(exval ? stderr : stdout, -
trunk/src/tools/openct-tool.c
r768 r951 185 185 } 186 186 187 void version(void)187 static void version(void) 188 188 { 189 189 fprintf(stdout, "OpenCT " VERSION "\n"); … … 191 191 } 192 192 193 void usage(int exval)193 static void usage(int exval) 194 194 { 195 195 fprintf(exval ? stderr : stdout, … … 212 212 } 213 213 214 int do_reset(ct_handle * h, unsigned char *atr, size_t atr_len)214 static int do_reset(ct_handle * h, unsigned char *atr, size_t atr_len) 215 215 { 216 216 int rc, n, status; … … 240 240 } 241 241 242 void do_select_mf(ct_handle * h)242 static void do_select_mf(ct_handle * h) 243 243 { 244 244 unsigned char cmd[] = … … 272 272 } 273 273 274 void do_read_memory(ct_handle * h, unsigned int address, unsigned int count)274 static void do_read_memory(ct_handle * h, unsigned int address, unsigned int count) 275 275 { 276 276 unsigned char buffer[8192]; … … 291 291 } 292 292 293 void print_reader(ct_handle * h)293 static void print_reader(ct_handle * h) 294 294 { 295 295 ct_info_t info; … … 303 303 } 304 304 305 void print_reader_info(ct_info_t * info)305 static void print_reader_info(ct_info_t * info) 306 306 { 307 307 const char *sepa; … … 327 327 } 328 328 329 void print_atr(ct_handle * h, unsigned char *atr, size_t len)329 static void print_atr(ct_handle * h, unsigned char *atr, size_t len) 330 330 { 331 331 unsigned int m; … … 341 341 } 342 342 343 void dump(unsigned char *data, size_t len)343 static void dump(unsigned char *data, size_t len) 344 344 { 345 345 unsigned int offset = 0;
Note: See TracChangeset
for help on using the changeset viewer.
