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.
36 /*----- Header files ------------------------------------------------------*/
46 /*----- Functions provided ------------------------------------------------*/
48 extern txport
*txsock_create(const char */
*file*/
);
49 extern void *txsock_fetch(void */
*txv*/
);
50 extern ssize_t
txsock_write(txport */
*txg*/
,
51 const void */
*p*/
, size_t /*sz*/);
52 extern void txsock_destroy(txport */
*txg*/
);
55 static const struct txfile txsock_fv
[] = {
60 static txport_ops txsock_ops
= {
61 TX_LIST
, "socket", txsock_fv
, 0,
62 txsock_create
, 0, txsock_fetch
, txsock_write
, txsock_destroy
65 # define TX_LIST &txsock_ops
68 /*----- That's all, folks -------------------------------------------------*/