Changeset 93378 in vbox for trunk/src/VBox
- Timestamp:
- Jan 20, 2022 6:35:50 PM (3 years ago)
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp
r93371 r93378 773 773 * @interface_method_impl{VBOX_DRMIPC_CLIENT,pfnRxCb} 774 774 */ 775 static intvbDrmIpcClientRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)775 static DECLCALLBACK(int) vbDrmIpcClientRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData) 776 776 { 777 777 int rc = VERR_INVALID_PARAMETER; -
trunk/src/VBox/Additions/x11/VBoxClient/display-helper-generic.cpp
r93375 r93378 315 315 * @interface_method_impl{VBCLDISPLAYHELPER,pfnSetPrimaryDisplay} 316 316 */ 317 static intvbcl_hlp_generic_set_primary_display(uint32_t idDisplay)317 static DECLCALLBACK(int) vbcl_hlp_generic_set_primary_display(uint32_t idDisplay) 318 318 { 319 319 XRRScreenResources *pScreenResources; … … 353 353 * @interface_method_impl{VBCLDISPLAYHELPER,pfnProbe} 354 354 */ 355 static intvbcl_hlp_generic_probe(void)355 static DECLCALLBACK(int) vbcl_hlp_generic_probe(void) 356 356 { 357 357 /* Generic helper always supposed to return positive status on probe(). This -
trunk/src/VBox/Additions/x11/VBoxClient/display-helper-gnome3.cpp
r93370 r93378 90 90 * @param type D-bus data type. 91 91 */ 92 static dbus_bool_t 93 vbcl_hlp_gnome3_verify_data_type(DBusMessageIter *iter, int type) 92 static dbus_bool_t vbcl_hlp_gnome3_verify_data_type(DBusMessageIter *iter, int type) 94 93 { 95 94 if (!iter) … … 109 108 * @param signature Expected iterator signature. 110 109 */ 111 static dbus_bool_t 112 vbcl_hlp_gnome3_check_iter_signature(DBusMessageIter *iter, const char *signature) 110 static dbus_bool_t vbcl_hlp_gnome3_check_iter_signature(DBusMessageIter *iter, const char *signature) 113 111 { 114 112 char *iter_signature; … … 141 139 * @param signature Expected message signature. 142 140 */ 143 static dbus_bool_t 144 vbcl_hlp_gnome3_check_message_signature(DBusMessage *message, const char *signature) 141 static dbus_bool_t vbcl_hlp_gnome3_check_message_signature(DBusMessage *message, const char *signature) 145 142 { 146 143 char *message_signature; … … 171 168 * @param array Returned sub-iterator. 172 169 */ 173 static dbus_bool_t 174 vbcl_hlp_gnome3_iter_get_array(DBusMessageIter *iter, DBusMessageIter *array) 170 static dbus_bool_t vbcl_hlp_gnome3_iter_get_array(DBusMessageIter *iter, DBusMessageIter *array) 175 171 { 176 172 if (!iter || !array) … … 202 198 * @param value Returned value. 203 199 */ 204 static dbus_bool_t 205 vbcl_hlp_gnome3_iter_get_basic(DBusMessageIter *iter, int type, void *value) 200 static dbus_bool_t vbcl_hlp_gnome3_iter_get_basic(DBusMessageIter *iter, int type, void *value) 206 201 { 207 202 if (!iter || !value) … … 235 230 * @param value Returning value. 236 231 */ 237 static dbus_bool_t 238 vbcl_hlp_gnome3_lookup_dict(DBusMessageIter *dict, const char *key_match, int type, void *value) 232 static dbus_bool_t vbcl_hlp_gnome3_lookup_dict(DBusMessageIter *dict, const char *key_match, int type, void *value) 239 233 { 240 234 dbus_bool_t found = false; … … 293 287 * @param modes List of monitor modes. 294 288 */ 295 static char * 296 vbcl_hlp_gnome3_lookup_monitor_current_mode(DBusMessageIter *modes) 289 static char *vbcl_hlp_gnome3_lookup_monitor_current_mode(DBusMessageIter *modes) 297 290 { 298 291 char *szCurrentMode = NULL; … … 357 350 * @param physical_monitor_properties A D-bus dictionary containing monitor properties (out). 358 351 */ 359 static dbus_bool_t 360 vbcl_hlp_gnome3_parse_physical_monitor_record( 352 static dbus_bool_t vbcl_hlp_gnome3_parse_physical_monitor_record( 361 353 DBusMessageIter *physical_monitors_in, 362 354 char **connector, … … 428 420 * @param properties List of monitor properties (out). 429 421 */ 430 static dbus_bool_t 431 vbcl_hlp_gnome3_parse_logical_monitor_record( 422 static dbus_bool_t vbcl_hlp_gnome3_parse_logical_monitor_record( 432 423 DBusMessageIter *logical_monitors_in, 433 424 int32_t *x, … … 486 477 * @param cPhysicalMonitors Actual number of physical displays parsed. 487 478 */ 488 static dbus_bool_t 489 vbcl_hlp_gnome3_get_physical_monitors_state( 479 static dbus_bool_t vbcl_hlp_gnome3_get_physical_monitors_state( 490 480 DBusMessageIter *physical_monitors_in, 491 481 vbcl_hlp_gnome3_physical_display_state *state, … … 554 544 * @param cPhysicalMonitors Number of elements in array. 555 545 */ 556 static void 557 vbcl_hlp_gnome3_free_physical_monitors_state( 546 static void vbcl_hlp_gnome3_free_physical_monitors_state( 558 547 vbcl_hlp_gnome3_physical_display_state *state, 559 548 uint32_t cPhysicalMonitors) … … 584 573 * @param idPrimaryDisplay ID (number) of display which is requested to be set as primary. 585 574 */ 586 static int 587 vbcl_hlp_gnome3_convert_and_apply_display_settings( 575 static int vbcl_hlp_gnome3_convert_and_apply_display_settings( 588 576 DBusConnection *connection, 589 577 uint32_t serial, … … 782 770 * @param reply Reply message of GetCurrentState call. 783 771 */ 784 static int 785 vbcl_hlp_gnome3_process_current_display_layout( 772 static int vbcl_hlp_gnome3_process_current_display_layout( 786 773 DBusConnection *connection, uint32_t idPrimaryDisplay, DBusMessage *reply) 787 774 { … … 853 840 * @param idPrimaryDisplay A display ID which is requested to be set as primary. 854 841 */ 855 static int 856 vbcl_hlp_gnome3_set_primary_display(uint32_t idPrimaryDisplay) 842 static DECLCALLBACK(int) vbcl_hlp_gnome3_set_primary_display(uint32_t idPrimaryDisplay) 857 843 { 858 844 int rc = VERR_GENERAL_FAILURE; … … 919 905 * @interface_method_impl{VBCLDISPLAYHELPER,pfnProbe} 920 906 */ 921 static int 922 vbcl_hlp_gnome3_probe(void) 907 static DECLCALLBACK(int) vbcl_hlp_gnome3_probe(void) 923 908 { 924 909 const char *pszCurrentDesktop = RTEnvGet(VBCL_HLP_ENV_XDG_CURRENT_DESKTOP); … … 938 923 * @returns True if Wayland has been detected, False otherwise. 939 924 */ 940 static bool 941 vbcl_hlp_gnome3_has_wayland(void) 925 static bool vbcl_hlp_gnome3_has_wayland(void) 942 926 { 943 927 return RTEnvGet(VBCL_HLP_ENV_WAYLAND_DISPLAY) != NULL; … … 947 931 * @interface_method_impl{VBCLDISPLAYHELPER,pfnInit} 948 932 */ 949 static int 950 vbcl_hlp_gnome3_init(void) 933 static DECLCALLBACK(int) vbcl_hlp_gnome3_init(void) 951 934 { 952 935 int rc; … … 964 947 * @interface_method_impl{VBCLDISPLAYHELPER,pfnTerm} 965 948 */ 966 static int 967 vbcl_hlp_gnome3_term(void) 949 static DECLCALLBACK(int) vbcl_hlp_gnome3_term(void) 968 950 { 969 951 int rc; -
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-session.cpp
r93375 r93378 90 90 * @param pDisplays Display data. 91 91 */ 92 static intvbclSVGASessionDisplayOffsetChanged(uint32_t cOffsets, RTPOINT *paOffsets)92 static DECLCALLBACK(int) vbclSVGASessionDisplayOffsetChanged(uint32_t cOffsets, RTPOINT *paOffsets) 93 93 { 94 94 int rc = RTCritSectEnter(&g_hClientCritSect); … … 291 291 * @param cbData Size of DRM IPC command payload. 292 292 */ 293 static intvbclSVGASessionRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)293 static DECLCALLBACK(int) vbclSVGASessionRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData) 294 294 { 295 295 VBOXDRMIPCCLTCMD enmCmd =
Note:
See TracChangeset
for help on using the changeset viewer.