Changeset 951 for trunk/src/ifd


Ignore:
Timestamp:
05/25/07 12:02:04 (5 years ago)
Author:
aj
Message:

and more static definitions.

Location:
trunk/src/ifd
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/ifd-acr30u.c

    r950 r951  
    520520} 
    521521 
     522#if 0 
    522523/* 
    523524 * Set the card's baud rate etc 
     
    527528        return 0; 
    528529} 
     530#endif 
    529531 
    530532/* 
  • trunk/src/ifd/ifd-ccid.c

    r928 r951  
    11271127        if (st->sbuf[dad]) { 
    11281128                free(st->sbuf[dad]); 
    1129                 st->sbuf[dad] = 0; 
    1130                 st->slen[dad] = 0; 
     1129                st->sbuf[dad] = NULL; 
     1130                st->slen[dad] = NULL; 
    11311131        } 
    11321132 
  • trunk/src/ifd/ifd-wbeiuu.c

    r950 r951  
    564564} 
    565565 
     566#if 0 
    566567static int wbeiuu_card_status(ifd_reader_t * reader, int slot, int *status) 
    567568{ 
     
    602603        return 0; 
    603604} 
     605#endif 
    604606 
    605607static int wbeiuu_send(ifd_reader_t * reader, unsigned int dad, 
  • trunk/src/ifd/ifdhandler.c

    r892 r951  
    1 /* 
     1/i* 
    22 * Manage a single reader 
    33 * 
     
    190190 * Spawn a new ifd handler thread 
    191191 */ 
    192 void ifdhandler_run(ifd_reader_t * reader) 
     192static void ifdhandler_run(ifd_reader_t * reader) 
    193193{ 
    194194        ct_socket_t *sock; 
     
    245245 * Poll for presence of hotplug device 
    246246 */ 
    247 int ifdhandler_poll_presence(ct_socket_t * sock, struct pollfd *pfd) 
     247static int ifdhandler_poll_presence(ct_socket_t * sock, struct pollfd *pfd) 
    248248{ 
    249249        ifd_reader_t *reader = (ifd_reader_t *) sock->user_data; 
     
    321321 * Receive data from client 
    322322 */ 
    323 int ifdhandler_recv(ct_socket_t * sock) 
     323static int ifdhandler_recv(ct_socket_t * sock) 
    324324{ 
    325325        ifd_reader_t *reader; 
     
    359359 * Transmit data to client 
    360360 */ 
    361 int ifdhandler_send(ct_socket_t * sock) 
     361static int ifdhandler_send(ct_socket_t * sock) 
    362362{ 
    363363        return ct_socket_flsbuf(sock, 0); 
     
    368368 * Release any locks held by this client 
    369369 */ 
    370 void ifdhandler_close(ct_socket_t * sock) 
     370static void ifdhandler_close(ct_socket_t * sock) 
    371371{ 
    372372        ifdhandler_unlock_all(sock); 
     
    401401} 
    402402 
    403 void print_info(void) 
     403static void print_info(void) 
    404404{ 
    405405        const char *names[64]; 
     
    426426 * Display version 
    427427 */ 
    428 void version(void) 
     428static void version(void) 
    429429{ 
    430430        fprintf(stdout, "OpenCT " VERSION "\n"); 
     
    435435 * Usage message 
    436436 */ 
    437 void usage(int exval) 
     437static void usage(int exval) 
    438438{ 
    439439        fprintf(exval ? stderr : stdout, 
  • trunk/src/ifd/ifdproxy.c

    r870 r951  
    172172} 
    173173 
    174 int run_server(int argc, char **argv) 
     174static int run_server(int argc, char **argv) 
    175175{ 
    176176        int rc; 
     
    206206} 
    207207 
    208 int run_client(int argc, char **argv) 
     208static int run_client(int argc, char **argv) 
    209209{ 
    210210        const char *name, *device, *address; 
     
    238238} 
    239239 
    240 int list_devices(int argc, char **argv) 
     240static int list_devices(int argc, char **argv) 
    241241{ 
    242242        unsigned char buffer[8192]; 
     
    279279} 
    280280 
    281 void version() 
     281static void version(void) 
    282282{ 
    283283        fprintf(stderr, "OpenCT " VERSION "\n"); 
     
    285285} 
    286286 
    287 void usage(int exval) 
     287static void usage(int exval) 
    288288{ 
    289289        fprintf(exval ? stderr : stdout, 
  • trunk/src/ifd/ria-device.c

    r662 r951  
    9595} 
    9696 
    97 int ria_devsock_process(ct_socket_t * sock, header_t * hdr, ct_buf_t * args, 
    98                         ct_buf_t * resp) 
     97static int ria_devsock_process(ct_socket_t * sock, header_t * hdr, 
     98                        ct_buf_t * args, ct_buf_t * resp) 
    9999{ 
    100100        ria_client_t *ria = (ria_client_t *) sock->user_data; 
     
    185185} 
    186186 
    187 void ria_devsock_close(ct_socket_t * sock) 
     187static void ria_devsock_close(ct_socket_t * sock) 
    188188{ 
    189189        ct_error("Network connection closed, exiting\n"); 
     
    237237} 
    238238 
    239 void ria_close_device(ct_socket_t * sock) 
     239static void ria_close_device(ct_socket_t * sock) 
    240240{ 
    241241        ct_error("Dispatcher requests that device is closed, abort"); 
  • trunk/src/ifd/ria-server.c

    r677 r951  
    7979} 
    8080 
    81 int ria_svc_accept(ct_socket_t * listener) 
     81static int ria_svc_accept(ct_socket_t * listener) 
    8282{ 
    8383        ria_peer_t *clnt; 
     
    104104} 
    105105 
    106 void ria_svc_app_close(ct_socket_t * sock) 
     106static void ria_svc_app_close(ct_socket_t * sock) 
    107107{ 
    108108        ria_peer_t *clnt = (ria_peer_t *) sock->user_data; 
     
    113113} 
    114114 
    115 void ria_svc_dev_close(ct_socket_t * sock) 
     115static void ria_svc_dev_close(ct_socket_t * sock) 
    116116{ 
    117117        ria_peer_t *clnt = (ria_peer_t *) sock->user_data; 
     
    125125 * to claim a device). 
    126126 */ 
    127 int ria_svc_app_handler(ct_socket_t * sock, header_t * hdr, ct_buf_t * args, 
    128                         ct_buf_t * resp) 
     127static int ria_svc_app_handler(ct_socket_t * sock, header_t * hdr, 
     128                        ct_buf_t * args, ct_buf_t * resp) 
    129129{ 
    130130        unsigned char cmd; 
     
    196196 * Process commands from remote clients (i.e. those offering a device). 
    197197 */ 
    198 int ria_svc_dev_handler(ct_socket_t * sock, header_t * hdr, ct_buf_t * args, 
    199                         ct_buf_t * resp) 
     198static int ria_svc_dev_handler(ct_socket_t * sock, header_t * hdr, 
     199                        ct_buf_t * args, ct_buf_t * resp) 
    200200{ 
    201201        unsigned char cmd; 
     
    255255} 
    256256 
    257 ria_peer_t *ria_peer_new(ct_socket_t * sock) 
     257static ria_peer_t *ria_peer_new(ct_socket_t * sock) 
    258258{ 
    259259        ria_peer_t *clnt; 
     
    270270} 
    271271 
    272 void ria_peer_free(ria_peer_t * clnt, int detach_peer) 
     272static void ria_peer_free(ria_peer_t * clnt, int detach_peer) 
    273273{ 
    274274        ria_peer_t *peer; 
     
    287287} 
    288288 
    289 void ria_svc_link(ria_peer_t * clnt) 
     289static void ria_svc_link(ria_peer_t * clnt) 
    290290{ 
    291291        ria_peer_t *prev; 
     
    298298} 
    299299 
    300 ria_peer_t *ria_find_device(const char *handle, size_t len) 
     300static ria_peer_t *ria_find_device(const char *handle, size_t len) 
    301301{ 
    302302        ria_peer_t *peer; 
     
    320320} 
    321321 
    322 void ria_svc_unlink(ria_peer_t * clnt) 
     322static void ria_svc_unlink(ria_peer_t * clnt) 
    323323{ 
    324324        ria_peer_t *prev, *next; 
Note: See TracChangeset for help on using the changeset viewer.