debug logs
This commit is contained in:
@@ -46,6 +46,7 @@ struct ofono_audio_settings {
|
||||
void ofono_audio_settings_active_notify(struct ofono_audio_settings *as,
|
||||
ofono_bool_t active)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
const char *path = __ofono_atom_get_path(as->atom);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
|
||||
|
||||
@@ -111,6 +111,7 @@ static gboolean ims_registration_recheck_cb(gpointer user_data);
|
||||
static gboolean ims_ret_strategy_from_string(const char *str,
|
||||
enum ims_reg_strategy *value)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
if (str) {
|
||||
int i;
|
||||
|
||||
@@ -127,12 +128,14 @@ static gboolean ims_ret_strategy_from_string(const char *str,
|
||||
static inline gboolean ims_dbus_access_allowed(DBusMessage *msg,
|
||||
enum ofono_dbus_access_ims_method method)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
return ofono_dbus_access_method_allowed(dbus_message_get_sender(msg),
|
||||
OFONO_DBUS_ACCESS_INTF_IMS, method, NULL);
|
||||
}
|
||||
|
||||
static void ims_call_done(struct ims_call *call)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = call->ims;
|
||||
|
||||
ims->pending = call->next;
|
||||
@@ -148,6 +151,7 @@ static void ims_call_done(struct ims_call *call)
|
||||
static void ims_call_submit(struct ofono_ims *ims, ims_submit_cb_t submit,
|
||||
ims_cb_t cb, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ims_call *call = g_slice_new0(struct ims_call);
|
||||
|
||||
call->ims = ims;
|
||||
@@ -166,6 +170,7 @@ static void ims_call_submit(struct ofono_ims *ims, ims_submit_cb_t submit,
|
||||
|
||||
static void ims_call_register_cb(const struct ofono_error *error, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ims_call *call = data;
|
||||
|
||||
if (call->cb.register_cb)
|
||||
@@ -178,6 +183,7 @@ static void ims_call_status_cb(const struct ofono_error *error,
|
||||
int reg_info, int ext_info,
|
||||
void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ims_call *call = data;
|
||||
|
||||
if (call->cb.status_cb)
|
||||
@@ -188,6 +194,7 @@ static void ims_call_status_cb(const struct ofono_error *error,
|
||||
|
||||
static void ims_call_submit_registration_status(struct ims_call *call)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = call->ims;
|
||||
|
||||
ims->driver->registration_status(ims, ims_call_status_cb, call);
|
||||
@@ -195,6 +202,7 @@ static void ims_call_submit_registration_status(struct ims_call *call)
|
||||
|
||||
static void ims_call_submit_register(struct ims_call *call)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = call->ims;
|
||||
|
||||
ims->driver->ims_register(ims, ims_call_register_cb, call);
|
||||
@@ -202,6 +210,7 @@ static void ims_call_submit_register(struct ims_call *call)
|
||||
|
||||
static void ims_call_submit_unregister(struct ims_call *call)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = call->ims;
|
||||
|
||||
ims->driver->ims_unregister(ims, ims_call_register_cb, call);
|
||||
@@ -210,6 +219,7 @@ static void ims_call_submit_unregister(struct ims_call *call)
|
||||
static void ims_call_registration_status(struct ofono_ims *ims,
|
||||
ofono_ims_status_cb_t cb, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
ims_call_submit(ims, ims_call_submit_registration_status,
|
||||
CALLBACK(cb), data);
|
||||
}
|
||||
@@ -217,23 +227,27 @@ static void ims_call_registration_status(struct ofono_ims *ims,
|
||||
static void ims_call_register(struct ofono_ims *ims,
|
||||
ofono_ims_register_cb_t cb, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
ims_call_submit(ims, ims_call_submit_register, CALLBACK(cb), data);
|
||||
}
|
||||
|
||||
static void ims_call_unregister(struct ofono_ims *ims,
|
||||
ofono_ims_register_cb_t cb, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
ims_call_submit(ims, ims_call_submit_unregister, CALLBACK(cb), data);
|
||||
}
|
||||
|
||||
static gboolean ims_supported_reg_tech(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
return ims->watch &&
|
||||
ims->watch->reg_tech >= OFONO_ACCESS_TECHNOLOGY_EUTRAN;
|
||||
}
|
||||
|
||||
static void ims_registration_check(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
if (!ims->reg_check_pending)
|
||||
return;
|
||||
|
||||
@@ -281,6 +295,7 @@ static void ims_registration_check(struct ofono_ims *ims)
|
||||
|
||||
static gboolean ims_registration_recheck_cb(gpointer user_data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = user_data;
|
||||
|
||||
ims->recheck_timeout_id = 0;
|
||||
@@ -290,6 +305,7 @@ static gboolean ims_registration_recheck_cb(gpointer user_data)
|
||||
|
||||
static void ims_reg_tech_changed(struct ofono_watch *watch, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
ims->reg_check_pending = TRUE;
|
||||
@@ -299,6 +315,7 @@ static void ims_reg_tech_changed(struct ofono_watch *watch, void *data)
|
||||
static void ims_set_reg_strategy(struct ofono_ims *ims,
|
||||
enum ims_reg_strategy value)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
if (ims->reg_strategy != value) {
|
||||
const char *path = __ofono_atom_get_path(ims->atom);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
@@ -322,6 +339,7 @@ static void ims_set_reg_strategy(struct ofono_ims *ims,
|
||||
|
||||
static gboolean ims_imsi_check(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
const char* imsi = ims->watch ? ims->watch->imsi : NULL;
|
||||
|
||||
if (g_strcmp0(ims->imsi, imsi)) {
|
||||
@@ -344,6 +362,7 @@ static gboolean ims_imsi_check(struct ofono_ims *ims)
|
||||
|
||||
static void ims_apply_settings(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
char* str;
|
||||
|
||||
if (!ims->settings)
|
||||
@@ -364,6 +383,7 @@ static void ims_apply_settings(struct ofono_ims *ims)
|
||||
|
||||
static void ims_imsi_changed(struct ofono_watch *watch, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
if (ims_imsi_check(ims)) {
|
||||
@@ -375,6 +395,7 @@ static void ims_imsi_changed(struct ofono_watch *watch, void *data)
|
||||
static DBusMessage *ims_get_properties(DBusConnection *conn,
|
||||
DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
DBusMessage *reply;
|
||||
DBusMessageIter iter;
|
||||
@@ -414,6 +435,7 @@ static DBusMessage *ims_get_properties(DBusConnection *conn,
|
||||
static DBusMessage *ims_set_property(DBusConnection *conn,
|
||||
DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
DBusMessageIter iter;
|
||||
DBusMessageIter var;
|
||||
@@ -457,6 +479,7 @@ static DBusMessage *ims_set_property(DBusConnection *conn,
|
||||
|
||||
static void ims_set_sms_capable(struct ofono_ims *ims, ofono_bool_t status)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
const char *path = __ofono_atom_get_path(ims->atom);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
dbus_bool_t new_value = status;
|
||||
@@ -475,6 +498,7 @@ static void ims_set_sms_capable(struct ofono_ims *ims, ofono_bool_t status)
|
||||
|
||||
static void ims_set_voice_capable(struct ofono_ims *ims, ofono_bool_t status)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
const char *path = __ofono_atom_get_path(ims->atom);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
dbus_bool_t new_value = status;
|
||||
@@ -493,6 +517,7 @@ static void ims_set_voice_capable(struct ofono_ims *ims, ofono_bool_t status)
|
||||
|
||||
static void ims_set_registered(struct ofono_ims *ims, ofono_bool_t status)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
const char *path = __ofono_atom_get_path(ims->atom);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
dbus_bool_t new_value = status;
|
||||
@@ -510,6 +535,7 @@ static void ims_set_registered(struct ofono_ims *ims, ofono_bool_t status)
|
||||
|
||||
void ofono_ims_status_notify(struct ofono_ims *ims, int reg_info, int ext_info)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
dbus_bool_t new_reg_info;
|
||||
dbus_bool_t new_voice_capable, new_sms_capable;
|
||||
|
||||
@@ -543,6 +569,7 @@ skip:
|
||||
|
||||
static void register_cb(const struct ofono_error *error, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
if (error->type == OFONO_ERROR_TYPE_NO_ERROR)
|
||||
@@ -553,6 +580,7 @@ static void register_cb(const struct ofono_error *error, void *data)
|
||||
|
||||
static DBusMessage *ofono_ims_register_fn(DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
ims_call_register(ims, register_cb, ims);
|
||||
@@ -563,6 +591,7 @@ static DBusMessage *ofono_ims_register_fn(DBusMessage *msg, void *data)
|
||||
static DBusMessage *ofono_ims_send_register(DBusConnection *conn,
|
||||
DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
if (!ims_dbus_access_allowed(msg, OFONO_DBUS_ACCESS_IMS_REGISTER))
|
||||
@@ -581,6 +610,7 @@ static DBusMessage *ofono_ims_send_register(DBusConnection *conn,
|
||||
|
||||
static DBusMessage *ofono_ims_unregister_fn(DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
ims_call_unregister(ims, register_cb, ims);
|
||||
@@ -591,6 +621,7 @@ static DBusMessage *ofono_ims_unregister_fn(DBusMessage *msg, void *data)
|
||||
static DBusMessage *ofono_ims_unregister(DBusConnection *conn,
|
||||
DBusMessage *msg, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
if (!ims_dbus_access_allowed(msg, OFONO_DBUS_ACCESS_IMS_UNREGISTER))
|
||||
@@ -626,6 +657,7 @@ static const GDBusSignalTable ims_signals[] = {
|
||||
|
||||
static void ims_atom_remove(struct ofono_atom *atom)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = __ofono_atom_get_data(atom);
|
||||
|
||||
DBG("atom: %p", atom);
|
||||
@@ -661,6 +693,7 @@ static void ims_atom_remove(struct ofono_atom *atom)
|
||||
struct ofono_ims *ofono_ims_create(struct ofono_modem *modem,
|
||||
const char *driver, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims;
|
||||
GSList *l;
|
||||
|
||||
@@ -701,6 +734,7 @@ struct ofono_ims *ofono_ims_create(struct ofono_modem *modem,
|
||||
|
||||
int ofono_ims_driver_register(const struct ofono_ims_driver *d)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
DBG("driver: %p, name: %s", d, d->name);
|
||||
|
||||
if (d->probe == NULL)
|
||||
@@ -713,6 +747,7 @@ int ofono_ims_driver_register(const struct ofono_ims_driver *d)
|
||||
|
||||
void ofono_ims_driver_unregister(const struct ofono_ims_driver *d)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
DBG("driver: %p, name: %s", d, d->name);
|
||||
|
||||
g_drivers = g_slist_remove(g_drivers, (void *) d);
|
||||
@@ -720,6 +755,7 @@ void ofono_ims_driver_unregister(const struct ofono_ims_driver *d)
|
||||
|
||||
static void ims_atom_unregister(struct ofono_atom *atom)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
struct ofono_modem *modem = __ofono_atom_get_modem(atom);
|
||||
const char *path = __ofono_atom_get_path(atom);
|
||||
@@ -730,6 +766,7 @@ static void ims_atom_unregister(struct ofono_atom *atom)
|
||||
|
||||
static void ofono_ims_finish_register(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
struct ofono_modem *modem = __ofono_atom_get_modem(ims->atom);
|
||||
const char *path = __ofono_atom_get_path(ims->atom);
|
||||
@@ -764,6 +801,7 @@ static void registration_init_cb(const struct ofono_error *error,
|
||||
int reg_info, int ext_info,
|
||||
void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
struct ofono_ims *ims = data;
|
||||
|
||||
if (error->type == OFONO_ERROR_TYPE_NO_ERROR) {
|
||||
@@ -776,6 +814,7 @@ static void registration_init_cb(const struct ofono_error *error,
|
||||
|
||||
void ofono_ims_register(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
if (!ims->driver || !ims->driver->registration_status) {
|
||||
ofono_ims_finish_register(ims);
|
||||
return;
|
||||
@@ -786,15 +825,18 @@ void ofono_ims_register(struct ofono_ims *ims)
|
||||
|
||||
void ofono_ims_remove(struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
__ofono_atom_free(ims->atom);
|
||||
}
|
||||
|
||||
void ofono_ims_set_data(struct ofono_ims *ims, void *data)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
ims->driver_data = data;
|
||||
}
|
||||
|
||||
void *ofono_ims_get_data(const struct ofono_ims *ims)
|
||||
{
|
||||
DBG("func:%s,line:%d,file:%s", __func__, __LINE__, __FILE__);
|
||||
return ims->driver_data;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user