From: YAMAMOTO Mitsuharu Date: Thu, 7 Jun 2007 08:44:47 +0000 (+0000) Subject: [MAC_OSX] (install_service_handler): Rename from X-Git-Tag: emacs-pretest-23.0.90~12422 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=343bd7942699f1a9e8ba83363468a7ef1c173c19;p=emacs.git [MAC_OSX] (install_service_handler): Rename from init_service_handler. All callers changed. Return OSStatus value. --- diff --git a/src/macselect.c b/src/macselect.c index c6aa97d5be9..a34f58df0f0 100644 --- a/src/macselect.c +++ b/src/macselect.c @@ -1623,16 +1623,19 @@ remove_drag_handler (window) Services menu support ***********************************************************************/ #ifdef MAC_OSX -void -init_service_handler () +OSStatus +install_service_handler () { static const EventTypeSpec specs[] = {{kEventClassService, kEventServiceGetTypes}, {kEventClassService, kEventServiceCopy}, {kEventClassService, kEventServicePaste}, {kEventClassService, kEventServicePerform}}; - InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event), - GetEventTypeCount (specs), specs, NULL, NULL); + + return InstallApplicationEventHandler (NewEventHandlerUPP + (mac_handle_service_event), + GetEventTypeCount (specs), + specs, NULL, NULL); } extern OSStatus mac_store_service_event P_ ((EventRef));