mirror of git://git.sysmocom.de/ofono
netreg: Move stuff around to avoid forward decl
This commit is contained in:
parent
0225a8ea10
commit
89f37c9010
|
@ -85,9 +85,6 @@ struct ofono_netreg {
|
||||||
struct ofono_atom *atom;
|
struct ofono_atom *atom;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void signal_strength_callback(const struct ofono_error *error,
|
|
||||||
int strength, void *data);
|
|
||||||
|
|
||||||
static void registration_status_callback(const struct ofono_error *error,
|
static void registration_status_callback(const struct ofono_error *error,
|
||||||
int status, int lac, int ci, int tech,
|
int status, int lac, int ci, int tech,
|
||||||
void *data);
|
void *data);
|
||||||
|
@ -1345,6 +1342,19 @@ static void registration_status_callback(const struct ofono_error *error,
|
||||||
ofono_netreg_status_notify(netreg, status, lac, ci, tech);
|
ofono_netreg_status_notify(netreg, status, lac, ci, tech);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void signal_strength_callback(const struct ofono_error *error,
|
||||||
|
int strength, void *data)
|
||||||
|
{
|
||||||
|
struct ofono_netreg *netreg = data;
|
||||||
|
|
||||||
|
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
|
||||||
|
DBG("Error during signal strength query");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ofono_netreg_strength_notify(netreg, strength);
|
||||||
|
}
|
||||||
|
|
||||||
static void init_registration_status(const struct ofono_error *error,
|
static void init_registration_status(const struct ofono_error *error,
|
||||||
int status, int lac, int ci, int tech,
|
int status, int lac, int ci, int tech,
|
||||||
void *data)
|
void *data)
|
||||||
|
@ -1405,19 +1415,6 @@ void ofono_netreg_strength_notify(struct ofono_netreg *netreg, int strength)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signal_strength_callback(const struct ofono_error *error,
|
|
||||||
int strength, void *data)
|
|
||||||
{
|
|
||||||
struct ofono_netreg *netreg = data;
|
|
||||||
|
|
||||||
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
|
|
||||||
DBG("Error during signal strength query");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ofono_netreg_strength_notify(netreg, strength);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void sim_opl_read_cb(int ok, int length, int record,
|
static void sim_opl_read_cb(int ok, int length, int record,
|
||||||
const unsigned char *data,
|
const unsigned char *data,
|
||||||
int record_length, void *userdata)
|
int record_length, void *userdata)
|
||||||
|
|
Loading…
Reference in New Issue