Changeset 23941 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Oct 21, 2009 3:40:36 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53757
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
r23859 r23941 61 61 seamless-x11.cpp \ 62 62 thread.cpp \ 63 display.cpp 63 display.cpp \ 64 hostversion.cpp 64 65 VBoxClient_LIBS += \ 65 66 Xext Xmu 66 67 endif 67 68 ifdef VBOX_WITH_GUEST_PROPS 68 VBoxClient_SOURCES += hostversion.cpp69 69 VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS 70 70 endif -
trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp
r23876 r23941 45 45 { 46 46 int rc; 47 # ifdef VBOX_WITH_DBUS47 # ifdef VBOX_WITH_DBUS 48 48 DBusConnection *conn; 49 49 DBusMessage* msg; … … 104 104 if (msg != NULL) 105 105 dbus_message_unref(msg); 106 # else106 # else 107 107 /* TODO: Implement me */ 108 108 rc = VINF_SUCCESS; 109 # endif /* VBOX_WITH_DBUS */109 # endif /* VBOX_WITH_DBUS */ 110 110 return rc; 111 111 } 112 112 113 /** @todo Move this part in VbglR3 and just provide a callback for the platform-specific 113 /** @todo Move this part in VbglR3 and just provide a callback for the platform-specific 114 114 notification stuff, since this is very similar to the VBoxTray code. */ 115 115 virtual int run() … … 117 117 int rc; 118 118 LogFlowFunc(("\n")); 119 # ifdef VBOX_WITH_DBUS119 # ifdef VBOX_WITH_DBUS 120 120 rc = RTDBusLoadLib(); 121 121 if (RT_FAILURE(rc)) 122 LogRel(("VBoxClient: D-Bus seems not to be installed; no host version check/notification done.\n")); 123 # else 124 rc = VERR_NOT_IMPLEMENTED; 125 # endif /* VBOX_WITH_DBUS */ 126 127 # ifdef VBOX_WITH_GUEST_PROPS 128 if (RT_SUCCESS(rc)) 122 129 { 123 LogRel(("VBoxClient: D-Bus seems not to be installed; no host version check/notification done.\n")); 130 uint32_t uGuestPropSvcClientID; 131 rc = VbglR3GuestPropConnect(&uGuestPropSvcClientID); 132 if (RT_FAILURE(rc)) 133 LogFlow(("Cannot connect to guest property service! rc = %Rrc\n", rc)); 124 134 } 125 #else 126 rc = VERR_NOT_IMPLEMENTED; 127 #endif 128 uint32_t uGuestPropSvcClientID; 129 rc = VbglR3GuestPropConnect(&uGuestPropSvcClientID); 135 130 136 if (RT_SUCCESS(rc)) 131 137 { … … 143 149 char szMsg[256]; 144 150 char szTitle[64]; 145 151 146 152 /** @todo add some translation macros here */ 147 153 RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!"); … … 156 162 /* Store host version to not notify again */ 157 163 rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion); 158 164 159 165 VbglR3GuestPropReadValueFree(pszHostVersion); 160 166 VbglR3GuestPropReadValueFree(pszGuestVersion); … … 163 169 VbglR3GuestPropDisconnect(uGuestPropSvcClientID); 164 170 } 171 # endif /* VBOX_WITH_GUEST_PROPS */ 165 172 LogFlowFunc(("returning %Rrc\n", rc)); 166 173 return rc; -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r23859 r23941 138 138 RTPrintf(" --clipboard start the shared clipboard service\n"); 139 139 RTPrintf(" --display start the display management service\n"); 140 # ifdef VBOX_WITH_GUEST_PROPS 141 RTPrintf(" --checkhostversion start the host version notifier service\n"); 142 # endif 140 143 RTPrintf(" --seamless start the seamless windows service\n"); 141 144 RTPrintf(" -d, --nodaemon continue running as a system service\n"); … … 190 193 fSuccess = false; 191 194 } 192 #ifdef VBOX_WITH_GUEST_PROPS193 195 else if (!strcmp(argv[i], "--checkhostversion")) 194 196 { … … 198 200 fSuccess = false; 199 201 } 200 #endif201 202 else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) 202 203 { … … 223 224 RTPrintf("VBoxClient: failed to daemonize. Exiting.\n"); 224 225 Log(("VBoxClient: failed to daemonize. Exiting.\n")); 225 # ifdef DEBUG226 # ifdef DEBUG 226 227 RTPrintf("Error %Rrc\n", rc); 227 # endif228 # endif 228 229 return 1; 229 230 }
Note:
See TracChangeset
for help on using the changeset viewer.