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
Kirill Smelkov
linux
Commits
94adaf93
Commit
94adaf93
authored
Mar 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Move iriap routines out of irsyms, rename missing to irias_missing.
parent
c91f9a41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
23 deletions
+23
-23
include/net/irda/irias_object.h
include/net/irda/irias_object.h
+1
-1
net/irda/iriap.c
net/irda/iriap.c
+7
-2
net/irda/irias_object.c
net/irda/irias_object.c
+15
-2
net/irda/irsyms.c
net/irda/irsyms.c
+0
-18
No files found.
include/net/irda/irias_object.h
View file @
94adaf93
...
...
@@ -101,7 +101,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len);
struct
ias_value
*
irias_new_missing_value
(
void
);
void
irias_delete_value
(
struct
ias_value
*
value
);
extern
struct
ias_value
missing
;
extern
struct
ias_value
irias_
missing
;
extern
hashbin_t
*
irias_objects
;
#endif
net/irda/iriap.c
View file @
94adaf93
...
...
@@ -25,6 +25,7 @@
********************************************************************/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/string.h>
...
...
@@ -200,6 +201,7 @@ struct iriap_cb *iriap_open(__u8 slsap_sel, int mode, void *priv,
return
self
;
}
EXPORT_SYMBOL
(
iriap_open
);
/*
* Function __iriap_close (self)
...
...
@@ -248,6 +250,7 @@ void iriap_close(struct iriap_cb *self)
__iriap_close
(
self
);
}
EXPORT_SYMBOL
(
iriap_close
);
static
int
iriap_register_lsap
(
struct
iriap_cb
*
self
,
__u8
slsap_sel
,
int
mode
)
{
...
...
@@ -435,6 +438,7 @@ int iriap_getvaluebyclass_request(struct iriap_cb *self,
return
0
;
}
EXPORT_SYMBOL
(
iriap_getvaluebyclass_request
);
/*
* Function iriap_getvaluebyclass_confirm (self, skb)
...
...
@@ -674,7 +678,7 @@ void iriap_getvaluebyclass_indication(struct iriap_cb *self,
if
(
obj
==
NULL
)
{
IRDA_DEBUG
(
2
,
"LM-IAS: Object %s not found
\n
"
,
name
);
iriap_getvaluebyclass_response
(
self
,
0x1235
,
IAS_CLASS_UNKNOWN
,
&
missing
);
&
irias_
missing
);
return
;
}
IRDA_DEBUG
(
4
,
"LM-IAS: found %s, id=%d
\n
"
,
obj
->
name
,
obj
->
id
);
...
...
@@ -683,7 +687,8 @@ void iriap_getvaluebyclass_indication(struct iriap_cb *self,
if
(
attrib
==
NULL
)
{
IRDA_DEBUG
(
2
,
"LM-IAS: Attribute %s not found
\n
"
,
attr
);
iriap_getvaluebyclass_response
(
self
,
obj
->
id
,
IAS_ATTRIB_UNKNOWN
,
&
missing
);
IAS_ATTRIB_UNKNOWN
,
&
irias_missing
);
return
;
}
...
...
net/irda/irias_object.c
View file @
94adaf93
...
...
@@ -24,6 +24,7 @@
#include <linux/string.h>
#include <linux/socket.h>
#include <linux/module.h>
#include <net/irda/irda.h>
#include <net/irda/irias_object.h>
...
...
@@ -33,7 +34,7 @@ hashbin_t *irias_objects;
/*
* Used when a missing value needs to be returned
*/
struct
ias_value
missing
=
{
IAS_MISSING
,
0
,
0
,
0
,
{
0
}};
struct
ias_value
irias_
missing
=
{
IAS_MISSING
,
0
,
0
,
0
,
{
0
}};
/*
* Function strndup (str, max)
...
...
@@ -107,6 +108,7 @@ struct ias_object *irias_new_object( char *name, int id)
return
obj
;
}
EXPORT_SYMBOL
(
irias_new_object
);
/*
* Function irias_delete_attrib (attrib)
...
...
@@ -165,6 +167,7 @@ int irias_delete_object(struct ias_object *obj)
return
0
;
}
EXPORT_SYMBOL
(
irias_delete_object
);
/*
* Function irias_delete_attrib (obj)
...
...
@@ -210,6 +213,7 @@ void irias_insert_object(struct ias_object *obj)
hashbin_insert
(
irias_objects
,
(
irda_queue_t
*
)
obj
,
0
,
obj
->
name
);
}
EXPORT_SYMBOL
(
irias_insert_object
);
/*
* Function irias_find_object (name)
...
...
@@ -224,6 +228,7 @@ struct ias_object *irias_find_object(char *name)
/* Unsafe (locking), object might change */
return
hashbin_lock_find
(
irias_objects
,
0
,
name
);
}
EXPORT_SYMBOL
(
irias_find_object
);
/*
* Function irias_find_attrib (obj, name)
...
...
@@ -246,6 +251,7 @@ struct ias_attrib *irias_find_attrib(struct ias_object *obj, char *name)
/* Unsafe (locking), attrib might change */
return
attrib
;
}
EXPORT_SYMBOL
(
irias_find_attrib
);
/*
* Function irias_add_attribute (obj, attrib)
...
...
@@ -318,6 +324,7 @@ int irias_object_change_attribute(char *obj_name, char *attrib_name,
spin_unlock_irqrestore
(
&
obj
->
attribs
->
hb_spinlock
,
flags
);
return
0
;
}
EXPORT_SYMBOL
(
irias_object_change_attribute
);
/*
* Function irias_object_add_integer_attrib (obj, name, value)
...
...
@@ -350,6 +357,7 @@ void irias_add_integer_attrib(struct ias_object *obj, char *name, int value,
irias_add_attrib
(
obj
,
attrib
,
owner
);
}
EXPORT_SYMBOL
(
irias_add_integer_attrib
);
/*
* Function irias_add_octseq_attrib (obj, name, octet_seq, len)
...
...
@@ -384,6 +392,7 @@ void irias_add_octseq_attrib(struct ias_object *obj, char *name, __u8 *octets,
irias_add_attrib
(
obj
,
attrib
,
owner
);
}
EXPORT_SYMBOL
(
irias_add_octseq_attrib
);
/*
* Function irias_object_add_string_attrib (obj, string)
...
...
@@ -417,6 +426,7 @@ void irias_add_string_attrib(struct ias_object *obj, char *name, char *value,
irias_add_attrib
(
obj
,
attrib
,
owner
);
}
EXPORT_SYMBOL
(
irias_add_string_attrib
);
/*
* Function irias_new_integer_value (integer)
...
...
@@ -441,6 +451,7 @@ struct ias_value *irias_new_integer_value(int integer)
return
value
;
}
EXPORT_SYMBOL
(
irias_new_integer_value
);
/*
* Function irias_new_string_value (string)
...
...
@@ -467,7 +478,7 @@ struct ias_value *irias_new_string_value(char *string)
return
value
;
}
EXPORT_SYMBOL
(
irias_new_string_value
);
/*
* Function irias_new_octseq_value (octets, len)
...
...
@@ -502,6 +513,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len)
memcpy
(
value
->
t
.
oct_seq
,
octseq
,
len
);
return
value
;
}
EXPORT_SYMBOL
(
irias_new_octseq_value
);
struct
ias_value
*
irias_new_missing_value
(
void
)
{
...
...
@@ -553,3 +565,4 @@ void irias_delete_value(struct ias_value *value)
}
kfree
(
value
);
}
EXPORT_SYMBOL
(
irias_delete_value
);
net/irda/irsyms.c
View file @
94adaf93
...
...
@@ -79,24 +79,6 @@ EXPORT_SYMBOL(irda_param_extract_all);
EXPORT_SYMBOL
(
irda_param_pack
);
EXPORT_SYMBOL
(
irda_param_unpack
);
/* IrIAP/IrIAS */
EXPORT_SYMBOL
(
iriap_open
);
EXPORT_SYMBOL
(
iriap_close
);
EXPORT_SYMBOL
(
iriap_getvaluebyclass_request
);
EXPORT_SYMBOL
(
irias_object_change_attribute
);
EXPORT_SYMBOL
(
irias_add_integer_attrib
);
EXPORT_SYMBOL
(
irias_add_octseq_attrib
);
EXPORT_SYMBOL
(
irias_add_string_attrib
);
EXPORT_SYMBOL
(
irias_insert_object
);
EXPORT_SYMBOL
(
irias_new_object
);
EXPORT_SYMBOL
(
irias_delete_object
);
EXPORT_SYMBOL
(
irias_delete_value
);
EXPORT_SYMBOL
(
irias_find_object
);
EXPORT_SYMBOL
(
irias_find_attrib
);
EXPORT_SYMBOL
(
irias_new_integer_value
);
EXPORT_SYMBOL
(
irias_new_string_value
);
EXPORT_SYMBOL
(
irias_new_octseq_value
);
/* IrLMP */
EXPORT_SYMBOL
(
irlmp_discovery_request
);
EXPORT_SYMBOL
(
irlmp_get_discoveries
);
...
...
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