File: irlap_comp.h

package info (click to toggle)
kernel-source-2.2.1 2.2.1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 61,788 kB
  • ctags: 188,316
  • sloc: ansic: 1,114,164; asm: 49,922; makefile: 8,185; sh: 1,745; perl: 856; tcl: 409; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (47 lines) | stat: -rw-r--r-- 1,618 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*********************************************************************
 *                
 * Filename:      irlap_comp.h
 * Version:       
 * Description:   
 * Status:        Experimental.
 * Author:        Dag Brattli <dagb@cs.uit.no>
 * Created at:    Fri Oct  9 09:21:12 1998
 * Modified at:   Sat Dec 12 12:23:16 1998
 * Modified by:   Dag Brattli <dagb@cs.uit.no>
 * 
 *     Copyright (c) 1998 Dag Brattli, All Rights Reserved.
 *      
 *     This program is free software; you can redistribute it and/or 
 *     modify it under the terms of the GNU General Public License as 
 *     published by the Free Software Foundation; either version 2 of 
 *     the License, or (at your option) any later version.
 *  
 *     Neither Dag Brattli nor University of Troms admit liability nor
 *     provide warranty for any of this software. This material is 
 *     provided "AS-IS" and at no charge.
 *     
 ********************************************************************/

#ifndef IRLAP_COMP_H
#define IRLAP_COMP_H

#include <linux/ppp-comp.h>

#define CI_BZIP2  27 /* Random pick */

extern hashbin_t *irlap_compressors;

int irda_register_compressor( struct compressor *cp);
void irda_unregister_compressor( struct compressor *cp);

int irda_set_compression( struct irlap_cb *self, int proto);
void irlap_compressor_init( struct irlap_cb *self, int compress);
void irda_free_compression( struct irlap_cb *self);

struct sk_buff *irlap_compress_frame( struct irlap_cb *self, 
				      struct sk_buff *skb);
struct sk_buff *irlap_decompress_frame( struct irlap_cb *self, 
					struct sk_buff *skb);

#endif