]> git.eshelyaron.com Git - emacs.git/commitdiff
[MAC_OSX] (install_service_handler): Rename from
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 7 Jun 2007 08:44:47 +0000 (08:44 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 7 Jun 2007 08:44:47 +0000 (08:44 +0000)
init_service_handler.  All callers changed.  Return OSStatus value.

src/macselect.c

index c6aa97d5be96ad0dd9ec3a50c11b1555da5f6b1f..a34f58df0f0ea214a0b8df72f4b50035c082bc57 100644 (file)
@@ -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));