3 * $Id: tx-socket.h,v 1.3 2002/02/02 19:17:25 mdw Exp $
7 * (c) 2001 Mark Wooding
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of Jog: Programming for a jogging machine.
14 * Jog is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * Jog is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Jog; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 /*----- Revision history --------------------------------------------------*
31 * $Log: tx-socket.h,v $
32 * Revision 1.3 2002/02/02 19:17:25 mdw
33 * Use configurable path.
35 * Revision 1.2 2002/01/30 09:25:35 mdw
36 * Minor modifications for the transport configuration change.
38 * Revision 1.1 2002/01/25 19:34:45 mdw
50 /*----- Header files ------------------------------------------------------*/
60 /*----- Functions provided ------------------------------------------------*/
62 extern txport *txsock_create(const char */*file*/);
63 extern void *txsock_fetch(void */*txv*/);
64 extern ssize_t txsock_write(txport */*txg*/,
65 const void */*p*/, size_t /*sz*/);
66 extern void txsock_destroy(txport */*txg*/);
69 static const struct txfile txsock_fv[] = {
74 static txport_ops txsock_ops = {
75 TX_LIST, "socket", txsock_fv, 0,
76 txsock_create, 0, txsock_fetch, txsock_write, txsock_destroy
79 # define TX_LIST &txsock_ops
82 /*----- That's all, folks -------------------------------------------------*/