From 28dcbc5ee57d568c9037a202944303629446612e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 22 Dec 2010 18:21:14 +0100 Subject: [PATCH] misc: Remove gsm_subscriber.h from the db.h file Reduce the dependencies on the header files. --- openbsc/include/openbsc/db.h | 9 ++++++++- openbsc/src/db.c | 1 + openbsc/tests/db/db_test.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h index b028a40c9..8bf361fc8 100644 --- a/openbsc/include/openbsc/db.h +++ b/openbsc/include/openbsc/db.h @@ -23,7 +23,14 @@ #include -#include +struct gsm_equipment; +struct gsm_network; +struct gsm_auth_info; +struct gsm_auth_tuple; +struct gsm_sms; +struct gsm_subscriber; + +enum gsm_subscriber_field; /* one time initialisation */ int db_init(const char *name); diff --git a/openbsc/src/db.c b/openbsc/src/db.c index 12422fa83..d67208193 100644 --- a/openbsc/src/db.c +++ b/openbsc/src/db.c @@ -30,6 +30,7 @@ #include #include +#include #include #include #include diff --git a/openbsc/tests/db/db_test.c b/openbsc/tests/db/db_test.c index f168acb64..c14dd664d 100644 --- a/openbsc/tests/db/db_test.c +++ b/openbsc/tests/db/db_test.c @@ -19,6 +19,7 @@ */ #include +#include #include #include