Commit 94adaf93 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Move iriap routines out of irsyms, rename missing to irias_missing.

parent c91f9a41
...@@ -101,7 +101,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len); ...@@ -101,7 +101,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len);
struct ias_value *irias_new_missing_value(void); struct ias_value *irias_new_missing_value(void);
void irias_delete_value(struct ias_value *value); void irias_delete_value(struct ias_value *value);
extern struct ias_value missing; extern struct ias_value irias_missing;
extern hashbin_t *irias_objects; extern hashbin_t *irias_objects;
#endif #endif
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
********************************************************************/ ********************************************************************/
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/string.h> #include <linux/string.h>
...@@ -200,6 +201,7 @@ struct iriap_cb *iriap_open(__u8 slsap_sel, int mode, void *priv, ...@@ -200,6 +201,7 @@ struct iriap_cb *iriap_open(__u8 slsap_sel, int mode, void *priv,
return self; return self;
} }
EXPORT_SYMBOL(iriap_open);
/* /*
* Function __iriap_close (self) * Function __iriap_close (self)
...@@ -248,6 +250,7 @@ void iriap_close(struct iriap_cb *self) ...@@ -248,6 +250,7 @@ void iriap_close(struct iriap_cb *self)
__iriap_close(self); __iriap_close(self);
} }
EXPORT_SYMBOL(iriap_close);
static int iriap_register_lsap(struct iriap_cb *self, __u8 slsap_sel, int mode) 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, ...@@ -435,6 +438,7 @@ int iriap_getvaluebyclass_request(struct iriap_cb *self,
return 0; return 0;
} }
EXPORT_SYMBOL(iriap_getvaluebyclass_request);
/* /*
* Function iriap_getvaluebyclass_confirm (self, skb) * Function iriap_getvaluebyclass_confirm (self, skb)
...@@ -674,7 +678,7 @@ void iriap_getvaluebyclass_indication(struct iriap_cb *self, ...@@ -674,7 +678,7 @@ void iriap_getvaluebyclass_indication(struct iriap_cb *self,
if (obj == NULL) { if (obj == NULL) {
IRDA_DEBUG(2, "LM-IAS: Object %s not found\n", name); IRDA_DEBUG(2, "LM-IAS: Object %s not found\n", name);
iriap_getvaluebyclass_response(self, 0x1235, IAS_CLASS_UNKNOWN, iriap_getvaluebyclass_response(self, 0x1235, IAS_CLASS_UNKNOWN,
&missing); &irias_missing);
return; return;
} }
IRDA_DEBUG(4, "LM-IAS: found %s, id=%d\n", obj->name, obj->id); 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, ...@@ -683,7 +687,8 @@ void iriap_getvaluebyclass_indication(struct iriap_cb *self,
if (attrib == NULL) { if (attrib == NULL) {
IRDA_DEBUG(2, "LM-IAS: Attribute %s not found\n", attr); IRDA_DEBUG(2, "LM-IAS: Attribute %s not found\n", attr);
iriap_getvaluebyclass_response(self, obj->id, iriap_getvaluebyclass_response(self, obj->id,
IAS_ATTRIB_UNKNOWN, &missing); IAS_ATTRIB_UNKNOWN,
&irias_missing);
return; return;
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/socket.h> #include <linux/socket.h>
#include <linux/module.h>
#include <net/irda/irda.h> #include <net/irda/irda.h>
#include <net/irda/irias_object.h> #include <net/irda/irias_object.h>
...@@ -33,7 +34,7 @@ hashbin_t *irias_objects; ...@@ -33,7 +34,7 @@ hashbin_t *irias_objects;
/* /*
* Used when a missing value needs to be returned * 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) * Function strndup (str, max)
...@@ -107,6 +108,7 @@ struct ias_object *irias_new_object( char *name, int id) ...@@ -107,6 +108,7 @@ struct ias_object *irias_new_object( char *name, int id)
return obj; return obj;
} }
EXPORT_SYMBOL(irias_new_object);
/* /*
* Function irias_delete_attrib (attrib) * Function irias_delete_attrib (attrib)
...@@ -165,6 +167,7 @@ int irias_delete_object(struct ias_object *obj) ...@@ -165,6 +167,7 @@ int irias_delete_object(struct ias_object *obj)
return 0; return 0;
} }
EXPORT_SYMBOL(irias_delete_object);
/* /*
* Function irias_delete_attrib (obj) * Function irias_delete_attrib (obj)
...@@ -210,6 +213,7 @@ void irias_insert_object(struct ias_object *obj) ...@@ -210,6 +213,7 @@ void irias_insert_object(struct ias_object *obj)
hashbin_insert(irias_objects, (irda_queue_t *) obj, 0, obj->name); hashbin_insert(irias_objects, (irda_queue_t *) obj, 0, obj->name);
} }
EXPORT_SYMBOL(irias_insert_object);
/* /*
* Function irias_find_object (name) * Function irias_find_object (name)
...@@ -224,6 +228,7 @@ struct ias_object *irias_find_object(char *name) ...@@ -224,6 +228,7 @@ struct ias_object *irias_find_object(char *name)
/* Unsafe (locking), object might change */ /* Unsafe (locking), object might change */
return hashbin_lock_find(irias_objects, 0, name); return hashbin_lock_find(irias_objects, 0, name);
} }
EXPORT_SYMBOL(irias_find_object);
/* /*
* Function irias_find_attrib (obj, name) * Function irias_find_attrib (obj, name)
...@@ -246,6 +251,7 @@ struct ias_attrib *irias_find_attrib(struct ias_object *obj, char *name) ...@@ -246,6 +251,7 @@ struct ias_attrib *irias_find_attrib(struct ias_object *obj, char *name)
/* Unsafe (locking), attrib might change */ /* Unsafe (locking), attrib might change */
return attrib; return attrib;
} }
EXPORT_SYMBOL(irias_find_attrib);
/* /*
* Function irias_add_attribute (obj, attrib) * Function irias_add_attribute (obj, attrib)
...@@ -318,6 +324,7 @@ int irias_object_change_attribute(char *obj_name, char *attrib_name, ...@@ -318,6 +324,7 @@ int irias_object_change_attribute(char *obj_name, char *attrib_name,
spin_unlock_irqrestore(&obj->attribs->hb_spinlock, flags); spin_unlock_irqrestore(&obj->attribs->hb_spinlock, flags);
return 0; return 0;
} }
EXPORT_SYMBOL(irias_object_change_attribute);
/* /*
* Function irias_object_add_integer_attrib (obj, name, value) * 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, ...@@ -350,6 +357,7 @@ void irias_add_integer_attrib(struct ias_object *obj, char *name, int value,
irias_add_attrib(obj, attrib, owner); irias_add_attrib(obj, attrib, owner);
} }
EXPORT_SYMBOL(irias_add_integer_attrib);
/* /*
* Function irias_add_octseq_attrib (obj, name, octet_seq, len) * 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, ...@@ -384,6 +392,7 @@ void irias_add_octseq_attrib(struct ias_object *obj, char *name, __u8 *octets,
irias_add_attrib(obj, attrib, owner); irias_add_attrib(obj, attrib, owner);
} }
EXPORT_SYMBOL(irias_add_octseq_attrib);
/* /*
* Function irias_object_add_string_attrib (obj, string) * 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, ...@@ -417,6 +426,7 @@ void irias_add_string_attrib(struct ias_object *obj, char *name, char *value,
irias_add_attrib(obj, attrib, owner); irias_add_attrib(obj, attrib, owner);
} }
EXPORT_SYMBOL(irias_add_string_attrib);
/* /*
* Function irias_new_integer_value (integer) * Function irias_new_integer_value (integer)
...@@ -441,6 +451,7 @@ struct ias_value *irias_new_integer_value(int integer) ...@@ -441,6 +451,7 @@ struct ias_value *irias_new_integer_value(int integer)
return value; return value;
} }
EXPORT_SYMBOL(irias_new_integer_value);
/* /*
* Function irias_new_string_value (string) * Function irias_new_string_value (string)
...@@ -467,7 +478,7 @@ struct ias_value *irias_new_string_value(char *string) ...@@ -467,7 +478,7 @@ struct ias_value *irias_new_string_value(char *string)
return value; return value;
} }
EXPORT_SYMBOL(irias_new_string_value);
/* /*
* Function irias_new_octseq_value (octets, len) * Function irias_new_octseq_value (octets, len)
...@@ -502,6 +513,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len) ...@@ -502,6 +513,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len)
memcpy(value->t.oct_seq, octseq , len); memcpy(value->t.oct_seq, octseq , len);
return value; return value;
} }
EXPORT_SYMBOL(irias_new_octseq_value);
struct ias_value *irias_new_missing_value(void) struct ias_value *irias_new_missing_value(void)
{ {
...@@ -553,3 +565,4 @@ void irias_delete_value(struct ias_value *value) ...@@ -553,3 +565,4 @@ void irias_delete_value(struct ias_value *value)
} }
kfree(value); kfree(value);
} }
EXPORT_SYMBOL(irias_delete_value);
...@@ -79,24 +79,6 @@ EXPORT_SYMBOL(irda_param_extract_all); ...@@ -79,24 +79,6 @@ EXPORT_SYMBOL(irda_param_extract_all);
EXPORT_SYMBOL(irda_param_pack); EXPORT_SYMBOL(irda_param_pack);
EXPORT_SYMBOL(irda_param_unpack); 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 */ /* IrLMP */
EXPORT_SYMBOL(irlmp_discovery_request); EXPORT_SYMBOL(irlmp_discovery_request);
EXPORT_SYMBOL(irlmp_get_discoveries); EXPORT_SYMBOL(irlmp_get_discoveries);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment