Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/proto.h

    r062d900 rffa2c8ef  
    4444typedef struct {
    4545        const char *name;
    46        
     46
    4747        int argc;
    4848        val_type_t arg_type[OPER_MAX_ARGS];
    49        
     49
    5050        val_type_t rv_type;
    51        
     51
    5252        int respc;
    5353        val_type_t resp_type[OPER_MAX_ARGS];
     
    5757        /** Protocol name */
    5858        const char *name;
    59        
     59
    6060        /** Maps method number to operation */
    6161        hash_table_t method_oper;
    6262} proto_t;
    6363
     64/* Maps service number to protocol */
     65extern hash_table_t srv_proto;
    6466
    65 extern void proto_init(void);
    66 extern void proto_cleanup(void);
     67void proto_init(void);
     68void proto_cleanup(void);
    6769
    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);
     70void proto_register(int srv, proto_t *proto);
     71proto_t *proto_get_by_srv(int srv);
     72proto_t *proto_new(const char *name);
     73void proto_delete(proto_t *proto);
     74void proto_add_oper(proto_t *proto, int method, oper_t *oper);
     75oper_t *proto_get_oper(proto_t *proto, int method);
    7476
    75 extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int,
    76     val_type_t *);
     77oper_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
    7781
    7882#endif
Note: See TracChangeset for help on using the changeset viewer.