Use direct_hash instead of int_hash.
The key of hash table is pointer type variable. (pkgmgr_client *)
Change-Id: If9982c9cf99eb3e6b1c09e0011805cd06254d363
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
static void __initialize_cb_table(void)
{
- __cb_table = g_hash_table_new_full(g_int_hash, g_int_equal, __free_client, NULL);
+ __cb_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, __free_client, NULL);
}
static void __result_cb(pkgmgr_client *pc, const char *pkgid, const pkg_size_info_t *result, void *user_data)