open5gs/src/pcrf/pcrf_fd_path.c

28 lines
480 B
C
Raw Normal View History

2019-06-11 09:28:25 +00:00
#include "fd/fd-lib.h"
2017-08-17 05:15:08 +00:00
#include "pcrf_context.h"
#include "pcrf_fd_path.h"
2018-01-04 03:57:00 +00:00
2019-04-27 14:54:30 +00:00
int pcrf_fd_init(void)
2017-08-17 05:15:08 +00:00
{
2019-04-27 14:54:30 +00:00
int rv;
2018-01-10 03:45:58 +00:00
int ret = fd_init(FD_MODE_CLIENT|FD_MODE_SERVER,
pcrf_self()->fd_conf_path, pcrf_self()->fd_config);
2019-04-27 14:54:30 +00:00
ogs_assert(ret == 0);
2017-08-17 05:15:08 +00:00
2018-01-10 03:45:58 +00:00
rv = pcrf_gx_init();
2019-04-27 14:54:30 +00:00
ogs_assert(rv == OGS_OK);
2018-01-10 03:45:58 +00:00
rv = pcrf_rx_init();
2019-04-27 14:54:30 +00:00
ogs_assert(rv == OGS_OK);
2018-01-04 03:57:00 +00:00
2019-04-27 14:54:30 +00:00
return OGS_OK;
2017-08-17 05:15:08 +00:00
}
2017-08-22 15:51:57 +00:00
void pcrf_fd_final(void)
2017-08-17 05:15:08 +00:00
{
pcrf_gx_final();
pcrf_rx_final();
2018-01-04 03:57:00 +00:00
2017-08-17 05:15:08 +00:00
fd_final();
}