CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
FOREACH(hfile ${HEADERS})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/${hfile} DESTINATION include/${PROJECT_NAME})
ENDFOREACH(hfile)
*/
notification_error_e
notification_unregister_detailed_changed_cb(
- void (*detailed_changed_cb)(void *data, notification_type_e type, notification_op_type_e op_type, int *list_priv_id, int num_priv_id),
+ void (*detailed_changed_cb)(void *data, notification_type_e type, notification_op *op_list, int num_op),
void *user_data);
/**
Name: notification
Summary: notification library
-Version: 0.1.6
+Version: 0.1.8
Release: 1
Group: TBD
License: Apache-2.0
BuildRequires: cmake
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/sqlite3
-requires(postun): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
%description
Notificaiton library.
Notificaiton library (devel).
%build
-export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
-LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed"
+%cmake .
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
cp -f LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name}
-%clean
-rm -rf %{buildroot}
-
%post
/sbin/ldconfig
EXPORT_API notification_error_e
notification_unregister_detailed_changed_cb(
- void (*detailed_changed_cb)(void *data, notification_type_e type, notification_op_type_e op_type, int *list_priv_id, int num_priv_id),
+ void (*detailed_changed_cb)(void *data, notification_type_e type, notification_op *op_list, int num_op),
void *user_data)
{
notification_cb_list_s *noti_cb_list = NULL;
"flags_for_property, display_applist, progress_size, progress_percentage "
"from noti_list ");
- internal_group_id =
- _notification_noti_get_internal_group_id_by_priv_id(pkgname,
- priv_id, db);
-
- if (status == VCONFKEY_TELEPHONY_SIM_INSERTED) {
- snprintf(query_where, sizeof(query_where),
- "where caller_pkgname = '%s' and internal_group_id = %d ",
- pkgname, internal_group_id);
+ if (priv_id == NOTIFICATION_PRIV_ID_NONE && group_id == NOTIFICATION_GROUP_ID_NONE) {
+ if (status == VCONFKEY_TELEPHONY_SIM_INSERTED) {
+ snprintf(query_where, sizeof(query_where),
+ "where caller_pkgname = '%s' ",
+ pkgname, internal_group_id);
+ } else {
+ snprintf(query_where, sizeof(query_where),
+ "where caller_pkgname = '%s' and flag_simmode = 0 ",
+ pkgname, internal_group_id);
+ }
} else {
- snprintf(query_where, sizeof(query_where),
- "where caller_pkgname = '%s' and internal_group_id = %d and flag_simmode = 0 ",
- pkgname, internal_group_id);
+ internal_group_id =
+ _notification_noti_get_internal_group_id_by_priv_id(pkgname,
+ priv_id, db);
+
+ if (status == VCONFKEY_TELEPHONY_SIM_INSERTED) {
+ snprintf(query_where, sizeof(query_where),
+ "where caller_pkgname = '%s' and internal_group_id = %d ",
+ pkgname, internal_group_id);
+ } else {
+ snprintf(query_where, sizeof(query_where),
+ "where caller_pkgname = '%s' and internal_group_id = %d and flag_simmode = 0 ",
+ pkgname, internal_group_id);
+ }
}
snprintf(query, sizeof(query),