From 64abe98a72f1a86a1517acac15522ece1a76d75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sun, 8 Oct 2000 21:46:48 +0000 Subject: [PATCH] added fread_block git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@198 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- src/serial.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/serial.h b/src/serial.h index af939cafc..3e5a1d729 100644 --- a/src/serial.h +++ b/src/serial.h @@ -6,7 +6,7 @@ * Provides useful routines for read/write serial data for communicating * via serial interface . * - * $Id: serial.h,v 1.1 2000-10-01 14:24:47 f4cfe Exp $ + * $Id: serial.h,v 1.2 2000-10-08 21:46:48 f4cfe Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -28,7 +28,7 @@ #ifndef _SERIAL_H #define _SERIAL_H 1 -#include +#include int serial_open(struct rig_state *rs); @@ -36,6 +36,7 @@ int serial_open(struct rig_state *rs); int read_sleep(int fd, unsigned char *rxbuffer, int num , int read_delay); int read_block(int fd, unsigned char *rxbuffer, size_t count, int timeout); int write_block(int fd, const unsigned char *txbuffer, size_t count, int write_delay); +int fread_block(FILE *stream, unsigned char *rxbuffer, size_t count, int timeout); #endif /* _SERIAL_H */