00001
00002
00003
00004
00005
00006
00007 #ifndef _NMF_CLIENT_H
00008 #define _NMF_CLIENT_H
00009 #include <rpc/rpc.h>
00010 #include <nm/nm_list.h>
00011 #include <nm/nm_rbt.h>
00012
00013 struct nmf_client {
00014 nmf_client_t local_id;
00015 nmf_client_t remote_id;
00016 char *hostname;
00017 nmf_aeh_t aeh;
00018 u_int aeh_mask;
00019 u_int aeh_context;
00020 pthread_mutex_t lock;
00021 int ref;
00022 struct nm_rbn rbn;
00023 CLIENT *clnt;
00024 };
00025
00026 struct nmf_client *nmf_client_alloc(void);
00027 nmf_client_t nmf_client_add(struct nmf_client *);
00028 void nmf_client_rem(nmf_client_t id);
00029 struct nmf_client *nmf_client_get(nmf_client_t id);
00030 void nmf_client_put(struct nmf_client *);
00031 void nmf_client_cleanup(struct nmf_client *clp);
00032
00033 #endif