summaryrefslogtreecommitdiffstats
path: root/ax25io.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-07-08 06:43:45 +0200
committerRalf Baechle <ralf@linux-mips.org>1999-07-08 06:43:45 +0200
commit25b07d12d92ebec03905433f2037cf5f9e757d7c (patch)
treea127f7c5990e1e73d76dedc875c94e7add72e77e /ax25io.h
parent9a9dc6176b5d74717c6e5b757a6d3b1dfe6604a3 (diff)
Import libax25 0.0.5 from tarballlibax25-0.0.5
Diffstat (limited to 'ax25io.h')
-rw-r--r--ax25io.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/ax25io.h b/ax25io.h
index a067670..5a97b65 100644
--- a/ax25io.h
+++ b/ax25io.h
@@ -1,10 +1,24 @@
+/* AX25IO - Library for io manuipulation for AX.25 programs
+ * Copyright (C) 1998 Tomi Manninen
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
#ifndef _AX25IO_H
#define _AX25IO_H
-#ifdef HAVE_ZLIB_H
-#include <zlib.h>
-#endif
-
#define AXBUFLEN 4096
typedef struct ax25io_s {
@@ -21,15 +35,8 @@ typedef struct ax25io_s {
unsigned char obuf[AXBUFLEN]; /* output buffer */
int iptr; /* input pointer */
int optr; /* output pointer */
-
-#ifdef HAVE_ZLIB_H
- int compr; /* compression on/off */
- int z_error; /* "(de)compression error" flag */
- unsigned char char_buf; /* temporary character buffer */
- z_stream zin; /* decompressor structure */
- z_stream zout; /* compressor structure */
-#endif
-
+ void *zptr; /* pointer to the compression struct */
+
struct ax25io_s *next; /* linked list pointer */
} ax25io;