netreg: Move stuff around to avoid forward decl

This commit is contained in:
Denis Kenzior 2010-08-18 21:07:50 -05:00
parent 0225a8ea10
commit 89f37c9010
1 changed files with 13 additions and 16 deletions

View File

@ -85,9 +85,6 @@ struct ofono_netreg {
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,
int status, int lac, int ci, int tech,
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);
}
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,
int status, int lac, int ci, int tech,
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,
const unsigned char *data,
int record_length, void *userdata)