Back to index

courier  0.68.2
rwsearch.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 2000 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #include      "courier.h"
00007 #include      "rw.h"
00008 #include      <string.h>
00009 
00010 
00011 struct rw_transport *rw_transport_first=0, *rw_transport_last=0;
00012 
00013 struct rw_transport *rw_search_transport(const char *module)
00014 {
00015 struct rw_transport *p;
00016 
00017        for (p=rw_transport_first; p; p=p->next)
00018               if (strcmp(p->name, module) == 0)
00019                      return (p);
00020        return (0);
00021 }
00022 
00023 #if 0
00024 struct rw_list *rw_search(const char *funcname)
00025 {
00026 struct rw_transport *p;
00027 struct rw_list *q;
00028 
00029        for (p=rw_transport_first; p; p=p->next)
00030               for (q=p->rw_ptr; q; q=q->next)
00031                      if (strcmp(q->rewritename, funcname) == 0)
00032                             return (q);
00033        return (0);
00034 }
00035 #endif