Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

irlap_comp.h

Go to the documentation of this file.
00001 /*********************************************************************
00002  *                
00003  * Filename:      irlap_comp.h
00004  * Version:       
00005  * Description:   
00006  * Status:        Experimental.
00007  * Author:        Dag Brattli <dagb@cs.uit.no>
00008  * Created at:    Fri Oct  9 09:21:12 1998
00009  * Modified at:   Sat Dec 12 12:23:16 1998
00010  * Modified by:   Dag Brattli <dagb@cs.uit.no>
00011  * 
00012  *     Copyright (c) 1998 Dag Brattli, All Rights Reserved.
00013  *      
00014  *     This program is free software; you can redistribute it and/or 
00015  *     modify it under the terms of the GNU General Public License as 
00016  *     published by the Free Software Foundation; either version 2 of 
00017  *     the License, or (at your option) any later version.
00018  *  
00019  *     Neither Dag Brattli nor University of Tromsų admit liability nor
00020  *     provide warranty for any of this software. This material is 
00021  *     provided "AS-IS" and at no charge.
00022  *     
00023  ********************************************************************/
00024 
00025 #ifndef IRLAP_COMP_H
00026 #define IRLAP_COMP_H
00027 
00028 #include <linux/ppp-comp.h>
00029 
00030 #define CI_BZIP2  27 /* Random pick */
00031 
00032 extern hashbin_t *irlap_compressors;
00033 
00034 int irda_register_compressor( struct compressor *cp);
00035 void irda_unregister_compressor( struct compressor *cp);
00036 
00037 int irda_set_compression( struct irlap_cb *self, int proto);
00038 void irlap_compressor_init( struct irlap_cb *self, int compress);
00039 void irda_free_compression( struct irlap_cb *self);
00040 
00041 struct sk_buff *irlap_compress_frame( struct irlap_cb *self, 
00042                                       struct sk_buff *skb);
00043 struct sk_buff *irlap_decompress_frame( struct irlap_cb *self, 
00044                                         struct sk_buff *skb);
00045 
00046 #endif
00047