Commit d260ee6e authored by Frédéric Leroy's avatar Frédéric Leroy

fix(conf2uedata): fix missing extern in header

parent e4b01bea
...@@ -6,13 +6,35 @@ ...@@ -6,13 +6,35 @@
#include "user_api.h" #include "user_api.h"
#include "utils.h" #include "utils.h"
char * make_filename(const char *output_dir, const char *filename, int ueid); const char *output_dir = NULL;
int get_config_from_file(const char *filename, config_t *config);
int parse_config_file(const char *filename); const char *msin = NULL;
const char *usim_api_k = NULL;
const char *msisdn = NULL;
const char *opc = NULL;
const char *hplmn = NULL;
int *ucplmn = NULL;
int *oplmn = NULL;
int *ocplmn = NULL;
int *fplmn = NULL;
int *ehplmn = NULL;
int hplmn_index = 0;
int plmn_nb = 0;
int ucplmn_nb = 0;
int oplmn_nb = 0;
int ocplmn_nb = 0;
int fplmn_nb = 0;
int ehplmn_nb = 0;
plmn_conf_param_t* user_plmn_list=NULL;
network_record_t* user_network_record_list = NULL;
int main(int argc, char**argv) { int main(int argc, char**argv) {
int option; int option;
const char* conf_file = NULL; const char* conf_file = NULL;
const char options[]="c:o:h";
while ((option = getopt(argc, argv, options)) != -1) { while ((option = getopt(argc, argv, options)) != -1) {
switch (option) { switch (option) {
...@@ -48,7 +70,6 @@ int main(int argc, char**argv) { ...@@ -48,7 +70,6 @@ int main(int argc, char**argv) {
} }
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
int parse_config_file(const char *filename) { int parse_config_file(const char *filename) {
......
...@@ -88,41 +88,40 @@ typedef struct { ...@@ -88,41 +88,40 @@ typedef struct {
} network_record_t; } network_record_t;
typedef struct { typedef struct {
const char* fullname; const char *fullname;
const char* shortname; const char *shortname;
const char* mnc; const char *mnc;
const char* mcc; const char *mcc;
} plmn_conf_param_t; } plmn_conf_param_t;
const char options[]="c:o:h"; extern const char* output_dir;
unsigned char parse_data=FALSE;
unsigned char print_data=FALSE; extern const char *msin;
unsigned char output=FALSE; extern const char *usim_api_k;
const char* output_dir = NULL; extern const char *msisdn;
extern const char *opc;
const char* imsi=NULL; extern const char *hplmn;
const char* msin=NULL;
const char* usim_api_k = NULL; extern int *ucplmn;
const char* msisdn = NULL; extern int *oplmn;
const char* opc=NULL; extern int *ocplmn;
const char* hplmn=NULL; extern int *fplmn;
extern int *ehplmn;
int* ucplmn=NULL;
int* oplmn=NULL; extern int hplmn_index;
int* ocplmn=NULL; extern int plmn_nb;
int* fplmn=NULL; extern int ucplmn_nb;
int* ehplmn=NULL; extern int oplmn_nb;
extern int ocplmn_nb;
int hplmn_index =0; extern int fplmn_nb;
int plmn_nb = 0; extern int ehplmn_nb;
int ucplmn_nb=0;
int oplmn_nb=0; extern plmn_conf_param_t* user_plmn_list;
int ocplmn_nb=0; extern network_record_t* user_network_record_list;
int fplmn_nb=0;
int ehplmn_nb=0; char *make_filename(const char *output_dir, const char *filename, int ueid);
int get_config_from_file(const char *filename, config_t *config);
plmn_conf_param_t* user_plmn_list=NULL; int parse_config_file(const char *filename);
network_record_t* user_network_record_list = NULL;
void _display_usim_data(int user_id); void _display_usim_data(int user_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment