~ubuntu-branches/ubuntu/precise/xorg-server/precise

« back to all changes in this revision

Viewing changes to dix/deprecated.c

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2011-01-31 19:45:19 UTC
  • mfrom: (1.1.38 upstream) (0.1.19 experimental)
  • Revision ID: james.westby@ubuntu.com-20110131194519-fx30d1zsg83invba
Tags: 2:1.9.99.901+git20110131.be3be758-0ubuntu1
* Merge from (unreleased) debian-experimental.  Remaining Ubuntu changes:
  - rules:
    + Disable SELinux, libaudit-dev is not in main yet. (LP: #406226)
    + Enable xcsecurity. (LP: #247537)
    + Add --with-extra-module-dir to support GL alternatives.
  - control: 
    + Xvfb depends on xauth, x11-xkb-utils. (LP: #500102)
    + Add breaks for incompatible drivers. (LP: #614993)
    + Drop libaudit-dev from build-deps.
  - local/xvfb-run*: Add correct docs about error codes. (LP #328205)
  - debian/patches:
    + 100_rethrow_signals.patch:
      When aborting, re-raise signals for apport
    + 109_fix-swcursor-crash.patch:
      Avoid dereferencing null pointer while reloading cursors during
      resume. (LP: #371405)
    + 111_armel-drv-fallbacks.patch:
      Add support for armel driver fallbacks.
    + 121_only_switch_vt_when_active.diff:
      Add a check to prevent the X server from changing the VT when killing
      GDM from the console.
    + 122_xext_fix_card32_overflow_in_xauth.patch:
      Fix server crash when “xauth generate” is called with large timeout.
    + 157_check_null_modes.patch, 162_null_crtc_in_rotation.patch,
      166_nullptr_xinerama_keyrepeat.patch, 167_nullptr_xisbread.patch
      169_mipointer_nullptr_checks.patch,
      172_cwgetbackingpicture_nullptr_check.patch:
      Fix various segfaults in xserver by checking pointers for NULL
      values before dereferencing them.
    + 165_man_xorg_conf_no_device_ident.patch
      Correct man page
    + 168_glibc_trace_to_stderr.patch:
      Report abort traces to stderr instead of terminal
    + 184_virtual_devices_autodetect.patch:
      Use vesa for qemu device, which is not supported by cirrus
    + 188_default_primary_to_first_busid.patch:
      Pick the first device and carry on (LP: #459512)
    + 190_cache-xkbcomp_output_for_fast_start_up.patch:
    + 191-Xorg-add-an-extra-module-path.patch:
      Add support for the alternatives module path.
    + 198_nohwaccess.patch:
      Adds a -nohwaccess argument to make X not access the hardware
      ports directly.
    + 200_randr-null.patch:
      Clarify a pointer initialization.
    + 206_intel_8xx_default_to_fbdev.patch:
      Makes 8xx class intel GPUs default to fbdev for stability. (LP: #633593)
* Refresh 121_only_switch_vt_when_active.diff for new upstream.
* Drop 187_edid_quirk_hp_nc8430.patch; upstream.
* Drop 189_xserver_1.5.0_bg_none_root.patch; functionality now upstream.
* Refresh 190_cache-xkbcomp_output_for_fast_start_up.patch for new upstream.
* Drop 197_xvfb-randr.patch:
  - miRandR, which this used, has been removed from the server. 
* Drop 204_fix-neg-sync-transition.patch; upstream.
* Drop 207_dga_master_device.patch; upstream.
* Drop 208_switch_on_release.diff; upstream.
* debian/patches/209_add_legacy_bgnone_option.patch:
  - Add "-nr" as a synonym for "-background none" to ease the transition from
    the old 189_xserver_1.5.0_bg_none_root.patch patch.  Can be dropped once
    all the ?DM have been updated to use the new option.
* debian/control:
  - Add Breaks: to xserver-xorg-video-8 and current fglrx.  These proprietary
    drivers don't yet have appropriate dependency information, so manually
    handle them here to prevent broken upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
SecurityLookupWindow(XID id, ClientPtr client, Mask access_mode)
66
66
{
67
67
    WindowPtr pWin;
68
 
    int i = dixLookupWindow(&pWin, id, client, access_mode);
69
68
    static int warn = 1;
70
 
    if (warn > 0 && --warn)
 
69
    dixLookupWindow(&pWin, id, client, access_mode);
 
70
    if (warn > 0 && warn--)
71
71
        ErrorF("Warning: LookupWindow()/SecurityLookupWindow() "
72
72
               "are deprecated.  Please convert your driver/module "
73
73
               "to use dixLookupWindow().\n");
74
 
    return (i == Success) ? pWin : NULL;
 
74
    return pWin;
75
75
}
76
76
 
77
77
/* replaced by dixLookupWindow */
86
86
SecurityLookupDrawable(XID id, ClientPtr client, Mask access_mode)
87
87
{
88
88
    DrawablePtr pDraw;
89
 
    int i = dixLookupDrawable(&pDraw, id, client, M_DRAWABLE, access_mode);
90
89
    static int warn = 1;
91
 
    if (warn > 0 && --warn)
 
90
    dixLookupDrawable(&pDraw, id, client, M_DRAWABLE, access_mode);
 
91
    if (warn > 0 && warn--)
92
92
        ErrorF("Warning: LookupDrawable()/SecurityLookupDrawable() "
93
93
               "are deprecated.  Please convert your driver/module "
94
94
               "to use dixLookupDrawable().\n");
95
 
    return (i == Success) ? pDraw : NULL;
 
95
    return pDraw;
96
96
}
97
97
 
98
98
/* replaced by dixLookupDrawable */
107
107
LookupClient(XID id, ClientPtr client)
108
108
{
109
109
    ClientPtr pClient;
110
 
    int i = dixLookupClient(&pClient, id, client, DixUnknownAccess);
111
110
    static int warn = 1;
112
 
    if (warn > 0 && --warn)
 
111
    dixLookupClient(&pClient, id, client, DixUnknownAccess);
 
112
    if (warn > 0 && warn--)
113
113
        ErrorF("Warning: LookupClient() is deprecated.  Please convert your "
114
114
               "driver/module to use dixLookupClient().\n");
115
 
    return (i == Success) ? pClient : NULL;
 
115
    return pClient;
116
116
}
117
117
 
118
118
/* replaced by dixLookupResourceByType */
121
121
                       Mask access_mode)
122
122
{
123
123
    pointer retval;
124
 
    int i = dixLookupResourceByType(&retval, id, rtype, client, access_mode);
125
124
    static int warn = 1;
126
 
    if (warn > 0 && --warn)
 
125
    dixLookupResourceByType(&retval, id, rtype, client, access_mode);
 
126
    if (warn > 0 && warn--)
127
127
        ErrorF("Warning: LookupIDByType()/SecurityLookupIDByType() "
128
128
               "are deprecated.  Please convert your driver/module "
129
129
               "to use dixLookupResourceByType().\n");
130
 
    return (i == Success) ? retval : NULL;
 
130
    return retval;
131
131
}
132
132
 
133
133
pointer
135
135
                        Mask access_mode)
136
136
{
137
137
    pointer retval;
138
 
    int i = dixLookupResourceByClass(&retval, id, classes, client, access_mode);
139
138
    static int warn = 1;
140
 
    if (warn > 0 && --warn)
 
139
    dixLookupResourceByClass(&retval, id, classes, client, access_mode);
 
140
    if (warn > 0 && warn--)
141
141
        ErrorF("Warning: LookupIDByClass()/SecurityLookupIDByClass() "
142
142
               "are deprecated.  Please convert your driver/module "
143
143
               "to use dixLookupResourceByClass().\n");
144
 
    return (i == Success) ? retval : NULL;
 
144
    return retval;
145
145
}
146
146
 
147
147
/* replaced by dixLookupResourceByType */