Changes in uspace/app/trace/proto.h [062d900:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/proto.h
r062d900 rffa2c8ef 44 44 typedef struct { 45 45 const char *name; 46 46 47 47 int argc; 48 48 val_type_t arg_type[OPER_MAX_ARGS]; 49 49 50 50 val_type_t rv_type; 51 51 52 52 int respc; 53 53 val_type_t resp_type[OPER_MAX_ARGS]; … … 57 57 /** Protocol name */ 58 58 const char *name; 59 59 60 60 /** Maps method number to operation */ 61 61 hash_table_t method_oper; 62 62 } proto_t; 63 63 64 /* Maps service number to protocol */ 65 extern hash_table_t srv_proto; 64 66 65 externvoid proto_init(void);66 externvoid proto_cleanup(void);67 void proto_init(void); 68 void proto_cleanup(void); 67 69 68 extern void proto_register(int, proto_t *);69 extern proto_t *proto_get_by_srv(int);70 extern proto_t *proto_new(const char *);71 extern void proto_delete(proto_t *);72 extern void proto_add_oper(proto_t *, int, oper_t *);73 extern oper_t *proto_get_oper(proto_t *, int);70 void proto_register(int srv, proto_t *proto); 71 proto_t *proto_get_by_srv(int srv); 72 proto_t *proto_new(const char *name); 73 void proto_delete(proto_t *proto); 74 void proto_add_oper(proto_t *proto, int method, oper_t *oper); 75 oper_t *proto_get_oper(proto_t *proto, int method); 74 76 75 extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int, 76 val_type_t *); 77 oper_t *oper_new(const char *name, int argc, val_type_t *arg_types, 78 val_type_t rv_type, int respc, val_type_t *resp_types); 79 80 77 81 78 82 #endif
Note:
See TracChangeset
for help on using the changeset viewer.