summaryrefslogtreecommitdiff
path: root/include/linux/kernelcapi.h
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-17 10:16:21 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-17 10:16:21 -0500
commit7914dddec2e6546b6ce7b2ed9a408f9a6ba55ec4 (patch)
treeaba8939344aaf3b2df3ef695bf47521442286a7a /include/linux/kernelcapi.h
parentc073438613a5a16040e75c7a9d056495852cfa92 (diff)
ISDN: CAPI: Get rid of capi_signal mechanism
On arrival of a new message, kernelcapi used to call capi20_appl::signal(), which, from the application, would call back to capi20_get_message(). So we rather just push the message down directly, saving this detour.
Diffstat (limited to 'include/linux/kernelcapi.h')
-rw-r--r--include/linux/kernelcapi.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/kernelcapi.h b/include/linux/kernelcapi.h
index 689b7766885b..b982d5b77ae9 100644
--- a/include/linux/kernelcapi.h
+++ b/include/linux/kernelcapi.h
@@ -49,20 +49,16 @@ typedef struct kcapi_carddef {
#include <linux/skbuff.h>
-#define KCI_CONTRUP 0 /* struct capi_profile */
-#define KCI_CONTRDOWN 1 /* NULL */
+#define KCI_CONTRUP 0 /* arg: struct capi_profile */
+#define KCI_CONTRDOWN 1 /* arg: NULL */
struct capi20_appl {
u16 applid;
capi_register_params rparam;
+ void (*recv_message)(struct capi20_appl *ap, struct sk_buff *skb);
void *private;
/* internal to kernelcapi.o */
- void (*signal) (struct capi20_appl *ap);
- struct sk_buff_head recv_queue;
- int nncci;
- struct capi_ncci *nccilist;
-
unsigned long nrecvctlpkt;
unsigned long nrecvdatapkt;
unsigned long nsentctlpkt;
@@ -78,9 +74,6 @@ u16 capi20_isinstalled(void);
u16 capi20_register(struct capi20_appl *ap);
u16 capi20_release(struct capi20_appl *ap);
u16 capi20_put_message(struct capi20_appl *ap, struct sk_buff *skb);
-u16 capi20_get_message(struct capi20_appl *ap, struct sk_buff **msgp);
-u16 capi20_set_signal(struct capi20_appl *ap,
- void (*signal) (struct capi20_appl *ap));
u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]);
u16 capi20_get_version(u32 contr, struct capi_version *verp);
u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]);