return NULL;
}
- return g_memdup(&po->imsi, sizeof(struct tel_sim_imsi));
+ return g_memdup2(&po->imsi, sizeof(struct tel_sim_imsi));
}
gboolean tcore_sim_set_imsi(CoreObject *o, const struct tel_sim_imsi *imsi)
return NULL;
}
- return g_memdup(po->msisdn_list, sizeof(struct tel_sim_msisdn_list));
+ return g_memdup2(po->msisdn_list, sizeof(struct tel_sim_msisdn_list));
}
gboolean tcore_sim_set_msisdn_list(CoreObject *o, const struct tel_sim_msisdn_list *msisdn_list)
memset(po->msisdn_list, 0x0, sizeof(struct tel_sim_msisdn_list));
} else {
if (msisdn_list)
- po->msisdn_list = g_memdup(msisdn_list, sizeof(struct tel_sim_msisdn_list));
+ po->msisdn_list = g_memdup2(msisdn_list, sizeof(struct tel_sim_msisdn_list));
else
po->msisdn_list = g_malloc0(sizeof(struct tel_sim_msisdn_list));
}
return NULL;
}
- return g_memdup(po->svct, sizeof(struct tel_sim_service_table));
+ return g_memdup2(po->svct, sizeof(struct tel_sim_service_table));
}
gboolean tcore_sim_set_service_table(CoreObject *o, const struct tel_sim_service_table *svct)
memset(po->svct, 0x0, sizeof(struct tel_sim_service_table));
} else {
if (svct)
- po->svct = g_memdup(svct, sizeof(struct tel_sim_service_table));
+ po->svct = g_memdup2(svct, sizeof(struct tel_sim_service_table));
else
po->svct = g_malloc0(sizeof(struct tel_sim_service_table));
}
return NULL;
}
- return g_memdup(po->csp, sizeof(struct tel_sim_cphs_csp));
+ return g_memdup2(po->csp, sizeof(struct tel_sim_cphs_csp));
}
gboolean tcore_sim_set_csp(CoreObject *o, const struct tel_sim_cphs_csp *csp)
memset(po->csp, 0x0, sizeof(struct tel_sim_cphs_csp));
} else {
if (csp)
- po->csp = g_memdup(csp, sizeof(struct tel_sim_cphs_csp));
+ po->csp = g_memdup2(csp, sizeof(struct tel_sim_cphs_csp));
else
po->csp = g_malloc0(sizeof(struct tel_sim_cphs_csp));
}
return NULL;
}
- return g_memdup(po->ecc_list, sizeof(struct tel_sim_ecc_list));
+ return g_memdup2(po->ecc_list, sizeof(struct tel_sim_ecc_list));
}
gboolean tcore_sim_set_ecc_list(CoreObject *o, const struct tel_sim_ecc_list *ecc_list)
memset(po->ecc_list, 0x0, sizeof(struct tel_sim_ecc_list));
} else {
if (ecc_list)
- po->ecc_list = g_memdup(ecc_list, sizeof(struct tel_sim_ecc_list));
+ po->ecc_list = g_memdup2(ecc_list, sizeof(struct tel_sim_ecc_list));
else
po->ecc_list = g_malloc0(sizeof(struct tel_sim_ecc_list));
}
return NULL;
}
- return g_memdup(po->spn, sizeof(struct tel_sim_spn));
+ return g_memdup2(po->spn, sizeof(struct tel_sim_spn));
}
gboolean tcore_sim_set_spn(CoreObject *o, const struct tel_sim_spn *spn)
memset(po->spn, 0x0, sizeof(struct tel_sim_spn));
} else {
if (spn)
- po->spn = g_memdup(spn, sizeof(struct tel_sim_spn));
+ po->spn = g_memdup2(spn, sizeof(struct tel_sim_spn));
else
po->spn = g_malloc0(sizeof(struct tel_sim_spn));
}
return NULL;
}
- return g_memdup(po->cphs_netname, sizeof(struct tel_sim_cphs_netname));
+ return g_memdup2(po->cphs_netname, sizeof(struct tel_sim_cphs_netname));
}
gboolean tcore_sim_set_cphs_netname(CoreObject *o, const struct tel_sim_cphs_netname *cphs_netname)
memset(po->cphs_netname, 0x0, sizeof(struct tel_sim_cphs_netname));
} else {
if (cphs_netname)
- po->cphs_netname = g_memdup(cphs_netname, sizeof(struct tel_sim_cphs_netname));
+ po->cphs_netname = g_memdup2(cphs_netname, sizeof(struct tel_sim_cphs_netname));
else
po->cphs_netname = g_malloc0(sizeof(struct tel_sim_cphs_netname));
}
return NULL;
}
- return g_memdup(po->iccid, sizeof(struct tel_sim_iccid));
+ return g_memdup2(po->iccid, sizeof(struct tel_sim_iccid));
}
gboolean tcore_sim_set_iccid(CoreObject *o, const struct tel_sim_iccid *iccid)
memset(po->iccid, 0x0, sizeof(struct tel_sim_iccid));
} else {
if (iccid)
- po->iccid = g_memdup(iccid, sizeof(struct tel_sim_iccid));
+ po->iccid = g_memdup2(iccid, sizeof(struct tel_sim_iccid));
else
po->iccid = g_malloc0(sizeof(struct tel_sim_iccid));
}
return NULL;
}
- return g_memdup(po->ist, sizeof(struct tel_sim_ist));
+ return g_memdup2(po->ist, sizeof(struct tel_sim_ist));
}
gboolean tcore_sim_set_isim_service_table(CoreObject *o, const struct tel_sim_ist *ist)
if (po->ist)
memcpy(po->ist, ist, sizeof(struct tel_sim_ist));
else
- po->ist = g_memdup(ist, sizeof(struct tel_sim_ist));
+ po->ist = g_memdup2(ist, sizeof(struct tel_sim_ist));
return TRUE;
}