if (ret_variable_int ==
NOTIFICATION_COUNT_POS_LEFT) {
- notification_noti_get_count(noti->type,
- noti->caller_pkgname,
- noti->group_id,
- noti->priv_id,
- &ret_variable_int);
+ notification_get_count(noti->type,
+ noti->caller_pkgname,
+ noti->group_id,
+ noti->priv_id,
+ &ret_variable_int);
snprintf(buf_str, sizeof(buf_str),
"%d ", ret_variable_int);
if (ret_var_type ==
NOTIFICATION_VARIABLE_TYPE_COUNT) {
/* Get notification count */
- notification_noti_get_count
- (noti->type,
- noti->caller_pkgname,
- noti->group_id,
- noti->priv_id,
- &ret_variable_int);
+ notification_get_count(noti->type,
+ noti->caller_pkgname,
+ noti->group_id,
+ noti->priv_id,
+ &ret_variable_int);
} else {
/* Get var Value */
snprintf(buf_key,
if (ret_var_type ==
NOTIFICATION_VARIABLE_TYPE_COUNT) {
/* Get notification count */
- notification_noti_get_count
- (noti->type,
- noti->caller_pkgname,
- noti->group_id,
- noti->priv_id,
- &ret_variable_int);
+ notification_get_count(noti->type,
+ noti->caller_pkgname,
+ noti->group_id,
+ noti->priv_id,
+ &ret_variable_int);
} else {
/* Get var Value */
snprintf(buf_key,
if (ret_variable_int ==
NOTIFICATION_COUNT_POS_RIGHT) {
- notification_noti_get_count
- (noti->type,
- noti->caller_pkgname,
- noti->group_id,
- noti->priv_id,
- &ret_variable_int);
+ notification_get_count(noti->type,
+ noti->caller_pkgname,
+ noti->group_id,
+ noti->priv_id,
+ &ret_variable_int);
snprintf(buf_str,
sizeof(buf_str), " %d",
ret_variable_int);
return NULL;
}
- noti = (notification_h) calloc(1, sizeof(struct _notification));
+ noti = (notification_h)calloc(1, sizeof(struct _notification));
if (noti == NULL) {
NOTIFICATION_ERR("Failed to alloc a new notification");
set_last_result(NOTIFICATION_ERROR_OUT_OF_MEMORY);
return NULL;
}
- ret = notification_noti_get_by_tag(noti, caller_pkgname, (char*)tag);
-
+ ret = notification_ipc_request_load_noti_by_tag(noti, caller_pkgname, (char*)tag);
free(caller_pkgname);
set_last_result(ret);
-
if (ret != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return NULL;