| 1659 | |
| 1660 | |
| 1661 | int freeDiameter_init(void) |
| 1662 | { |
| 1663 | extern int fd_conf_deinit(void); |
| 1664 | |
| 1665 | extern int fd_log_level; |
| 1666 | |
| 1667 | if (fd_log_level < FD_LOG_ANNOYING) |
| 1668 | fd_log_level = FD_LOG_ANNOYING; |
| 1669 | |
| 1670 | if (fd_log_level > FD_LOG_FATAL) |
| 1671 | fd_log_level = FD_LOG_FATAL; |
| 1672 | |
| 1673 | /* free the "minimal initialization" we've done at mod_init() */ |
| 1674 | FD_CHECK(fd_conf_deinit()); |
| 1675 | |
| 1676 | /* ... and now fully init the entire freeDiameter library |
| 1677 | * (parse freeDiameter-client.conf file, fork all threads, etc.) */ |
| 1678 | FD_CHECK(fd_core_initialize()); |
| 1679 | |
| 1680 | fd_g_debug_lvl = fd_log_level; |
| 1681 | |
| 1682 | FD_CHECK(fd_core_parseconf(dm_conf_filename)); |
| 1683 | |
| 1684 | return 0; |
| 1685 | } |
| 1686 | |
| 1687 | |
| 1688 | int dm_find(aaa_conn *_, aaa_map *map, int op) |