int noti_ex_item_free_string_list(char** list, int count);
int noti_ex_item_group_remove_children(noti_ex_item_h handle);
int noti_ex_item_time_set_time(noti_ex_item_h handle, time_t time);
+int noti_ex_item_get_private_id(noti_ex_item_h handle, int64_t* private_id);
int noti_ex_style_set_geometry(noti_ex_style_h handle,
noti_ex_geometry_h geometry);
}
extern "C" EXPORT_API int noti_ex_item_get_private_id(
- noti_ex_item_h item, int64_t* private_id) {
- if (item == nullptr || private_id == nullptr) {
+ noti_ex_item_h handle, int64_t* private_id) {
+ if (handle == nullptr || private_id == nullptr) {
LOGE("Invalid parameter");
return NOTI_EX_ERROR_INVALID_PARAMETER;
}
- Handle* h = static_cast<Handle*>(item);
+ Handle* h = static_cast<Handle*>(handle);
*private_id = static_pointer_cast<IItemInfoInternal>(
h->Get()->GetInfo())->GetPrivateId();
return NOTI_EX_ERROR_NONE;
}
-extern "C" EXPORT_API int noti_ex_item_set_private_id(
- noti_ex_item_h item, int64_t priv_id) {
- if (item == nullptr) {
- LOGE("Invalid parameter");
- return NOTI_EX_ERROR_INVALID_PARAMETER;
- }
-
- Handle* h = static_cast<Handle*>(item);
- static_pointer_cast<IItemInfoInternal>(
- h->Get()->GetInfo())->SetPrivateId(priv_id);
-
- return NOTI_EX_ERROR_NONE;
-}
-
extern "C" EXPORT_API int noti_ex_item_free_string_list(char** list, int count) {
if (list == nullptr) {
LOGE("Invalid parameter");