VirtualBox

Changeset 93378 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2022 6:35:50 PM (3 years ago)
Author:
vboxsync
Message:

Additions: Linux: scm fixes, bugref:10134.

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  
    773773 * @interface_method_impl{VBOX_DRMIPC_CLIENT,pfnRxCb}
    774774 */
    775 static int vbDrmIpcClientRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)
     775static DECLCALLBACK(int) vbDrmIpcClientRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)
    776776{
    777777    int rc = VERR_INVALID_PARAMETER;
  • trunk/src/VBox/Additions/x11/VBoxClient/display-helper-generic.cpp

    r93375 r93378  
    315315 * @interface_method_impl{VBCLDISPLAYHELPER,pfnSetPrimaryDisplay}
    316316 */
    317 static int vbcl_hlp_generic_set_primary_display(uint32_t idDisplay)
     317static DECLCALLBACK(int) vbcl_hlp_generic_set_primary_display(uint32_t idDisplay)
    318318{
    319319    XRRScreenResources *pScreenResources;
     
    353353 * @interface_method_impl{VBCLDISPLAYHELPER,pfnProbe}
    354354 */
    355 static int vbcl_hlp_generic_probe(void)
     355static DECLCALLBACK(int) vbcl_hlp_generic_probe(void)
    356356{
    357357    /* Generic helper always supposed to return positive status on probe(). This
  • trunk/src/VBox/Additions/x11/VBoxClient/display-helper-gnome3.cpp

    r93370 r93378  
    9090 * @param   type    D-bus data type.
    9191 */
    92 static dbus_bool_t
    93 vbcl_hlp_gnome3_verify_data_type(DBusMessageIter *iter, int type)
     92static dbus_bool_t vbcl_hlp_gnome3_verify_data_type(DBusMessageIter *iter, int type)
    9493{
    9594    if (!iter)
     
    109108 * @param   signature   Expected iterator signature.
    110109 */
    111 static dbus_bool_t
    112 vbcl_hlp_gnome3_check_iter_signature(DBusMessageIter *iter, const char *signature)
     110static dbus_bool_t vbcl_hlp_gnome3_check_iter_signature(DBusMessageIter *iter, const char *signature)
    113111{
    114112    char        *iter_signature;
     
    141139 * @param   signature   Expected message signature.
    142140 */
    143 static dbus_bool_t
    144 vbcl_hlp_gnome3_check_message_signature(DBusMessage *message, const char *signature)
     141static dbus_bool_t vbcl_hlp_gnome3_check_message_signature(DBusMessage *message, const char *signature)
    145142{
    146143    char *message_signature;
     
    171168 * @param   array   Returned sub-iterator.
    172169 */
    173 static dbus_bool_t
    174 vbcl_hlp_gnome3_iter_get_array(DBusMessageIter *iter, DBusMessageIter *array)
     170static dbus_bool_t vbcl_hlp_gnome3_iter_get_array(DBusMessageIter *iter, DBusMessageIter *array)
    175171{
    176172    if (!iter || !array)
     
    202198 * @param   value   Returned value.
    203199 */
    204 static dbus_bool_t
    205 vbcl_hlp_gnome3_iter_get_basic(DBusMessageIter *iter, int type, void *value)
     200static dbus_bool_t vbcl_hlp_gnome3_iter_get_basic(DBusMessageIter *iter, int type, void *value)
    206201{
    207202    if (!iter || !value)
     
    235230 * @param   value       Returning value.
    236231 */
    237 static dbus_bool_t
    238 vbcl_hlp_gnome3_lookup_dict(DBusMessageIter *dict, const char *key_match, int type, void *value)
     232static dbus_bool_t vbcl_hlp_gnome3_lookup_dict(DBusMessageIter *dict, const char *key_match, int type, void *value)
    239233{
    240234    dbus_bool_t found = false;
     
    293287 * @param   modes   List of monitor modes.
    294288 */
    295 static char *
    296 vbcl_hlp_gnome3_lookup_monitor_current_mode(DBusMessageIter *modes)
     289static char *vbcl_hlp_gnome3_lookup_monitor_current_mode(DBusMessageIter *modes)
    297290{
    298291    char            *szCurrentMode = NULL;
     
    357350 * @param   physical_monitor_properties     A D-bus dictionary containing monitor properties (out).
    358351 */
    359 static dbus_bool_t
    360 vbcl_hlp_gnome3_parse_physical_monitor_record(
     352static dbus_bool_t vbcl_hlp_gnome3_parse_physical_monitor_record(
    361353    DBusMessageIter *physical_monitors_in,
    362354    char **connector,
     
    428420 * @param   properties              List of monitor properties (out).
    429421 */
    430 static dbus_bool_t
    431 vbcl_hlp_gnome3_parse_logical_monitor_record(
     422static dbus_bool_t vbcl_hlp_gnome3_parse_logical_monitor_record(
    432423    DBusMessageIter *logical_monitors_in,
    433424    int32_t *x,
     
    486477 * @param   cPhysicalMonitors       Actual number of physical displays parsed.
    487478 */
    488 static dbus_bool_t
    489 vbcl_hlp_gnome3_get_physical_monitors_state(
     479static dbus_bool_t vbcl_hlp_gnome3_get_physical_monitors_state(
    490480    DBusMessageIter *physical_monitors_in,
    491481    vbcl_hlp_gnome3_physical_display_state *state,
     
    554544 * @param   cPhysicalMonitors   Number of elements in array.
    555545 */
    556 static void
    557 vbcl_hlp_gnome3_free_physical_monitors_state(
     546static void vbcl_hlp_gnome3_free_physical_monitors_state(
    558547    vbcl_hlp_gnome3_physical_display_state *state,
    559548    uint32_t cPhysicalMonitors)
     
    584573 * @param   idPrimaryDisplay        ID (number) of display which is requested to be set as primary.
    585574 */
    586 static int
    587 vbcl_hlp_gnome3_convert_and_apply_display_settings(
     575static int vbcl_hlp_gnome3_convert_and_apply_display_settings(
    588576    DBusConnection *connection,
    589577    uint32_t serial,
     
    782770 * @param   reply               Reply message of GetCurrentState call.
    783771 */
    784 static int
    785 vbcl_hlp_gnome3_process_current_display_layout(
     772static int vbcl_hlp_gnome3_process_current_display_layout(
    786773    DBusConnection *connection, uint32_t idPrimaryDisplay, DBusMessage *reply)
    787774{
     
    853840 * @param   idPrimaryDisplay    A display ID which is requested to be set as primary.
    854841 */
    855 static int
    856 vbcl_hlp_gnome3_set_primary_display(uint32_t idPrimaryDisplay)
     842static DECLCALLBACK(int) vbcl_hlp_gnome3_set_primary_display(uint32_t idPrimaryDisplay)
    857843{
    858844    int rc = VERR_GENERAL_FAILURE;
     
    919905 * @interface_method_impl{VBCLDISPLAYHELPER,pfnProbe}
    920906 */
    921 static int
    922 vbcl_hlp_gnome3_probe(void)
     907static DECLCALLBACK(int) vbcl_hlp_gnome3_probe(void)
    923908{
    924909    const char *pszCurrentDesktop = RTEnvGet(VBCL_HLP_ENV_XDG_CURRENT_DESKTOP);
     
    938923 * @returns True if Wayland has been detected, False otherwise.
    939924 */
    940 static bool
    941 vbcl_hlp_gnome3_has_wayland(void)
     925static bool vbcl_hlp_gnome3_has_wayland(void)
    942926{
    943927    return RTEnvGet(VBCL_HLP_ENV_WAYLAND_DISPLAY) != NULL;
     
    947931 * @interface_method_impl{VBCLDISPLAYHELPER,pfnInit}
    948932 */
    949 static int
    950 vbcl_hlp_gnome3_init(void)
     933static DECLCALLBACK(int) vbcl_hlp_gnome3_init(void)
    951934{
    952935    int rc;
     
    964947 * @interface_method_impl{VBCLDISPLAYHELPER,pfnTerm}
    965948 */
    966 static int
    967 vbcl_hlp_gnome3_term(void)
     949static DECLCALLBACK(int) vbcl_hlp_gnome3_term(void)
    968950{
    969951    int rc;
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-session.cpp

    r93375 r93378  
    9090 * @param   pDisplays   Display data.
    9191 */
    92 static int vbclSVGASessionDisplayOffsetChanged(uint32_t cOffsets, RTPOINT *paOffsets)
     92static DECLCALLBACK(int) vbclSVGASessionDisplayOffsetChanged(uint32_t cOffsets, RTPOINT *paOffsets)
    9393{
    9494    int rc = RTCritSectEnter(&g_hClientCritSect);
     
    291291 * @param   cbData  Size of DRM IPC command payload.
    292292 */
    293 static int vbclSVGASessionRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)
     293static DECLCALLBACK(int) vbclSVGASessionRxCallBack(uint8_t idCmd, void *pvData, uint32_t cbData)
    294294{
    295295    VBOXDRMIPCCLTCMD enmCmd =
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette