Lines Matching refs:reply
72 #define UNDReply_lock(reply) lck_mtx_lock(&reply->lock) argument
73 #define UNDReply_unlock(reply) lck_mtx_unlock(&reply->lock) argument
103 UNDReplyRef reply, in UNDAlertCompletedWithResult_rpc() argument
119 if (reply == UND_REPLY_NULL || !reply->inprogress) { in UNDAlertCompletedWithResult_rpc()
139 if (reply->callback) { in UNDAlertCompletedWithResult_rpc()
140 (reply->callback)((int)(KUNCUserNotificationID)reply, result, dict); in UNDAlertCompletedWithResult_rpc()
143 UNDReply_lock(reply); in UNDAlertCompletedWithResult_rpc()
144 reply->inprogress = FALSE; in UNDAlertCompletedWithResult_rpc()
145 reply->userLandNotificationKey = -1; in UNDAlertCompletedWithResult_rpc()
146 UNDReply_unlock(reply); in UNDAlertCompletedWithResult_rpc()
161 UNDReplyRef reply, in UNDNotificationCreated_rpc() argument
164 if (reply == UND_REPLY_NULL) { in UNDNotificationCreated_rpc()
168 UNDReply_lock(reply); in UNDNotificationCreated_rpc()
169 if (reply->inprogress || reply->userLandNotificationKey != -1) { in UNDNotificationCreated_rpc()
170 UNDReply_unlock(reply); in UNDNotificationCreated_rpc()
173 reply->userLandNotificationKey = userLandNotificationKey; in UNDNotificationCreated_rpc()
174 UNDReply_unlock(reply); in UNDNotificationCreated_rpc()
186 UNDReplyRef reply; in KUNCGetNotificationID() local
188 reply = kalloc_type(struct UNDReply, Z_WAITOK | Z_ZERO | Z_NOFAIL); in KUNCGetNotificationID()
189 reply->self_port = ipc_kobject_alloc_port((ipc_kobject_t)reply, in KUNCGetNotificationID()
191 lck_mtx_init(&reply->lock, &UNDLckGrp, LCK_ATTR_NULL); in KUNCGetNotificationID()
192 reply->userLandNotificationKey = -1; in KUNCGetNotificationID()
193 reply->inprogress = FALSE; in KUNCGetNotificationID()
195 return (KUNCUserNotificationID) reply; in KUNCGetNotificationID()
201 UNDReplyRef reply; in UNDReply_no_senders() local
203 reply = ipc_kobject_dealloc_port(port, mscount, IKOT_UND_REPLY); in UNDReply_no_senders()
204 lck_mtx_destroy(&reply->lock, &UNDLckGrp); in UNDReply_no_senders()
205 kfree_type(struct UNDReply, reply); in UNDReply_no_senders()
302 UNDReplyRef reply = (UNDReplyRef)id; in KUNCUserNotificationDisplayFromBundle() local
306 if (reply == UND_REPLY_NULL) { in KUNCUserNotificationDisplayFromBundle()
309 UNDReply_lock(reply); in KUNCUserNotificationDisplayFromBundle()
310 if (reply->inprogress == TRUE || reply->userLandNotificationKey != -1) { in KUNCUserNotificationDisplayFromBundle()
311 UNDReply_unlock(reply); in KUNCUserNotificationDisplayFromBundle()
314 reply->inprogress = TRUE; in KUNCUserNotificationDisplayFromBundle()
315 reply->callback = callback; in KUNCUserNotificationDisplayFromBundle()
316 reply_port = ipc_kobject_make_send(reply->self_port, reply, IKOT_UND_REPLY); in KUNCUserNotificationDisplayFromBundle()
317 UNDReply_unlock(reply); in KUNCUserNotificationDisplayFromBundle()
349 UNDReplyRef reply = NULL; in convert_port_to_UNDReply() local
351 reply = ipc_kobject_get_stable(port, IKOT_UND_REPLY); in convert_port_to_UNDReply()
354 return reply; in convert_port_to_UNDReply()