patch-2.2.3 linux/include/net/irda/irias_object.h
Next file: linux/include/net/irda/irlan_cli.h
Previous file: linux/include/net/irda/iriap.h
Back to the patch index
Back to the overall index
- Lines: 80
- Date:
Sun Mar 7 15:26:43 1999
- Orig file:
v2.2.2/linux/include/net/irda/irias_object.h
- Orig date:
Tue Dec 22 14:16:58 1998
diff -u --recursive --new-file v2.2.2/linux/include/net/irda/irias_object.h linux/include/net/irda/irias_object.h
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Thu Oct 1 22:49:50 1998
- * Modified at: Sun Oct 25 00:28:56 1998
+ * Modified at: Wed Feb 3 10:38:02 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
*
* Copyright (c) 1998 Dag Brattli, All Rights Reserved.
@@ -25,7 +25,7 @@
#ifndef LM_IAS_OBJECT_H
#define LM_IAS_OBJECT_H
-#include "irqueue.h"
+#include <net/irda/irqueue.h>
/* LM-IAS Attribute types */
#define IAS_MISSING 0
@@ -38,12 +38,10 @@
*/
struct ias_object {
QUEUE queue; /* Must be first! */
-
int magic;
char *name;
int id;
-
hashbin_t *attribs;
};
@@ -51,8 +49,7 @@
* Values used by LM-IAS attributes
*/
struct ias_value {
- /* Value description */
- __u8 type;
+ __u8 type; /* Value description */
int charset; /* Only used by string type */
int len;
@@ -68,16 +65,11 @@
* Attributes used by LM-IAS objects
*/
struct ias_attrib {
- QUEUE queue; /* Must be first! */
-
+ QUEUE queue; /* Must be first! */
int magic;
- /* Attribute name */
- char *name;
- /* char *attr; What do we need this for? */
-
- /* Attribute value */
- struct ias_value *value;
+ char *name; /* Attribute name */
+ struct ias_value *value; /* Attribute value */
};
char *strdup( char *str);
@@ -87,12 +79,12 @@
void __irias_delete_object( struct ias_object *obj);
void irias_delete_object( char *name);
-void irias_add_integer_attrib( struct ias_object *obj, char *name,
- int value);
-void irias_add_string_attrib( struct ias_object *obj, char *name,
- char *value);
-void irias_add_octseq_attrib( struct ias_object *obj, char *name,
- __u8 *octets, int len);
+void irias_add_integer_attrib(struct ias_object *obj, char *name, int value);
+void irias_add_string_attrib(struct ias_object *obj, char *name, char *value);
+void irias_add_octseq_attrib(struct ias_object *obj, char *name, __u8 *octets,
+ int len);
+int irias_object_change_attribute(char *obj_name, char *attrib_name,
+ struct ias_value *new_value);
struct ias_object *irias_find_object( char *name);
struct ias_attrib *irias_find_attrib( struct ias_object *obj, char *name);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)