add missing stuff to remove mongodb

This commit is contained in:
Alexander Couzens 2023-08-15 14:43:37 +02:00 committed by Oliver Smith
parent cea38f9be2
commit a1ff911a08
4 changed files with 43 additions and 1 deletions

34
lib/dbi/meson_dummy.h Normal file
View File

@ -0,0 +1,34 @@
/*
* Copyright (C) 2019-2022 by Sukchan Lee <acetcom@gmail.com>
*
* This file is part of Open5GS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MESON_DUMMY_H
#define MESON_DUMMY_H
#ifdef __cplusplus
extern "C" {
#endif
struct dummy_bson;
typedef struct dummy_bson bson_t;
#ifdef __cplusplus
}
#endif
#endif /* MESON_DUMMY_H */

View File

@ -19,6 +19,8 @@
#include "ogs-dbi.h"
#ifdef OGS_DBI_WITH_MONGODB
int ogs_dbi_process_change_stream(const bson_t *document)
{
int rv;
@ -39,3 +41,5 @@ int ogs_dbi_process_change_stream(const bson_t *document)
return OGS_OK;
}
#endif

View File

@ -20,6 +20,8 @@
#ifndef OGS_DBI_PATH_H
#define OGS_DBI_PATH_H
#include "meson_dummy.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -34,7 +34,9 @@ version_conf.set_quoted('OPEN5GS_VERSION', package_version)
configure_file(output : 'version.h', configuration : version_conf)
subdir('mme')
subdir('hss')
if get_option('mongodb')
subdir('hss')
endif
subdir('sgwc')
subdir('sgwu')
subdir('pcrf')