Back to index

courier  0.68.2
Functions
lcrwstatic.c File Reference
#include "courier.h"
#include "rw.h"
#include "lcrwstaticlist.h"
#include <string.h>

Go to the source code of this file.

Functions

int rw_init_courier (const char *name)

Function Documentation

int rw_init_courier ( const char *  name)

Definition at line 23 of file lcrwstatic.c.

{
unsigned      i;
int    err=0;

       if (rw_init_verbose_flag)
       {
              clog_msg_start_info();
              clog_msg_str("Loading STATIC transport module libraries.");
              clog_msg_send();
       }
       if (rw_install_start())     return (-1);
       for (i=0; rw_static[i].name; i++)
              /* name != 0 really meaningless for static libs, but,
              ** what the heck...
              */
              if ((name == 0 || strcmp(name,
                     rw_static[i].name) == 0) &&
                     rw_install(rw_static[i].name,
                            rw_static[i].rw_install,
                            rw_static[i].rw_init))
                     err=1;

       if (err || rw_install_init())
       {
              clog_msg_start_err();
              clog_msg_str("Transport module installation has FAILED.");
              clog_msg_send();
              return (-1);
       }
       return (0);
}

Here is the call graph for this function:

Here is the caller graph for this function: