proto.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <adt/hash_table.h>
#include "trace.h"
#include "proto.h"

Go to the source code of this file.

Data Structures

struct  method_oper_t
struct  srv_proto_t

Defines

#define METHOD_OPER_TABLE_CHAINS   32
#define SRV_PROTO_TABLE_CHAINS   32

Functions

static int method_oper_compare (unsigned long key[], hash_count_t keys, link_t *item)
static hash_index_t method_oper_hash (unsigned long key[])
static void method_oper_remove_callback (link_t *item)
oper_toper_new (const char *name, int argc, val_type_t *arg_types, val_type_t rv_type, int respc, val_type_t *resp_types)
static void oper_struct_init (oper_t *oper, const char *name)
void proto_add_oper (proto_t *proto, int method, oper_t *oper)
void proto_cleanup (void)
void proto_delete (proto_t *proto)
proto_tproto_get_by_srv (int srv)
oper_tproto_get_oper (proto_t *proto, int method)
void proto_init (void)
proto_tproto_new (const char *name)
void proto_register (int srv, proto_t *proto)
static void proto_struct_init (proto_t *proto, const char *name)
static int srv_proto_compare (unsigned long key[], hash_count_t keys, link_t *item)
static hash_index_t srv_proto_hash (unsigned long key[])
static void srv_proto_remove_callback (link_t *item)

Variables

hash_table_operations_t method_oper_ops
hash_table_t srv_proto
hash_table_operations_t srv_proto_ops


Detailed Description

Definition in file proto.c.


Generated on Thu Jun 2 07:45:51 2011 for HelenOS/USB by  doxygen 1.4.7