diff options
Diffstat (limited to 'include/net/irda/iriap.h')
-rw-r--r-- | include/net/irda/iriap.h | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/include/net/irda/iriap.h b/include/net/irda/iriap.h index 495da351e..071ed8561 100644 --- a/include/net/irda/iriap.h +++ b/include/net/irda/iriap.h @@ -1,12 +1,12 @@ /********************************************************************* * * Filename: iriap.h - * Version: + * Version: 0.5 * Description: Information Access Protocol (IAP) * Status: Experimental. * Author: Dag Brattli <dagb@cs.uit.no> * Created at: Thu Aug 21 00:02:07 1997 - * Modified at: Sat Dec 5 13:45:37 1998 + * Modified at: Wed Apr 21 16:37:21 1999 * Modified by: Dag Brattli <dagb@cs.uit.no> * * Copyright (c) 1997 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved. @@ -34,8 +34,8 @@ #include <net/irda/irqueue.h> #include <net/irda/timer.h> -#define LST 0x80 -#define ACK 0x40 +#define IAP_LST 0x80 +#define IAP_ACK 0x40 #define IAS_SERVER 0 #define IAS_CLIENT 1 @@ -51,27 +51,18 @@ #define IAS_SUCCESS 0 #define IAS_CLASS_UNKNOWN 1 #define IAS_ATTRIB_UNKNOWN 2 +#define IAS_DISCONNECT 10 -typedef void (*CONFIRM_CALLBACK)( __u16 obj_id, struct ias_value *value, - void *priv); - -struct iap_value { - char *full; - char *name; - char *attr; - __u16 obj_id; - __u8 ret_code; - __u8 type; - int len; - int value_int; - char *value_char; -}; +typedef void (*CONFIRM_CALLBACK)(int result, __u16 obj_id, + struct ias_value *value, void *priv); struct iriap_cb { QUEUE queue; /* Must be first */ int magic; /* Magic cookie */ int mode; /* Client or server */ + + __u32 saddr; __u32 daddr; __u8 operation; @@ -95,19 +86,15 @@ struct iriap_cb { int iriap_init(void); void iriap_cleanup(void); -void iriap_getvaluebyclass_request( __u32 addr, char *name, char *attr, +void iriap_getvaluebyclass_request( char *name, char *attr, + __u32 saddr, __u32 daddr, CONFIRM_CALLBACK callback, void *priv); -void iriap_getvaluebyclass_confirm( struct iriap_cb *self, - struct sk_buff *skb); +void iriap_getvaluebyclass_confirm(struct iriap_cb *self, struct sk_buff *skb); void iriap_send_ack( struct iriap_cb *self); -void iriap_data_indication( void *instance, void *sap, struct sk_buff *skb); -void iriap_connect_confirm( void *instance, void *sap, struct qos_info *qos, - int max_sdu_size, struct sk_buff *skb); -void iriap_connect_indication( void *instance, void *sap, - struct qos_info *qos, int max_sdu_size, - struct sk_buff *skb); -void iriap_call_indication( struct iriap_cb *self, struct sk_buff *skb); +void iriap_connect_confirm(void *instance, void *sap, struct qos_info *qos, + __u32 max_sdu_size, struct sk_buff *skb); +void iriap_call_indication(struct iriap_cb *self, struct sk_buff *skb); void iriap_register_server(void); @@ -121,3 +108,5 @@ static inline void iriap_start_watchdog_timer( struct iriap_cb *self, } #endif + + |