LibnotifyLoader: add notify_notification_set_hint_string
This commit is contained in:
parent
8dd7a8d7fe
commit
8962da380b
2 changed files with 11 additions and 0 deletions
|
@ -92,6 +92,15 @@ bool LibNotifyLoader::Load(const std::string& library_name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
notify_notification_set_hint_string =
|
||||
reinterpret_cast<decltype(this->notify_notification_set_hint_string)>(
|
||||
dlsym(library_, "notify_notification_set_hint_string"));
|
||||
notify_notification_set_hint_string = &::notify_notification_set_hint_string;
|
||||
if (!notify_notification_set_hint_string) {
|
||||
CleanUp(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
notify_notification_show =
|
||||
reinterpret_cast<decltype(this->notify_notification_show)>(
|
||||
dlsym(library_, "notify_notification_show"));
|
||||
|
@ -128,6 +137,7 @@ void LibNotifyLoader::CleanUp(bool unload) {
|
|||
notify_notification_add_action = NULL;
|
||||
notify_notification_set_image_from_pixbuf = NULL;
|
||||
notify_notification_set_timeout = NULL;
|
||||
notify_notification_set_hint_string = NULL;
|
||||
notify_notification_show = NULL;
|
||||
notify_notification_close = NULL;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ class LibNotifyLoader {
|
|||
decltype(&::notify_notification_add_action) notify_notification_add_action;
|
||||
decltype(&::notify_notification_set_image_from_pixbuf) notify_notification_set_image_from_pixbuf;
|
||||
decltype(&::notify_notification_set_timeout) notify_notification_set_timeout;
|
||||
decltype(&::notify_notification_set_hint_string) notify_notification_set_hint_string;
|
||||
decltype(&::notify_notification_show) notify_notification_show;
|
||||
decltype(&::notify_notification_close) notify_notification_close;
|
||||
|
||||
|
|
Loading…
Reference in a new issue