changeset 81241:b453bc0cb471

[MAC_OSX] (install_service_handler): Rename from init_service_handler. All callers changed. Return OSStatus value.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 07 Jun 2007 08:44:47 +0000
parents 455ac00e8738
children 95935a0c1560
files src/macselect.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/macselect.c	Thu Jun 07 08:44:33 2007 +0000
+++ b/src/macselect.c	Thu Jun 07 08:44:47 2007 +0000
@@ -1623,16 +1623,19 @@
 			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));