git.fiddlerwoaroof.com
Browse code

fix(notifications): cleanup api

Edward Langley authored on 18/09/2022 11:12:09
Showing 1 changed files
... ...
@@ -4,7 +4,8 @@
4 4
    #:main-loop-ticker
5 5
    #:dnc
6 6
    #:observe-notifications
7
-   #:*mailbox*))
7
+   #:*mailbox*
8
+   #:setup-notifications))
8 9
 (in-package :objc.notification)
9 10
 (serapeum:eval-always
10 11
   (named-readtables:in-readtable :objc-readtable))
... ...
@@ -31,7 +32,7 @@
31 32
     [notification @(userInfo)])))
32 33
 
33 34
 (defvar *notification-handler*)
34
-(defun setup-delegate ()
35
+(defun setup-notifications ()
35 36
   (if (boundp '*notification-handler*)
36 37
       *notification-handler*
37 38
       (let ((delegate-class
... ...
@@ -66,5 +67,5 @@
66 67
                   :pointer (cffi:null-pointer)]
67 68
              (error 'notifications-not-initialized))
68 69
        (setup-and-retry ()
69
-         (setup-delegate)
70
+         (setup-notifications)
70 71
          (go start)))))