Subversion Repositories HelenOS

Rev

Rev 2873 | Rev 2880 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /** @addtogroup sctrace
  2.  * @{
  3.  */
  4. /** @file
  5.  */
  6.  
  7. #ifndef PROTO_H_
  8. #define PROTO_H_
  9.  
  10. #include <libadt/hash_table.h>
  11.  
  12. typedef struct {
  13.     char *name;
  14. } proto_t;
  15.  
  16. /* Maps service number to protocol */
  17. extern hash_table_t srv_proto;
  18.  
  19. void proto_init(void);
  20. void proto_cleanup(void);
  21. void proto_register(int srv, proto_t *proto);
  22. proto_t *proto_get_by_srv(int srv);
  23.  
  24.  
  25. #endif
  26.  
  27. /** @}
  28.  */
  29.