Changes in uspace/app/trace/proto.h [b713ff80:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/proto.h
rb713ff80 r9d58539 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; … … 65 65 extern hash_table_t srv_proto; 66 66 67 externvoid proto_init(void);68 externvoid proto_cleanup(void);67 void proto_init(void); 68 void proto_cleanup(void); 69 69 70 extern void proto_register(int, proto_t *);71 extern proto_t *proto_get_by_srv(int);72 extern proto_t *proto_new(const char *);73 extern void proto_delete(proto_t *);74 extern void proto_add_oper(proto_t *, int, oper_t *);75 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); 76 76 77 extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int, 78 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 79 81 80 82 #endif
Note:
See TracChangeset
for help on using the changeset viewer.