Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9f98ce8f
Commit
9f98ce8f
authored
Dec 27, 2004
by
David S. Miller
Committed by
Thomas Graf
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: More staticization becomes possible in ircomm_ttp.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
2923857f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
27 deletions
+57
-27
net/irda/ircomm/ircomm_ttp.c
net/irda/ircomm/ircomm_ttp.c
+57
-27
No files found.
net/irda/ircomm/ircomm_ttp.c
View file @
9f98ce8f
...
...
@@ -40,6 +40,35 @@
#include <net/irda/ircomm_event.h>
#include <net/irda/ircomm_ttp.h>
static
int
ircomm_ttp_data_indication
(
void
*
instance
,
void
*
sap
,
struct
sk_buff
*
skb
);
static
void
ircomm_ttp_connect_confirm
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
);
static
void
ircomm_ttp_connect_indication
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
);
static
void
ircomm_ttp_flow_indication
(
void
*
instance
,
void
*
sap
,
LOCAL_FLOW
cmd
);
static
void
ircomm_ttp_disconnect_indication
(
void
*
instance
,
void
*
sap
,
LM_REASON
reason
,
struct
sk_buff
*
skb
);
static
int
ircomm_ttp_data_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
skb
,
int
clen
);
static
int
ircomm_ttp_connect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
);
static
int
ircomm_ttp_connect_response
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
);
static
int
ircomm_ttp_disconnect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
);
/*
* Function ircomm_open_tsap (self)
*
...
...
@@ -87,9 +116,9 @@ int ircomm_open_tsap(struct ircomm_cb *self)
*
*
*/
int
ircomm_ttp_connect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
)
static
int
ircomm_ttp_connect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
)
{
int
ret
=
0
;
...
...
@@ -112,8 +141,8 @@ int ircomm_ttp_connect_request(struct ircomm_cb *self,
*
*
*/
int
ircomm_ttp_connect_response
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
)
static
int
ircomm_ttp_connect_response
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
)
{
int
ret
;
...
...
@@ -137,9 +166,9 @@ int ircomm_ttp_connect_response(struct ircomm_cb *self,
* some of them are sent after connection establishment, so this can
* increase the latency a bit.
*/
int
ircomm_ttp_data_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
skb
,
int
clen
)
static
int
ircomm_ttp_data_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
skb
,
int
clen
)
{
int
ret
;
...
...
@@ -175,8 +204,8 @@ int ircomm_ttp_data_request(struct ircomm_cb *self,
* Incoming data
*
*/
int
ircomm_ttp_data_indication
(
void
*
instance
,
void
*
sap
,
struct
sk_buff
*
skb
)
static
int
ircomm_ttp_data_indication
(
void
*
instance
,
void
*
sap
,
struct
sk_buff
*
skb
)
{
struct
ircomm_cb
*
self
=
(
struct
ircomm_cb
*
)
instance
;
...
...
@@ -194,11 +223,11 @@ int ircomm_ttp_data_indication(void *instance, void *sap,
return
0
;
}
void
ircomm_ttp_connect_confirm
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
)
static
void
ircomm_ttp_connect_confirm
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
)
{
struct
ircomm_cb
*
self
=
(
struct
ircomm_cb
*
)
instance
;
struct
ircomm_info
info
;
...
...
@@ -234,11 +263,11 @@ void ircomm_ttp_connect_confirm(void *instance, void *sap,
*
*
*/
void
ircomm_ttp_connect_indication
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
)
static
void
ircomm_ttp_connect_indication
(
void
*
instance
,
void
*
sap
,
struct
qos_info
*
qos
,
__u32
max_sdu_size
,
__u8
max_header_size
,
struct
sk_buff
*
skb
)
{
struct
ircomm_cb
*
self
=
(
struct
ircomm_cb
*
)
instance
;
struct
ircomm_info
info
;
...
...
@@ -273,9 +302,9 @@ void ircomm_ttp_connect_indication(void *instance, void *sap,
*
*
*/
int
ircomm_ttp_disconnect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
)
static
int
ircomm_ttp_disconnect_request
(
struct
ircomm_cb
*
self
,
struct
sk_buff
*
userdata
,
struct
ircomm_info
*
info
)
{
int
ret
;
...
...
@@ -294,9 +323,9 @@ int ircomm_ttp_disconnect_request(struct ircomm_cb *self,
*
*
*/
void
ircomm_ttp_disconnect_indication
(
void
*
instance
,
void
*
sap
,
LM_REASON
reason
,
struct
sk_buff
*
skb
)
static
void
ircomm_ttp_disconnect_indication
(
void
*
instance
,
void
*
sap
,
LM_REASON
reason
,
struct
sk_buff
*
skb
)
{
struct
ircomm_cb
*
self
=
(
struct
ircomm_cb
*
)
instance
;
struct
ircomm_info
info
;
...
...
@@ -321,7 +350,8 @@ void ircomm_ttp_disconnect_indication(void *instance, void *sap,
* Layer below is telling us to start or stop the flow of data
*
*/
void
ircomm_ttp_flow_indication
(
void
*
instance
,
void
*
sap
,
LOCAL_FLOW
cmd
)
static
void
ircomm_ttp_flow_indication
(
void
*
instance
,
void
*
sap
,
LOCAL_FLOW
cmd
)
{
struct
ircomm_cb
*
self
=
(
struct
ircomm_cb
*
)
instance
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment